Magnets Posted January 25, 2017 Share Posted January 25, 2017 I'm trying to wake up an OPi PC using an IR remote following these instructions http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=2048&extra=page%3D1 bits 16 flags SPACE_ENC|CONST_LENGTH eps 30 aeps 100 header 9004 4560 one 532 1703 zero 532 593 ptrail 541 repeat 9015 2283 pre_data_bits 16 pre_data 0x1CE3 gap 139912 toggle_bit_mask 0x0 begin codes KEY_POWER 0x48B7 KEY_0 0x00FF KEY_5 0xA05F end codes end remote . [s_cir0] ir_used = 1 ir_rx = port:PL11<2><1><default><default> ir_power_key_code0 = 87 ir_addr_code0 = 40704 ir_power_key_code1 = 26 ir_addr_code1 = 64260 ir_power_key_code2 = 20 ir_addr_code2 = 32640 ir_power_key_code3 = 21 ir_addr_code3 = 32640 ir_power_key_code4 = 11 ir_addr_code4 = 63240 ir_power_key_code5 = 3 ir_addr_code5 = 239 ir_power_key_code6 = 159 ir_addr_code6 = 19635 ir_power_key_code7 = 10 ir_addr_code7 = 30536 ir_power_key_code8 = 69 ir_addr_code8 = 48386 ir_power_key_code9 = 77 ir_addr_code9 = 56865 ir_power_key_code10 = 24 ir_addr_code10 = 65025 ir_power_key_code11 = 87 ir_addr_code11 = 65280 ir_power_key_code12 = 77 ir_addr_code12 = 65344 ir_power_key_code13 = 0x12 ir_addr_code13 = 0xC738 [wakeup_src_para] cpu_en = 0 cpu_freq = 48 pll_ratio = 273 dram_selfresh_en = 1 dram_freq = 36 wakeup_src0 = wakeup_src_wl = port:PG10<4><default><default><0> wakeup_src_bt = port:PL03<6><default><default><0> My remote is a universal one but through trial and error I found what looks like an NEC coded setting pre_data: 0x1CE3 0001110011100011 -> 1100011100111000 0xC738 Power button: 0x48B7 0x48 01001000 -> 00010010 0x12 Any ideas? Link to comment Share on other sites More sharing options...
jernej Posted January 25, 2017 Share Posted January 25, 2017 Everything you calculated is correct, but IIRC only first few entries are taken into account. Change ir_power_key_code0 & ir_addr_code0, for example. Link to comment Share on other sites More sharing options...
Magnets Posted January 25, 2017 Author Share Posted January 25, 2017 That worked, thanks Link to comment Share on other sites More sharing options...
Recommended Posts