livebox:universalrf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
livebox:universalrf [2013/12/11 09:58] – [HE305] brettlivebox:universalrf [2014/06/08 09:20] (current) – [HomeEasy (advanced)] minerva9
Line 184: Line 184:
 Devices tested include the HE109 and the HE302. The HE302 sockets are interesting in that they can be trained to respond to both the BBSB and the HE Advanced protocol. However, the HE109 twin sockets will only respond to this 'advanced' version of the protocol. Devices tested include the HE109 and the HE302. The HE302 sockets are interesting in that they can be trained to respond to both the BBSB and the HE Advanced protocol. However, the HE109 twin sockets will only respond to this 'advanced' version of the protocol.
  
-Re the message protocol itself. This always starts with a latch signal of 275uS hi and 2675uS low. Then a unique 'group code' which is 26bits long (each bit being to 'wire bits'). The last 4 bits are the device code ... these can be altered to address upto 16 devices on the given group code.+Re the message protocol itself. This always starts with a latch signal of 275uS hi and 2675uS low. Then a unique 'group code' which is 26bits long (each bit being two 'wire bits'). The last 4 bits are the device code ... these can be altered to address upto 16 devices on the given group code.
  
  
Line 219: Line 219:
 \\ \\
 Non-UK, European users might like to know that this [[http://www.nexa.se/PB3Ny3packsjalvlarande.htm|Nexa]] RF socket has been successfully tested with the HAH. Non-UK, European users might like to know that this [[http://www.nexa.se/PB3Ny3packsjalvlarande.htm|Nexa]] RF socket has been successfully tested with the HAH.
 +
 +HAH user kema01 supplied these as working with a HE109 
 +
 +off=010200FA09C400FA00FA00FA044C000000000A012710421999999999A65999A6599A659999999A40
 + on=010200FA09C400FA00FA00FA044C000000000A012710421999999999A65999A6599A65999A599A40
 + 
 +off=010200FA09C400FA00FA00FA044C000000000A012710421999999999A65999A6599A65999999A580
 + on=010200FA09C400FA00FA00FA044C000000000A012710421999999999A65999A6599A65999A59A580
 + 
 +off=010200FA09C400FA00FA00FA044C000000000A012710421999999999A65999A6599A65999999A640
 + on=010200FA09C400FA00FA00FA044C000000000A012710421999999999A65999A6599A65999A59A640
 + 
 +off=010200FA09C400FA00FA00FA044C000000000A012710421999999999A65999A6599A6599999A5980
 + on=010200FA09C400FA00FA00FA044C000000000A012710421999999999A65999A6599A65999A5A5980 
 \\ \\
 \\ \\
 Arduino code [[http://www.arduino.cc/playground/Code/HomeEasy|here]] and [[http://www.zen28611.zen.co.uk/Arduino/HE_RF_to_BBSB_RF_0.1.pde|here]] (note that we've not actually used any of this code, just referred to the comments for info on the protocols used). Arduino code [[http://www.arduino.cc/playground/Code/HomeEasy|here]] and [[http://www.zen28611.zen.co.uk/Arduino/HE_RF_to_BBSB_RF_0.1.pde|here]] (note that we've not actually used any of this code, just referred to the comments for info on the protocols used).
 +
 +
 +===== HomeEasy Dimmable (advanced) =====
 +Devices tested include the HE206 (dimmable ceiling rose) and the HE307 (dimmable wall socket). The HE307 sockets have 'on' 'off' control and 15 distinct dim levels with an 'auto dim' function. 
 +<code>
 +pulsedef=0200FA09C400FA00FA00FA044C00FA0000
 +burstcount=12
 +interburstdelay=10000
 +frames=66
 +</code>
 +
 +Pulse definition
 +^ Encoding ^ HI ^ LO ^
 +| 0 | 250 | 2500 |
 +| 1 | 250 | 250 |
 +| 2 | 250 | 1100 |
 +| 3 | 250 | 0 |
 +
 +For simple ON/OFF control, the protocol itself is built up as follows:
 +
 +A “0” Bit is sent as 250Hi 250Lo then 250Hi 1100Lo (i.e. two frames, 1 then 2 from above)
 +
 +A “1” Bit is sent as 250Hi 1100Lo then 250Hi 250Lo (i.e. two frames, 2 then 1 from above)
 +
 +The stream is made up of:
 +
 +A latch signal to start – 250hi 2500lo = frame 0 from above
 +
 +Then 26 group code bits – i.e 272946 or in binary 00000001000010101000110010
 +
 +Which gives: 1,2,1,2,1,2,1,2,1,2,1,2,1,2,2,1,1,2,1,2,1,2,1,2,2,1,1,2,2,1,1,2,2,1,1,2,1,2,1,2,2,1,2,1,1,2,1,2,2,1,1,2 as frames, using  0 = 1,2 and 1 = 2,1 as shown above.
 +
 +There is next a group ID bit, I set this to 0. i.e. 1,2 as frames (not sure what this is for!).
 +
 +Then comes the on/off code bit. On = 1 which is 2,1 as frames, Off = 0 which is 1,2 as frames.
 +
 +Next  follows a four bit address code, I used 1010 or 2,1,1,2,2,1,1,2 as frames.(I assume you can change this for different devices)
 +
 +Finally we send the latch signal again, frame 0
 +
 +Add together and you get 33 bits or 66 frames in total.
 +
 +If you use the RF helper to pack this up as follows:
 +<code>
 +Stream = 1999999A5999A5A5A599A659A59A65A580
 +PulseDef = 0200FA09C400FA00FA00FA044C00FA0000
 +Burst count  = 12
 +Interburst delay = 10000
 +Frames = 66
 +</code>
 +
 +You should get: 010200FA09C400FA00FA00FA044C00FA00000C012710421999999A5999A5A5A599A659A59A65A580
 +
 +
 +For dimming, the protocol is altered as follows:
 +
 +Change the on/off bit from either 2,1(on) or 1,2(off) to 1,1(the dim setting)
 +
 +After the four ID bits but before the end latch signal add four further bits as follows:
 +
 +Convert dim setting (0-15) to binary then to frames;
 +
 +i.e.
 +
 +level 7 = 0111, which is 1,2,2,1,2,1,2,1 as frames or
 +
 +level 5 = 0101, which is 1,2,2,1,1,2,2,1 as frames.
 +
 +While experimenting with RF helper I have found that 'odd' addresses always have the same dim suffix and 'even' addresses have another common set.
 +
 +Odd addresses (bit 0 set to 1) Even address (bit 0 set to 0)
 +^ Odd Suffix ^ Even Suffix ^ Level ^
 +| 599A40| 999A40| DIM 1 |
 +| 59A580| 99A580| DIM 2 |
 +| 59A640| 99A640| DIM 3 |
 +| 5A5980| 9A5980| DIM 4 |
 +| 5A5A40| 9A5A40| DIM 5 |
 +| 5A6580| 9A6580| DIM 6 |
 +| 5A6640| 9A6640| DIM 7 |
 +| 659980| A59980| DIM 8 |
 +| 659A40| A59A40| DIM 9 |
 +| 65A580| A5A580| DIM 10 |
 +| 65A640| A5A640| DIM 11 |
 +| 665980| A65980| DIM 12 |
 +| 665A40| A65A40| DIM 13 |
 +| 666580| A66580| DIM 14 |
 +| 666640| A66640| DIM 15 |
 +
 +Some example codes;
 +
 +Socket address 11 (1011)
 +^ stream ^ Description ^
 +| 010200FA09C400FA00FA00FA044C00FA00000C012710421999999A5999A5A5A599A659A599A5A640| OFF |
 +| 010200FA09C400FA00FA00FA044C00FA00000C012710421999999A5999A5A5A599A659A59A65A640| ON |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A6| PREFIX |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A6599A40| DIM 1 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A659A580| DIM 2 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A659A640| DIM 3 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A65A5980| DIM 4 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A65A5A40| DIM 5 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A65A6580| DIM 6 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A65A6640| DIM 7 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A6659980| DIM 8 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A6659A40| DIM 9 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A665A580| DIM 10 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A665A640| DIM 11 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A6665980| DIM 12 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A6665A40| DIM 13 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A6666580| DIM 14 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A6666640| DIM 15 |
 +
 +Socket address 10 (1010)
 +^ stream ^ Description ^
 +| 010200FA09C400FA00FA00FA044C00FA00000C012710421999999A5999A5A5A599A659A599A5A580| OFF |
 +| 010200FA09C400FA00FA00FA044C00FA00000C012710421999999A5999A5A5A599A659A59A65A580| ON |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A5| PREFIX |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A5999A40| DIM 1 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A599A580| DIM 2 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A599A640| DIM 3 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A59A5980| DIM 4 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A59A5A40| DIM 5 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A59A6580| DIM 6 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A59A6640| DIM 7 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A5A59980| DIM 8 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A5A59A40| DIM 9 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A5A5A580| DIM 10 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A5A5A640| DIM 11 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A5A65980| DIM 12 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A5A65A40| DIM 13 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A5A66580| DIM 14 |
 +| 010200FA09C400FA00FA00FA044C00FA00000C0127104A1999999A5999A5A5A599A659A59965A5A66640| DIM 15 |
 +
 +
 +
  
 ===== Bye Bye Standby ===== ===== Bye Bye Standby =====
Line 428: Line 576:
  
 {{ :livebox:he305.jpg|}} {{ :livebox:he305.jpg|}}
- 
  
 Pulse definition Pulse definition
-^ Encoding ^ 
 ^ ::: ^ HI ^ LO ^ ^ ::: ^ HI ^ LO ^
 | 0 | 370 | 2600 |  | 0 | 370 | 2600 | 
Line 443: Line 589:
 </code> </code>
  
-APART +^ Contact ^ Stream ^ 
-<code> +| {{:livebox:he305-apart.png?linkonly|Apart}} | 199999999A659A6599A6599A599A659A50 | 
--10000,370,-2600,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-1200,340,-200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-1200,340,-200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-1200,340,-200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-1200,340,-200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-200,-10000+| {{:livebox:he305-together.png?linkonly|Close}} | 199999999A659A6599A6599A5999A59A50 |
  
-indexlist=0,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,2,1,2,1,1,2,1,2,2,1,2,1,1,2,1,2,1,2,2,1,2,1,1,2,1,2,1,2,2,1,1,2,1,2,1,2,2,1,2,1,1,2,1,2,2,1,1 +Packed 
-stream= 199999999A659A6599A6599A599A659A50 +^ Apart | 010201720A28015400C8015404B0000000000A01271042199999999A659A6599A6599A599A659A50 | 
-</code>+^ Close | 010201720A28015400C8015404B0000000000A01271042199999999A659A6599A6599A5999A59A50 |
  
-TOGETHER 
-<code> 
--10000,370,-2600,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-1200,340,-200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-1200,340,-200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-1200,340,-200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-200,340,-1200,340,-200,340,-1200,340,-1200,340,-200,340,-200,-10000 
- 
-indexlist=0,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,2,1,2,1,1,2,1,2,2,1,2,1,1,2,1,2,1,2,2,1,2,1,1,2,1,2,1,2,2,1,1,2,1,2,1,2,1,2,2,1,2,1,1,2,1,2,2,1,1 
- 
-stream=199999999A659A6599A6599A5999A59A50 
-</code> 
  • livebox/universalrf.1386755934.txt.gz
  • Last modified: 2013/12/11 09:58
  • by brett