UDP packet send / receive

i am unable to send an UDP packet to embedded board on which IP was not implemented. MAC Address and port number were implemented.

please let me known how to send UDP packet to Embedded board through MAC Address and port.

please help me

Reply to
balajiyalam
Loading thread data ...

You are far from getting UDP datagrams through. You must implement something on both ends to send and receive data through physical layer.

Enjoy

Reply to
NON-Microsoft-User

UDP is an IP protocol. No IP, No UDP.

Reply to
ghelbig

Ok, it is simply not possible. For the sake of simplicity, lets assume both UDP nodes are on the same ethernet LAN, one node being your board and the other a PC, since the sender will always require to know the IP address of the receiver, the first step the sender takes is to resolve the receiver IP address against an ethernet MAC on the same LAN using the ARP protocol, after that it will direct the UDP/IP packet to your board MAC.

Now if you don't care about IP and you would like to receive any UDP (or TCP) data the sender has to send to your board you can create and assign a "phantom" IP address to your board. For example on a windows box do the following:

(1) Open a command prompt Window (2) Create the phantom IP address by typing the following:

ARP -s 192.168.1.90 00-XX-XX-XX-XX-XX

where XXXXXXX is your board Ethernet MAC address.

This command will add a static entry to your ARP cache.

Just make sure the IP address you enter is on the same subnet as your board and the PC and that the IP address is not being used by another host.

Now any traffic that is directed to that IP from W> UDP is an IP protocol. No IP, No UDP.

Reply to
rTrenado

Please understand that for transferring UDP packets on Ethernet, your system has to implement at least the necessary subparts of IP and ARP (and maybe ICMP).

--
Tauno Voipio
tauno voipio (at) iki fi
 Click to see the full signature
Reply to
Tauno Voipio

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.