Today i become my 1channel RF LED Controller with 11 Key Remote Control.
To make a protocol. The function of RF Remote Controller required.
For my application i need only the ON /OFF Button and the Bright + / Bright - Button.
Then i Press the ON/OFF Button it goes on then i press again it goes off.
The Dim function has 8 Steps:
Press Bright + it goes one step up
Press Bright- it goes one step down.
Here the ouput of pilight-debug:
Press the ON/OFF Button:
Code:
--[RESULTS]--
time: Sat Apr 11 18:49:12 2015
hardware: 433gpio
pulse: 5
rawlen: 49
binlen: 12
pulselen: 301
Raw code:
602 1505 602 602 602 1505 602 602 602 1505 602 602 602 1505 602 602 602 602 602 1505 602 602 602 1505 602 1505 602 1505 602 1505 602 1505 602 602 602 602 602 602 602 602 602 602 602 602 602 602 602 1505 10234
Binary code:
000011110001
The Bright + Button:
Code:
--[RESULTS]--
time: Sat Apr 11 18:51:49 2015
hardware: 433gpio
pulse: 5
rawlen: 49
binlen: 12
pulselen: 301
Raw code:
602 1505 602 602 602 1505 602 602 602 1505 602 602 602 1505 602 602 602 602 602 1505 602 602 602 1505 602 1505 602 1505 602 1505 602 1505 602 602 602 602 602 602 602 602 602 602 602 1505 602 1505 602 602 10234
Binary code:
000011110010
The Bright - Button:
Code:
--[RESULTS]--
time: Sat Apr 11 18:51:15 2015
hardware: 433gpio
pulse: 5
rawlen: 49
binlen: 12
pulselen: 301
Raw code:
602 1505 602 602 602 1505 602 602 602 1505 602 602 602 1505 602 602 602 602 602 1505 602 602 602 1505 602 1505 602 1505 602 1505 602 1505 602 602 602 602 602 602 602 602 602 602 602 1505 602 1505 602 1505 10234
Binary code:
000011110011
We become 2 Groups:
The first group has a high second and is defined by bin 1
The second group has a low second and is defined by bin 0
So we get the following binär codes for each button:
Code:
ON/OFF Button:
101010100101111100000001
Bright + Button:
101010100101111100000110
Bright - Button:
101010100101111100000111
Light Button:
101010100101111100000101
100% Button:
101010100101111100001001
50% Button:
101010100101111100001010
25% Button:
101010100101111100001011
Mode + Button:
101010100101111100001110
Mode - Button:
101010100101111100010110
Speed + Button:
101010100101111100010011
Speed - Button:
101010100101111100010001
Here an example:
1010101001011111 00000001
The First 16 bits is the ID we convert it from bin to decimal and it is: 43615
The Last 8 bits is the Button data.
Now it is on time to convert this data to a protocol.
I think for the first it is only needed the ON/OFF Button and the Bright+ and Bright - Button.
The Dimmer function is here recommended.
How to create with this information a protocol?