Serial port
#1
Information 
Just some notes on using the 'earphone serial console' on the Pinebook.

You might have seen the reference guide in the Pinebook resources section entitled "Pinebook Earphone Serial Console Developer Guide" (click the link if you haven't seen it yet!).

You'll have then also seen the super user friendly /sys/class/sunxi_dump/write calls that enable and disable this functionality.

Well on all of ayufan's linux desktop environment builds you have the super handy pinebook_enable_uart.sh and pinebook_enable_headphones.sh scripts (you'll need sudo to run them as they're located in /usr/local/sbin  - and need root privleges anyway). You can run them to easily toggle between the two different stages. This will let you see all the boot messages and interact with the serial console on your pinebook, and use the built in serial connection, which is available as /dev/ttyS0 once you boot. 

One gotcha will be that on the pinebook DE (desktop environment builds) there is a pinebook-headphones service that runs during boot, so the UART is disabled part way through the boot process. You can easily change this behaviour using systemctl. Simply issue the command sudo systemctl disable pinebook-headphones at a terminal in order to disable it, and naturally you can also enable it again if you wish the headphones functionally to be automatically made available.

There is a possibility this behaviour will change in the future, and that UART via the headphones jack will only be switchable via an on-board switch, so watch this post to see if this behaviour does indeed change. This switch is already present on most production pinebooks, and is a slide switch (referred to as SW11 on p9 of the mainboard schematic) located on the edge of the main circuit board on the far right side. At the present time it simply overrides the GPIO pin that is toggled by the enable/disable scripts, and forces the UART to be permanently on.
#2
I assume its 3.3V TTL-port? Or is it 5V?
A serial cable for Intel Galileo Gen1 has also a 3.5mm Jack
#3
(07-05-2017, 12:38 AM)guidol Wrote: I assume its 3.3V TTL-port? Or is it 5V?
A serial cable for Intel Galileo Gen1 has also a 3.5mm Jack

The logic is 3v3 ;
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )


Possibly Related Threads…
Thread Author Replies Views Last Post
Information How To Setup Serial Console Cable Over the Pinebook MarkHaysHarris777 4 24,123 07-02-2020, 06:33 PM
Last Post: tllim
  Case Mod Opening for Serial Console Slider Switch MarkHaysHarris777 1 6,626 11-21-2018, 11:14 AM
Last Post: machinehum
  Pinebook serial info maldus 1 3,306 11-20-2018, 12:00 AM
Last Post: tllim
Exclamation Pinebook uart(0) Slider Switch Enable -- Disables left-hand USB Port MarkHaysHarris777 1 2,917 08-27-2017, 10:30 AM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 1 Guest(s)