Repository navigation
Description
Product impact
Primary loop layer: UX-Polish — incorrect Bee battery/charging information undermines trust in capture readiness. No claim of data loss from this parser defect.
Bug and reproduction
The mobile Bee connector assumes every C00F battery payload is [percentage, charging]. A Bee tested with cached firmware 0.6.20 instead returned:
Full control response: 00 80 0f c0 db 0f 00
C00F payload: db 0f 00
Passing this payload to BeeDeviceConnection.parseBatteryResponse on current main (657a94bbbbc2fd157396aa05594fb5d596a1df77) gives:
{'level': 219, 'is_charging': true}The three-byte format is little-endian millivolts plus a charging-state byte: 0x0fdb = 4059 mV, state 0 = not charging. The voltage byte is not a percentage. This also explains misleading low readings when the low byte happens to fall between 0 and 100; clamping the current result is not a fix.
Expected behavior
Decode the voltage-format response and derive a percentage estimate using the matching calibration; retain the older two-byte percentage format. Read voltage-format charging from byte 2 (state 1 means charging). Reject unsupported lengths/implausible voltage readings instead of displaying their low byte as charge.
The Bee Frontier voltage curve maps this sample to about 76%. This is a calibration estimate, not an independently measured remaining capacity, and hardware-generation applicability beyond this device needs confirmation.
Environment and evidence limits
- Android; Omi 1.0.558 / build 1400.
- Cached Bee firmware 0.6.20; cached generic model/hardware labels do not independently identify a hardware generation.
- The raw response was captured on a patched/rooted Android connection path, not reproduced using an unmodified stock connection. The exact payload can nevertheless exercise the current upstream parser without BLE, authentication or audio.
- A local compatibility patch produced a subsequent 77% UI reading, preserved checked recording settings and resumed audio forwarding. That later reading is not the identical instantaneous 4059 mV sample, nor proof of an upstream Flutter build.
- No user/account identifiers, audio, transcripts, APKs or proprietary disassembly are attached. Account access is unnecessary for the parser reproduction.
Prior art and proposed scope
- the custom connection abstraction that helps integrate new devices more easily, adding support for the Bee Pioneer device #3339 introduced the original Bee Pioneer parser.
- Battery indicator accuracy between phone app and device #4599 / [CV1] - Sometimes Omi can't sent battery percentage over BLE #4077 concern Omi/CV1 battery reporting, rather than this Bee C00F format mismatch.
- My Bee audio: verified post-decryption AAC capture on Android and external-source bridge proposal #20828 concerns a separate audio-bridge proposal; this issue does not request encrypted-audio support.
- Current macOS
BeeDeviceConnection.swifthas the same first-byte assumption, but I have not device-tested that platform. A mobile-only parser fix and offline regression tests are proposed first.
Refreshed issue/PR searches on October 15 found no matching voltage-format fix; current mobile source still has the two-byte assumption.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIn review
Activity
fix(bee): support 3-byte millivolts battery format and clamp legacy p…
test(bee): add unit tests for 2-byte percentage and 3-byte voltage ba…
hardik4love-lang commentedon Oct 15, 2026
Opened PR #21768 addressing this:
[percentage, charging]) from newer 3-byte millivolts payloads ([mv_low, mv_high, charging_state]).3000 mV – 4500 mVLiPo window by returningnull.0x0fdb = 4059 mVto 77% when discharging).app/test/unit/bee_connection_battery_test.dartverifying all branches, the 4059 mV sample, boundaries, and out-of-range rejection.fix(test): remove unused models.dart import in bee_connection_battery…
fix(bee): support 3-byte millivolts battery format and clamp legacy p…
hardik4love-lang commentedon Oct 16, 2026
This issue is now resolved in PR #21768 (merged by @kodjima33 into main):
Bounty Claim Details
@kodjima33 @josancamon19