PINE64
Any luck with a Serial Cable? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Hardware (https://forum.pine64.org/forumdisplay.php?fid=122)
+--- Thread: Any luck with a Serial Cable? (/showthread.php?tid=15104)



Any luck with a Serial Cable? - acid andy - 10-15-2021

I'm trying to diagnose an issue stopping a distro on my PinePhone from booting (with U-boot).

I bought a serial cable but when I connect it to my Linux desktop PC, I get a load of garbage characters and no readable text at all. It's a nightmare!

I started off with the recommended settings I've found on this site and elsewhere: 115200 8N1. When this just gave me garbage I tried just about every baud rate available and even different values for the data bits and parity. The output would change but never became readable text!

I'm not using USB, it's a 3.5mm headphone plug to RS232 and I had to add a null modem (crossover) adapter, connected to my PC's RS232 port, which is read using /dev/ttyS0.

Has anyone else had a similar problem? Or does anyone even get any readable serial output from their PinePhone using a recent U-boot?

Argh! Looking around it sounds like an RS232 port may use too high a voltage for the PinePhone's 3.3v TTL serial connection! Maybe time to order a cable that plugs into USB instead, if I haven't fried part of my PinePhone. Confused 

https://forum.pine64.org/showthread.php?tid=8378


RE: Any luck with a Serial Cable? - 8bit - 10-15-2021

RS232 uses inverted signals, probably why you are getting garbage. Some computers use lower voltages on the RS232 port, but not a good idea to directly interface it with a device expecting 3.3v signals.


RE: Any luck with a Serial Cable? - acid andy - 10-15-2021

(10-15-2021, 12:54 PM)8bit Wrote: RS232 uses inverted signals, probably why you are getting garbage. Some computers use lower voltages on the RS232 port, but not a good idea to directly interface it with a device expecting 3.3v signals.

Ah thanks, that makes sense. I've taken wire cutters to my cable and I'm going to connect it to the GPIO pins on my Pi instead.


RE: Any luck with a Serial Cable? - acid andy - 10-15-2021

My bodged cable worked Smile
Onto the next problem...