F2838x-M4 UDP Receive
Libraries:
C2000 Microcontroller Blockset /
F2838x /
M4
C2000 Microcontroller Blockset /
F28M35x /
M3
C2000 Microcontroller Blockset /
F28M36x /
M3
Instrument Control Toolbox
Description
The UDP Receive block receives UDP packets from a UDP host. Use the block for stateless and connectionless data exchange.
With each sample, the block outputs the contents of a UDP packet as a data vector of the size specified in the Data size (N) parameter.
The block receives the packets on the port number specified in the Local IP Port parameter from the IP address specified in the Remote IP address (0.0.0.0 for accepting all) parameter.
You can choose to receive the UDP packets in the blocking or nonblocking mode.
Note
Your antivirus software or firewall might block UDP traffic. Configure the software to allow traffic from a specific IP port number.
Due to RAM memory limitations on the F2838x(ARM Cortex-M4), loading application to RAM is not supported for this block.
CPU Timer 2 of F2838x Arm Cortex-M core (Connectivity Manager) provides time base to lwIP stack. It is configured to trigger an interrupt every 1 ms. This timer should not be re-configured if Ethernet blocks are being used in the model. If the corresponding interrupt is armed through Hardware Interrupt block, it will run the interrupt handler every 1 ms.
Ports
Output
Parameters
Version History
Introduced in R2020b