Page 1 of 1

RS232 plugin.. Read Hex

PostPosted: Sun Sep 27, 2015 9:47 am
by TinTin
Anyone know of a plugin that can read hex data stream?

Cheers

Re: RS232 plugin.. Read Hex

PostPosted: Sun Sep 27, 2015 11:15 am
by Neosoft Support
Where is the data steam coming from? A hardware device, serial port, etc?

Re: RS232 plugin.. Read Hex

PostPosted: Sun Sep 27, 2015 11:18 am
by TinTin
Hi, It's a hardware device I'm running into a serial port.

Re: RS232 plugin.. Read Hex

PostPosted: Mon Sep 28, 2015 6:08 pm
by Neosoft Support

Re: RS232 plugin.. Read Hex

PostPosted: Tue Sep 29, 2015 2:45 am
by TinTin
yeah, I've tried however it does not seem to support Hex

Re: RS232 plugin.. Read Hex

PostPosted: Tue Sep 29, 2015 6:47 pm
by Neosoft Support
Hex is just a different method of representing numbers (or characters in some cases). Can you convert the hex data after receiving it from the device?

Re: RS232 plugin.. Read Hex

PostPosted: Fri Nov 13, 2015 1:45 am
by DaveJ
This isn't strictly true. There are some values such as hex 00 that cannot be represented as an ascii value. I know I was trying to use a number of hardware devices based around Arduino's that I have had to put on hold until someone produces a plugin that can read and write hex values.

Most C++ and other languages compatible serial communications libraries are not open source and so unable to be added to a plugin.

Re: RS232 plugin.. Read Hex

PostPosted: Fri Nov 13, 2015 6:36 pm
by Neosoft Support
There are some values such as hex 00 that cannot be represented as an ascii value.


Do you mean because "00" is two characters? Isn't that still equal to zero decimal, or is there a device somewhere that interprets "00" as being different from "0"?

Re: RS232 plugin.. Read Hex

PostPosted: Fri Nov 13, 2015 10:42 pm
by Tony Kroos
It's about string representation of dec/hex/etc... values, as we input data as string and plugin do expect incoming data as a string. we still cannot pass special hex values like 0h and other as a string, it's just non-printable. So, plugin must recognize passed-hex-as-string and do conversions.

Re: RS232 plugin.. Read Hex

PostPosted: Sat Nov 14, 2015 1:23 pm
by DaveJ
Sorry, I should explain that I meant hex 00 as in ascii Null. Hex FF would be 255 decimal which is why it is always shown as two digits.
http://www.asciitable.com/ might show better the values I use.