Using Python with the Andino X1

Installation

First, install python:

sudo apt-get install python python-pip

Install pyserial:

pip install pyserial

Create file 'readAMA0.py'

python
import serial
ser=serial.Serial('/dev/ttyAMA0', 38400, timeout=30)
line=ser.readline()
print line
 python readAMA0.py