Arduino Udp Ethernet Shield

Transmit and receive data arrays of any type and length with an Arduino UDP Ethernet Shield
1.7K Downloads
Updated 1 Sep 2016

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.

Cite As

MathWorks Student Competitions Team (2024). Arduino Udp Ethernet Shield (https://www.mathworks.com/matlabcentral/fileexchange/52578-arduino-udp-ethernet-shield), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Instrument Control Toolbox Supported Hardware in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Device Drivers, Pack and Unpack Data

Inspired: Getting Started Guide RoboNation

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

code/PackUnpackData/code/library/

code/PackUnpackData/examples/

code/library/

examples/MultipleTransmit/

examples/loopback/

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/

Version Published Release Notes
15.2.1.1

Updated license

15.2.1.0

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

15.1.1.0