OpenVision icon indicating copy to clipboard operation
OpenVision copied to clipboard

Blayzer Gen 2 not recognized

Open BarryLaminack opened this issue 3 months ago • 10 comments

Picking up from conversation on Reddit here: https://www.reddit.com/r/augmentedreality/s/0PH6lIMQsL

IOS Version: image

Glasses Version: image

Issue:

OV doesn't recognize the glasses. Shows "device connected 0". Clicking "Start Camera Stream" fails even after giving it permission.

image

Where it stalls: Under device status, connected devices shows 0

When clicking "start camera stream" to initiate and grant permissions image

After clicking always allow, it errors out (see below) image

Can Confirm:

✅ dev mode enabled ✅ correct meta creds in config.xcconfig ✅ client_token correct

Not sure what you mean by “glasses fully paired in Meta AI first” but they are there and everything seems to work (media downloads to the phone, Meta AI responds to request, announces messages, etc…)

Not sure what you mean by “requires registration to be complete”, if you can elaborate I’ll confirm.

BarryLaminack avatar Aug 15 '26 15:08 BarryLaminack

Updated to latest version. Still getting "Connected Devices 0".

Difference I notice this time is

  • before when I clicked on "Start Camera Stream" it would switch over to the Meta AI app for permissions.
  • Now when click "Start Camera Stream" I get "ERROR: No glasses connected"

Also can confirm registration statuses:

Image Image

BarryLaminack avatar Aug 15 '26 16:08 BarryLaminack

Thanks for the detailed screenshots — they nailed it. Registration and the permission grant are actually fine on your end (Meta AI shows OpenVision with 1 device). The problem is on ours: your glasses report model "Blayzer Optics", and support for that hardware was added to Meta's DAT SDK after the version OpenVision pins (0.5.0, from March). Support for the newer frames landed in SDK 0.6.0–0.8.0, but those releases also rewrote the streaming API, which is why we haven't bumped yet.

I'm migrating OpenVision to SDK 0.9.0 now — will update this issue when there's a build to try. Nothing more you need to confirm; your setup is correct.

rayl15 avatar Aug 15 '26 17:08 rayl15

@BarryLaminack a test build is ready for you on the feat/dat-0.9 branch — it migrates the app to Meta's DAT SDK 0.9.0, which (unlike the 0.5.0 we were pinned to) knows about your hardware.

To try it:

git fetch origin
git checkout feat/dat-0.9

then open the project and build/run exactly as before — your existing config.xcconfig creds carry over, and Xcode will resolve the new SDK version automatically on first build.

Two notes:

  • SDK 0.9.0 always uses Meta's newer "DAT App Model" flow, so the registration hand-off to Meta AI may look a bit different. If the app shows Registered but devices stay at 0, try Unregister → Register once to refresh the grant under the new flow.
  • Please report back: the Connected Devices count, and what happens on Start Camera Stream.

This is validated on Ray-Ban Meta Gen 1/2 hardware on our side; yours is the first Blayzer Optics test — thanks for being the guinea pig 🙏

rayl15 avatar Aug 15 '26 17:08 rayl15

@rayl15 Good news: DAT 0.9 fixed device discovery. I now get Connected Devices: 1 on the Blayzer. Camera permission is also granted.

Image

But Start Camera Stream fails with:

on iPhone: ERROR: Failed to attach camera to device session

Image

in Xcode Console:

[GlassesManager] Starting camera stream for device: 1fedb022557753b4fe559e639e2f6aa7 [GlassesManager] Camera permission status: granted [GlassesManager] addCamera returned nil

BarryLaminack avatar Aug 15 '26 20:08 BarryLaminack

Great news on discovery — and thanks for the console lines, they pinpointed it. The addCamera returned nil was a bug in my 0.9.0 migration: the SDK requires the device session to be started (and to actually reach the .started state) before a camera can be attached, and I was attaching it to an idle session.

Fixed and pushed to the same branch — just pull and rebuild:

git checkout feat/dat-0.9
git pull

You should now see Device session state: started in the console followed by the stream coming up. Same ask as before: report what Start Camera Stream does now, and if it fails, the [GlassesManager] console lines around it.

rayl15 avatar Aug 16 '26 06:08 rayl15

Update: we hit — and solved — the next layer on our own Gen 1/2 hardware, and you will very likely need the same steps.

After the lifecycle fix, sessions still died with Device unavailable / Session ended by device even though everything looked healthy. The SDK's internal log (Library/Caches/MetaWearablesDAT/Logs/MetaWearablesDAT.log in the app container) revealed two missing pieces that SDK 0.9.0's new App Model requires:

  1. Your Wearables Developer Center project needs two fields that didn't exist in the old setup flow: open your project at wearables.developer.meta.com → Configuration, fill in your Apple Team ID, and toggle Camera access ON (with a rationale). Without these, Meta never issues the signed trust manifest and the glasses reject every session.
  2. The on-glasses developer component (DWA) must be staged. Pull the branch again (git pull on feat/dat-0.9) — there's a new "Install/Update Glasses App" button under the camera controls. Tap it, complete the hand-off in Meta AI, give it a minute.

Then Unregister → Register once more, and Start Camera Stream.

Exact sequence that took our glasses from failing to streaming: Developer Center fields → re-register → Install/Update Glasses App → stream. Fingers crossed it's the same for the Blayzer.

rayl15 avatar Aug 16 '26 06:08 rayl15

So, at first glance it appears that things are working with just the update that I pulled. I have not gone to my wearable project , etc...

When I click "Start Camera Stream" it turns from green to white in the interface and I hear an audible tone from the glasses and streaming shows as "active".

Stop Camera Stream is green. When I click it, it turns white and "start" turns green.

What I don't know is where to find the recording(s). I check the Meta AI app and there is nothing there.

UPDATE: Also, for testing/reference, when I clicked the "record button" on the home/voice screen it appears to work as expected.

Image

I then clicked it again to stop and it asked for permission to "Save to Photos". I granted it and found the recording in that location! (so that answers my questions as to where they would be located ha!)

I then went back to the settings screen to see if perhaps it needed permission to save there. I started a stream and stopped it after about 30 seconds. There was no stream in my photos app.

So it appears to work from the voice screen but not from settings.

Also of note: my screen locked for a brief moment by mistake and I got the following error:

Image

I click ok and it take me back to the screen but appears to still be streaming

Image

though as I mentioned above, there is no trace of a recording in Photos, so if I'm looking in the wrong spot, let me know.

BarryLaminack avatar Aug 16 '26 16:08 BarryLaminack

One note, I went to my Meta Wearables project just to take a peak, turns out, I already had my Team ID filled out and the Camera toggle on (with reason). Forgot that was one of the things ChatGPT suggested I do when I was troubleshooting with it. So that explains why it worked immediately after the latest update.

BarryLaminack avatar Aug 16 '26 17:08 BarryLaminack

Fantastic — that makes your Blayzer Gen 2 the first non-Ray-Ban hardware confirmed streaming on OpenVision 🎉 And your last note completes the picture: your Developer Center project already had Team ID + Camera access filled from your earlier ChatGPT troubleshooting, which is exactly why the code fix alone was enough on your end. (For anyone else landing here: you need both — the Developer Center fields AND the updated branch.)

On your two observations, both are expected behavior, though we clearly owe better UI copy:

  1. Settings → Start Camera Stream is a live diagnostic viewfinder, not a recorder — it exists to test glasses connectivity and never writes to Photos. Recording is the record button on the voice screen (exactly the flow you discovered), which muxes the glasses POV + mic into a video and saves it to Photos. Working as intended on your device.

  2. The "Critical error, the stream should end" alert when your screen locked: the stream runs the SDK's raw video codec, which by design pauses whenever the app leaves the foreground (only the compressed hvc1 codec may keep streaming in background). The SDK surfaces that as a scary-sounding error; the stream itself recovers when you return. We'll soften how that's presented.

Thanks for the sharp, well-documented testing throughout — this issue found four real bugs/gaps (SDK pin, session lifecycle ordering, Developer Center trust fields, on-glasses app staging). The fix ships in the next release, at which point this closes.

rayl15 avatar Aug 17 '26 05:08 rayl15

Shipped in v2.13.0 — DAT SDK 0.9.0 is now on main, with the Install/Update Glasses App button and the setup steps documented in the release notes. Confirmed working on Ray-Ban Meta Gen 1/2 and your Blayzer Gen 2. Closing — and thanks again for the excellent field testing; this issue improved the app for every newer-glasses owner.

rayl15 avatar Aug 17 '26 05:08 rayl15