Jump to content

OPI PC with lirc ( IR transmit )


Recommended Posts

I am not sure we have a driver for send in kernel. It exists in A20 kernel for gpio based IR transmitter. I did few tests and it works, but I am not aware of limitations ...

Link to comment
Share on other sites

Can it be rebuild for H3, because we really need it, in A20 is ok yeah we also tested it, but here is a little bit more complicated. We can't find a way to recomplile it for H3, some help?

 

It's a Japanese page, but a method IR Send which doesn't use lirc is introduced here.
 
 
When using GoogleChrome, it's possible to translate into English.
 
scanir
Remote is received, and a scan code is preserved in a file.
 
orangepi@orangepipc:~/lirc$ sudo ./scanir tv_on.ir
write file: tv_on.ir
scaning pin: 7 (wiringpi)
max keep time: 40(ms)
Infrared LED scanning start.
Pressed Ctrl+C, this program will exit.
 
Scanning has been done.
 
orangepi@orangepipc:~/lirc$ ls -l tv_on.ir
-rw-r--r-- 1 root root 476 Jun 26 07:56 tv_on.ir
 
 
sendir
The remote cord preserved by a file is sent to a television.
 
orangepi@orangepipc:~/lirc$ sudo ./sendir tv_on.ir 1 14
read file: tv_on.ir
output pin: 14 (wiringpi)
unit: 26ms duty:9-17
send infrared signal.
send data.
 
done
 
 
It's work fine with my OPI-PC,
My television was turned on.
 
Link to comment
Share on other sites

Can it be rebuild for H3, because we really need it, in A20 is ok yeah we also tested it, but here is a little bit more complicated. We can't find a way to recomplile it for H3, some help?

Could you make it work in H3?

Link to comment
Share on other sites

I too am trying to setup ir transmit on Allwinner (in my case H2+ OP zero).  I have receive working with lirc but would like to use lirc gpio for transmit.

I see in the Armbian release notes the following:

v5.00 / 12.2.2016

  • .....
  • added LIRC GPIO receive and send driver for legacy Allwinner

 

But I don't see it in my image.  I'm running:

Linux orangepizero 3.4.113-sun8i #50 SMP PREEMPT Mon Nov 14 08:41:55 CET 2016 armv7l GNU/Linux
 
Is it not in the OP zero build, and if not, can I build it from git and install it?
Link to comment
Share on other sites

In the time of writing that log entry, we had only A10 & A20 legacy kernel. For H3 (sun8i) there is yet another source tree, where there is no such driver.

 

You can try to help with this patch, but it won't just work out of the box.

https://github.com/igorpecovnik/lib/blob/master/patch/kernel/sun7i-default/0050-lircgpio_and_raw.patch

It need to be adjusted -> you need to know what you are doing.

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