BPI-M3 IR interface
BPI-M3 support IR interface on board. you can use it as remote control.
How to enable IR in BPI-M3 (Linux OS)
Step 1: Insmod IR lib
1
$ sudo insmod /lib/modules/3.4.39-BPI-M3-Kernel/kernel/drivers/input/keyboard/sunxi-ir-rx.ko
Copied!
Step 2: Turn on (IR debug mode)
1
$ cd /sys/module/sunxi_ir_rx/parameters
2
$ sudo su
3
$ echo 0xff > debug_mask
Copied!
Step 3: Input IR keycode and check log
$ dmesg
1
[ 2797.200733] dcnt = 70
2
[ 2797.200753] 351 active_delay = 128
3
[ 2797.200772] 366 len = 153
4
[ 2797.200795] IR code = 0x609ff708
5
[ 2797.200821] IR RAW CODE : 159
6
[ 2797.200903] IR CODE : 159
7
[ 2797.201020] IR KEY VALE 159
8
[ 2797.201047] ir_rx_irq_service: Rx Packet End, code=0x609ff708, ir_code=0x609
Copied!
Ex: Open Browser (IR keycode=150)
demo to open Browser:
Reference Key_Map:
How to enable IR in BPI-M3 (Android)
how to do check IR address on Android.
1
echo 0xff > /sys/module/sunxi_ir_rx/parameters
2
3
<7>[ 625.998452] IR code = 0xf20d4040
4
<7>[ 625.998473] IR RAW CODE : 13
5
<7>[ 625.998542] IR CODE : 13
6
<7>[ 625.998629] IR KEY VALE 13
7
<7>[ 625.998653] ir_rx_irq_service: Rx Packet End, code=0xf20d4040, ir_code=0x
8
<6>[ 625.998717] cpus_wakeup_config_handler: address: 0x4040, powerkey: 0x0a
9
<6>[ 626.002717] cpus_wakeup_config_handler: ok
Copied!
BPI IR remoter control accessoires:
Last modified 1yr ago
Copy link