Mentra Live Development Guide
This guide covers working with Mentra Live smart glasses, the primary device running ASG Client.Device Overview
Mentra Live (K900) specifications:- OS: Custom Android build
- Connectivity: WiFi 802.11 b/g/n, Bluetooth 5.0 LE
- Camera: 1080p photo/video capability
- ADB: WiFi only (no USB ADB support)
- MCU: Integrated microcontroller for hardware control
Setup
Prerequisites
-
Development Machine
- Android Studio with Java SDK 17
- ADB tools installed
- Same WiFi network as glasses
-
Mobile Device
- MentraOS app installed
- Bluetooth enabled
- Same WiFi network as glasses
Initial Pairing
- Turn on Mentra Live - Press and hold power button
- Open MentraOS app on your phone
- Start pairing - Follow in-app instructions
- Connect to WiFi - Use app to configure network
ADB Connection
Mentra Live only supports ADB over WiFi. Here’s how to connect:Finding the IP Address
- Open MentraOS app
- Go to “Glasses” screen
- Look for “Local IP Address”
- Note this IP (e.g., 192.168.1.123)
Connecting via ADB
Connection Troubleshooting
If connection fails:Development Workflow
Building and Installing
Local Server Development
For testing with local MentraOS server:Viewing Logs
Hardware Features
Button Commands
The MCU sends these commands for button presses:Action | Command | Description |
---|---|---|
Short press | cs_pho | Take photo |
Long press | cs_vdo | Start/stop video |
Swipe | cs_swst | Arm swipe gesture |
LED Indicators
- Blue blinking: Bluetooth advertising
- Blue solid: Bluetooth connected
- Red blinking: Low battery
- Green: Charging
Camera Access
The camera is accessed through CameraNeo API:Debugging Tips
Common Issues
-
Can’t connect ADB
- Ensure same WiFi network
- Check IP is current in app
- Restart glasses if needed
-
App crashes on launch
- Check logcat for errors
- Verify permissions granted
- Clear app data and retry
-
Camera not working
- Check camera permissions
- Ensure no other app using camera
- Restart ASG Client service
Useful Commands
Performance Optimization
Battery Life
- Minimize WiFi scanning
- Use efficient image compression
- Implement proper wake locks
- Stop services when not needed
Memory Usage
- Monitor with:
adb shell dumpsys meminfo com.augmentos.asg_client
- Release resources promptly
- Use appropriate image sizes
- Clear caches periodically
Thermal Management
- Monitor device temperature
- Throttle intensive operations
- Add delays between captures
- Stop streaming if overheating
Factory Reset
If needed, factory reset via:- Settings UI (if accessible on device)
- MentraOS app → Settings → Factory Reset
- Hardware buttons (see device manual)
Development Best Practices
- Always test on device - Emulator won’t have MCU
- Monitor battery - Development drains faster
- Use stable WiFi - Connection drops interrupt ADB
- Handle offline - Glasses often lose connectivity
- Test permissions - Camera, storage, network
- Log extensively - Helps debug remote issues