range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 63 www.xunlong.tv
4) Enter the ir-keytable -c -p NEC -t command in the terminal, and then use the IR
remote control to press the button against the IR receiver of the Orange Pi development
board, and you can see the received key code in the terminal
root@orangepi:/# ir-keytable -c -p NEC -t
Old keytable cleared
Protocols changed to nec
Testing events. Please, press CTRL-C to abort.
5514.329534: lirc protocol(nec): scancode = 0x45c
5514.329619: event type EV_MSC(0x04): scancode = 0x45c
5514.329619: event type EV_SYN(0x00).
5514.832257: lirc protocol(nec): scancode = 0x45c
5514.832323: event type EV_MSC(0x04): scancode = 0x45c
3.19.
linux3.4 IR receiving test
1) First load the sunxi-cir kernel module
root@orangepi:~# modprobe sunxi-cir
root@orangepi:~# lsmod
Module Size Used by
ir_lirc_codec 3610 0
lirc_dev 7878 1 ir_lirc_codec
ir_mce_kbd_decoder 2957 0
ir_sanyo_decoder 1592 0
ir_sony_decoder 1446 0
ir_jvc_decoder 1532 0
ir_rc6_decoder 1997 0