From 2a09f770cacc0f77d001b31bbb431aae2e483e39 Mon Sep 17 00:00:00 2001 From: Matt Way Date: Sat, 20 Apr 2024 11:46:49 +1000 Subject: [PATCH] Updated comment about a particular byte offset --- README.md | 2 +- src/BufferFiller.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0296a90..7634280 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ A PowerView packet consists of a header (which contains a variable length addres | 4 | 8 | Rolling Code 1 | This byte is incremented by 0x01 each time a packet is sent. | `0x00`-`0xFF` | | 5 | 16 | Fixed | These two bytes are always the same. | `0xFFFF` | | 7 | 16 | Physical Source ID | The ID of device that actually sent the packet (can be different to Logical Source ID when a repeater is being used) | `0x0000`-`0xFFFF` | -| 9 | 8 | Fixed | This byte is always the same | `0x86` | +| 9 | 8 | Unknown | This byte might indicate if the packet was retransmitted by a repeater | `0x86` (when sent from hub or remote), `0x85` (when sent from repeater) | | 10 | 8 | Address Type | Indicates which type of address this packet is using. | `0x04` (Broadcast), `0x05` (Unicast), `0x06` (Groups) | | 11 | 8 | Rolling Code 2 | This byte is incremented by 0x01 each time a packet is sent. | `0x00`-`0xFF` | | 12 | Varies | Address | This section is a variable length. | Broadcast, Unicast, or Groups section (see next section) | diff --git a/src/BufferFiller.cpp b/src/BufferFiller.cpp index 8b7793c..2e6eda3 100644 --- a/src/BufferFiller.cpp +++ b/src/BufferFiller.cpp @@ -167,7 +167,7 @@ void BufferFiller::setConstants(uint8_t *buffer) { buffer[5] = 0xFF; // Constant buffer[6] = 0xFF; // Constant - buffer[9] = 0x86; // Constant? + buffer[9] = 0x86; // Not sure, seems to be 0x85 if a packet is retransmitted by a repeater } void BufferFiller::setSourceAddress(uint8_t *buffer, uint8_t offset, uint16_t sourceID) {