Thanks!  That will be very helpful if I decide to resurrect lirc.

However, I'm now looking at going in a different direction, since upon further reading, it appears that lirc is considered deprecated. There is now support for IR devices in the kernel, including Iguana IR, so I'm trying to get that working on OpenWRT.

Unfortunately, there doesn't seem to be a whole lot of documentation for "rc-core" (which is what the kernel support for infrared remotes seems to be called). I'm mostly going off of this document:

http://jfcarter.net/~jimc/documents/bugfix/17-ir-keyboard.html

To try to get this working on OpenWRT, I did "make kernel_menuconfig" and then selected Device Drivers > Multimedia support > Remote controller devices > IguanaWorks IR Transceiver.

To get the userspace program "ir-keytable", I installed the v4l-utils package.

This seems to have mostly worked, because I can now run ir-keytable, and it recognizes the Iguana IR device:

root@OpenWrt:~# ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event2) with:
    Driver iguanair, table rc-empty
Supported protocols: unknown other rc-5 jvc sony nec sanyo mce-kbd rc-6 sharp xmp
    Enabled protocols: sony
    Name: IguanaWorks USB IR Transceiver v
    bus: 3, vendor/product: 1781:0938, version: 0x0000
    Repeat delay = 500 ms, repeat period = 125 ms
root@OpenWrt:~# ir-keytable -t
Testing events. Please, press CTRL-C to abort.

However, when I aim a Sony remote at the Iguana IR receiver, no keypresses show up in "ir-keytable -t".

I noticed that /etc/rc_keymaps/ is an empty directory. The web page I mentioned above indicates that /etc/rc_keymaps should be populated with some files, at least on the distribution the author is using, but he says these files may be somewhere else on other distributions. I'm not sure what OpenWRT's approach to this is.

Am I on the right track? Has anyone else gotten infrared remote support to work on OpenWRT?

Thanks,

--Patrick


On 4/2/16 5:43 PM, Luiz Angelo Daros de Luca wrote:

Hello Patrick,

Non core packages got a reboot at https://github.com/openwrt/packages . All non-adopted packages are still at http://git.openwrt.org/?p=packages.git but they are not build by default for current OpenWRT builds. Lirc is there.

If you want lirc in OpenWRT, you can become its maintainer and migrate it to github.

Regards,


Em sáb, 2 de abr de 2016 06:20, Patrick Pelletier <[email protected] <mailto:[email protected]>> escreveu:

    I'm interested in using LIRC on OpenWRT, to interface with the
    IguanaWorks USB IR transceiver.  (Though specifically, I'm
    interested in receiving, not transmitting.)

    I found these two OpenWRT wiki pages about LIRC:

    https://wiki.openwrt.org/doc/howto/lirc-gpioblaster
    https://wiki.openwrt.org/doc/howto/lirc-audio_alsa

    However, neither seems relevant to my situation, because it
    appears that the IguanaWorks transceiver uses a different driver
    than audio_alsa:

    http://www.lirc.org/html/table.html#usb

    Several pages I've read indicate that LIRC is available for
    OpenWRT, and suggest " scripts/feeds install lirc", but that
    doesn't work for me:

    ppelletier@patrick64:~/openwrt$ scripts/feeds install lirc
    WARNING: No feed for package 'lirc' found, maybe it's already part
    of the standard packages?

    But it doesn't show up in menuconfig by default, so it doesn't
    seem to be part of the standard packages, either. This seems to be
    the case for at least Designated Driver and Chaos Calmer; I
    haven't looked any further back than that.

    Was LIRC support removed at some point, and was it because of lack
    of interest, or some fundamental reason LIRC can't work with
    OpenWRT?  If I wanted to try reviving LIRC support, where would I
    start?

    Thanks,

    --Patrick

    _______________________________________________
    openwrt-users mailing list
    openwrt-users-ZwoEplunGu0+xA9t4nZiwti2O/[email protected]
    <mailto:openwrt-users-ZwoEplunGu0+xA9t4nZiwti2O/[email protected]>
    https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

--

Luiz Angelo Daros de Luca
[email protected] <mailto:[email protected]>



_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to