User Tools

Site Tools


snippets:ethernet_udp_echo

This is an old revision of the document!


UDP echp

This small example shows how to open the ethernet 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. Therefore only the MAC address must be provided. The example does not leave the first loop until a ethernet cable is connected to the target. The target gets its IP address from the DHCP server if one is present. Tdis dynamic IP address can be read out with the ZM.ethernet.ipaddress.vi. Everything that is received on the given port is converted to upper case and returned to sender.

snippets/ethernet_udp_echo.1371462740.txt.gz · Last modified: 2017/11/07 22:26 (external edit)