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
Next revisionBoth sides next revision
livebox:universalrf [2012/11/25 11:45] – [Bye Bye Standby] minerva9livebox:universalrf [2013/12/18 21:06] – [HomeEasy Dimmable (advanced)] mark_baldwin
Line 1: Line 1:
 ====== Generic RF Tx for the HAH ====== ====== Generic RF Tx for the HAH ======
  
-** Requires a CHIP upgrade to the 328 **+** Requires a CHIP upgrade to the 328 (all kits from the Shop now ship with this) **
  
 Historically, the RF handling in the HAH was limited to a single protocol type, chosen from those that were supported. This was an annoying limitation.  Further, we held rather a lot of 'static' data on the micro to define the pattern of the bits that were sent. Historically, the RF handling in the HAH was limited to a single protocol type, chosen from those that were supported. This was an annoying limitation.  Further, we held rather a lot of 'static' data on the micro to define the pattern of the bits that were sent.
Line 32: Line 32:
 {{:livebox:configure_rf_b305.png|}} {{:livebox:configure_rf_b305.png|}}
  
-GUI extended so up to 32 different RF devices can be controlled.  This is an arbitrary maximum there is no limit but I figure it will do for now until somebody asks for more.  The RF Delay allows multiple RF units to be controlled from the web GUI, it inserts a delay, default of 500 milliseconds, before issuing each command.+GUI extended so up to 32 different RF devices can be controlled.  This is an arbitrary maximum there is no limit but I figure it will do for now until somebody asks for more.  The RF Delay allows multiple RF units to be controlled (in a single action) from the web GUI. It inserts a delay, default of 500 milliseconds, before issuing each command.
  
 ====== Sample 2-bit encoding ====== ====== Sample 2-bit encoding ======
Line 222: Line 222:
 \\ \\
 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 269: Line 403:
  
 Use http://www.dbzoo.com/public/rf-helper.html to generate more combinations. Use http://www.dbzoo.com/public/rf-helper.html to generate more combinations.
-<note tip>It has been found that Byron RS3/RS17 RF Plugs and Byron RS61 ceiling switches respond to BBSB codes</note>+<note tip>It has been found that Byron RS3/RS17 RF Plugs and Byron RS61 ceiling switches respond to BBSB codes. The Home Easy HE322W units also work with these codes.</note>
 {{:livebox:rs17.jpg?180|RS61}}{{:livebox:rs61.jpg?180|RS17}} {{:livebox:rs17.jpg?180|RS61}}{{:livebox:rs61.jpg?180|RS17}}
- 
 ===== Lidl RF socket ===== ===== Lidl RF socket =====
 {{ rfplug.jpg}} {{ rfplug.jpg}}
Line 423: Line 556:
  
 Note that the red LED on the relay module is illuminated when 12V power is applied. It doesn't indicate the on/off state of the relay. Note that the red LED on the relay module is illuminated when 12V power is applied. It doesn't indicate the on/off state of the relay.
 +
 +====== Decoded RF transmitters ======
 +
 +===== HE305 =====
 +
 +{{ :livebox:he305.jpg|}}
 +
 +Pulse definition
 +^ ::: ^ HI ^ LO ^
 +| 0 | 370 | 2600 | 
 +| 1 | 350 | 200 |
 +| 2 | 350 | 1200 |
 +
 +<code>
 +pulsedef=0201720A28015400C8015404B000000000
 +frames=66
 +interburst=10000
 +</code>
 +
 +^ Contact ^ Stream ^
 +| {{:livebox:he305-apart.png?linkonly|Apart}} | 199999999A659A6599A6599A599A659A50 |
 +| {{:livebox:he305-together.png?linkonly|Close}} | 199999999A659A6599A6599A5999A59A50 |
 +
 +Packed
 +^ Apart | 010201720A28015400C8015404B0000000000A01271042199999999A659A6599A6599A599A659A50 |
 +^ Close | 010201720A28015400C8015404B0000000000A01271042199999999A659A6599A6599A5999A59A50 |
  
  • livebox/universalrf.txt
  • Last modified: 2014/06/08 09:20
  • by minerva9