Stargazer

Mirrosky raised more than $750,000 on Kickstarter for a smart telescope, shipped the hardware, and never finished the software. The official app connects sometimes. The calibration flow hangs. The “signal weak” warning shows up when the sensors aren’t ready, and there’s no override, because the firmware decides when to accept commands. My wife wanted to look at Saturn, and the app kept crashing.

So we decompiled it.

What’s inside

The telescope is a 127mm Maksutov-Cassegrain on an alt-azimuth GoTo mount — good optics in a consumer electronics package. It has a built-in 960x720 camera, GPS, an IMU, a compass, and WiFi. It boots into AP mode, broadcasts its own network, and takes commands over a WebSocket on port 9999. The camera streams MJPEG on port 8888. The hardware is a white-label Hiuni platform, sold as the Mirrosky IAZM 12750 and rebranded as the SkyPilot SP127.

How we learned the protocol

jadx decompiled the APK’s Java layer: the native DeviceStatus class, the Indiclient calls into libnetmanager.so, and the command gating logic. The React Native side came out as 627,000 lines of decompiled Hermes bytecode, and that gave us the rest:

  • command flow, state management, and UI routing
  • the two independent gates on every command (app-side and firmware-side)
  • the calibration sequence
  • the cloud API at api.mirrosky.com, more than thirty endpoints

The protocol is JSON over WebSocket, one newline-terminated message per frame. On connect the client sends start_status and then get_dev_info with the current time and a location. The telescope sends a get_status heartbeat about once a second, and if you don’t answer with keep_alive within eight seconds, it drops you. Motor commands, GoTo coordinates, tracking modes, camera controls, focus, and exposure are all in the command reference now. One firmware command name has a typo (motor_raito instead of motor_ratio), and the docs keep the typo so they match the firmware.

The write-up is an 840-line README: ports, message formats, status codes, every command we found, the cloud API, and the test results.

What we built

A FastAPI app that proxies everything. WebSocket commands go through the backend to the telescope. The backend also relays the MJPEG camera stream, answers the heartbeat in a background loop so the connection stays up, and passes the firmware’s warnings through to the UI. The UI is dark and mobile-first, for use outside at night: live camera view, directional nudge controls, and a stop button. There’s no frontend framework, just HTML, CSS, and enough JavaScript to pipe a video stream and wire up a d-pad. The whole app is about 560 lines.

I haven’t tried the telescope’s join-your-WiFi mode yet, so it stays on its own AP. A USB WiFi dongle on one of the xSDR nodes joins that AP, and iptables rules on the node forward the WebSocket and video ports to it. A systemd unit re-applies the rules after a reboot or a Docker restart. The app runs as a container behind the homelab’s Caddy reverse proxy and deploys through Woodpecker CI, the same pattern as everything else in the homelab.

The command locking problem

The firmware only accepts certain commands depending on its state. The app’s own gate, decoded from the Java layer, works like this:

  • Normal: all commands.
  • Meridian flip: only power off, live view, and DSLR photo.
  • Home parking: only power off.

The app enforces these states, and the firmware enforces its own on top. Both gates have to agree before a command reaches the motors.

The “signal weak” warning that blocks everything is entirely firmware-side. The React Native code has no handler for it, and the Java native layer has no override. The IMU’s magnetometer needs a physical figure-eight calibration, and indoors it never clears. Until it does, the telescope answers info queries and ignores motor, camera, and calibration commands, and you stand in the yard holding it like an idiot.

We documented all of this for the next person who buys one of these on eBay.

Where it stands

The protocol is documented, and the handshake and the info queries are verified against the real telescope: device info, motor mode, WiFi band, backlash values. The web app connects, relays video, and surfaces the warnings. Motor, GoTo, and camera control all sit behind the calibration lockout, which needs a session outdoors under open sky. My notes don’t record that as done yet.

Claude Code built most of the app with me, and 19 of the 20 commits say so. The repo is private.

Where it’s going

Phase 2 is cracking libnetmanager.so, the native binary that handles INDI protocol communication. If the telescope speaks INDI natively, KStars and Stellarium can drive it directly, which opens up the whole Linux astronomy ecosystem. The same library has a call that should join the telescope to a home network, which would retire the dongle and the iptables bridge. Phase 3 is an MCP server wrapping the whole protocol, so “point the telescope at M31 and take a photo” works as a natural language command, through the same AI infrastructure that manages the rest of the homelab.

The near-term target is simpler than any of that: open the app, see the sky through the camera, and nudge the telescope until Jupiter’s in frame.