Download pySerial (https://pypi.python.org/pypi/pyserial)
wget http://pypi.python.org/packages/source/p/pyserial/pyserial-2.7.tar.gz?raw=true -O pyserial-2.7.tar.gz
tar -xzf pyserial-2.7.tar.gz
cd pyserial-2.7
sudo python setup.py install
You can check ttyUSB availability with the line
ls -ltr /dev|grep -i ttyUSB
To view the serial output use
tail -f /dev/ttyUSB<NUMBER FROM ABOVE>
To break out crtl+c
Create a testserial.py file paste this code
#!/usr/bin/python
from time import sleep
import serial
# Establish the connection on a specific port
ser = serial.Serial('/dev/ttyUSB0', 9600)
x = 1 while True:
print ser.readline() # Read the newest output
x += 1