User Tools

Site Tools


arctech_switch_old_v6_0

Differences

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

Link to this comparison view

arctech_switch_old_v6_0 [2015/02/26 13:39]
Luppie [Supported Brands]
arctech_switch_old_v6_0 [2015/11/27 22:09]
Line 1: Line 1:
-**Arctech 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^ 
-|Cogex|cogex| 
-|KlikAanKlikUit|kaku_switch_old| 
-|Eurodomest|kaku_switch_old| 
-|Intertechno|intertechno_old| 
-|Düwi Terminal|duwi| 
- 
-==== 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>​ 
-"​devices":​ { 
- "​Lamp":​ { 
- "​protocol":​ [ "​kaku_switch_old"​ ], 
- "​id":​ [{ 
- "​id":​ 10, 
- "​unit":​ 0 
- }], 
- "​state":​ "​off"​ 
- } 
-} 
-"​gui":​ { 
- "​Lamp":​ { 
- "​name":​ "TV Backlit",​ 
- "​group":​ [ "​Lamps"​ ], 
- "​media":​ [ "​all"​ ] 
- } 
-} 
-</​code>​ 
- 
-==== Optional Settings ==== 
- 
-GUI Settings 
- 
-^Setting^Default^Format^Description^ 
-|readonly|0|1 or 0|Disable controlling this device from the GUIs| 
- 
-==== Notes ==== 
- 
-The old KlikAanKlikUit devices work setting two wheels: group (0-H) and device number (0-16). To control a device from pilight you need to send the correct group and unit id, these do not correspond 1:1.  
- 
-A-1 on the unit corresponds with unit 0 id 0 in pilight 
-A-2 on the unit corresponds with unit 0 id 1 in pilight 
-etc. 
- 
-==== Protocol ==== 
- 
-This protocol sends 50 pulses like this 
-<​code>​ 
-295 1180 295 1180 
-295 1180 1180 295 
-295 1180 295 1180 
-295 1180 1180 295 
-295 1180 1180 295 
-295 1180 1180 295 
-295 1180 1180 295 
-295 1180 1180 295 
-295 1180 295 1180 
-295 1180 1180 295 
-295 1180 1180 295 
-295 1180 1180 295 
-295 11210 
-</​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>​ 
-295 1180 295 1180 
-295 1180 1180 295 
-295 1180 295 1180 
-295 1180 1180 295 
-295 1180 1180 295 
- 
-295 1180 1180 295 
-295 1180 1180 295 
-295 1180 1180 295 
-295 1180 295 1180 
-295 1180 1180 295 
- 
-295 1180 1180 295 
-295 1180 1180 295 
- 
-295 11210 
-</​code>​ 
- 
-If we now look at carefully at these groups you can distinguish two types of groups: 
-  - ''​295 1180 1180 295''​ 
-  - ''​295 1180 295 1180''​ 
- 
-So the first group is defined by a high 3th pulse and the second group has a low 3rd pulse. In this case we say a high 3rd pulse means a 0 and a low 3rd pulse means a 1. We then get the following output: 
- 
-<​code>​ 
-10100 00010 0 0 
-</​code>​ 
- 
-Each (group) of numbers has a specific meaning: 
-  * Unit: 0 till 5 (inversed) 
-  * ID: 6 till 10 (inversed) 
-  * Fixed: 11 (always 0) 
-  * State: 12 (inversed) 
- 
-<​code>​ 
-10100 00010 0 0 
-</​code>​ 
- 
-  * The ''​Unit''​ is defined as a binary number 
-  * The ''​ID''​ is defined as a binary number 
-  * The ''​Fixed''​ is always 0 
-  * The ''​State''​ defines whether a devices needs to be turned On or Off 
- 
-So this code represents: 
- 
-  * Unit: 20 
-  * ID: 1 
-  * Fixed: always 0 
-  * State: Off 
- 
-Another example: 
- 
-  * Unit: 0 
-  * ID: 4 
-  * Fixed: always 0 
-  * State: On 
- 
-<​code>​ 
-00000 00100 0 1 
-</​code>​ 
- 
-Furthermore the protocol filters out false positives by checking if: 
-  - Every 1st bit of the first 12 groups of 4 bits is always LOW (0) 
-  - 2nd bit of the first 12 groups of 4 bits is always HIGH (1) 
-  - 3rd and 4th bit of the first 12 groups of 4 bits are different (NOT EQUAL) 
-  - Bits 49 and 50 are LOW (0) and HIGH (1) respectively (fixed footer) 
-This makes the protocol more accurate because it will respond rarely now when sartano commands are sent. 
- 
-==== Intertechno ==== 
-The Intertechno switches listens to the kaku_switch_old protocol, but the remote doesn'​t send using the kaku_switch_old protocol. When using pilight-receive,​ the following protocols are received using the remote: 
-  * elro_800_contact 
-  * elro_800_switch 
-  * ehome 
-  * cleverwatts 
- 
-To use the Intertechno switches with the kaku_switch_old protocol on pilight, the following steps have to be performed: 
- 
-  - Hold the On/Off button until the LED flashes. 
-  - In a terminal window do: <​code>​pilight-send -p kaku_switch_old -i <choose your own ID between 1~30> -u 0 -t</​code>​ 
-  - If everything is Ok the switch is programmed. 
-  - For wall-plug 2 & 3 change the value -u 
arctech_switch_old_v6_0.txt · Last modified: 2015/11/27 22:09 (external edit)