Difference between revisions of "Serial Console on PinePhone"

From Dejvino's Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:
 
=== 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

Revision as of 15:47, 23 May 2020

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=screen or TERM=xterm
  • Fixing vim: add set term=xterm into your .vimrc