Difference between revisions of "Serial Console on PinePhone"

From Dejvino's Knowledge Base
Jump to navigation Jump to search
 
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 uart is 115200n8
+
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:

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