Skip to main content

Device & System

Endpoint Overview

MethodPathPurpose
GET/system/device-infoGet device serial number, firmware version, sensor and base board model
GET/system/resource-infoGet CPU, NPU, memory, and storage usage
GET/system/timeGet system time, timezone, and NTP configuration
PUT/system/timeSet system time
GET/system/batteryGet battery status
GET/system/checkCheck if first-time login
GET/system/sshQuery SSH running status
POST/system/sshStart or stop SSH
GET/system/secureQuery HTTPS status
POST/system/secureEnable or disable HTTPS
GET/config/exportExport device configuration
POST/config/uploadImport device configuration
POST/system/rebootReboot the device
POST/system/factory-resetRestore factory settings

Get Device Information

GET /system/device-info

Response:

{
"sSerialNumber": "RC1126B-20240101-001",
"sFirmwareVersion": "V1.0.10",
"sSensorModel": "SC850SL",
"sBasePlateModel": "Base Board-V1.0,Expand Board-V1.0"
}
FieldDescription
sSerialNumberDevice serial number
sFirmwareVersionFirmware version
sSensorModelSensor board model
sBasePlateModelBase board model

Get System Resource Status

GET /system/resource-info

Response:

{
"iCpuUsage": 12,
"iNpuUsage": 69,
"sMem": {
"iMemTotal": 1.94,
"iMemUsage": 33,
"iMemUsed": 0.65
},
"sStorage": {
"iStorageTotal": 11.29,
"iStorageUsage": 37,
"iStorageUsed": 4.22
}
}
FieldDescription
iCpuUsageCPU usage percentage
iNpuUsageNPU usage percentage
sMem.iMemTotalTotal memory
sMem.iMemUsedUsed memory
sMem.iMemUsageMemory usage percentage
sStorage.iStorageTotalTotal storage
sStorage.iStorageUsedUsed storage
sStorage.iStorageUsageStorage usage percentage

System Time

Get System Time

GET /system/time

Response:

{
"sMethod": "ntp",
"dNtpConfig": {
"sAddress": "pool.ntp.org",
"sPort": "123",
"status": 0
},
"iTimestamp": 1784083074,
"sTimezone": "Asia/Shanghai",
"sTz": "UTC+8"
}
FieldDescription
sMethodTime source, ntp or manual
dNtpConfig.sAddressNTP server address
dNtpConfig.sPortNTP port
dNtpConfig.statusNTP status, 0 means success
iTimestampUnix timestamp in seconds
sTimezoneTimezone city
sTzTimezone, e.g. UTC+8

Set System Time

PUT /system/time

NTP mode request body:

{
"sMethod": "ntp",
"dNtpConfig": {
"sAddress": "pool.ntp.org",
"sPort": "123"
},
"sTimezone": "Asia/Shanghai",
"sTz": "UTC+8"
}

Manual mode request body:

{
"sMethod": "manual",
"iTimestamp": 1784083074,
"sTimezone": "Asia/Shanghai",
"sTz": "UTC+8"
}

Response:

{
"iTimestamp": 1784083074,
"sTimezone": "Asia/Shanghai",
"sTz": "UTC+8"
}

Battery Status

GET /system/battery

Response:

{
"isAttached": true,
"displaySteps": 0,
"totalSteps": 5,
"isCharging": false
}
FieldDescription
isAttachedWhether a battery is attached
displayStepsCurrent battery level steps
totalStepsTotal battery level steps
isChargingWhether the battery is charging

Check First-Time Login

GET /system/check

Response:

{
"bFirst": false
}

bFirst=true indicates the device is in the first-time login flow and the default password should be changed.

SSH

Query SSH Status

GET /system/ssh

Response:

{
"bRunning": true
}

Start or Stop SSH

POST /system/ssh

Request body:

{
"bRunning": true
}
FieldDescription
bRunningtrue to start SSH, false to stop

HTTPS

Query HTTPS Status

GET /system/secure

Response:

{
"sEnable": true
}

Enable or Disable HTTPS

POST /system/secure

Request body:

{
"sEnable": true
}

Response:

{
"code": 0,
"message": "Settings applied successfully"
}

After enabling HTTPS, use https://<DEVICE_IP> for subsequent access.

Configuration Management

Export Configuration

GET /config/export

Response:

{
"size": 35116544,
"url": "/download/config.tar"
}
FieldDescription
sizeConfiguration file size
urlDownload path; prepend the device IP for a full URL

Download URL:

http://<DEVICE_IP>/download/config.tar

Import Configuration

POST /config/upload

Importing configuration overwrites the current device settings. Export the current configuration first as a backup.

Reboot

POST /system/reboot

Response:

{
"code": 0,
"message": "success"
}

The device will reboot and the current connection will be lost. Wait for the device to come back online before continuing.

Factory Reset

Factory reset requires two-stage confirmation.

Stage 1:

POST /system/factory-reset

Response:

{
"code": 0,
"sConfirmToken": "adfagghvshf"
}

Stage 2, submit the confirmation token within its validity period:

POST /system/factory-reset

Request body:

{
"sConfirmToken": "adfagghvshf"
}

Response:

{
"code": 0,
"message": "success"
}

Factory reset erases all device configuration. Ensure you have a backup before proceeding.

Technical Support and Product Discussion

Thank you for choosing our products! We are here to provide you with various support to ensure your experience with our products is as smooth as possible. We offer multiple communication channels to meet different preferences and needs.

Loading Comments...