07-09-2014 01:22 PM
HI everyone. I'm having trouble making two machines communicate via UDP protocol. I have one computer (Host) which is attempting to pass a specific message to another computer (Receiver) via UDP communication. I have the right ports open and Wireshark shows that the communications are passing, but the values that I'm trying to communicate are not. Both Wireshark and the MB computer show that the values are being written differently than the initial string.
For example, when I try to write a value to the a value of 0065, Wireshark and Receiver both show that a value of 3635 is being written. I've been struggling with this error for a while, trying to unflatten, reflatten, and convert strings with no avail. Does anyone know how to fix this to only pass the specified hex values?
07-09-2014 03:17 PM
07-09-2014 03:17 PM
What seams to be happening is that your "0065" is being sent as acsii that would be NUL, NUL, 6and 5 or 0x00003635
A good acsii conversion chart is a necessity for serial communications.
07-10-2014 10:18 AM - edited 07-10-2014 10:43 AM
Sorry about not posting the code and Wireshark data earlier, it's attached to the end of this post. I see that the Write function only accepts strings. I'm interested in concatenating several strings of hex data together to pass a message, also linked below. Each piece of the message is 4 bytes long and needs to be passed together through the UDP protocol. Is there a way to properly concatenate several hexadecimal strings together to do this effect, or will I need to work specifically within ASCII? I really appreciate any help you can give me in this, I'm struggling as an intern right now.
I'm interested in passing 00000065, not the 30303635 data.
07-10-2014 10:34 AM
07-10-2014 10:44 AM
Edited. I used the Number to Hexadecimal String command to generate the data.
07-10-2014 10:54 AM
07-10-2014 03:50 PM
You really need to show radicies and display styles.