Hello
I am trying to make python read from RS232 port on TRB142 and output to MQTT
I am not able to read anything
My test program is very simple
---------------------------------------------------
import serial
print "Ready"
with serial.Serial('/dev/ttyHS0', 9600, timeout=None) as ser:
while True:
x = ser.read(1)
print x
----------------------------------------------
My test connection is MyPC => USB-RS232(converter) => RS232-Port(TRB142) the wires I have connected are GND, TX, RX
I am running minicom on the PC and I would expect to write some data on the minicom and be able to read that data on the python program running on the TRB142. The port I am using is /dev/ttyHS0 and the RS232 service on the TRB142 is disabled.
I also installed minicom on the TRB142 and tried communicate with the PC but nothing happens
Any tips on how to debug this connection?
Thanks