This does remove the serial console, but if a python script tries to open the port it complains that the port is already open, I had to close the port before my code would work. I didn't need to do that before a recent reinstall and upgrade to kernel 4.4.8
Here is a snippet of my fixed code:
Code: Select all
import serial
ser = serial.Serial('/dev/ttyAMA0', 115200 , timeout=2) #, write_timeout=2) #blocking time out 2s
try:
ser.open()
except serial.SerialException as err:
print err
print "closing port"
try:
ser.close()
ser.open()
except serial.SerialException as er2:
print "failed twice " + er2
print "Opening serial port"
give this output:
Code: Select all
Port is already open.
closing port
Serial port opened