Re: Using LIRC to transmit/send/produce IR signals using GPIOs on Orange Pi with Armbian ?

Benoît-Pierre DEMAINE <[email protected]> Sun, 04 Mar 2018 11:49:43 +0100
Newsgroups gmane.comp.hardware.lirc
Message-ID <[email protected]>
On 10/02/18 23:41, Benoît-Pierre DEMAINE wrote:
> Hello.
>
> People who use Raspberry Pi can load ready to use drivers. They are rPi
> spécific.
>
> For Armbian/Orange, I have found the "cir" overlay that handles reception
> only; the overlay does not seem to include transmission.
>
> Most tutorials for classic computers assume a dedicated port, like serial,
> or USB device; those tutorials are not usable for GPIOs. I have found some
> Arduino and OpenWRT tutorials, but they don't work for me.
>
> I will try to find the source code for cir, reverse engineer it, and try
> to write a new overlay, or, add a send section to the existing one.
>
> If nobody every done that in the past, I have to rescue solutions:
> http://www.lirc.org/html/audio.html
> http://blog.bschwind.com/2016/05/29/sending-infrared-commands-from-a-raspberry-pi-without-lirc/
> (which can use pigpio to send IR signals).
>
> Thanks.
>

I have published my whole work in here:

http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=3388&extra=

In short, I had to re-invent the wheel.

Mode2 has a bug, and omits the last bit of the first frame (the one before
the stop bit).

I do not use the LIRC daemon at all; only mode2 for receving via the IR
input pin.

Transmission is done via GPIO; I could not reuse anyold project from any
one. irsend fails at several levels, in 2 different configurations. pigpio
is not ported on armbian. So I wrote my own C code to manipulate GPIO.

Things are now working for me, the manual way.

In particular, irsend fails over sound card.

-- 
 >o_/ DEMAINE Benoît-Pierre (aka DoubleHP) http://benoit.demaine.info/
If computing were an exact science, IT engineers would'nt have work \_o<

"So all that's left, Is the proof that love's not only blind but deaf."
(FAKE TALES OF SAN FRANCISCO, Arctic Monkeys)

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