Main Content

UDP Send

Send UDP data to remote host

  • Library:
  • Simulink Support Package for Apple iOS Devices / Communication

  • UDP Send block

Description

The UDP Send block sends user datagram protocol ( UDP ) data to a remote host.

Note

If you are having trouble using UDP to communicate between your host computer and your Apple iOS device, antivirus or firewall software might be blocking UDP traffic. In this case, reconfigure the software to enable UDP traffic for a specific IP port number.

Ports

Input

expand all

输入数据信号,specified as a numeric vector. The block sends this data as UDP data to the remote IP address at the remote IP port.

Data Types:single|double|int8|int16|int32|int64|uint8|uint16|uint32

Parameters

expand all

Specify the IP address of the remote host to which you want to send UDP data. To broadcast the UDP message, use the default value,'255.255.255.255'. Use the default IP address sparingly to avoid creating unnecessary broadcast traffic on your network. Often, IP routers are configured to drop broadcast UDP packets sent to this default IP address.

Specify the IP port number of the remote host to which you want to send UDP data. The IP port number must be an integer from 1 to 65,535.

Extended Capabilities

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

Version History

Introduced in R2015a

See Also

External Websites