In order to get the output of a measurment device I'm using pySerial as follows:
k = [addr, 0x04, (register/256)&0xFF, register&0xFF, (length/256)&0xFF, length&0xFF]
ser.write("".join([chr(x) for x in k]))
# read response
rsp = [ord(x) for x in ser.read(2000)]
rsp
that I get is always an empty str
Do you have an idea?