Menu

#4 Data field of Custom param - first bit set generates FFFFFF?

open
nobody
None
5
2011-11-17
2011-11-17
David Krull
No

I am constructing a message with a custom parameter. If any of the bytes in the Data field of the custom param has the first bit set, then when the message makes it to my reader there are three FFs inserted before that byte. For instance, if my Data field is 0x0080, then I will see 0x00FFFFFF80 on the other end. The graphical editor doesn't show these FFs, but if I switch to the XML editor they show up.

Note that if I edit the packet with the XML editor (i.e. remove the offending FFs there), then the message gets sent correctly. If I then switch to the graphical editor, I then see the FFs *there*. Of course, if I then send the message from that editor, I'll see three extra FFs for each of the bogus FFs, and things quickly get out of hand.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.