Jump to content

OrangePI PC GPIO serial and IR reveiver


mbrennfleck

Recommended Posts

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines