Open CRogers opened 4 years ago
Hi @CRogers,
Thank you for the detailed report. Unfortunately, this is a very specific use case and I don't know the exact answer how to set it up properly.
Regarding the kernel drivers, please keep in mind that with the release of Raspberry Pi OS Buster gpio-ir and gpio-ir-tx replaced the old Linux kernel module lirc_rpi. Details are about the switch are explained here.
Have you tried contacting LIRC developers about the issue in your use case? Btw there is an open bug in the upstream of LIRC regarding the patches that we apply manually in our user's manual: https://sourceforge.net/p/lirc/tickets/359/
Best regards, Leon
First of - thanks for making the ANAVI Infrared hat - it's made it so easy to get into sending/receiving IR using a rpi zero!
By following the [ANAVI instructions for setting up transmitting with LIRC](), and then using the "using multiple devices" part of the LIRC docs, I have managed to get two instances of LIRC running, the normal one for sending on
/dev/lirc0
and the new socket at/var/run/lirc/lircd-lirc1
for receiving on/dev/lirc1
. They work when I use them at different times:However, something seems to go wrong when I try to receive and send at the the same time. If I run
irw
to receive in the background:And then try and send a command:
However, if I then kill the background
irw
receiving process:Sending works again!
Weirdly enough, in this "broken" state of sending and receiving at the same time, the IR leds still flash (checked with my phone camera) and if you run
mode2
in the background:you get the pulse/space data:
but nothing shows up from the
irw
process in the background (and my hifi/tv do not recognise the signals either).I assume the two instances of
lirc
are interfering with each other somehow. The LIRC docs say you may need to have two kernel drivers with different names, if the driver can only handle one device at a time:I also found this wiki page about rebuilding a separate version of the backing driver for LIRC.
But both are referring to the
lirc_serial
driver that I can't find withlsmod
, where as the phat uses thedefault
driver.Any idea what's going wrong?