Jump to content

Recommended Posts

Posted

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?

Posted

Works nicely for me. No need to adjust any parameter besides baud rate to 1.5Mbaud as it is default to all Rockchip SoCs.

Make sure your adapter can handle this rather high speed.

Also make sure to cross-connect RX/TX.

Posted

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

Posted

@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.

Posted

@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.

Posted

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.

Posted

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.

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines