Difference between revisions of "Serial Console on PinePhone"
Jump to navigation
Jump to search
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | [[PinePhone]] features a serial console interface. | ||
| + | |||
== Using UART == | == Using UART == | ||
Source: [https://wiki.pine64.org/index.php/PinePhone] | Source: [https://wiki.pine64.org/index.php/PinePhone] | ||
| − | The PinePhone has a serial port in the headphone connector, it's activated by the 6th contact on the dipswitch. If the switch is on then the headphone connector is in audio mode, if it's off then it's in UART mode. This uart serial connection can also be used for communication with other devices from the PinePhone. | + | The [[PinePhone]] has a serial port in the headphone connector, it's activated by the 6th contact on the dipswitch. If the switch is on then the headphone connector is in audio mode, if it's off then it's in UART mode. This uart serial connection can also be used for communication with other devices from the PinePhone. |
| − | The | + | The UART is 115200n8 |
The pinout for the serial connector on the tablet side is: | The pinout for the serial connector on the tablet side is: | ||
| Line 16: | Line 18: | ||
=== Connecting to the console === | === Connecting to the console === | ||
{{code|1=sudo screen /dev/ttyUSB0 115200}} | {{code|1=sudo screen /dev/ttyUSB0 115200}} | ||
| + | |||
| + | Here are a few tips on improving the experience when in this console: | ||
| + | * Fixing terminal capabilities: run {{code|1=TERM=screen}} or {{code|1=TERM=xterm}} | ||
| + | * Fixing [[vim]]: add {{code|1=set term=xterm}} into your .vimrc | ||
Latest revision as of 15:50, 23 May 2020
PinePhone features a serial console interface.
Using UART
Source: [1]
The PinePhone has a serial port in the headphone connector, it's activated by the 6th contact on the dipswitch. If the switch is on then the headphone connector is in audio mode, if it's off then it's in UART mode. This uart serial connection can also be used for communication with other devices from the PinePhone.
The UART is 115200n8
The pinout for the serial connector on the tablet side is:
- Tip: RX
- Ring: TX
- Sleeve: GND
The serial connection is 3.3V
Connecting to the console
sudo screen /dev/ttyUSB0 115200
Here are a few tips on improving the experience when in this console:
- Fixing terminal capabilities: run
TERM=screenorTERM=xterm - Fixing vim: add
set term=xterminto your .vimrc