Hello!
I have to write a simple program that send a hex string to an electronic instrument through the COM port of Pc and read the response.
I had wrote that code:
from binascii import unhexlify import serial stringa = "F5010001010008FC" port = "COM1" ser = serial.Serial(port,9600,timeout=0.5) ser.write(unhexlify(stringa)) out = ser.read() for byte in out: print(byte)The program convert the string in hex value and send it to the board. The signal is correctly received from the board, because there is a small led that indicate it.
But the problem is I can't see the board response, I think is because I don't use an async communication (and I don't know how to do it simply).
The string that i receive FROM the board must be "F5 00 01 01 01 00 08 FC"
In that screenshot there is the communication parameters:
Have any idea how can I do that? Thanks a lot in advance!