- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have used two ways to receive upd: case 1: I used "DE2_UDP example" from http://www.btxsistemas.com.ar/net2.zip to send upd to PC,it's ok.But the received upd from PC always were not right. Wireshark displayed as: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Source:Twinhead Destination:Broadvast Protocol:upd Info:Whi has 192.168.253.8? 0000 ff ff ff ff ff ff 00 40 45 00 6e 69 08 06 00 01 .......@ E.ni.... 0010 08 00 06 04 00 01 00 40 45 00 6e 69 c0 a8 fd 04 .......@ E.ni.... 0020 00 00 00 00 00 00 c0 a8 fd 08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The message on the console from the board was: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Receive Packet Length = 64 FF,FF,FF,FF,FF,FF, 0,40,45, 0,6E,69, 8, 6, 0, 1, 8, 0, 6, 4, 0, 1, 0,40,45, 0,6E,69,C0,A8,FD, 4, 0, 0, 0, 0, 0, 0,C0,A8,FD, 8,FF,FF,FF,FF,FF,FF, ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ case 2: I used SimpleSocketServer to send upd to the board from PC,Wireshark displayed as: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Source:192.168.253.4 Destination:192.168.253.8 Protocol:upd Info:Source port: 1024,Destination port: 1024 0000 01 60 6e 11 02 0f 00 40 45 00 6e 69 08 00 45 00 .`n....@ E.ni..E. 0010 00 32 00 24 00 00 40 11 ff 38 c0 a8 fd 04 c0 a8 .2.$..@. .8...... 0020 fd 08 04 00 04 00 00 1e 48 2d 31 39 32 2e 31 36 ........ H-192.16 0030 38 2e 32 35 33 2e 38 32 30 31 30 30 39 32 30 31 8.253.82 01009201 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The content"192.168.253.8201009201" above was exactly the data I send to the board. It seems that in case 1 I have to declare that the IP of the board is 192.168.253.8.first.If it does,then how to declare the IP address.Since I does not like to use UCOSII in my system,so I have to solve the receive problem in case 1. Looking for help. Thanks in advance.Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page