05-27-2010 03:09 AM
Hello,
I read data from the serial port 5 times in a second (while loop) and the number of bytes read varies every time.
The data comes in as ASCII string, and I can see the HEX representation if I connect a HEX string indicator, but I need to permanently convert data to a HEX number.
How can that be done?
05-27-2010 03:22 AM
Like This.
Ton
05-27-2010 04:37 AM
05-27-2010 04:46 AM
žabić wrote:
TNX! But what will happen if i get 00 in the middle of the hex string. Will that be left out?
No, if the string contains a NULL byte (0x00) then the output string will show 00.
Ton
05-27-2010 09:13 AM