Skip to content

Development actions ​

These are part of the Halone app, for anyone working on Halone itself or bringing up new glasses. App developers do not need them.

Development actions are for bringing up a device and checking on a running session. They have no buttons; drive them over adb and read the results in logcat:

sh
adb shell am broadcast -a dev.halone.app.ACTION -p dev.halone.app -e action displays
adb shell am start -n dev.halone.app/.MainActivity -e action "connect,imu"
adb logcat -s Halone:I
keywhat it does
start / stoptoggle the environment (connect, stereo, shell): start stops one already running; stop only stops
usbdump every attached USB device with full interface/endpoint descriptors
connectrequest permission, claim the IMU + MCU interfaces, start the IMU stream
imustream for 10s; reports sample rate and fused yaw/pitch/roll
axesguided walkthrough to pin down a device's axis convention
gravitywhich axis is gravity on right now
driftmeasure residual yaw drift over 60s after bias calibration
calibdump the per-unit factory calibration blob (FoV, distortion, biases)
calibsourcewhich calibration is in use — the unit's own, or the fallback
calibcheckcheck the factory bias against this device, at rest
readmoderead the current display mode over the MCU interface
sbs / mirrorset the stereo (side-by-side) or mono display mode
displaysenumerate displays and every supported mode, flagging SBS candidates
pattern / dismissshow or tear down a per-eye L/R test card
latencyestsoftware-only motion-to-photon estimate
taprecordrecord taps on the glasses frame for tuning the tap detector
recentermake the current heading forward
gazereport where the pointer hits
frames / timing / present / hitchesframe health, display timing and present timing
panels / whyevery panel's slot and heading; what the arrangement is doing
shellstatusshell windows and their bridge connections
focusfield / focustapfocus a text field, or tap the middle, of the focused window
resizegrow the newest window by a quarter
inputloglog pointer events and keys (toggle)
settingsopen Settings on the phone

Several can be chained: -e action "usb,displays".

Released under the MIT License.