diff options
author | tobiaswaldvogel <tobias.waldvogel@trustanywhere.com> | 2017-04-22T19·41+0200 |
---|---|---|
committer | Matthew Garrett <mjg59-github@srcf.ucam.org> | 2017-04-22T19·41-0700 |
commit | 846cc353665154d7f38623154abe6cada0bf6a45 (patch) | |
tree | 43c2a0f851d76cbd082e288fd717f3d2ac85c7d2 | |
parent | 3c44422b607ddd09a6a48016e88aabb826ec72d5 (diff) |
More details about the data structure for IR and RF pulses (#58)
* Added more details to payload structure
-rw-r--r-- | protocol.md | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/protocol.md b/protocol.md index 387a6e79da2f..fc58c32e55c5 100644 --- a/protocol.md +++ b/protocol.md @@ -158,7 +158,20 @@ Send the following payload with a command byte of 0x006a |------|--------| |0x00|0x02| |0x01-0x03|0x00| -|0x04-end|data| +|0x04|0x26 = IR, 0xb2 for RF 433Mhz, 0xd7 for RF 315Mhz| +|0x05|repeat count, (0 = no repeat, 1 send twice, .....)| +|0x06-0x07|Length of the following data in little endian| +|0x08 ....|Pulse lengths in 32,84ms units (ms * 269 / 8192 works very well)| +|....|0x0d 0x05 at the end for IR only| + +Each value is represented by one byte. If the length exceeds one byte +then it is stored big endian with a leading 0. + +Example: The header for my Optoma projector is 8920 4450 +8920 * 269 / 8192 = 0x124 +4450 * 269 / 8192 = 0x92 + +So the data starts with `0x00 0x1 0x24 0x92 ....` Todo |