ir-ctl: invalid scancode '0x857a3a45' for protocol 'nec32'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Developers!

I think I have discovered a bug in ir-ctl. My application is pretty
simple: I want to change certain settings on my Yamaha surround receiver
via a Raspberry Pi. For this, I have to transmit keycodes with ir-ctl to
the Yamaha. While this works fine for most keycodes, for some keycodes
errors are thrown.

Basically, I record the scancodes of all functions that I need with
ir-keytable, and later use the recorded scancodes for transmitting, for
example:

root@raspberrypi:~# ir-keytable -v -t
Found device /sys/class/rc/rc1/
Found device /sys/class/rc/rc0/
Parsing uevent /sys/class/rc/rc0/lirc0/uevent
/sys/class/rc/rc0/lirc0/uevent uevent MAJOR=252
/sys/class/rc/rc0/lirc0/uevent uevent MINOR=0
/sys/class/rc/rc0/lirc0/uevent uevent DEVNAME=lirc0
Input sysfs node is /sys/class/rc/rc0/input0/
Event sysfs node is /sys/class/rc/rc0/input0/event0/
Parsing uevent /sys/class/rc/rc0/input0/event0/uevent
/sys/class/rc/rc0/input0/event0/uevent uevent MAJOR=13
/sys/class/rc/rc0/input0/event0/uevent uevent MINOR=64
/sys/class/rc/rc0/input0/event0/uevent uevent DEVNAME=input/event0
Parsing uevent /sys/class/rc/rc0/uevent
/sys/class/rc/rc0/uevent uevent NAME=rc-rc6-mce
/sys/class/rc/rc0/uevent uevent DRV_NAME=gpio_ir_recv
/sys/class/rc/rc0/uevent uevent DEV_NAME=gpio_ir_recv
input device is /dev/input/event0
/sys/class/rc/rc0/protocols protocol rc-5 (enabled)
/sys/class/rc/rc0/protocols protocol nec (enabled)
/sys/class/rc/rc0/protocols protocol rc-6 (enabled)
/sys/class/rc/rc0/protocols protocol jvc (enabled)
/sys/class/rc/rc0/protocols protocol sony (enabled)
/sys/class/rc/rc0/protocols protocol rc-5-sz (enabled)
/sys/class/rc/rc0/protocols protocol sanyo (enabled)
/sys/class/rc/rc0/protocols protocol sharp (enabled)
/sys/class/rc/rc0/protocols protocol mce_kbd (enabled)
/sys/class/rc/rc0/protocols protocol xmp (enabled)
/sys/class/rc/rc0/protocols protocol imon (enabled)
/sys/class/rc/rc0/protocols protocol lirc (enabled)
Opening /dev/input/event0
Input Protocol version: 0x00010001
Testing events. Please, press CTRL-C to abort.
30063.090086: lirc protocol(nec32): scancode = 0x857a3a45
30063.140081: lirc protocol(nec32): scancode = 0x857a3a45 repeat
30063.250082: lirc protocol(nec32): scancode = 0x857a3a45 repeat

I now try to transmit exactly that keycode via ir-ctl and get an error
message. Nothing is transmitted:

root@raspberrypi:~# ir-ctl -d /dev/lirc1 -S nec32:0x857a3a45
error: invalid scancode '0x857a3a45' for protocol 'nec32'

As I said, this works fine for most of the keycodes I need, only some
cause this error message. All of the key codes that cause the error are
protocol nec32 and start with 0x8.

My hardware is a Raspberry Pi Zero (latest Raspbian Buster, freshly
updated this morning), a homebrew ir receiver with gpio_ir, a homebrew
transmitter with pwm-ir-tx and the Yamaha Remote is an RAV423 (shipped
with my RX-A3030). IR keytable and ir-ctl both have version number 1.16.3.

If you need further information, please let me know.

I'd like to thank you already in advance for your efforts, and I wish you
Good Luck in finding the problem!

Best Regards,

Andreas




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux