This Question is Answered

2 "helpful" answers available (2 pts)
7 Replies Last post: Jun 24, 2009 1:34 PM by Jiang Wu  
Thomas Ireland Contributor 6 posts since
Jun 23, 2009
Currently Being Moderated

Jun 23, 2009 12:55 PM

sendto retruns correct bytes but nothing goes out on the wire for BF537, receive is fine

In the myThread.c attached I should see a UDP packet with data = 100 bytes on the wire. I have a cross over cable attached from the Target Board and My PC with a static address of 192.168.136.51

I am usign Wireshark to mintor the wire and setup a receiver in windows to chatch the packet, nothing ever shows up, to window, wireshark but the return byte count from the sendto  is correct.

 

Any Ideas?

Attachments:
Jiang Wu Analog Employee   40 posts since
Apr 3, 2009

In you code, I did not see bind() function call. Bind the socket to a port before transmitting data.

Jiang Wu Analog Employee   40 posts since
Apr 3, 2009

Change the remote ip to 192.168.36.51. Please also find attached an example I just made with your code. It worked well - sendto returns 100 and wireshark sees the packets correctly.

Attachments:
Jiang Wu Analog Employee   40 posts since
Apr 3, 2009

In my example, the remote IP is set to 192.168.1.100 which is my PC address. You need to change it to your target to make the example work.

More Like This

  • Retrieving data ...