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.

OrangePI PC GPIO serial and IR reveiver

Featured Replies

Hi,

 

am new on orangePI, Hope my question is not to dumb.

 

I am using the Armbian_5.05_Orangepih3_Debian_jessie_3.4.110.raw image.

 

Kernel is

Linux orangepipc 3.4.110-sun8i #18 SMP PREEMPT Tue Mar 8 20:03:32 CET 2016 armv7l GNU/Linux

 

I want to access a serial device connectet to the pins 8 and 10 on the GPIO connector, described at uart 3.

/dev/ttyS0 is the 3 connector pin close to the power plug.

there is no /dev/ttySn with n>0 and the /dev/ttyGSn are also not the ones to use.

How can I create the right device?

 

Same about the IR receiver, Is there any device that represents the IR receiver?

 

Are there modules to load?

 

thanks a lot for help

Regarding UARTs it's easy: They're disabled by default and the pins might be defined as GPIO. So you need bin2fex and fex2bin and adjust the following to your needs:

 

https://github.com/igorpecovnik/lib/blob/master/config/fex/orangepipc.fex#L166-L191

 

Regarding parameters please have a look at http://linux-sunxi.org/Fex_Guide#uart_configuration

 

And keep in mind that when you enable UART interfaces, the pins used there have to be commented/removed in the [gpio_para] section!

 

Regarding IR please have a look at http://irclog.whitequark.org/linux-sunxi/2016-04-28#16304769;and report back :)

  • Author

UARTS: I followed the instructions from tkaiser. Success :) Thank you.

About the IR reveiver: I found that the module sunxi_cir provides me a working /dev/lirc0 device.

Did not see that before.

 

One more question: where do i find documentation about the mapping of the pins described in script.fex (like PAXX, PCXX, PGXX) to the actual physical mapping on my Orange PI PC board?

 

Thanks, I like that forum :)

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.