Hello, I want to use a UART on the board to communicate the NEO with a external device using this simple python script that was done to make this task on a beaglebone black: import Adafruit_BBIO.UART as UART import serial UART.setup("UART1") ser = serial.Serial(port = '/dev/ttyO1', baudrate=9600) ser.close() ser.open() while ser.isOpen(): x = ser.readline() print x ser.close() I believe that the only thing that is needed for this to work is adapting the UART setup part at the beginning. Any help with that?
You have to give us more background information. What is the use of the UART Python library? On Neo just use a /dev/tyy device. The only one you can use is UART6 (/dev/ttymxc5) which you have to enable through the device tree editor. You also have to patch Udoobuntu. See this topic https://www.udoo.org/forum/threads/a9-uart6-and-udoobuntu.3196/page-3#post-25705
Okay, let's see... First of all, I used the device tree editor and now it looks like this: Can I assume that the pins have this functions: Also did the patch mentioned on your link and changed my code to this: Code: import serial ser = serial.Serial(port = '/dev/ttymxc5', baudrate=9600) ser.close() ser.open() while ser.isOpen(): x = ser.readline() print x ser.close() Should I be good to go now?
just to inform you that in Udoobunto 2.1.3, Release date 19-jun-2017 the patch for UART6 has been implemented. See also [SOLVED] I2C slow