Ir codes for Android 9 - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: Android on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=87) +--- Thread: Ir codes for Android 9 (/showthread.php?tid=10563) |
Ir codes for Android 9 - Redwid - 07-05-2020 Is there any way to get IR codes on Android images. Any drivers, tools ... etc presents there? Grep shows something related irc and lirc: Code: ./proc/kallsyms:0000000000000000 t nf_conntrack_irc_fini RE: Ir codes for Android 9 - Redwid - 07-05-2020 A little bit more info about device: Code: getevent -lp /dev/input/event0 + this: Code: rk3328_box:/ # getevent -i /dev/input/event0 Somehow this codes should be mapped to this remote? http://files.pine64.org/doc/Pine%20A64%20Schematic/remote-wit-logo.jpg RE: Ir codes for Android 9 - Redwid - 07-07-2020 Found more info. About ir driver: http://wiki.t-firefly.com/en/AIO-3399C/driver_ir.html Source code of that driver: https://gitlab.com/TeeFirefly/px3se-buildroot/blob/firefly-px3se/kernel/drivers/input/remotectl/rockchip_pwm_remotectl.c https://github.com/ayufan-rock64/android-kernel/blob/master/drivers/input/remotectl/rockchip_pwm_remotectl.c Tool to get key info: https://source.android.com/devices/input/getevent Chinese document regarding ir on rockchip: https://translate.google.com/translate?hl=&sl=zh-CN&tl=en&u=https%3A%2F%2Fblog.csdn.net%2Fqq_30624591%2Farticle%2Fdetails%2F89457743 I do have a device that could send any ir codes. Doing a brute force right now. Found that key codes: 0x404000FF or 0xFF -> KEY_0 0x404010EF -> KEY_8 RE: Ir codes for Android 9 - Redwid - 07-15-2020 Finally found this ir codes: 0x18E7; //KEY_VOLUMEUP 0xE817; //KEY_VOLUMEDOWN 0x58A7; //KEY_HOME 0xA25D; //KEY_BACK 0x08F7; //KEY_LEFT 0x8877; //KEY_RIGHT 0xFB04F; //KEY_REPLY <- not working 0xF807; //KEY_SEARCH 0x50AF; //KEY_MUTE 0xE21D; //KEY_TEXT 0xB24D; //KEY_POWER 0xD02F; //KEY_UP 0x708F; //KEY_DOWN 0x50AF; //KEY_MUTE 0x30CF; //KEY_DELETE 0xE00FF; //KEY_0 0x807F; //KEY_1 0x40BF; //KEY_2 0xE20DF; //KEY_4 0xA05F; //KEY_5 0x609F; //KEY_6 0x10EF; //KEY_8 0xE906F; //KEY_9 I've used this tool to find IR codes: https://github.com/mdhiggins/ESP8266-HTTP-IR-Blaster All codes in NEC 32 length format. So sample curl to execute: curl -X GET http://{your_device_ip}/msg?code=FF:NEC:32&simple=1 Unfortunately KEY_POWER ir code is unable to wake up device from power off state. I've looked for home automation, so this is a kind of useless for me |