Skip to content

docs: correct BLE v7 manufacturer data layout, remove dead v7 parser - #123

Merged
8none1 merged 1 commit into
mainfrom
docs/v7-state-layout
Nov 11, 2026
Merged

8none1 merged 1 commit into
mainfrom
docs/v7-state-layout

Conversation

@8none1

@8none1 8none1 commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Follow-up to #119 / #120.

protocol_docs/02_manufacturer_data.md said v7 power is state_data[11] (mfr_data[14]). The #119 capture has power as the first state byte (data[1]). The unused parse_v7_with_service_data was written to the same wrong layout.

Changes:

  • Doc 02: add the 14-byte service data form (real capture), rewrite the v7 section (manufacturer data is the state array only, data[1:26] in Bleak terms, checked against ZGHBDevice.java), fix the code sample and key points, list what is still unverified.
  • DISCOVERIES.md: correction entry.
  • protocol.py: remove parse_v7_with_service_data. A grep finds no callers.

No behaviour change. Tests: 45 passed.

🤖 Generated with Claude Code

…119)

02_manufacturer_data.md put v7 power at state_data[11]; the issue #119
capture shows it is the first state byte. Add the 14-byte service data
form and the v7 state array with the real capture, note what is still
unverified, log the correction in DISCOVERIES.md, and remove
parse_v7_with_service_data, which was written to the wrong layout and
had no callers.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@8none1
8none1 merged commit a478ab2 into main Nov 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant