11 years, 8 months ago.

UDP packets print as garbage

Im testing a Wifly module and using a VB6 form with a winsock control. Im receiving an expected broadcast packet in my VB form but the text is garbage. The packet contains basic identification from the wifly. Any suggestions

Hi Gregory, you will probably get better answers if you publish the code showing the problem. See http://mbed.org/handbook/Asking-Questions

posted by Dan Ros 01 Mar 2013

I found in the end that I first had to convert the bytes to hex then convert the hex to ascii

posted by Gregory Martin 02 Mar 2013

1 Answer

11 years, 8 months ago.

Taking a look at the reference manual of the wifly module, it appears that the UDP broadcast message is a predefined massage containing several info such as: mac address, channel, rtc time,...

For more information on the UDP broadcast messages, take a look at the http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Wireless/WiFi/WiFly-RN-UM.pdf manual p51.

Cheers, Sam

Accepted Answer