I am trying to send and receive hex commands to and from a device.
The device sends the following hex data: \x02x82x36xFFxFFx01xB5x03
I am using the follow simple code:
import serial
port = serial.Serial('COM1', baudrate=19200, timeout=3.0)
while True:
rcv = port.readline()
print (rcv)
The output of rcv is The following python code displays the output as \x028236????01;5\x03'
Help. I am new to python and I am sure i am making a simple mistake but its driving me crazy.
Thanks