Repository navigation
2.34.0: Bluetooth levels live, case % kept, nearby earbuds - #75
Merged
Merged
Conversation
- Sony: read the support list and ask the battery types the model has (set 2 threshold types 9 / 10 / 8: WF-C710N answered none of 1 / 2 / 0). Channel open for every connected Sony device, asked every 20 s. - Last levels kept per device with their time; case level kept while both buds are out of the case. Saved across restarts. - Helper module: Google Fast Pair battery field (1 % steps) next to Apple's; runs whenever the Bluetooth page reads, paired or not. Unpaired devices heard nearby are listed last. - --scan mode in mod_bluetooth.exe and a section 9 in --bt-debug. - Page re-read every 5 s (overview 15 s).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Rajhans · project thread
What
06 00) and asks the battery types the model has. Newer set-2 models answer only the threshold types 9 / 10 / 8. Channel opened for every connected Sony device, asked every 20 s (changes arrive as notifications in between).levels_at,case_at, saved in the device list, fields 18 / 19). Page says "case 20 min ago" / "Last read 2 h ago"; old numbers drawn dim.mod_bluetooth.exealso decodes the Google Fast Pair battery field (service data 0xFE2C, 1 % steps) and runs whenever the Bluetooth reader is active, paired or not. Fast Pair buds with the same L / R as a connected device add their case to it; unmatched readings are listed last as "Nearby". A lone unknown Apple model goes onto the paired AirPods only at >= -60 dBm.mod_bluetooth.exe --scan [s]dumps every advertisement;--bt-debugsection 9 runs it for 20 s; Sony probe shows the support list and every battery type.Decimals: no device sends them (Sony, Logitech, Fast Pair whole %, Apple 10 % steps).
Verified on Rajhans's PC (local build of 32703d7)
cargo test --release: 463 passed, 0 failed.--bt-watch: WF-C710N L 40 / R 40 / case 100 (was blank), MX Master 4 75, AirPods Pro (not connected) R 85 / case 95 from BLE.--scan: WF-C710N's Fast Pair advert decoded L 40 / R 40.Generated by Claude Code