Overview
JARVIS integrates with Meta Ray-Ban smart glasses using the Meta Wearables DAT SDK, enabling hands-free photo capture and real-time person identification. The glasses communicate with your iPhone app, which forwards images to the JARVIS backend for processing.Meta Ray-Ban glasses require the companion iOS app and an iPhone with iOS 15.0 or later.
Architecture Flow
- Option A: Telegram Bot (glasses send photos via Telegram)
- Option B: HTTP Webhook (POST /api/capture/webhook)
- Option C: URL Import (POST /api/capture/url)
Prerequisites
Hardware
- Meta Ray-Ban smart glasses
- iPhone (iOS 15.0+)
- Active Bluetooth connection
Software
- Xcode 15+
- Meta Wearables DAT SDK
- JARVIS backend running
Setup Instructions
Configure Wearables View Model
Set up the
WearablesViewModel to manage device connections:View the complete implementation in
source/samples/CameraAccess/CameraAccess/ViewModels/WearablesViewModel.swiftRegistration Flow
The glasses must be paired with your iPhone before use:Testing with Mock Devices
During development, use MockDeviceKit for testing without physical glasses:Configuration Options
| Setting | Description | Default |
|---|---|---|
sessionPreset | Video quality preset | .medium |
videoRotationAngle | Frame orientation | 90 (portrait) |
alwaysDiscardsLateVideoFrames | Drop frames if processing is slow | true |
Troubleshooting
Glasses won't connect
Glasses won't connect
Symptoms: Registration fails or times outSolutions:
- Ensure Bluetooth is enabled on iPhone
- Check that glasses are charged (>20% battery)
- Restart both glasses and iPhone app
- Unpair and re-pair in iPhone Settings → Bluetooth
- Verify glasses firmware is up to date in Meta View app
Photos not uploading
Photos not uploading
Symptoms: Images captured but not appearing in JARVISSolutions:
- Verify backend URL is correct in
Secrets.swift - Check network connectivity (WiFi or cellular)
- Confirm webhook token is valid
- Check backend logs for upload errors:
docker logs jarvis-backend - Test with manual upload using Postman/curl
Device compatibility error
Device compatibility error
Symptoms: “Device requires update” messageSolutions:
- Open Meta View app on iPhone
- Navigate to Settings → Device Updates
- Follow prompts to update glasses firmware
- Wait for update to complete (may take 5-10 minutes)
- Reconnect glasses in JARVIS app
Poor image quality
Poor image quality
Symptoms: Blurry or dark images from glassesSolutions:
- Clean glasses lenses with microfiber cloth
- Increase
sessionPresetto.highin camera config - Ensure adequate lighting conditions
- Check for lens scratches or damage
- Adjust frame position on face for better angle
Next Steps
Camera Setup
Configure camera settings for both glasses and phone
Telegram Bot
Set up Telegram bot for alternative image capture