hello ,
the result byte 2's complement is how to have it in pure binary
ex: FFH = 255
thx!
my code
....
string_data=mid(string_data,28,string_data.Length-27)
nb_data=string_data.Length/3
Log("data:" & string_data)
Log("nb:" & nb_data)
For i=0 To nb_data-1
hex=mid(string_data,1+3*i,3).Trim
Log("hex:>"&hex&"<")
Bytes=conv.HexToBytes(hex)
Log("Byte:"&Bytes(0))
Next
...
log:
** Activity (main) Resume **
** Activity (main) Create, isFirst = true **
data:03 ce 00 00 00 a1 00 00
nb:8
hex:>03<
data:3
hex:>ce<
data:-50
hex:>00<
data:0
hex:>00<
data:0
hex:>00<
data:0
hex:>a1<
data:-95
hex:>00<
data:0
hex:>00<
data:0
** Activity (main) Resume **