get-status

Use the interface to obtain the real-time working status of the device, including status of record, live stream, firmware update, and USB format.

HTTP Request

GET http://ip/usapi?method=get-status
Parameter Description
method get-status

Response Body

JSON structure is as follows:

{
  "result": 0,                     // returned status
  "cur-status": 65552,             // device running status Mask
  "last-rec-status": 0,
  "cur-time": "2019-09-26 ...",    // current time of device
  "box-name": "",                  // device name
  "lock-user": [],
  "rec-status": {},                // recording status
  "live-status": {},               // live stream status
  "upgrade-status": {},            // status of firmware update 
  "format-status": {},             // status of USB format 
  "disk-test": {},                 // status of USB performance test 
  "living-test": {},               // status of live stream test
  "check-upgrade": {},             // status of online firmware detection 
  "send-file": {},                 // status of file upload
  "send-file-test": {},            // status of file upload test 
  "input-signal": {},              // input signal information
  "usb": {},                       // USB information
  "sd": {},                        // SD card information
  "wifi": {},                      // Wi-Fi information. If the AP mode is on , it shows the AP connection information.
  "eth": {},                       // Ethernet information
  "mobile": {},                    // mobile network information
  "upgrade": {},                   // new version firmware information
  "downgrade": {}
}

Response Body

"result": 0
Device Running Status Mask
"cur-status": 65552

Masks vary depending on the various device running status. Refer to Device Status Masks to find specific description for each value. The following condition is used to calculate the device running status.

  1. Referring to the Device Status Masks, when a device is updating firmware, the mask is: statusUpgrade = 0x4000.

  2. If cur-status & statusUpgrade = statusUpgrade, it indicates firmware update is in progress.

System State
"sysstat": {
  "cpu": 1500
  "cpu-usage": 19
  "eth-rx": 106248
  "eth-tx": 4339448
  "mem-free": 195612
  "mem-total": 524288
  "mobile-rx": 0
  "mobile-tx": 0
  "sd-rd": 0
  "sd-wr": 0
  "uptime": 331255
  "usb-rd": 0
  "usb-wr": 0
  "wlan-rx": 0
  "wlan-tx": 0
}
Input Signal Status
"input-signal": {
  "status": 0,
  "cx": 0,
  "cy": 0,
  "interlaced": 0,
  "frame-rate": 0.00,
  "channel-valid": 0,
  "is-lpcm": 0,
  "bits-per-sample": 0,
  "sample-rate": 0
}
Recording Status
"rec-status": {
  "result": 0,
  "run-ms": 0,
  "cur-bps": 0,
  "avg-bps": 0,
  "client-id": ""
}
Live Stream Status
"live-status": {
  "result": 0,
  "run-ms": 0,
  "cur-bps": 0,
  "avg-bps": 0,
  "net": 0,
  "result2": 0,
  "cur-bps2": 0,
  "net2": 0,
  "client-id": ""
}
Live Stream Test Status
"living-test": {
  "upload-bps": 0,
  "percent": 0,
  "result": 27,
  "net": 0,
  "client-id": ""
}
Online Firmware Update Detecting Status
"check-upgrade": {
  "result": 0,
  "client-id": ""
}
New Firmware Information
"upgrade": {
  "ver": "",
  "date": "",
  "size-byte": 0,
  "info": []
}
Firmware Update Status
"upgrade-status": {
  "step": 0,
  "percent": 0,
  "result": 27,
  "client-id": "",
  "mode": "none"
}
Upload Status
"send-file": {
  "total-count-ongoing": 0,
  "total-count-done": 4,
  "disk-type": 0,
  "name": "",
  "result": 31,
  "message": "",
  "left-time": 0,
  "percent": 0
}
Upload Test Status
"send-file-test": {
  "result": 27,
  "client-id": "",
  "id": 0
}
USB Information
"usb": {
  "disk-status": 1,
  "total-size": 61638148096,
  "used-size": 3559489536,
  "free-size": 57944440832,
  "block-size": 32768,
  "usage": 6,
  "sys-path": "/dev/sda1",
  "fs-type": "vfat",
  "mount-path": "/usr/share/web-data/media/disk0",
  "fs-label": "C472-731D",
  "write-bps": 14255282,
  "read-bps": 0,
  "free-sec": 208038,
  "file-count": 47,
  "beign-time": "2019-09-24 08:04:39",
  "end-time": "2019-09-28 07:12:44",
  "total-cache-time": 0
}
SD Card Information
"sd": {
  "disk-status": 1,
  "total-size": 31895175168,
  "used-size": 3708043264,
  "free-size": 24997614388,
  "block-size": 16384,
  "usage": 12,
  "sys-path": "/dev/mmcblk1p1",
  "fs-type": "vfat",
  "mount-path": "/usr/share/web-data/media/disk1",
  "fs-label": "9C30-9CB8",
  "write-bps": 0,
  "read-bps": 0,
  "free-sec": 89749,
  "file-count": 50,
  "beign-time": "2019-09-24 07:49:57",
  "end-time": "2019-09-28 07:12:44",
  "total-cache-time": 103062
}
USB Performance Test Status
"disk-test": {
  "read-bps": 0,
  "write-bps": 0,
  "percent": 0,
  "result": 27,
  "client-id": ""
}
USB/SD Card Format Status
"format-status": {
  "percent": 0,
  "result": 27,
  "client-id": ""
}
Wi-Fi Information

It shows the AP information when cur-status & 0x40 = 0x40, the AP mode is on.

"wifi": {
  "name": "MWL1",
  "level": 0,
  "ip": "192.168.8.249",
  "mask": "255.255.255.0",
  "router": "192.168.8.1",
  "dns": "192.168.8.1"
}
Ethernet Information
"eth": {
  "ip": "10.10.107.212",
  "mask": "255.255.0.0",
  "router": "10.10.0.1",
  "dns": "10.0.0.3"
}
Mobile Broadband Network Information
"mobile": {
  "ip": "",
  "mask": "",
  "router": "",
  "dns": ""
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""