User Tools

  • (equal to forum credentials)

Site Tools


plearn

pilight-learn

pilight-learn does the same as pilight-debug but is more extensive. It will try to figure out as much as possible about your protocol. At this moment only switches are supported, so not dimmers or others devices. Just follow the steps of the learner and when you where successfull, it will print the following information (in case of Klik Aan Klik Uit):

root@pi:~# pilight-learn
1. Please send and hold one of the OFF buttons. Done.

2. Please send and hold the ON button for the same device
   as for which you send the previous OFF button. Done.

3. Please send and hold (one of the) ALL buttons.
   If you're remote doesn't support turning ON or OFF
   all devices at once, press the same OFF button as in
   the beginning. Done.

4. Please send and hold the ON button with the lowest ID. Done.

5. Please send and hold the ON button with the second to lowest ID. Done.

6. Please send and hold the ON button with the highest ID. Done.

--[RESULTS]--

header:         10
pulse:          5
footer:         38
rawLength:      132
binaryLength:   33

on-off bit(s):  27
all bit(s):     26
unit bit(s):    28 29 30 31

Raw code:
276 2833 275 216 285 1356 279 215 282 1356 273 221 276 1352 276 216 282 1356 272 219 275 1353 272 228 266 1365 269 219 279 1360 270 225 269 1361 269 224 269 1359 273 242 280 1358 271 224 313 1343 271 226 274 1365 269 222 274 1366 269 225 272 1362 266 228 267 1366 262 227 265 1362 267 223 274 1363 267 227 268 1364 262 230 264 1366 267 224 274 1371 266 234 263 1362 266 226 275 1366 265 227 274 1364 265 228 264 1365 263 235 262 1384 251 1373 264 239 265 229 262 1367 264 1368 260 257 267 1368 264 232 306 1361 264 230 265 1360 268 230 264 1363 259 235 263 11306
Raw simplified:
On:     010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001010000010100000100010001010001
Off:    010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001010000010100000100010001010001
All:    010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001010001000001000100010001000101
Unit 1: 010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001010000010100000100010001010001
Unit 2: 010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001010000010100000100010100000101
Unit 3: 010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001010000010100010001000100010001
Binary code:
On:     000000000000000000000000010100011
Off:    000000000000000000000000010000011
All:    000000000000000000000000011000001
Unit 1: 000000000000000000000000010100011
Unit 2: 000000000000000000000000010100101
Unit 3: 000000000000000000000000010111111

If may be possible that the learner prints out different values as shown here. This may happen in your device is limited in the amount of values it can send. The only variable that isn't recorded, is the ID. Most of the times, the ID is stored in the remaining (sequence) of bits. In case of Klik Aan Klik Uit, the ID is stored in bits 0 till 25. Also notice that both the debugger and the learner are highly experimental.

In pilight 2.1 pilight-learn shows the wrong binary code for switches with the dio_switch protocol. Remove the first and last bit from the binary code to get the correct binary code.

plearn.txt · Last modified: 2014/01/20 23:25 by yelti