Files
faceclaw/app/native
Om Alve acfcf79787 Read the charging case battery (sid 0x81 GlassesCaseInfo)
The glasses relay the charging case's state on UX_GLASSES_CASE_APP_ID
(sid 0x81): GlassesCaseDataPackage{commandId=CASE_INFO, magicRandom,
caseInfo{soc, chargeStatus, lidStatus, inCaseStatus, errorCode}}, the
schema in g2-kit-unofficial's glasses_case.proto. The Even app reads it
with an empty caseInfo (ProtoBaseSettings.getGlassesCaseInfo).

Observed on G2 2.3.0.24 / Faceclaw/38: while docked the right temple
pushes a GlassesCaseInfo (flag 0x01, its own magic) on every change --
docking, lid, USB, each 1% -- and answers a read with full data; out of
the case a read comes back with an empty caseInfo. Docking pushes
{inCaseStatus=1} before the level, and proto3 drops zero fields, so a
missing soc means no level rather than 0%.

So read it once at session start (docked glasses may be fully charged
and never enter charging mode) and again on entering charging mode,
which clears the queue; pushes carry every later change. Every 0x81
frame is taken as state in onNotification (pushes skip the ack path by
flag). New readings reach TypeScript through
FaceclawBleCommunicatorListener.onCaseState (level, case-charging), on
Android and iOS. Captured frames are tests.
2026-11-01 20:38:32 +05:30
..
2026-09-22 17:26:09 -07:00
2026-09-19 20:52:36 -07:00
2026-09-19 20:52:36 -07:00
2026-09-18 23:30:07 -07:00
2026-09-18 23:30:07 -07:00
2026-09-18 23:30:07 -07:00
2026-09-18 23:30:07 -07:00
2026-09-18 23:30:07 -07:00
2026-09-07 16:57:49 -07:00
2026-09-07 16:57:49 -07:00
2026-09-19 00:48:26 -07:00
2026-09-18 23:46:27 -07:00
2026-10-31 13:57:18 -07:00
2026-10-31 13:57:18 -07:00
2026-10-31 13:57:18 -07:00
2026-09-18 22:48:20 -07:00
2026-09-18 23:46:27 -07:00
2026-09-18 23:46:27 -07:00
2026-09-18 23:46:27 -07:00
2026-09-18 23:46:27 -07:00
2026-09-18 23:46:27 -07:00
2026-09-27 23:16:41 -07:00
2026-09-22 14:19:23 -07:00
2026-09-27 23:16:41 -07:00
2026-09-05 19:16:56 -07:00
2026-10-24 00:18:04 -07:00