Re: How to catch raw codes ?

Alec Leamas <[email protected]> Sun, 11 Feb 2018 12:00:49 +0100
Newsgroups gmane.comp.hardware.lirc
Message-ID <[email protected]>

On 10/02/18 23:35, BenoƮt-Pierre DEMAINE wrote:
> Hello.
> 
> I want to perform manual decoding of air cooler device. The remote control
> can send a huge variety of commands; and I am not going to record every
> single of them in my lirc conf.
> 
> I would like LIRC to call my app (bash shell script, possible via irexec),
> and pass me as argument the binary value received after timings decoding.
> I want to leave LIRC convert the timings sequence into a serie of 0s and
> 1s. And then, I handle the myself.
> 
> This is performed here using pigpio, without LIRC:
> http://blog.bschwind.com/2016/05/29/sending-infrared-commands-from-a-raspberry-pi-without-lirc/
> 
> but I would like to try using LIRC. I have a working /dev/lirc0 (which
> produces mess when I press my remote).


If I understand your question, the mode2(1) command decodes the
/dev/lirc? mess to proper timings. However, there is nothing
corresponding  on the sending side; lirc always uses "buttons" to define
what should be sent.

Cheers!

--alec

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot