please choosego to mobile | Continue to access the PC version
Author: bir8339e

How to: setup wakeup with your IR remote control

[Copy link]

6

threads

26

posts

466

credits

Intermediate member

Rank: 3Rank: 3

credits
466
Published in 2017-1-22 21:05:21 | Show all floors
Teo666 replied at 2017-1-21 07:03
Hi everyone, I'm trying to add the wakeup function to my OrangePi PC Plus, but I found something str ...

Why don't you try this
in a faithful way as written

  1. 1A1F2F
  2. 00 0001 1010 0001 1111 0010 1111
  3. 11 1101 0011 1110 0001 0110 0000
  4. 3D3E160
  5. 64217440
Copy code



2

threads

87

posts

890

credits

Senior member

Rank: 4

credits
890
Published in 2017-1-23 01:52:47 | Show all floors
Edited by thc013 at 2017-1-23 04:29

Ah now got it working on pipcplus but on a beelink x2 box it don't work

everything works on de beelink x2 booting from the emmc ,lan wifi usb ports works system gets not to hot

but the only things that dont work are the power button and cec and the aric remote thing

on the one ,pc and pcplus it works

got it something with the dvfs on the fex for proper standby ?

0

threads

3

posts

16

credits

Novice

Rank: 1

credits
16
Published in 2017-1-23 05:15:05 | Show all floors
oppai replied at 2017-1-22 21:05
Why don't you try this
in a faithful way as written

I've tried also the values you suggested, but without any result..
I don't have other remote to test at the moment, I'll keep powering on from the button for now, maybe I'll solve this issue in the future!
Thank you all for the support, great work!


0

threads

2

posts

32

credits

Novice

Rank: 1

credits
32
Published in 2017-1-24 09:55:11 | Show all floors
Also having issues trying to powering on. Could someone help on converting the values I have? Please.

  1. begin remote

  2.   name  /storage/.config/lircd.conf
  3.   bits           16
  4.   flags SPACE_ENC|CONST_LENGTH
  5.   eps            30
  6.   aeps          100

  7.   header       8985  4479
  8.   one           535  1698
  9.   zero          535   569
  10.   ptrail        534
  11.   repeat       8988  2164
  12.   pre_data_bits   16
  13.   pre_data       0x11BF
  14.   gap          140850
  15.   toggle_bit_mask 0x0

  16.       begin codes
  17.           KEY_BACK                 0x827D
  18.           KEY_UP                   0xD02F
  19.           KEY_LEFT                 0x08F7
  20.           KEY_DOWN                 0x708F
  21.           KEY_RIGHT                0x8877
  22.           KEY_ENTER                0xB04F
  23.           KEY_MENU                 0x30CF
  24.           KEY_SEARCH               0x728D
  25.           KEY_VOLUMEUP             0xA857
  26.           KEY_VOLUMEDOWN           0x38C7
  27.           KEY_HOME                 0x02FD
  28.           KEY_PLAYPAUSE            0xCA35
  29.           KEY_STOP                 0xDA25
  30.           KEY_REWIND               0xEA15
  31.           KEY_FASTFORWARD          0x2AD5
  32.           KEY_SUBTITLE             0xC837
  33.           KEY_SLEEP                0x50AF
  34.           KEY_MUTE                 0xF00F
  35.       end codes

  36. end remote
Copy code

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2017-1-24 14:29:06 | Show all floors
Which one would you like to use for power up?

0

threads

2

posts

32

credits

Novice

Rank: 1

credits
32
Published in 2017-1-24 15:44:03 | Show all floors
jernej replied at 2017-1-24 14:29
Which one would you like to use for power up?

The KEY_SLEEP button.

2

threads

87

posts

890

credits

Senior member

Rank: 4

credits
890
Published in 2017-1-24 18:22:23 | Show all floors
will try it simple

you take a 4 bit binary table like i attached

check your lircd.conf if its a 16 bit

then you take the pre data
from the example above pre-data is 0x11BF
      
make zeros and ones from it with the 4 bit binary table

0001 0001 1011 1111
   1       1     B     F

now you gonna bit-reverse it

0001 0001 1011 1111

1111 1101 1000 1000
  F      D      8       8

so your ir_addr_code0 is gonna be 0xFD88

then you take the code of the button you wanna use
KEY_SLEEP                0x50AF

you only need the first 2  but you can check if te code is right because the last 2 must be the opposite

0101 0000   1010 1111

5       0         A     F

now you gonna reverse the fist 2

0101 000

0000 1010

0        A

so your ir_power_key_code0 would be 0x0A

so your configuration in the fex would be

ir_power_key_code0  = 0x0A
ir_addr_code0       = 0xFD88

@jernej so i don't understand the 0x8080 solution you gave his remote code should work with his code i also had a 3 byte pre gap but added a zero in front reversed it and that works









This thread contains more resources

You need to Log in to download or view,No account?    Register

x

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2017-1-25 04:36:16 | Show all floors
thc013 replied at 2017-1-24 11:22
will try it simple

you take a 4 bit binary table like i attached

Sorry, I miscalculated. I edited the message.

2

threads

87

posts

890

credits

Senior member

Rank: 4

credits
890
Published in 2017-1-25 06:22:48 | Show all floors
Oh no sorry sensei i am just a noob who try it first .

only on the beelink x2 no succes think a little fine-tunning even no power button that works extracted the fex from the android image that was on it .made a complete backup and put openelec on the emmc after some struggling

this is the wakeup para from the original fex

[wakeup_src_para]
cpu_en              = 0
cpu_freq            = 48
; (cpu:apb:ahb)
pll_ratio           = 0x111
dram_selfresh_en    = 1
dram_freq           = 36
wakeup_src0         =
wakeup_src_bt       = portL06<6><default><default><0>

and this from the openelec

[wakeup_src_para]
cpu_en              = 0
cpu_freq            = 48
pll_ratio           = 273
dram_selfresh_en    = 1
dram_freq           = 36
wakeup_src0         =
wakeup_src_wl       = portG10<4><default><default><0>
wakeup_src_bt       = portL03<6><default><default><0>

the only big differences i see is the line

wakeup_src_wl

and the PL03 and the PL06 in the wakeup_src_bt

but adjust that don't work .




4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2017-1-25 06:42:32 | Show all floors
You can add any wakeup_src_* entry for wake up pin. If PL06 is in original fex, then it should work. Just add it in wakeup_src0 for example... If this doesn't work, then, I'm afraid, your only two options are guessing or finding schematic.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list