User Tools

Site Tools


rev_switch_old

Differences

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

Link to this comparison view

rev_switch_old [2014/04/22 15:28]
curlymo
rev_switch_old [2015/11/27 21:09]
Line 1: Line 1:
-**Rev Telecontrol Old** 
  
-^Feature^Support^ 
-|Sending|{{http://​wiki.pilight.org/​lib/​images/​supported.gif}}| 
-|Receiving|{{http://​wiki.pilight.org/​lib/​images/​supported.gif}}| 
-|Config|{{http://​wiki.pilight.org/​lib/​images/​supported.gif}}| 
- 
-Supported Brands 
-^Brand^Protocol^ 
-|Rev|Rev Old| 
- 
-Sender Arguments 
-<​code>​ 
--t --on             send an on signal 
--f --off            send an off signal 
--u --unit=unit ​     control a device with this unit code 
--i --id=id ​         control a device with this id 
-</​code> ​ 
- 
-Config 
-<​code>​ 
-        "​living":​ { 
-                "​name":​ "​Living",​ 
-                "​switch":​ { 
-                        "​name":​ "​switch",​ 
-                        "​protocol":​ [ "​rev_switch_old"​ ], 
- ​ "​id":​ [{ 
- "​id":​ 1, 
- "​unit":​ 1 
- }], 
-                        "​state":​ "​off"​ 
-                } 
-        } 
-</​code>​ 
- 
-  * ID: 0-63 
-  * Unit: 1/2/4/8 but allowed till 15 (never tested yet) 
- 
-**Unit and device id's** 
- 
-The old Rev devices use DIP switches: First six for ID and last 4 for units itself. 
- 
-Optional Settings 
- 
-^Setting^Default^Format^Description^ 
-|states|"​on,​off"​|Comma separated list|The order of the different states| 
-|readonly|0|1 or 0|Disable controlling this device from the GUIs| 
- 
-Protocol 
- 
-This protocol sends 50 pulses like this 
-<​code>​ 
-256 768 256 768  
-256 768 768 256  
-256 768 768 256  
-256 768 768 256  
-256 768 768 256  
-256 768 768 256  
-256 768 256 768  
-256 768 768 256  
-256 768 768 256  
-256 768 768 256  
-256 768 768 256  
-256 768 256 768  
-256 8704 
-</​code>​ 
- 
-It has no ''​header''​ and the last 2 pulses are the ''​footer''​. These are meant to identify the pulses as genuine, and the protocol also has some bit checks to filter false positives. We don't use them for further processing. The next step is to transform this output into 12 groups of 4 pulses (and thereby dropping the ''​footer''​ pulses). 
- 
-<​code>​ 
-256 768 256 768  
-256 768 768 256  
-256 768 768 256  
-256 768 768 256  
-256 768 768 256  
-256 768 768 256 
-  
-256 768 256 768  
-256 768 768 256  
-256 768 768 256  
-256 768 768 256 
-  
-256 768 768 256  
-256 768 256 768  
-256 8704 
-</​code>​ 
- 
-If we now look at carefully at these groups you can distinguish two types of groups: 
-  - ''​256 768 256 768''​ 
-  - ''​256 768 768 256''​ 
- 
-  - pulse at first and third place is translated to high = 1 
-  - pulse at first and fourth place is translated to low = 0 
- 
-<​code>​ 
-100000 1000 0 1 
-</​code>​ 
- 
-<​code>​ 
-Device Bit(from left) ON       OFF 
-A       ​7 ​    ​000000100001 ​    ​000000100010 
-B       ​8 ​    ​000000010001 ​    ​000000010010 
-C       ​10 ​   000000000101 ​    ​000000000110 
-D       ​9 ​    ​000000001001 ​    ​000000001010 
-(C/D are really crossed) 
- 
-Bit12 set = on 
-Bit11 set = Off 
-</​code>​ 
- 
-Each (group) of numbers has a specific meaning: 
-  * ID: 0 till 5  
-  * Device: 6 till 10 
-  * OFF: 11 set only 
-  * ON: 12 set only 
- 
-ID (Bit 1-6 from left) 
-123456 
-Each DIP switch represents one bit set or not 
-<​code>​ 
-1set    100000 
-2set    010000 
-1+2 set 110000 
-All set 111111 
-</​code>​ 
rev_switch_old.txt ยท Last modified: 2015/11/27 21:09 (external edit)