获取模块信息

1.接口描述

接口说明:获取模块信息。

请求方式:POST [ip]/api/chassis/get-card

管理员权限 登录认证

2.输入参数

3.输出参数

参数名称 类型 描述
status Int 状态码
code String 状态描述
card-num Int 设备槽位数
card Array of CardData 模块信息列表
CardData
参数名称 类型 描述
position Int 模块所在槽位
connect Boolean 模块是否连接
true:是;false:否
device Array of device 详情请参考
解码板设备信息
编码板设备信息
ndi Array of ndi 详情请参考
解码板NDI状态信息
编码板NDI状态信息

4.示例

获取板卡模块信息。

输入示例
None
输出示例
{
    "card-num": 10,
    "card": [
        {
            "position": 1,
            "connect": true,
            "device": {
                "device-name": "NJ-play06",
                "model": "NDI to HDMI",
                "product-id": 1040,
                "serial-no": "Z410221102004",
                "hw-revision": "Z",
                "fw-version": "1.1.918",
                "board-id": 1,
                "cpu-usage": 2.5600000000000001,
                "memory-usage": 12.869999999999999,
                "core-temp": 36.0,
                "up-time": 25926,
                "output-state": "unconnected",
                "ip-addr": "169.254.5.48"
            },
            "ndi": {
                "name": "SRT Stream",
                "url": "srt://47.122.24.9:8000?streamid=play.srt/live/31&mode=caller&latency=125&mw-audio-track=1&mw-buffer-duration=100",
                "connect": false,
                "audio-jitter": 0,
                "video-jitter": 0,
                "tally-preview": 0,
                "tally-program": 0,
                "audio-drop-frames": 0,
                "video-drop-frames": 0,
                "video-bit-rate": 0,
                "audio-bit-rate": 0,
                "video-width": 0,
                "video-height": 0,
                "video-scan": "progressive",
                "video-field-rate": false,
                "audio-num-channels": 0,
                "audio-sample-rate": 0,
                "audio-bit-count": 0
            }
        },
        {
            "position": 2,
            "connect": true,
            "device": {
                "device-name": "Pro Convert",
                "model": "NDI to HDMI",
                "product-id": 1040,
                "serial-no": "Z410221102013",
                "hw-revision": "Z",
                "fw-version": "1.1.916",
                "board-id": 2,
                "cpu-usage": 2.5,
                "memory-usage": 13.890000000000001,
                "core-temp": 45.0,
                "up-time": 25927,
                "output-state": "unconnected",
                "ip-addr": "169.254.4.59"
            },
            "ndi": {
                "name": "11",
                "url": "http://10.10.14.109:5588/bunny.mov?mw-bitrate=4096&mw-buffer-duration=600",
                "connect": false,
                "audio-jitter": 0,
                "video-jitter": 0,
                "tally-preview": 0,
                "tally-program": 0,
                "audio-drop-frames": 0,
                "video-drop-frames": 0,
                "video-bit-rate": 0,
                "audio-bit-rate": 0,
                "video-width": 0,
                "video-height": 0,
                "video-scan": "progressive",
                "video-field-rate": false,
                "audio-num-channels": 0,
                "audio-sample-rate": 0,
                "audio-bit-count": 0
            }
        },
        {
            "position": 3,
            "connect": true,
            "device": {
                "device-name": "NJ-play001",
                "model": "NDI to AIO",
                "product-id": 1057,
                "serial-no": "Z421230224001",
                "hw-revision": "Z",
                "fw-version": "1.1.916",
                "board-id": 3,
                "cpu-usage": 5.0,
                "memory-usage": 6.5800000000000001,
                "core-temp": 47.0,
                "up-time": 25926,
                "output-state": "connected",
                "ip-addr": "169.254.6.106"
            },
            "ndi": {
                "name": "SRT-Caller",
                "url": "srt://47.122.24.9:8000?streamid=play.srt/live/21&mode=caller&latency=125&mw-audio-track=1&mw-buffer-duration=60",
                "connect": false,
                "audio-jitter": 0,
                "video-jitter": 0,
                "tally-preview": 0,
                "tally-program": 0,
                "audio-drop-frames": 0,
                "video-drop-frames": 0,
                "video-bit-rate": 0,
                "audio-bit-rate": 0,
                "video-width": 0,
                "video-height": 0,
                "video-scan": "progressive",
                "video-field-rate": false,
                "audio-num-channels": 0,
                "audio-sample-rate": 0,
                "audio-bit-count": 0
            }
        },
        {
            "position": 4,
            "connect": true,
            "device": {
                "device-name": "NJ-play004",
                "model": "NDI to AIO",
                "product-id": 1057,
                "serial-no": "Z421230224002",
                "hw-revision": "Z",
                "fw-version": "1.1.916",
                "board-id": 4,
                "cpu-usage": 26.32,
                "memory-usage": 10.1,
                "core-temp": 50.0,
                "up-time": 25927,
                "output-state": "connected",
                "ip-addr": "10.10.6.59"
            },
            "ndi": {
                "name": "MAC-MINI-2.LOCAL (Scan Converter)",
                "url": "",
                "connect": true,
                "audio-jitter": 100,
                "video-jitter": 100,
                "tally-preview": 0,
                "tally-program": 0,
                "audio-drop-frames": 2944,
                "video-drop-frames": 0,
                "video-bit-rate": 52322,
                "audio-bit-rate": 2610,
                "video-width": 3840,
                "video-height": 1212,
                "video-scan": "progressive",
                "video-field-rate": true,
                "audio-num-channels": 2,
                "audio-sample-rate": 48000,
                "audio-bit-count": 16
            }
        },
        {
            "position": 5,
            "connect": true,
            "device": {
                "device-name": "NJ-play05",
                "model": "NDI to HDMI",
                "product-id": 1040,
                "serial-no": "Z410221102009",
                "hw-revision": "Z",
                "fw-version": "1.1.918",
                "board-id": 5,
                "cpu-usage": 0.0,
                "memory-usage": 12.93,
                "core-temp": 40.0,
                "up-time": 25929,
                "output-state": "unconnected",
                "ip-addr": "169.254.5.73"
            },
            "ndi": {
                "name": "SRT Stream",
                "url": "srt://47.122.24.9:8000?streamid=play.srt/live/43&mode=caller&latency=125&mw-audio-track=1&mw-buffer-duration=100",
                "connect": false,
                "audio-jitter": 0,
                "video-jitter": 0,
                "tally-preview": 0,
                "tally-program": 0,
                "audio-drop-frames": 0,
                "video-drop-frames": 0,
                "video-bit-rate": 0,
                "audio-bit-rate": 0,
                "video-width": 0,
                "video-height": 0,
                "video-scan": "progressive",
                "video-field-rate": false,
                "audio-num-channels": 0,
                "audio-sample-rate": 0,
                "audio-bit-count": 0
            }
        },
        {
            "position": 6,
            "connect": true,
            "device": {
                "device-name": "Pro Convert",
                "model": "NDI to HDMI",
                "product-id": 1040,
                "serial-no": "Z410221102012",
                "hw-revision": "Z",
                "fw-version": "1.1.916",
                "board-id": 6,
                "cpu-usage": 46.149999999999999,
                "memory-usage": 21.02,
                "core-temp": 44.0,
                "up-time": 25925,
                "output-state": "unconnected",
                "ip-addr": "10.10.12.48"
            },
            "ndi": {
                "name": "MAC-MINI-2.LOCAL (Scan Converter)",
                "url": "",
                "connect": true,
                "audio-jitter": 100,
                "video-jitter": 100,
                "tally-preview": 0,
                "tally-program": 0,
                "audio-drop-frames": 1344,
                "video-drop-frames": 0,
                "video-bit-rate": 35911,
                "audio-bit-rate": 2211,
                "video-width": 3840,
                "video-height": 1212,
                "video-scan": "progressive",
                "video-field-rate": true,
                "audio-num-channels": 2,
                "audio-sample-rate": 48000,
                "audio-bit-count": 16
            }
        },
        {
            "position": 7,
            "connect": true,
            "device": {
                "device-name": "Pro Convert",
                "model": "HDMI 4K Plus",
                "product-id": 1025,
                "serial-no": "Z401230327003",
                "hw-revision": "Z",
                "fw-version": "1.1.272",
                "board-id": 7,
                "cpu-usage": 0.0,
                "memory-usage": 59.670000000000002,
                "core-temp": 65.0,
                "up-time": 25932,
                "output-state": "unconnected",
                "ip-addr": "169.254.11.184"
            },
            "ndi": {
                "name": "#07 (Z401230327003)",
                "enable": false,
                "num-clients": 0,
                "tally-preview": 0,
                "tally-program": 0,
                "audio-drop-frames": 0,
                "video-drop-frames": 0,
                "video-bit-rate": 0,
                "audio-bit-rate": 0,
                "video-width": 0,
                "video-height": 0,
                "video-scan": "progressive",
                "video-field-rate": false,
                "audio-num-channels": 0,
                "audio-sample-rate": 0,
                "audio-bit-count": 16
            }
        },
        {
            "position": 8,
            "connect": true,
            "device": {
                "device-name": "Pro Convert1",
                "model": "NDI to HDMI",
                "product-id": 1040,
                "serial-no": "Z410221102002",
                "hw-revision": "Z",
                "fw-version": "1.1.916",
                "board-id": 8,
                "cpu-usage": 2.5,
                "memory-usage": 12.710000000000001,
                "core-temp": 40.0,
                "up-time": 25925,
                "output-state": "unconnected",
                "ip-addr": "169.254.5.38"
            },
            "ndi": {
                "name": "RTSP",
                "url": "rtsp://10.10.11.54:554/mainstream?mw-tcp-first=1&mw-buffer-duration=500",
                "connect": false,
                "audio-jitter": 0,
                "video-jitter": 0,
                "tally-preview": 0,
                "tally-program": 0,
                "audio-drop-frames": 0,
                "video-drop-frames": 0,
                "video-bit-rate": 0,
                "audio-bit-rate": 0,
                "video-width": 0,
                "video-height": 0,
                "video-scan": "progressive",
                "video-field-rate": false,
                "audio-num-channels": 0,
                "audio-sample-rate": 0,
                "audio-bit-count": 0
            }
        },
        {
            "position": 9,
            "connect": true,
            "device": {
                "device-name": "Pro Convert",
                "model": "NDI to HDMI",
                "product-id": 1040,
                "serial-no": "Z410221102017",
                "hw-revision": "Z",
                "fw-version": "1.1.918",
                "board-id": 9,
                "cpu-usage": 0.0,
                "memory-usage": 12.550000000000001,
                "core-temp": 45.0,
                "up-time": 25925,
                "output-state": "unconnected",
                "ip-addr": "169.254.8.66"
            },
            "ndi": {
                "name": "None",
                "url": "",
                "connect": false,
                "audio-jitter": 0,
                "video-jitter": 0,
                "tally-preview": 0,
                "tally-program": 0,
                "audio-drop-frames": 0,
                "video-drop-frames": 0,
                "video-bit-rate": 0,
                "audio-bit-rate": 0,
                "video-width": 0,
                "video-height": 0,
                "video-scan": "progressive",
                "video-field-rate": false,
                "audio-num-channels": 0,
                "audio-sample-rate": 0,
                "audio-bit-count": 0
            }
        },
        {
            "position": 10,
            "connect": true,
            "device": {
                "device-name": "Pro Convert",
                "model": "NDI to HDMI",
                "product-id": 1040,
                "serial-no": "Z410221102016",
                "hw-revision": "Z",
                "fw-version": "1.1.918",
                "board-id": 10,
                "cpu-usage": 2.5,
                "memory-usage": 12.529999999999999,
                "core-temp": 45.0,
                "up-time": 25925,
                "output-state": "unconnected",
                "ip-addr": "169.254.8.61"
            },
            "ndi": {
                "name": "None",
                "url": "",
                "connect": false,
                "audio-jitter": 0,
                "video-jitter": 0,
                "tally-preview": 0,
                "tally-program": 0,
                "audio-drop-frames": 0,
                "video-drop-frames": 0,
                "video-bit-rate": 0,
                "audio-bit-rate": 0,
                "video-width": 0,
                "video-height": 0,
                "video-scan": "progressive",
                "video-field-rate": false,
                "audio-num-channels": 0,
                "audio-sample-rate": 0,
                "audio-bit-count": 0
            }
        }
    ],
    "status": 0,
    "code": "Success"
}

5.错误码

无接口业务逻辑相关的错误码,其他错误码详见 公共错误码

与“”相关结果约

    找不到与“”相关的结果