Download Linux Journal | October 2014 | Issue 246
Transcript
FEATURE Accessing the I/O Ports of the BeagleBone Black with Python Figure 3. The Board “bbbO2” in situ with three serial ports and the serial debug port, a temperature sensor on AIN0, a water detector on GPIO_48, a PPS input on GPIO_49 and a POWER_RESET button. for the other UARTs available on the board. The BBB comes with six UARTs, but three of them can’t be addressed by our applications: Q UART0 is the serial debug on J1. Q UART3 lacks an RX line. Q UART5 can’t be used altogether with the HDMI output. So UART1, UART2 and UART4 are the ones available, and they are addressed, respectively, as /dev/ttyO1, /dev/ttyO2 and /dev/ttyO4. Note that only UART1 and UART4 have CTS and RTS pins. 90 / OCTOBER 2014 / WWW.LINUXJOURNAL.COM LJ246-Oct2014.indd 90 9/17/14 4:50 PM