Device-info probe: frame tracing, query retry, push acceptance, left-lens fallback

On stock 2.2.9 the settings read on the right lens goes unanswered even after
a successful security-auth exchange and fresh pairing. Since no 2.2.9-era
capture of a settings read exists (g2flash only exercises auth + OTA), turn
the probe into an experiment that a single on-device run can settle:

- Log every control-channel frame (sid/flag/type/magic/frag/payload prefix)
  and every write under the FaceclawDeviceInfo logcat tag.
- Retry the settings read once before concluding a lens is silent.
- Accept a sid-0x09 frame carrying firmware versions on the device's own
  magic (an unsolicited push) as an answer, not just the awaited ack.
- If the right lens stays silent, run the same connect/auth/prelude/read
  against the LEFT lens and use its answer, logging which lens replied, to
  test whether 2.2.9 moved the settings endpoint.

The probe now takes both arm addresses; the firmware-check page passes them.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ZqzwmRQ3HQxasBz5rYyZV
This commit is contained in:
James BabcockandClaude Fable 5 committed 2026-08-23 17:24:19 -07:00
commit a7684f603d
23 files changed
+121 -47

No files matched your search

+6
View File
@@ -29,6 +29,12 @@ Button.-primary {
font-size: 18;
}
/* Body/explanatory text in the onboarding flow; the theme default is too
* small to comfortably read paragraphs of legalese, especially on tablets. */
.body-text {
font-size: 18;
}
/*
* Stands in for the lens preview when showing it would be misleading (silent
* mode, or a disconnect explained by a flat battery). Sized by the view model
Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

+2 -2
View File
@@ -25,11 +25,11 @@ export class DeviceInfoProbe {
private resolveFn: ((info: DeviceInfo) => void) | null = null;
private rejectFn: ((error: Error) => void) | null = null;
constructor(rightAddress: string) {
constructor(rightAddress: string, leftAddress = "") {
const context = Utils.android.getApplicationContext();
if (!context) throw new Error("Android application context unavailable");
this.probe = new com.faceclaw.app.FaceclawDeviceInfoProbe(context, rightAddress);
this.probe = new com.faceclaw.app.FaceclawDeviceInfoProbe(context, rightAddress, leftAddress);
this.listenerProxy = new com.faceclaw.app.FaceclawDeviceInfoProbeListener({
onLog: (line: string) => this.emit(this.logListeners, String(line)),
onState: (state: string, detail: string) =>
+2 -2
View File
@@ -2,7 +2,7 @@
<ActionBar title="Configure Devices" />
<GridLayout rows="auto,auto,auto,auto,auto,auto,auto,auto,*" class="p-20">
<Label row="0" text="Configure the MAC addresses for the G2 headset arms and optional R1 ring. This page does not test a connection." textWrap="true" />
<Label row="0" text="Configure the MAC addresses for the G2 headset arms and optional R1 ring. This page does not test a connection." class="body-text" textWrap="true" />
<GridLayout row="1" columns="96,*" class="pairing-row m-t-12" visibility="{{ identityVisibility }}">
<Image col="0" src="{{ identityImagePath }}" stretch="aspectFit" width="90" height="34" />
@@ -34,7 +34,7 @@
<Button col="1" text="Scan for glasses" tap="{{ onScanTap }}" class="-primary" isEnabled="{{ canDiscover }}" />
</GridLayout>
<Label row="6" text="{{ status }}" class="m-t-16" textWrap="true" />
<Label row="6" text="{{ status }}" class="body-text m-t-16" textWrap="true" />
<GridLayout row="7" columns="*,*" class="m-t-16">
<Button col="0" text="{{ saveLabel }}" tap="{{ onSaveTap }}" class="-primary" />
@@ -4,7 +4,7 @@
<StackLayout>
<Label text="{{ headline }}" class="h1 text-center m-t-24" textWrap="true" />
<ActivityIndicator busy="{{ busy }}" visibility="{{ busyVisibility }}" class="m-t-16" />
<Label text="{{ status }}" class="m-t-16 text-center" textWrap="true" />
<Label text="{{ status }}" class="body-text m-t-16 text-center" textWrap="true" />
</StackLayout>
</ScrollView>
@@ -145,7 +145,7 @@ export class OnboardingFirmwareCheckViewModel extends Observable {
}
this.disposeProbe();
const probe = new DeviceInfoProbe(stored.right);
const probe = new DeviceInfoProbe(stored.right, stored.left);
this.probeInstance = probe;
probe.onStateChange((state) => this.reportProbeState(state));
+1 -1
View File
@@ -5,7 +5,7 @@
<Label text="{{ headline }}" class="h1 text-center m-t-24" textWrap="true" />
<ActivityIndicator busy="{{ busy }}" visibility="{{ busyVisibility }}" class="m-t-16" />
<Progress value="{{ progress }}" maxValue="100" visibility="{{ progressVisibility }}" class="m-t-16" />
<Label text="{{ status }}" class="m-t-16 text-center" textWrap="true" />
<Label text="{{ status }}" class="body-text m-t-16 text-center" textWrap="true" />
<Label text="{{ log }}" class="m-t-24" textWrap="true" fontSize="12" visibility="{{ logVisibility }}" />
</StackLayout>
</ScrollView>
+3 -3
View File
@@ -2,10 +2,10 @@
<GridLayout rows="*,auto" class="p-20">
<ScrollView row="0">
<StackLayout>
<Image src="res://logo" stretch="aspectFit" height="140" horizontalAlignment="center" visibility="{{ logoVisibility }}" class="m-t-24" />
<Label text="{{ headline }}" class="h1 text-center m-t-24" textWrap="true" />
<Label text="{{ tagline }}" class="text-center m-t-8" textWrap="true" visibility="{{ taglineVisibility }}" />
<Label text="{{ body }}" class="m-t-24" textWrap="true" />
<Label text="{{ tagline }}" class="body-text text-center m-t-8" textWrap="true" visibility="{{ taglineVisibility }}" />
<Image src="~/images/faceclaw-logo.png" stretch="aspectFit" height="200" horizontalAlignment="center" visibility="{{ logoVisibility }}" class="m-t-24" />
<Label text="{{ body }}" class="body-text m-t-24" textWrap="true" />
</StackLayout>
</ScrollView>
+1 -1
View File
@@ -5,7 +5,7 @@
<Label text="Disconnect the Even App" class="h1 text-center m-t-24" textWrap="true" />
<Label
text="Faceclaw and the official Even Realities app can't both be connected to the glasses at once. Before continuing, open the Even app, go to Home, select your glasses, open the Connection submenu, and press Disconnect (or turn off the Even app's Bluetooth)."
class="m-t-24" textWrap="true" />
class="body-text m-t-24" textWrap="true" />
<Button text="Open Even App Settings" tap="{{ onOpenEvenAppSettingsTap }}" class="-primary m-t-24" />
</StackLayout>
</ScrollView>