Sync library with live findings: raw socket docs, wire reply parsing, pack-id BMS, empty-slot guard
This commit is contained in:
1 parent
3d59a75f14
commit
c11188dd0b
6 files changed
+83
-31
No files matched your search
+15
-3
@@ -86,9 +86,21 @@ instead: install the Frida hook (`blutter_out/blutter_frida.js` pattern —
|
||||
log `Socket Manager send object: ` / `receive object: `), tap *Refresh* in
|
||||
the app while joined to the AP, and compare its TX bytes against ours.
|
||||
|
||||
## Limits
|
||||
## Status (2026-10-16) — live round-trip works
|
||||
|
||||
- No live round-trip has succeeded yet from an isolated container netns
|
||||
(all probes `ECONNREFUSED`); first success needs a `10.100.1.x` source.
|
||||
Two-way comms verified against `10.100.1.1:9000` from a host on
|
||||
`10.100.1.0/24`: discovery → `1102` device-info reply (versions, `FHP_SN`,
|
||||
`BMS_SN`), per-pack BMS reads (`{"id": 1}` / `{"id": 2}` → live `batSoc`),
|
||||
EMS telemetry. `get_battery()` runs that exact sequence (discovery,
|
||||
apower, BMS packs 1–2, EMS) and returns the first SoC found; an all-zero
|
||||
BMS slot is skipped, not reported as 0 %.
|
||||
|
||||
`DEVICE_APOWER_INFO` answers `{"result": 1, "reason": -1}` on the tested
|
||||
unit — SoC comes from the BMS packs instead.
|
||||
|
||||
Remaining limits:
|
||||
|
||||
- Needs L2 reachability to `10.100.1.1` (host on the device AP or bridged
|
||||
container); the app's own socket port `18000` is closed on this unit.
|
||||
- BLE field order and `X-Device-*` binding remain open
|
||||
(`RE_DART_FINDINGS.md` Open items).
|
||||
Reference in new issue
Block a user