User Tools

  • (equal to forum credentials)

Site Tools


pdebug

pilight-debug

pilight-debug will output a list of raw information about the received code. This information can guide the creation of a new protocol. The raw output can also be used by the raw protocol to transmit yet unsupported codes.

Please note: To avoid conflicts, pilight-debug requires that you stop the pilight-daemon service.

root@pi:~# pilight-debug
header:      	10
pulse:          5
footer:         38
rawLength:      132
binaryLength:   33
Raw code:
286 2825 286 201 289 1337 287 209 283 1351 287 204 289 1339 288 207 288 1341 289 207 281 1343 284 205 292 1346 282 212 283 1348 282 213 279 1352 282 211 281 1349 282 210 283 1347 284 211 288 1348 281 211 285 1353 278 213 280 1351 280 232 282 1356 279 213 285 1351 276 215 285 1348 277 216 278 1359 278 216 279 1353 272 214 283 1358 276 216 276 1351 278 214 284 1357 275 217 276 1353 270 217 277 1353 272 220 277 1351 275 220 272 1356 275 1353 273 224 277 236 282 1355 272 1353 273 233 273 222 268 1358 270 219 277 1361 274 218 280 1358 272 1355 271 243 251 11302
Binary code:
000000000000000000000000010100011

<ToDo:>What is footer and what is header? What is footer? How is binary code evaluated or determined from pulse/pulse train/pulse length?</ToDo:>

Any single number measures the time difference between a HIGH-LOW or LOW-HIGH transition (for example, it took 286 microsec from the first measured HL to the next LH). There are 132 of that numbers in the debugged code, therefore rawLength or rawlen is 132. The last transition is called footer (also pulselen) and usually pulselen*34 is reported as the last number in this long list. <ToDo:> What is pulse?</ToDo>.

You can now use the raw code to control your device:

root@pi:~# pilight-send -p raw -c "286 2825 286 201 289 1337 287 209 283 1351 287 204 289 1339 288 207 288 1341 289 207 281 1343 284 205 292 1346 282 212 283 1348 282 213 279 1352 282 211 281 1349 282 210 283 1347 284 211 288 1348 281 211 285 1353 278 213 280 1351 280 232 282 1356 279 213 285 1351 276 215 285 1348 277 216 278 1359 278 216 279 1353 272 214 283 1358 276 216 276 1351 278 214 284 1357 275 217 276 1353 270 217 277 1353 272 220 277 1351 275 220 272 1356 275 1353 273 224 277 236 282 1355 272 1353 273 233 273 222 268 1358 270 219 277 1361 274 218 280 1358 272 1355 271 243 251 11302"

pdebug.txt · Last modified: 2016/12/20 19:28 by andies