RC101 & RC102
Brand | Protocol |
---|---|
RC101 | rc101 |
RC102 | rc102 |
-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
"devices": { "Lamp": { "protocol": [ "rc101" ], "id": [{ "id": 100, "unit": 0 }], "state": "off" } } "gui": { "Lamp": { "name": "TV Backlit", "group": [ "Lamps" ], "media": [ "all" ] } }
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 |
This protocol sends 50 pulses like this
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
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).
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
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:
00000010010001111000100000000000
Each (group) of numbers has a specific meaning:
00000010010001111000 1 000 00000000
Unit
is 7 substracted by this binary numberID
is defined as a binary numberState
defines whether a devices needs to be turned On or OffMisc
date is just zeroSo this code represents:
Notice that this protocol also support the all
command. This is done by sending specific unit
codes together with the requested state
(inversed):
So in the example we actually sent: