RoboDot Docs
Markdown Ask Claude Ask ChatGPT
On this page

AI Agent Control (Web API)

Use RoboDot’s local HTTP API to read positions, record points, and manage jobs from your own software or an AI agent. The client must be able to reach the device’s local network; a cloud chat alone may not have that access.

Anyone who can reach the device on its network can read data and change settings through these routes. There is no API login or TLS. Use a trusted network, enter Wi-Fi and VRS passwords in the built-in web UI, and let agents switch saved profiles by name. Review actions that change the device or delete data before authorizing them.

Connecting

Live status

WebSocket (preferred): open ws://<ip>/, send the text frame /registerstat. The device pushes a JSON status object about once per second (and immediately on registration). Send /statusping every 10 seconds to keep the connection open. Only the two most recent subscribers are kept.

Each frame: {"id": …, "GPS": …, "health": …, "action": …, "date": …, "lora": …}

Snapshot (config + state): GET /setting → an object with ap, ntrip, feat, id, lora, health, action, wifi, service, and outs. Wi-Fi passwords are omitted and the VRS password is masked; network and account details remain sensitive.

Fields agents use most:

Field Meaning
GPS.fix Invalid / 3D / Float / Fixed / Surveyed (base)
GPS.latitude, GPS.longitude strings, degrees ×1e9 (integer-nanodegree text)
GPS.altitude ellipsoidal height at the antenna phase center
GPS.satellites, GPS.pdop, GPS.vAcc quality metrics (vAcc in 0.1 mm)
GPS.ortho, GPS.geoid orthometric height + the geoid model producing it
health.connectedToVRS NTRIP client session is up
health.netOk, health.memCardOK, health.battery internet, SD, charge %
action.mode Base / Rover / Repeater / …
id.serial, id.version, id.ip unit identity

Modes and control

Route Effect
GET /roverMode Switch to Rover now → {"ok":true,"mode":"Rover",…}
POST /setbase (form) Base position actions — useraction=AverageFromGPS (survey in from current fix) or Standalone; other values cover saving/recalling positions
GET /connect/vrsnow Dial the active VRS profile now → {"ok":…,"msg":…}
GET /connect/wifinow Join the configured WiFi station network
GET /rec / GET /stop Start / stop observation recording; check ok and rec. /stop also reports saved and err; a completed stop does not necessarily mean all data was saved
GET /api/reboot/0 Queue a clean reboot
GET /api/shutdown/0 Queue a clean power-off

Mark a point (Rover mode): POST /recshot with form fields identCheckedName (label, e.g. FEN: fence corner) and arpheight (pole height, meters). A JSON response reports result as saved, averaging, or refused, with ok, key, and err. An accepted request also includes accepted: true and length (averaging seconds). ok is false while averaging; confirm the completed point in the shot list. Invalid labels can return BADNAME text, and a non-rover returns text 0. Labels must not contain commas or line breaks.

Boot options: GET /setbootoption/<type>/<value> with types wifi (connect on boot), wifiretry (keep retrying), vrs (auto-connect), rec (record on boot), survey (auto survey), lora, rtcmoutoverudp (true/false each); bootmode (base/rover/repeater); geoid (an installed model filename without .bin, or off); rtcmmsm (4/7, base RTCM format).

Points, jobs, and data

Route Returns / does
GET /api/points[?file=<name.sht>|fav] Stakeout targets: {"job","files","points":[{n,ident,lat,lon,gnd,quality,src}]} — the active job plus Favorites
GET /api/jobs {"jobs":[…],"active":…}
GET /setjob/<name> Create/switch the active job; use 1–32 lowercase letters, digits, or underscores. Hyphens do not work in this URL. Check ok and the returned active name
GET /api/export/csv or /api/export/dxf Export the active job’s points; CSV can include model-labeled orthometric heights. /api/export/geojson returns HTTP 409 because coordinate frame and epoch are unrecorded
POST /api/importjob Import prepared point rows using the form fields described below; use the Files page for ordinary CSV import
GET /shotlistx Current shot list (Rover)
GET /favelistx Saved Favorites/base positions
GET /skyx {"sats":[…]} — live per-satellite constellation/elevation/azimuth/SNR
GET /api/codes / POST /api/codes Read / replace the point-code chip list
GET /api/geoids Geoid models on the card: {"models","active","loaded"}
GET /filesx/<page> Returns flist only with available storage and stopped recording; otherwise returns recording/storage status in info. The page argument is ignored; use /filesx/0
GET /downloads/<dir>/<file>/<ext> Download a file. Write its folder with each / as _: sd_screenshots, or sd_jobs_<job>_logs for a job's logs. Job names that contain _ need firmware 5.0.28 or later.

For point queries, prefer ?scope=current, ?scope=ref, or ?scope=session&file=<name.sht>. Session replies may include a next byte offset; pass it as at to continue. Check partial, unreadable, busy, and err before treating a list as complete.

POST /api/importjob takes URL-encoded form fields job, file (base name), mode (new or append), and content (valid .sht rows without a header). It does not accept an arbitrary CSV file. The response includes ok, err, rows, and file. A sequence of imports can partly succeed; inspect each response.

Screenshot the device screen: GET /api/screenshot/<name> then download /downloads/sd_screenshots/<name>/raw — a raw 320×240 RGB565 little-endian framebuffer (153,600 bytes).

Destructive, no undo — agents should confirm with a human first: GET /delete/<dir>/<file>/<ext>, POST /deletefiles, POST /deleteall.

Connection profiles (credential-free switching)

Credentials are entered once in the web UI and stored on the device. Agents switch by name:

Firmware updates

Route Effect
POST /api/local/update/check Ask the update server (needs internet)
POST /api/local/update/start Queue download + install
GET /api/local/update/progress {"phase":"idle|checking|downloading|installing|done|blocked|error","pct","done","total","ver","files","err"}

Start an update only with the user’s approval. During installing do not power off; after done the device reboots itself and drops off the network briefly.

Recipes

Wait for a Fixed solution, then mark a point

  1. Subscribe to the status WebSocket; wait for GPS.fix == "Fixed".
  2. POST /recshot with identCheckedName and arpheight.
  3. Check the response for refusal or averaging, then confirm the completed point via GET /shotlistx.

Survey in a base with VRS

  1. GET /connect/vrsnow, wait for health.connectedToVRS.
  2. Wait for GPS.fix == "Fixed".
  3. POST /setbase with useraction=AverageFromGPS; wait for GPS.fix == "Surveyed" (the device drops the VRS when done).

Nightly data pull

Schedule the pull for an idle window approved by the user. BLE/TCP/NTRIP services pause during downloads.

  1. Read GET /api/jobs, check ok and the active job, and request /api/export/csv for points.
  2. Read GET /filesx/0. A flist contains the available files. If it is absent, inspect info.recstat, memstatok, storage, and storageDetail; the response does not mean there are no files.
  3. If recstat is true, defer the pull or ask permission to stop recording. Only after approval, call /stop and check ok, saved, rec, and err. If closing is still in progress, wait and retry. Report saved:false as a save failure, even when ok is true. Once the stop completes, request the listing and the CSV again.
  4. If storage is unavailable, report its state and detail. Restart only with the user’s permission; contact support if the problem persists. Do not attempt card removal or formatting.
  5. Download the listed .rub files through /downloads/.... Do not change jobs or restart recording as part of the pull unless the user authorizes that separately.