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
- The device broadcasts an open access point
RoboDot_<serial>(up to four Wi-Fi clients) and serveshttp://192.168.4.2; when joined to your network as a station, use the IP shown on its touch screen. - Use the unit's IP address or its
r<serial>.localname in the URL. - HTTP only — no TLS. Do not prefix
https://. - Send the header
X-RDT: 1with every request. From RoboDot 5.0.28, routes that change the device or download files answer HTTP 403 without it. /api/export/*answers HTTP 409 while RoboDot records. Ask the user before you stop a recording.- Use the request format listed below. Responses can be JSON, text, or downloads; an HTTP 200 alone does not prove that an action succeeded.
- Poll status at most once per second. Wait for one request to finish before sending another.
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:
GET /api/profiles→{"wifi":{"profiles":[…],"active":…},"ntrip":{…}}. The active profile is derived by matching the live config; treat the response as sensitive and avoid logging it verbatim.POST /api/profileswith JSON such as{"kind":"wifi","op":"select","name":"Office"}selects a saved profile for connect-now and boot. Use"kind":"ntrip"for a VRS profile."op":"delete"removes a profile 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
- Subscribe to the status WebSocket; wait for
GPS.fix == "Fixed". POST /recshotwithidentCheckedNameandarpheight.- Check the response for refusal or averaging, then confirm the completed point via
GET /shotlistx.
Survey in a base with VRS
GET /connect/vrsnow, wait forhealth.connectedToVRS.- Wait for
GPS.fix == "Fixed". POST /setbasewithuseraction=AverageFromGPS; wait forGPS.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.
- Read
GET /api/jobs, checkokand the active job, and request/api/export/csvfor points. - Read
GET /filesx/0. Aflistcontains the available files. If it is absent, inspectinfo.recstat,memstatok,storage, andstorageDetail; the response does not mean there are no files. - If
recstatis true, defer the pull or ask permission to stop recording. Only after approval, call/stopand checkok,saved,rec, anderr. If closing is still in progress, wait and retry. Reportsaved:falseas a save failure, even whenokis true. Once the stop completes, request the listing and the CSV again. - 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.
- Download the listed
.rubfiles through/downloads/.... Do not change jobs or restart recording as part of the pull unless the user authorizes that separately.