Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: Mouchon on December 20, 2013, 12:33:02 PM

Title: ir device issue
Post by: Mouchon on December 20, 2013, 12:33:02 PM
Hi,
I am currently try to use the ir interface on oa20
   
I use the following sensor TSOP4838 pin 1 of it  connected to PB04 on gpio3( pin 8).

The sunxi-ir module is loaded and the associate input/event dev are created.

But when i probe the input/event interface i got nothing.

I alos checked that the sensor is working using logical analyzer and it work perfectly.
Any hint ?

Kr

Title: Re: ir device issue
Post by: Mouchon on December 22, 2013, 02:24:17 PM
Ok after some investigation, it seem that the sunxi-ir driver is not working
for all combination of ir sensor and remote.

I enabled debuging information on the module and see interrupt request handle when my sensor is on port PB04.
But it seem that decoding result is not understand for all the remote i own. And it seem that this driver are only able to decode NEC protocol

I investigate  on gpio_ir_recv.
Title: Re: ir device issue
Post by: Mouchon on December 26, 2013, 11:00:58 AM
Was unable to use  gpio_ir_recv as is. So i rewrite  complete driver
to use gpio as input for ir module using gpio with interrupt.

All is working well, i will make github repo but need to make some clean up before.

If some one is interested please drop me a mail.

Philippe.
Title: Re: ir device issue
Post by: Mouchon on December 26, 2013, 04:48:24 PM
you can find the git repo here

https://github.com/lephiloux/sunxi-gpio-ir
Title: Re: ir device issue
Post by: rzr on January 01, 2014, 04:51:06 PM
would this also support TSOP1738 ? I think I have one ... I can test if wanted
Title: Re: ir device issue
Post by: Mouchon on January 01, 2014, 05:54:02 PM
it should as the driver is only based on signal receveid on the gpio pin. So any device should workd.

Kr