User Tools

Site Tools


snippets:ethernet_udp_echo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
snippets:ethernet_udp_echo [2013/06/17 11:52] – created basnippets:ethernet_udp_echo [2017/11/07 22:26] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== UDP echp ======+====== UDP echo ======
  
-This small example shows how to open the ethernet using [[wp>DHCP]].\\+This small example opens the ethernet port using [[wp>DHCP]].\\
 The PC vi (2nd snippet) sends [[wp>User_Datagram_Protocol|UDP]] broadcast messages over the local [[wp>Subnetwork|sub net]]. All devices in the same sub net that read out [[wp>List_of_TCP_and_UDP_port_numbers|port 61557]] will receive this message.\\ The PC vi (2nd snippet) sends [[wp>User_Datagram_Protocol|UDP]] broadcast messages over the local [[wp>Subnetwork|sub net]]. All devices in the same sub net that read out [[wp>List_of_TCP_and_UDP_port_numbers|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 embedded vi (1st snippet) starts the Ethernet interface with DHCP enabled. 
-The example does not leave the first loop until a ethernet cable is connected to the target+The program does not exit the first loop until a ethernet cable is connected. 
-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. +Received UDP messages are converted to upper case and returned to sender.
-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)