Main Content

UDP Send

Send UDP packets to UDP host

  • Library:
  • NVIDIA Jetson and NVIDIA DRIVE / Network

  • NVIDIA UDP Send block

Description

The UDP Send block sends UDP packets to a UDP host. Use the block for stateless and connectionless data transmission.

The IP address and the port number of the receiving host are specified in the Remote IP address (255.255.255.255 for broadcast) and Remote IP Port parameters.

The block accepts input with data type int8, uint8, int16, uint16, int32, uint32, single, or double.

Note

Your antivirus software or firewall might block UDP traffic. Configure the software to allow traffic from a specific IP port number.

Ports

Input

expand all

The port accepts an array and sends it as UDP packets over an IP network port to the receiving UDP host.

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

Parameters

expand all

Specify the IP address or the host name to which the block sends the UDP packets. To broadcast packets to all the receiving hosts, specify '255.255.255.255'.

Programmatic Use

Block Parameter: remoteURL
Type: character vector
Values: '255.255.255.255'|scalar
Default: '255.255.255.255'

Specify the port number of the application on the receiving host to which you want to send the packets. Match the remote port number with the local port number of the receiving host.

Programmatic Use

Block Parameter: remotePort
Type: character vector
Values: '25000'|scalar
Default: '25000'

Extended Capabilities

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

Introduced in R2020b