Difference between revisions of "Serial Console on PinePhone"

From Dejvino's Knowledge Base
Jump to navigation Jump to search
(Created page with "== Using UART == 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 di...")
 
 
(2 intermediate revisions 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 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:
Line 17: Line 19:
 
{{code|1=sudo screen /dev/ttyUSB0 115200}}
 
{{code|1=sudo screen /dev/ttyUSB0 115200}}
  
== [[Arch Linux ARM for PinePhone Installer]] ==
+
Here are a few tips on improving the experience when in this console:
* Repository: [https://github.com/Dejvino/pinephone-arch-install github.com/Dejvino/pinephone-arch-install]
+
* 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=screen or TERM=xterm
  • Fixing vim: add set term=xterm into your .vimrc