File Exchange

image thumbnail

Arduino Udp Ethernet Shield

Transmit and receive data arrays of any type and length with an Arduino UDP Ethernet Shield

24 Downloads

Updated

View License

The default UDP blocks in R2015a's Simulink Arduino Support Package can transmit and receive scalar bytes of data. This entry expands this functionality to enable the user to transmit and receive arrays of data where the type is an integer.
The supported data types are {uint8, int8, uint16, int16, uint32, int32}.
This entry supports Windows, Linux and Mac.

Install:
To install this entry, run the included .mltbx file.

Documentation and Examples:
For examples showing how to use the blocks, see the "Supplemental Software" section of the main doc page. There will be link called "Arduino UDP Ethernet Shield" .

To see the files directly, navigate to Home->Add-Ons->Manage Custom Toolboxes->Open Folder

Dependencies:
This toolbox also provides a custom toolbox "Pack and Unpack Data", containing the packData and unpackData functions which convert an array of integers into an array of bytes and vice-versa. This is used on the desktop computer to translate integers into bytes and vice-versa for communication via UDP.

The Instrument Control Toolbox is necessary to receive and transmit UDP data from the Desktop Computer.

Comments and Ratings (0)

Updates

15.2.1.1

Updated license

15.2.01

Fixed a Sample Time bug found in R2015b.
Fixed an Arduino IP and MAC bug found in R2015b
Updated Arduino Library used by block to 1.6.1 when using R2015b

MATLAB Release
MATLAB 8.5 (R2015a)
Acknowledgements

Inspired by: Pack and Unpack Data, Device Drivers

Inspired: Getting Started Guide RoboNation

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today

code/library/

code/PackUnpackData/code/library/

code/PackUnpackData/examples/

examples/loopback/

examples/MultipleTransmit/

examples/receive/

examples/transmit/

code/PackUnpackData/documentation/blocks/html/

code/PackUnpackData/documentation/concepts/html/

code/PackUnpackData/documentation/examples/html/

code/PackUnpackData/documentation/functions/html/

code/PackUnpackData/documentation/html/

code/PackUnpackData/documentation/release/html/

code/PackUnpackData/documentation/setup/html/

documentation/blocks/html/

documentation/examples/html/

documentation/html/

documentation/release/html/

documentation/setup/html/