Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Orange Pi 5 USB-TTL Output Garbled Characters

Featured Replies

Hi,

Armbian_23.02.2_Orangepi5_jammy_legacy_5.10.110 works well with my OPI5. I can ssh to and play with it from my Debian desktop. I don't have HDMI monitor so I want to try serial port.

i'm using USB-TTL cable to connect OPI5 to my Debian box. 

Then in Debian bash I use this command to connect to the port

screen /dev/ttyUSB0

Then power on the OPI5. The output is garbled:

opi5-usb-tty-USB0-screen-cs8.png

If i change it to cs7 (screen /dev/ttyUSB0 cs7), the output is still something I cannot understand:

opi5-usb-tty-USB0-screen.png

The stty command and output:

$ sudo stty --file=/dev/ttyUSB0 --all
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke -flusho -extproc

 

I'm sure the USB-TTL cable lines are plugged as expected:

green line to RX, white line to TX, black line to GND. TX/RX/GND are as the offical PIN definition: http://www.orangepi.org/img/pi-5-pin-definition.png

 

Any idea what went wrong?

  • Author

Hi:

with command: screen /dev/ttyUSB0 1500000

opi5-usb-tty-USB0-screen-baud1500k.png

screen /dev/ttyUSB0 1500000,cs7 shows similar garbled output too.

Can someone provide a link, on amazon.ca if possible, to a cable that is known to work.

 

I'd like to see what output, if any, is available when my Orange Pi 5 is not booting from NVMe.

 

Thank you

@royk Thanks.  I hadn't considered a type like that one.  I picked up this:

 

https://www.amazon.ca/dp/B0BX232GYG

 

I'm hoping it should work.  Haven't tried yet.  Only thing that I'm not sure about is the baud rate and the voltage.

  • Most of these types of items on Amazon don't list the maximum speed so I'm not sure it can handle a 1500000 baud rate.  They also don't mention if one of its presets has that baud rate either.
  • Same goes with the voltage.  Most of these don't specify voltage.  Some specify 3.3v and 5v others say one or the other.  I see the one you identified supports both and can switch with a jumper.

Don't know which voltage is needed or if it matters.  The three pins on the OPi5 are ground, TX and RX where the voltage wire is not used.  So, voltage is taken from the device being connected to?  It's used to power the chip the converter cable/chip being used?  If that's the case, that means you can't harm the OPi5, hopefully.  Right?  The one I purchased uses the Pl2303Hx.  I figured the cable I purchased is like all/most of the other cables you see and that they are mostly knock-offs.

 

Any way, I'll be trying it at some point in the near future.  Thanks again.

@ArmBoy1988 You'll need one @3.3v there is also voltage on the data pins.

To only read the serial data you only need to connect 2 wires

OPI.    Adapter

Gnd -   gnd

TX    -   RX

 

I don't think that the UART pins are 5v tolerant.

It looks like I purchased the wrong one.  I was unaware that it had to be a 3.3v one.  Haven't tried this out yet as there was no need to.  I had purchased it to try to figure out an issue I was having booting up the OPi5 but I got it booting before trying this.

 

Reading the listing for the one I purchased it says under the wire definitions "red +5v".  I'll purchase another one, probably the one you pointed out, that you can set at 3.3v.  

 

Thanks.

That means the chip supports those voltages.  However, you have to set what voltage to use.  Many of these cables are set for just one of the voltages.  There are modules that allow you to set the voltage using jumpers.  The cable I had purchased only said 5V.  The module that royk linked to had the jumpers so the voltage is selectable.  I did read that if you had a 3.3v cable, it would likely work on a 5v system but I don't think it works the other way around as the 5v would exceed what the 3.3v can handle.

@CryBaby Seems to be true for this specific chip indeed.

Explanation:

https://techblog.willshouse.com/2015/01/07/how-to-tell-if-pl-2303hx-pl-2303-is-3-3v-or-5v/

 

That something works doesn't always mean that it's good, I've seen people connecting 5v to 3.3v pins, (probably something between 4 and 4.5v) and didn't have problems for a few months and eventually it broke.

But you're right about the PL-2303HX.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.