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 process
  "format-status": {},             // status of USB format 
  "disk-test": {},                 // status of USB performance test process
  "living-test": {},               // status of live stream test process
  "check-upgrade": {},             // status of online firmware detection precess
  "input-signal": {},              // input signal information
  "usb": {},                       // USB information
  "sd": {},                        // SD card information
  "wifi": {},                      // Wireless network information. If the AP mode is turned 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.

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 Process Status
"living-test": {
  "upload-bps": 0,
  "percent": 0,
  "result": 27,
  "net": 0,
  "client-id": ""
}
Online Firmware Update Detecting Process Status
"check-upgrade": {
  "result": 0,
  "client-id": ""
}
New Firmware Information
"upgrade": {
  "ver": "",
  "date": "",
  "size-byte": 0,
  "info": []
}
Firmware Update Process Status
"upgrade-status": {
  "step": 0,
  "percent": 0,
  "result": 27,
  "client-id": "",
  "mode": "none"
}
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 Process Status
"disk-test": {
  "read-bps": 0,
  "write-bps": 0,
  "percent": 0,
  "result": 27,
  "client-id": ""
}
USB Format Process 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 of wireless network card is turned 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 ""