Hello
I have decoded a sentence that contains 20 variables in HEX format:
Rx <4B94 1E99 0012 0000 0000 0000 0000 0000 0000 1E9B 0000 0000 0000 0000 0000 019E 0000 0000 0000 0000>
#askValues values? returns the following:
Rx as numbers <NaN Infinity 12.0 0.0 0.0 0.0 0.0 0.0 0.0 NaN 0.0 0.0 0.0 0.0 0.0 1.9E19 0.0 0.0 0.0 0.0>
Question: how do I convert each of these variables to decimal values?
Another question: I need to send different commands to a device in ASCII format with a CRC/Checksum.
How do I calculate that CRC?
As an example, this command generates the following CRC: (0A5F)
.0036030000000000010006000100010001000201180190000927100A5F.
Same command, in ASCII:
0x0c 0x30 0x30 0x33 0x36 0x30 0x33 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x36 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x32 0x30 0x31 0x31 0x38 0x30 0x31 0x39 0x30 0x30 0x30 0x30 0x39 0x32 0x37 0x31 0x30 0x30 0x41 0x35 0x46 0x0d
Thanks