#!/usr/bin/python
# Import pySerial library
# http://pyserial.sourceforge.net/index.html 
import serial
 
# Open the serial port on J16
 
ser = serial.Serial(
	port='/dev/ttyS3', 
	baudrate=115200, 
	timeout=1,
	parity=serial.PARITY_NONE,
	stopbits=serial.STOPBITS_ONE,
	bytesize=serial.EIGHTBITS
)  
 
print ser.portstr	# Check which port was really used
ser.write("U")		# Autobaud char
s = ser.read(1)		# Wait for a reply
ser.write("E")		# Clear screen
s = ser.read(1)
ser.close()	
