Send UDP packets
Simulink Support Package for Android Devices / Communication
Send a UDP packet to a network address identified by the Remote IP address and Remote IP port parameters.
The block accepts a one-dimensional vector of variable length.
The block input supports the following data types:
If you are having trouble using UDP to communicate between your host computer and your Android™ device, investigate whether antivirus or firewall software is blocking UDP traffic. If so, try to configure the software to allow UDP traffic for a specific IP port number.
Enter the address or hostname of the IP node on the remote device.
To broadcast the UDP message to all devices, use the default
'255.255.255.255'. Often, IP routers
are configured to drop broadcast UDP packets sent to
Consider using the specific IP address of the remote device to avoid
creating unnecessary broadcast traffic.
The number of the IP port on the remote device, which can range
from 1 – 65535. This value defaults to