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.

UART won't connect no matter what I do

Featured Replies

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

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.

 

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.

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.

 

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

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.