探测接收卡
# 探测接收卡
Path:
/api/smart_read_serial_info
Method: GET
Content-type: application/json; charset=utf-8
接口描述: 探测接收卡信息(数量、型号、版本)
请求参数
| 名称 | 类型 | 示例 | 描述 |
|---|---|---|---|
| portIndex | byte | 256 | 网口号,探测所有网口:256 |
| intent | String | scanReceiverCard | scanReceiverCard 为探测接收卡 |
请求示例 
返回数据
| 名称 | 类型 | 示例 | 描述 |
|---|---|---|---|
| cltIndex | int | 1 | 接收卡序号 + 1(从1开始) |
| errorRate | double | 0.0 | 误码率 |
| humidity | int | -1 | 湿度 |
| productCode | String | "11.30" | 版本号 |
| productType | String | "i9x" | 产品名称 |
| runTime | long | 842333 | 运行时间 |
| temperature | double | 0.0 | 温度 |
| voltage | int | 0 | 电压 |
响应示例
- 成功:
{
"portNumber": 1,
"receiveCard": [
{
"cltIndex": 1,
"errorRate": 0.0,
"humidity": -1,
"productCode": "11.30",
"productType": "i9x",
"runTime": 842333,
"temperature": 0.0,
"voltage": 0
},
{
"cltIndex": 2,
"errorRate": 0.0,
"humidity": -1,
"productCode": "11.30",
"productType": "i9x",
"runTime": 842288,
"temperature": 0.0,
"voltage": 0
}
]
}
- 失败:
{"portNumber": 1}