Dear all,
I am trying to communicate a serial device using
StreamDevice-2-3 on 32-bit Linux OS. writting values using
the following protocol:
!Innn<cr> (program mA demand. FFF=10mA, nnn
must be 3 hexadecimal digits)
Reading values using the following protocol:
?I<cr> , and the response is ?Innn. nnn
represents the hexadecimal.
How can I convert decimal to hex when sending value ,and
how can I convert hex to decimal when receiving value?
Thanks,
Demin zhang