I was able to get this working with the following python script
import serial, time
ser = serial.Serial('/dev/tty.usbserial-A105DB7J', 9600, parity=serial.PARITY_NONE)
print ser.name
while 1:
ser.flush()
ser.flushInput()
ser.flushOutput()
serial_line = ser.read(126)
print serial_line
time.sleep(1)
ser.close() # Only executes once the loop exits
I was able to get this working with the following python script
The requirements.txt would be
You need to install
pyserial
withpip install