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.

Setserial in orangepi lite reports incorrect base_baud possibly?

Featured Replies

So I'm pretty new at using serial ports in linux so not even sure if this is the right place.

 

I'm playing around with MIDI using the serial ports on the Orange PiLite - it uses the baud rate of 31250 to achieve this you use setserial to get the base_baud (which it reports as 1500000) and you divide by the speed you want to get the divisor

 

i.e. 1500000/31250 = 48 

this becomes 

>setserial /dev/ttyS1 divisor 48 speed_cust

 

So now when you use 38400 as your baud speed it actually becomes 31250....

 

...in theory

 

after some fiddling I found the divsor is actually 50 as 48 gives you weird results

 

which would suggest that the base_baud is actually 1562500 not 1500000

 

So where is this initial base_baud set?

I assuming in the kernel?

I see this:

sources/u-boot/v2016.11/include/configs/rk3399_common.h:16:#define CONFIG_BAUDRATE 1500000

 

But i really don't know if this is correct :)

 

Edit: oops I put spaces in setserial

Edited by Starfishmod

Guest
This topic is now closed to further replies.

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.