User Tools

Site Tools


snippets:ethernet_udp_echo

UDP echo

This small example opens the ethernet port using DHCP.
The PC vi (2nd snippet) sends UDP broadcast messages over the local sub net. All devices in the same sub net that read out port 61557 will receive this message.
The embedded vi (1st snippet) starts the Ethernet interface with DHCP enabled. The program does not exit the first loop until a ethernet cable is connected. Received UDP messages are converted to upper case and returned to sender.

snippets/ethernet_udp_echo.txt · Last modified: 2017/11/07 22:26 by 127.0.0.1