@@ -0,0 +1,736 @@
+#!/usr/bin/python%0Aimport time%0Aimport serial%0Aimport sys%0Aimport json%0A%0Adef ftdi232h_cmd(command):%0A ser = serial.Serial(%0A  port='/dev/ttyUSB0', # or /dev/ttyAMA0 for serial on the Raspberry Pi%0A  baudrate=9600,%0A  parity=serial.PARITY_NONE,%0A  stopbits=serial.STOPBITS_ONE,%0A  bytesize=serial.EIGHTBITS,%0A  xonxoff=0, rtscts=0, dsrdtr=0,%0A )%0A ser.isOpen()%0A ser.write(command+%22%5Cn%22)%0A endtime = time.time()+0.2 # wait 0.2 sec%0A result = %22%22%0A while time.time() %3C endtime:%0A  while ser.inWaiting() %3E 0:%0A   result=result+ser.read(1)%0A ser.close()%0A #return result%0A return 'callback: %5B'+result.rstrip('%5Cn')+'%5D'%0A%0Aif len(sys.argv)!=2:%0A print %22USAGE: ft232h__PythonCompanion_WIP.py %22+'%22'+%22%3Cserial message%3E%22+'%22'%0A exit(1)%0A%0Aprint ftdi232h_cmd(sys.argv%5B1%5D).strip()%0A

Create ft232h__PythonCompanion_WIP.py