import serial
ser = serial.Serial(
port='/dev/ttyUSB0',
baudrate=9600,
parity=serial.PARITY_EVEN,
stopbits=1,
bytesize=8
)
line = ser.readline()
print(line)
Result of the same pyserial library for both devices is:
for Lenovo: b'ERR 13\r\n'
for Jetson: b'\x05\x1f\x12\x1f\x12\x1f\x1e\x1e\x0c\x06\r\n'
Also I try to use: cat /dev/ttyUSB0 results are the same.
Task is to get b'ERR 13\r\n' from Jetson.
I try to .decode() the line b'\x05\x1f\x12\x1f\x12\x1f\x1e\x1e\x0c\x06\r\n', but still no success:
The only difference between the devises is architecture and OS version, the library and the code are the same.
Is this an actual 9-pin D-sub connector? If so, then the PHY voltages are wrong. This must be a 3.3V TTL level device (same protocol as RS-232, but different voltage levels).
We found recommendation about usb process priority&governors: link.
Could you explain how to change process priority / USB power settings on Jetson Xavier (Jetpack)
I don’t connect usb to 9 pin D-sub directly, I use converter (cable on image) which base on chip PL2303SA. Also the same cable, as I wrote previously, work perfectly on laptop (Kubuntu 20.04).