User Tools

Site Tools


rc101_v7_0

Differences

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

Link to this comparison view

rc101_v7_0 [2015/11/27 22:09] (current)
Line 1: Line 1:
 +**RC101 & RC102**
  
 +^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^
 +|RC101|rc101|
 +|RC102|rc102|
 +
 +==== 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
 +-a --all            send command to all devices with this id
 +</​code>​
 +
 +==== Config ====
 +<​code>​
 +"​devices":​ {
 + "​Lamp":​ {
 + "​protocol":​ [ "​rc101"​ ],
 + "​id":​ [{
 + "​id":​ 100,
 + "​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|
 +|confirm|0|1 or 0|Ask for confirmation when switching device|
 +
 +==== Protocol ====
 +
 +This protocol sends 50 pulses like this
 +<​code>​
 +241 723 241 723 241 723 241 723 241 723 241 723 723 241 241 723 241 723 723 241 241 723 241 723 241 723 723 241 723 241 723 241 723 241 241 723 241 723 241 723 723 241 241 723 241 723 241 723 241 723 241 723 241 723 241 723 241 723 241 723 241 723 241 723 241 8194
 +</​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 30 groups of 2 pulses (and thereby dropping the ''​footer''​ pulses).
 +
 +<​code>​
 +241 723
 +241 723
 +241 723
 +241 723
 +241 723
 +241 723
 +723 241
 +241 723
 +241 723
 +723 241
 +241 723
 +241 723
 +241 723
 +723 241
 +723 241
 +723 241
 +723 241
 +241 723
 +241 723
 +241 723
 +723 241
 +241 723
 +241 723
 +241 723
 +241 723
 +241 723
 +241 723
 +241 723
 +241 723
 +241 723
 +241 723
 +241 723
 +241 8194
 +</​code>​
 +
 +If we now look at carefully at these groups you can distinguish two types of groups:
 +  - ''​241 723''​
 +  - ''​723 241''​
 +
 +So the first group is defined by a high 2th pulse and the second group has a low 2rd pulse. In this case we say a high 2rd pulse means a 0 and a low 2rd pulse means a 1. We then get the following output:
 +
 +<​code>​
 +00000010010001111000100000000000
 +</​code>​
 +
 +Each (group) of numbers has a specific meaning:
 +  * Unit: 21 till 23 (inversed)
 +  * ID: 0 till 19 (inversed)
 +  * State: 20
 +  * Misc: 24 till 31 (always 0)
 +
 +<​code>​
 +00000010010001111000 1 000 00000000
 +</​code>​
 +
 +  * The ''​Unit''​ is 7 substracted by this binary number
 +  * The ''​ID''​ is defined as a binary number
 +  * The ''​State''​ defines whether a devices needs to be turned On or Off
 +  * The ''​Misc''​ date is just zero
 +
 +So this code represents:
 +
 +  * Unit: 123456
 +  * ID: 7
 +  * Fixed: always 0
 +  * State: On
 +
 +Notice that this protocol also support the ''​all''​ command. This is done by sending specific ''​unit''​ codes together with the requested ''​state''​ (inversed):
 +
 +  * All On: unit = 7, state = 0
 +  * All Off: unit = 6, state = 1
 +
 +So in the example we actually sent:
 +
 +  * Unit: 123456
 +  * ID: 7
 +  * Fixed: always 0
 +  * State: Off
 +  * All: Yes
rc101_v7_0.txt ยท Last modified: 2015/11/27 22:09 (external edit)