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.
- Remote IP address (‘255.255.255.255’ for broadcast)
Enter the address or hostname of the IP node on the remote device.
To broadcast the UDP message to all devices, use the default parameter value,
'255.255.255.255'. Often, IP routers are configured to drop broadcast UDP packets sent to
'255.255.255.255'. Consider using the specific IP address of the remote device to avoid creating unnecessary broadcast traffic.
- Remote IP port
The number of the IP port on the remote device, which can range from 1 – 65535. This value defaults to
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Introduced in R2014a