Commit 95038938979a506352d14513badd7d3f232737da

Authored by Administrator
1 parent 6b538425

1

Showing 1 changed file with 85 additions and 1 deletions
README.md
... ... @@ -300,6 +300,90 @@
300 300 | data.operCode | short | 二级协议 |
301 301 | data.requestAck | short | 请求应答字 0x06同意 0x15不同意|
302 302  
  303 +{
  304 + "deviceId":12345,
  305 + "timestamp":44324,
  306 + "operCode":0xC0,
  307 + "data":{
  308 + "operCode":0xa3,
  309 + "deviceId":12345,
  310 + "ipAddress":222.66.0.204,
  311 + "port":8899,
  312 + "reportMode":0,
  313 + "interval":0,
  314 + "distance":0,
  315 + "speedingThreshold":0,
  316 + "alarmThreshold":0,
  317 + "posIpAddress":0,
  318 + "posPort":0,
  319 + "delay":0,
  320 + "speedThreshold1":0,
  321 + "speedThreshold2":0,
  322 + "contrast":0,
  323 + "brightness":0,
  324 + "saturation":0
  325 + }
  326 +}
  327 +```
  328 +| .. | .. | .. |
  329 +| ---- | ---- | ---- |
  330 +| deviceId | string | 设备编号 |
  331 +| timestamp | long | 时间戳(ms) |
  332 +| operCode | short | 一级协议 |
  333 +| data.operCode | short | 二级协议 |
  334 +| data.deviceId | string | 设备编号|
  335 +| data.ipAddress | string | 网关IP地址|
  336 +| data.port | string | 网关端口|
  337 +| data.reportMode | short | 定时定距上报模式|
  338 +| data.interval | int | 定时上报时间间隔|
  339 +| data.distance | string | 定距上报距离间隔|
  340 +| data.speedingThreshold | short | 非线路状态超速阀门|
  341 +| data.alarmThreshold | short | 预警阀门|
  342 +| data.posIpAddress | string | pos机IP地址|
  343 +| data.posPort | string | pos机端口|
  344 +| data.delay | int | 延迟机关时间|
  345 +| data.deviceId | short | 中门视频切换到码表界面速度阀门 默认45|
  346 +| data.deviceId | short | 码表界面切换到中门视频速度阀门 默认35|
  347 +| data.deviceId | short | 对比度|
  348 +| data.deviceId | short | 亮度|
  349 +| data.deviceId | short | 饱和度|
  350 +
  351 +```json
  352 +{
  353 + "deviceId":12345,
  354 + "timestamp":44324,
  355 + "operCode":0xC0,
  356 + "data":{
  357 + "operCode":0xa4
  358 + }
  359 +}
  360 +```
  361 +| .. | .. | .. |
  362 +| ---- | ---- | ---- |
  363 +| deviceId | string | 设备编号 |
  364 +| timestamp | long | 时间戳(ms) |
  365 +| operCode | short | 一级协议 |
  366 +| data.operCode | short | 二级协议 |
  367 +
  368 +```json
  369 +{
  370 + "deviceId":12345,
  371 + "timestamp":44324,
  372 + "operCode":0xC0,
  373 + "data":{
  374 + "operCode":0xa5
  375 + "programVersion":2
  376 + }
  377 +}
  378 +```
  379 +| .. | .. | .. |
  380 +| ---- | ---- | ---- |
  381 +| deviceId | string | 设备编号 |
  382 +| timestamp | long | 时间戳(ms) |
  383 +| operCode | short | 一级协议 |
  384 +| data.operCode | short | 二级协议 |
  385 +| data.programVersion | short | 程序版本 |
  386 +
303 387 <span style="color: red">Response</span>:
304 388 ```json
305 389 {
... ... @@ -307,7 +391,6 @@
307 391 }
308 392 ```
309 393  
310   -
311 394 ### 调度消息上传接口
312 395 ----------
313 396 上行POST地址:[http://192.168.168.120:9088/control/upstream](http://192.168.168.120:9088/control/upstream)
... ... @@ -363,4 +446,4 @@
363 446 | direction | float | 角度0-359 |
364 447 | inTemp | int | 车内温度 |
365 448 | serviceState | long | 设备状态字 |
366 449 -| daysYear | int | 对应年中的天数 为分区字段 查询一定要用此字段过滤 |
  450 +| daysYear | int | 对应年中的天数 为分区字段 查询一定要用此字段过滤 |
367 451 \ No newline at end of file
... ...