User Tools

Site Tools


rev_switch_old

Rev Telecontrol Old

FeatureSupport
Sending
Receiving
Config

Supported Brands

BrandProtocol
RevRev Old

Sender Arguments

-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

Config

        "living": {
                "name": "Living",
                "switch": {
                        "name": "switch",
                        "protocol": [ "rev_switch_old" ],
 			"id": [{
				"id": 1,
				"unit": 1
			}],
                        "state": "off"
                }
        }
  • 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

SettingDefaultFormatDescription
gui-readonly01 or 0Disable controlling this device from the GUIs

Protocol

This protocol sends 50 pulses like this

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

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).

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

If we now look at carefully at these groups you can distinguish two types of groups:

  1. 256 768 256 768
  2. 256 768 768 256
  1. pulse at first and third place is translated to high = 1
  2. pulse at first and fourth place is translated to low = 0
100000 1000 0 1
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

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

1set    100000
2set    010000
1+2 set 110000
All set 111111
rev_switch_old.txt · Last modified: 2015/11/27 22:09 (external edit)