get-status
Use this interface to obtain the real-time running status of the device, including status of live stream, firmware update, etc.
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": 64, // device running status mask
"cur-time": "2021-01-11 ...", // device current time
"box-name": "", // device name
"input-source": 1, // input source
"input-device": 1, // input device
"cpu-temperature": 61100,
"enable-ndi-hx3": 0,
"codec": { // codec status
"main-stream": {},
"sub-stream": {},
"audio": {}
},
"sysstat": {}, // device running status
"live-status": { // live status
"live": []
},
"upgrade-status": {}, // update status
"rec-status": { // recording status
"rec": []
},
"format-status": {}, // disk format status
"disk-test": {}, // disk performance test status
"nas": {}, // nas connection status
"living-test": {}, // live test status
"check-upgrade": {}, // online update check status
"conn-wifi": {}, // wifi connection status
"input-signal": {}, // input signal
"disk-info": {}, // disk information
"wifi": {}, // wifi network
"softap": {}, // AP network
"eth": {}, // ethernet network
"mobile": {}, // mobile broadband network
"rndis": {}, // USB net
"upgrade": {}, // new firmware information
"channel-count": 2,
"vumeters": [
33,
32
]
}
Response Body
"result": 0
Device Running Status Mask
"cur-status": 65552
Masks represent the device running status. Specific description for each mask refers to Device Status Masks. The following conditions are used to get the device running status.
Referring to the Device Status Masks, when a device is updating firmware, the mask is: statusUpgrade = 0x4000.
If
cur-status & statusUpgrade = statusUpgrade
, it indicates firmware is updating.
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,
"hdmi": {
"status": 0,
"cx": 0,
"cy": 0,
"interlaced": 0,
"interlaced-scale": 1,
"frame-rate": 0.00,
"channel-valid": 0,
"is-lpcm": 0,
"bits-per-sample": 0,
"sample-rate": 0
},
"sdi": {
"status": 0,
"cx": 0,
"cy": 0,
"interlaced": 0,
"interlaced-scale": 1,
"frame-rate": 0.00,
"channel-valid": 0,
"is-lpcm": 0,
"bits-per-sample": 0,
"sample-rate": 0
}
}
Streaming Status
"live-status": {
[
{
"id": 0,
"type": 130,
"is-use": 1,
"is-skd-runnung": 0,
"name": "NDI HX",
"run-ms": 231465213,
"result": 22,
"main-inst-bps": 993141,
"sub-inst-bps": 103444,
}
]
}
Streaming Test Status
"living-test": {
"upload-bps": 0,
"percent": 0,
"result": 27,
"net": 0,
"client-id": ""
}
Record Status
"rec-status": {
"rec": [
{
"id": 1,
"type": 1,
"is-use": 1,
"is-skd-runnung": 0,
"result": 2,
"run-ms": 1700,
"parted-num": 1,
"video-frame-count": 70,
"audio-frame-count": 54
}
]
}
Disk Formatting Status
"format-status": {
"type": 0,
"percent": 0,
"result": 27,
"client-id": ""
}
Disk Testing Status
"disk-test": {
"type": 0,
"read-bps": 0,
"write-bps": 0,
"percent": 0,
"result": 27,
"client-id": ""
}
NAS Connection Status
"nas": [
{
"id": 0,
"type": 2,
"result": 22
}
]
Online Check 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"
}
Wi-Fi Connection
"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 Connection
"eth": {
"ip": "10.10.107.212",
"mask": "255.255.0.0",
"router": "10.10.0.1",
"dns": "10.0.0.3"
}
Mobile Broadband Connection
"mobile": {
"ip": "",
"mask": "",
"router": "",
"dns": ""
}