This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

UDP Send

Send UDP packets

Description

Send a UDP packet to a network address identified by the remote IP address and remote IP port parameters.

The data type of the block input data is double.

The block input accepts a one-dimensional vector of variable length.

The block input supports the following data types: uint8, int8, uint16, int16, uint32, int32, single, and double.

Note

If you are having trouble using UDP to communicate between your host computer and your Apple iOS device, investigate whether anti-virus or firewall software might be blocking UDP traffic. If so, try to reconfigure the software to allow UDP traffic for a specific IP port number.

Dialog

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'. Use the IP address, '255.255.255.255', sparingly to avoid creating unnecessary broadcast traffic on your network. Often, IP routers are configured to drop broadcast UDP packets sent to '255.255.255.255'.

Remote IP port

The number of the IP port on the remote device, which can range from 1 to 65535. This value defaults to 25000.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced in R2015a