Commit 6c11fab5ba98c6a6f9d33e0b877ea2852f562063
1 parent
660571e7
1
Showing
1 changed file
with
37 additions
and
1 deletions
README.md
| @@ -210,7 +210,6 @@ | @@ -210,7 +210,6 @@ | ||
| 210 | "msgId":12345, | 210 | "msgId":12345, |
| 211 | "operCode":0x60, | 211 | "operCode":0x60, |
| 212 | "data":{ | 212 | "data":{ |
| 213 | - "operCode":0x26,//有则表示二级协议 | ||
| 214 | "companyCode":22,//short | 213 | "companyCode":22,//short |
| 215 | "deviceId":"029L2222",//string | 214 | "deviceId":"029L2222",//string |
| 216 | "timestamp":134326,//long | 215 | "timestamp":134326,//long |
| @@ -223,6 +222,19 @@ | @@ -223,6 +222,19 @@ | ||
| 223 | } | 222 | } |
| 224 | } | 223 | } |
| 225 | ``` | 224 | ``` |
| 225 | +| .. | .. | .. | | ||
| 226 | +| ---- | ---- | ---- | | ||
| 227 | +| msgId | long | 消息ID 时间范围内唯一 | | ||
| 228 | +| operCode | short | 一级协议 | | ||
| 229 | +| data.companyCode | short | 公司代码 | | ||
| 230 | +| data.deviceId | string | 设备编号 | | ||
| 231 | +| data.timestamp | long | 时间戳 | | ||
| 232 | +| data.instructType | short | 保留 默认0 | | ||
| 233 | +| data.dispatchInstruct | short | 调度指令 | | ||
| 234 | +| data.msgId | long | 同上 | | ||
| 235 | +| data.alarmTime | long | 闹钟 | | ||
| 236 | +| data.serviceState | long | 参考文档 | | ||
| 237 | +| data.txtContent | string | 创建时间 | | ||
| 226 | ```json | 238 | ```json |
| 227 | { | 239 | { |
| 228 | "msgId":12345, | 240 | "msgId":12345, |
| @@ -234,6 +246,30 @@ | @@ -234,6 +246,30 @@ | ||
| 234 | } | 246 | } |
| 235 | } | 247 | } |
| 236 | ``` | 248 | ``` |
| 249 | +| .. | .. | .. | | ||
| 250 | +| ---- | ---- | ---- | | ||
| 251 | +| msgId | long | 消息ID 时间范围内唯一 | | ||
| 252 | +| operCode | short | 一级协议 | | ||
| 253 | +| data.cityCode | short | 城市区号 | | ||
| 254 | +| data.deviceId | string | 设备编号 | | ||
| 255 | +| data.lineId | string | 线路编号 | | ||
| 256 | + | ||
| 257 | +```json | ||
| 258 | +{ | ||
| 259 | + "msgId":12345, | ||
| 260 | + "operCode":0xC0, | ||
| 261 | + "data":{ | ||
| 262 | + "operCode":0x86, | ||
| 263 | + "requestAck":0x06 // 0x06同意 0x15不同意 | ||
| 264 | + } | ||
| 265 | +} | ||
| 266 | +``` | ||
| 267 | +| .. | .. | .. | | ||
| 268 | +| ---- | ---- | ---- | | ||
| 269 | +| msgId | long | 消息ID 时间范围内唯一 | | ||
| 270 | +| operCode | short | 一级协议 | | ||
| 271 | +| data.operCode | short | 二级协议 | | ||
| 272 | +| data.requestAck | short | 请求应答字 | | ||
| 237 | 273 | ||
| 238 | <span style="color: red">Response</span>: | 274 | <span style="color: red">Response</span>: |
| 239 | ```json | 275 | ```json |