Read rover status
GETcar-online-info
Read rover status, mission details, individual runs, and actuator track data.
Build an orchard or mowing job report. Use the mission ledger to identify a completed job, then join the individual runs and compare actuator-on portions of the track to the intended treatment area.
Compatibility. XAG lists R100, R200 and RM80 for the newer mission and run APIs. The older GET run list and track pages list R150 variants. Confirm each endpoint against the actual rover before choosing an adapter.
POST /open/service
serviceName=car-mission-list
The date filters use seconds. Mission start_time and end_time in the response are documented in milliseconds. The example work_type 4 denotes mowing.
Set XAG_APP_UID and XAG_APP_SECRET in your server environment. Substitute the sample IDs with authorized values.
# Requires curl 7.87+, Python 3 and OpenSSL.
: "${XAG_APP_UID:?Set XAG_APP_UID}"
: "${XAG_APP_SECRET:?Set XAG_APP_SECRET}"
timestamp=$(python3 -c 'import time; print(time.time_ns() // 1000000)')
token=$(printf "%s" "$XAG_APP_UID$timestamp$XAG_APP_SECRET" | openssl dgst -sha1 -r | cut -d " " -f 1)
curl --silent --show-error --fail-with-body --max-time 30 --request POST \
'https://open.xa.com/open/service' \
--url-query 'serviceName=car-mission-list' \
--url-query "appUid=$XAG_APP_UID" \
--url-query "timestamp=$timestamp" \
--url-query "token=$token" \
--header 'Content-Type: application/json' \
--data '{
"sn": "YOUR_ROVER_SN",
"start_day": 1788134400,
"end_day": 1788739200,
"page_no": 1,
"page_size": 20
}'{
"status": 200,
"success": true,
"data": {
"records": [
{
"mission_guid": "example-mission",
"sn": "EXAMPLE-SN",
"work_type": 4
}
]
}
}All services use /open/service with the common signed query parameters. Additional fields are listed below. Open an operation for its parameters, examples and response notes.
GETcar-online-info
GETcar-sorties-list
Required service parameterssearch, startTime, endTime
Set search to the serial number. Use milliseconds and a window of up to 60 days. The optional pagination fields are pageIndex and pageCount.
View operationGETcar-sorties-log
Required service parameterssn, deviceId, recordStart, recordEnd
Use the device ID and the run’s time bounds in milliseconds.
View operationPOSTcar-mission-list
Required service parameterssn, start_day, end_day, page_no, page_size
Date filters are in seconds. Maximum page size is 100.
View operationPOSTcar-mission-detail
Required service parameterssn, mission_guid
Optional user_guid. The documented mode field distinguishes autonomous, manual and SDK jobs.
View operationPOSTcar-sortie-list
Required service parameterssn, mission_guid
Optional user_guid. Store each returned sortie_id.
View operationPOSTcar-sortie-detail
Required service parameterssn, mission_guid, sortie_id
Confirm with XAG whether these parameters belong in the query or the body. Track timestamps are milliseconds and speed is m/s.
View operation