Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
livebox:universalrf [2013/10/20 14:56] – [Generic RF Tx for the HAH] minerva9 | livebox:universalrf [2013/12/18 20:59] – [HomeEasy Dimmable (advanced)] mark_baldwin | ||
---|---|---|---|
Line 222: | Line 222: | ||
\\ | \\ | ||
Arduino code [[http:// | Arduino code [[http:// | ||
+ | |||
+ | |||
+ | ===== HomeEasy Dimmable (advanced) ===== | ||
+ | Devices tested include the HE206 (dimmable ceiling rose) and the HE307 (dimmable wall socket). The HE307 sockets have ' | ||
+ | < | ||
+ | pulsedef=0200FA09C400FA00FA00FA044C00FA0000 | ||
+ | burstcount=12 | ||
+ | interburstdelay=10000 | ||
+ | frames=66 | ||
+ | </ | ||
+ | |||
+ | 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, | ||
+ | |||
+ | 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, | ||
+ | |||
+ | 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: | ||
+ | < | ||
+ | Stream = 1999999A5999A5A5A599A659A59A65A580 | ||
+ | PulseDef = 0200FA09C400FA00FA00FA044C00FA0000 | ||
+ | Burst count = 12 | ||
+ | Interburst delay = 10000 | ||
+ | Frames = 66 | ||
+ | </ | ||
+ | |||
+ | 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, | ||
+ | |||
+ | level 5 = 0101, which is 1, | ||
+ | |||
+ | While experimenting with RF helper I have found that ' | ||
+ | |||
+ | Odd addresses (bit 0 set to 1) | ||
+ | ^ Suffix ^ Level ^ | ||
+ | | 599A40| DIM 1 | | ||
+ | | 59A580| DIM 2 | | ||
+ | | 59A640| DIM 3 | | ||
+ | | 5A5980| DIM 4 | | ||
+ | | 5A5A40| DIM 5 | | ||
+ | | 5A6580| DIM 6 | | ||
+ | | 5A6640| DIM 7 | | ||
+ | | 659980| DIM 8 | | ||
+ | | 659A40| DIM 9 | | ||
+ | | 65A580| DIM 10 | | ||
+ | | 65A640| DIM 11 | | ||
+ | | 665980| DIM 12 | | ||
+ | | 665A40| DIM 13 | | ||
+ | | 666580| DIM 14 | | ||
+ | | 666640| DIM 15 | | ||
+ | |||
+ | Even addresses (bit 0 set to 0) | ||
+ | ^ Suffix ^ Level ^ | ||
+ | | 999A40| DIM 1 | | ||
+ | | 99A580| DIM 2 | | ||
+ | | 99A640| DIM 3 | | ||
+ | | 9A5980| DIM 4 | | ||
+ | | 9A5A40| DIM 5 | | ||
+ | | 9A6580| DIM 6 | | ||
+ | | 9A6640| DIM 7 | | ||
+ | | A59980| DIM 8 | | ||
+ | | A59A40| DIM 9 | | ||
+ | | A5A580| DIM 10 | | ||
+ | | A5A640| DIM 11 | | ||
+ | | A65980| DIM 12 | | ||
+ | | A65A40| DIM 13 | | ||
+ | | A66580| DIM 14 | | ||
+ | | 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 422: | Line 576: | ||
Note that the red LED on the relay module is illuminated when 12V power is applied. It doesn' | Note that the red LED on the relay module is illuminated when 12V power is applied. It doesn' | ||
+ | |||
+ | ====== Decoded RF transmitters ====== | ||
+ | |||
+ | ===== HE305 ===== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Pulse definition | ||
+ | ^ ::: ^ HI ^ LO ^ | ||
+ | | 0 | 370 | 2600 | | ||
+ | | 1 | 350 | 200 | | ||
+ | | 2 | 350 | 1200 | | ||
+ | |||
+ | < | ||
+ | pulsedef=0201720A28015400C8015404B000000000 | ||
+ | frames=66 | ||
+ | interburst=10000 | ||
+ | </ | ||
+ | |||
+ | ^ Contact ^ Stream ^ | ||
+ | | {{: | ||
+ | | {{: | ||
+ | |||
+ | Packed | ||
+ | ^ Apart | 010201720A28015400C8015404B0000000000A01271042199999999A659A6599A6599A599A659A50 | | ||
+ | ^ Close | 010201720A28015400C8015404B0000000000A01271042199999999A659A6599A6599A5999A59A50 | | ||