Jump to content

Recommended Posts

Posted (edited)

So I'm trying to connect with a UART cable from my PC to the board (OPI3LTS). Here's what I did so far:
 

In desperation, I double checked every connection, to no avail. My devices are powered separately, so only the RX and TX cable are connected, and they are crossed as they should.

 

Set up permissions:

sudo chmod 666 /dev/ttyUSB0

 

Add user to dialout:

sudo adduser <user> dialout

 

Install minicom:

Set up minicom with the correct address: /dev/ttyUSB0
Set up the correct baud rate (115200 in this case)
Turn off flow control

 

Tried connecting via "screen", minicom and putty, all of them just show me a black CLI I can't write in.

 

Help? 🥲

Edited by devmichelcastilho
Posted

Hi,

 

are you using a usb to serial converter or the real serial com port?

I did not see any ttyUSB0 listed in your boot log.

In case of the real serial com port you should not be using /dev/ttyUSB0, but /dev/ttyS0.

 

Posted

Using screen is sufficient. No settings besides baud rate (115200 for any Allwinner) need adjustments.

As mentioned above make sure your serial device is correct. If you are unsure, simply

- unplug

- run sudo dmesg -ew

- plug in and check output in the terminal with the command above.

 

Also make sure wiring is correct. Ground to ground and rx/tx crossed.

Posted

Did you also start screen or minicom on the SBC ?

For example:
 

screen /dev/ttyS0 115200

 

And on PC:

screen /dev/ttyUSB0 115200

Make sure you use the same speed on both sides.

 

Posted

run dmesg, after you plug that uart into the port

it should show the usb dongle connected and the port

 

then a few more thiings,

  • bad wires ensure that no matter what you do no data pass over the wires (I've seen this, especially those dupont pin connections)
  • wrong connections ensure that no matter what you do no data pass over the wires. Are you sure you are talking to the correct *pins* and *port* on the host side?
  • lousy dongles ensure that no matter what you do no data pass over the wires, get 'better' ones. oh well, this depends a little on luck, but I used ch340 usb-uart bridges, and they worked just well
    https://www.aliexpress.com/w/wholesale-ch340-uart.html
    searching usb uart normally returns a lot of entries
    https://www.aliexpress.com/w/wholesale-usb-uart.html
    if one doesn't work, try another
  • oh then there is DTS overlay etc, sometimes that fix is needed
  • bad / no drivers etc (dmesg should show it, on windows your mileage may vary)
  • etc etc

 

the rationale is, if you did it once successfully, either remember how you did it or document it ;)

 

sometimes, alternatives include, connect hdmi to monitor, usb keyboard and mouse and use as alternative console, mileage may vary.

 

 

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