Commit Graph
116 Commits
Author SHA1 Message Date
MasterControl d08a218810 Revert "fix(ble): connect G2 arms with autoConnect=true"
This reverts commit a9df3de59b.
2026-11-16 18:25:54 +00:00
MasterControl c1ca1acf3b Revert "fix(ble): fall back to direct connect when autoConnect can't reach an arm"
This reverts commit 52ead474e2.
2026-11-16 18:25:54 +00:00
MasterControl e49c5641c5 Revert "fix(ble): drop CONNECTION_PRIORITY_HIGH for G2 arms"
This reverts commit 4b4ab1b02c.
2026-11-16 18:25:54 +00:00
MasterControl 4b4ab1b02c fix(ble): drop CONNECTION_PRIORITY_HIGH for G2 arms
HIGH negotiates a ~5s supervision timeout that kills the link on any
>5s BLE gap and can strand an arm in a half-open state where it stops
advertising (recoverable only by a 5-tap reset). Mirrors the ring fix
in connectRing, which removed HIGH for the same reason. BALANCED keeps
a longer supervision timeout; the firmware's own fast-profile request
still negotiates speed for transfers.
2026-11-16 06:51:41 +00:00
MasterControl 5790e98d27 [verified] merge upstream c162c8e6 into all-features 2026-11-14 23:24:08 +00:00
MasterControl 52ead474e2 fix(ble): fall back to direct connect when autoConnect can't reach an arm
autoConnect only connects on a fresh advertisement, so an arm stuck in a
half-open state (stopped advertising after a dropped link) is never reached.
Retry with a direct connect: its aggressive scan catches a briefly-advertising
arm and the cached bond can recover the half-open link. Adds a
g2.connect-fallback-direct counter for diagnostics.
2026-11-14 21:46:58 +00:00
MasterControl a9df3de59b fix(ble): connect G2 arms with autoConnect=true
Direct connect (autoConnect=false) is supervised less patiently by Android's
BLE stack; the ring already requires autoConnect=true for this reason, and the
glasses arms showed the same short-lived direct-connect drops. Switch both
arms' beginConnect and connect to autoConnect=true.
2026-11-14 20:05:15 +00:00
James Babcock 30de2c4dd7 Move recording setting from Developer menu to Transcribe app; add prominent indicator 2026-11-11 15:55:52 -08:00
MasterControl 9ca3574ae7 [verified] feat: follow phone Do Not Disturb for notification wake 2026-11-11 17:43:35 +00:00
Blendman974 54ba6b4f10 Merge dedicated offline French Whisper model 2026-11-10 23:22:24 +01:00
Blendman974 b4b073412f feat(voice): add dedicated offline French Whisper model 2026-11-10 23:20:31 +01:00
MasterControl 6150a1ac57 Merge upstream main preserving custom feature integrations 2026-11-10 17:08:15 +00:00
James Babcock 8b70585da8 Metadata updates for Play Store distribution 2026-11-09 12:08:37 -08:00
James Babcock 479308f4a6 Firmware uninstall/revert-to-stock for G1s 2026-11-08 00:11:13 -08:00
James Babcock d1f9f76abb Better rendering of color emojis 2026-11-07 20:20:34 -08:00
James Babcock b353483ac2 G1 support: Preserve connections after flashing, debug 2026-11-07 04:16:15 -08:00
James Babcock 6e4515afa5 Add ANCS support to G1 2026-11-06 21:47:23 -08:00
Blendman974 1997258b25 Remove tilt-down hide and experimental angle measurement
# Conflicts:
#	app/g2/dashboard-controller.ts
#	app/g2/ios-preview-controller.ts
#	docs/validation-head-up.md
2026-11-06 22:21:13 +01:00
Blendman974 fe87e75fc2 Revert "feat: add shared tilt-down hide and current-angle measurement"
This reverts commit f029e3ce91.
2026-11-06 22:20:24 +01:00
Blendman974 fe0cf5b777 Merge shared tilt-down hide and angle measurement
# Conflicts:
#	app/g2/dashboard-controller.ts
#	app/g2/ios-preview-controller.ts
2026-11-06 22:10:41 +01:00
Blendman974 f029e3ce91 feat: add shared tilt-down hide and current-angle measurement 2026-11-06 22:01:21 +01:00
James Babcock 38c52ebc31 G1 support: Flashing within the Android app 2026-11-06 12:55:24 -08:00
Blendman974 3aeed72f5d Merge silent-mode feedback
# Conflicts:
#	tests/kotlin/src/commonTest/kotlin/com/faceclaw/app/GlassesSessionCoreTest.kt
2026-11-06 21:48:38 +01:00
Blendman974 02dba88131 fix: show silent-mode feedback and promptly detect exit 2026-11-06 21:48:08 +01:00
James Babcock 345ba36c33 G1: Microphone, light sensor, accelerometer, bandwidth benchmark, wear detection 2026-11-06 01:44:37 -08:00
James Babcock 67aff19923 Faceclaw support for G1s
Relies on the glasses having the firmware from
https://github.com/jimrandomh/scouter_kit, based on Mafik's Scouter Kit.
2026-11-06 00:12:23 -08:00
Blendman974 cb4635d959 Merge multilingual Whisper transcription
# Conflicts:
#	app/g2/dashboard-controller.ts
2026-11-06 04:31:25 +01:00
Blendman974 5929259d84 feat: configure and synchronize head-up wake and angle 2026-11-06 04:30:07 +01:00
Blendman974 0b9e4cb367 feat: select languages for cloud and local Whisper transcription 2026-11-06 04:22:48 +01:00
James Babcock f803f4212c Brightness control 2026-11-05 11:18:17 -08:00
James Babcock b2b6c5c8d8 Merge branch 'main' into rayneo-io-support 2026-11-03 14:06:19 -08:00
Om Alve 5e729d1236 Case battery: read the glasses battery soon after they dock
Only the settings reply says the glasses are charging. Outside charging
mode it is polled every five minutes, and not at all while the display
is suspended, which it is once the glasses come off the face. So after
docking, the phone kept showing the glasses as "Not charging", and
charging mode (which pauses display traffic) didn't start until the
display woke or the link reconnected.

The case push that reports the glasses going from out of the case to
docked arrives within a second. It now schedules a battery read about
three seconds later. The drive loop queues it as a pending message,
which still goes out while the display is suspended.
2026-11-02 12:30:39 +05:30
Om Alve 046454e8c0 Merge remote-tracking branch 'origin/main' into g2-case-battery
# Conflicts:
#	native/kotlin/shared/src/commonMain/kotlin/com/faceclaw/app/g2protocol/session/GlassesSessionCore.kt
2026-11-02 12:02:53 +05:30
Om Alve fa7f33bfe8 Case battery: stop showing stale charging; read after the layout
Review fixes for the charging-case battery:

- The case reports whether the glasses are docked. An empty caseInfo
  (the reply out of the case) now parses as "not docked, no level"
  instead of nothing, and undocking is reported even when the level and
  charge state are unchanged. TS keeps the last level but clears
  caseCharging while the glasses are out of the case.
- The phone line shows the charging mark only while it is live: G2 and
  Case only with a link to the glasses (connected or charging), and Case
  only while docked. Levels stay as the last known ones.
- The session-start case read waits until the layout is up, so a
  firmware that ignored it could no longer hold up the first frame. When
  the glasses are already charging at connect, the charging-mode read is
  the only one; the old duplicate read and its "late ACK" log are gone.
- Case dedup state resets on every connect, as wearState does, so each
  session's read reaches TS.
- caseCharging uses > 0 like the headset, and is normalized to 0/1.
- iOS now feeds the reading into the shell battery state, and the
  assistant's describeState includes the case level.
- The batteryLine accessors move above connectionStatusLabel's doc
  comment.
2026-11-02 12:01:12 +05:30
James Babcock 9ddd4c4d03 Add microphone support on RayNeo iO 2026-11-01 21:08:25 -08:00
James Babcock fde847a31a Add support for using RayNeo iO together with an R1 ring 2026-11-01 19:37:55 -08:00
James Babcock 4d101eefe1 Partial support for Rayneo iO 2026-11-01 17:19:55 -08:00
James Babcock 7289496c09 R1 ring: Debug health-data sync 2026-11-01 12:19:46 -08:00
James Babcock fcea0b369a Merge branch 'main' of https://github.com/jimrandomh/faceclaw into ring-health-fixes 2026-11-01 11:00:38 -08:00
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
James Babcock 188bdff0d1 Port fixes from Glassly fork 2026-10-31 23:17:13 -07:00
James Babcock 3c3aa31542 Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-10-31 17:05:00 -07:00
James Babcock 49ea8a7d74 Use Spotify API if an API key is provided 2026-10-31 17:03:09 -07:00
James Babcock 210b111e27 Unify Android and iOS config formats 2026-10-31 15:43:55 -07:00
James Babcock c5f80a0b00 Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-10-31 14:04:41 -07:00
James Babcock a5eda29368 Port developer debug tests to iOS 2026-10-31 13:57:18 -07:00
James Babcock 032797f0f6 Add support for embedded icons and custom layouts in Android notifications
The practical upshot of this is that gmail, messages and similar apps
show the sender's profile picture on the glasses, the Dexcom app shows a
2026-10-31 12:39:20 -07:00
James Babcock 71bccd2c1c Ensure connection is re-set to 2M on reconnect 2026-10-27 13:05:13 -07:00
James Babcock 4f8c082b52 Merge branch 'main' into ring-health-fixes 2026-10-25 01:06:38 -07:00
James Babcock ce8b7656f4 Improve notification-icon display handling 2026-10-25 00:36:51 -07:00