机器云


3、结果上报

<p><strong>出货结果上报</strong></p> <pre><code>{ "time": 1500152455,//时间戳 "macno": 1520164,//设备号 "aisle_nums": 10//货道数量 "total": 5,//出货总数 "oid": 4242,//订单号 "aisle_1": 1//货道编号 "nums_1": 1,//出货数量 "aisle_2": 1//货道编号 "nums_2": 1,//出货数量 "aisle_i": 1//货道编号 "nums_i": 1,//出货数量 }</code></pre> <p><strong>心跳上报</strong></p> <pre><code>{ "macno": 1520164,//设备号 "lastbeat": 15201640215,//最后通信时间 ,判断在线离线 "type": tcp }</code></pre> <p><strong>货道自检结果上报(一次上报10个)</strong></p> <pre><code>{ "type": checkmachine,//掉货检测板状态上报 "macno": 1520164,//设备号 "start": 17//货道开始编号的前2位数字 "aisle_1": 1//start拼接上0 的货道状态1可用 0不可用 "aisle_2": 1//start拼接上1 的货道状态1可用 0不可用 "aisle_3": 1//start拼接上2 的货道状态1可用 0不可用 "aisle_i": 1//start拼接上(i-1) 的货道状态1可用 0不可用 }</code></pre> <p><strong>货道状态上报</strong></p> <pre><code>{ "type": status_2,//货道状态上报 "macno": 1520164,//设备号 "status": 1//状态 1 正常 2 电机故障 3 电磁锁故障 "aisle_num": 1//货道编号 "time": 1//时间戳 }</code></pre> <p><strong>掉货检测板状态上报</strong></p> <pre><code>{ "type": status_1,//货道状态上报 "macno": 1520164,//设备号 "status": 1//状态 1正常 0 异常 "time": 1//时间戳 }</code></pre> <p><strong>设置温度结果上报</strong></p> <pre><code>{ "type": settemperature,//设置温度结果回调 "macno": 1520164,//设备号 "status": 1//状态: 1-设置成功 0-设置失败 "temperature": 15,//设置的温度值 "number": 1//机柜号 } { "type": temperature,//设备主动上报温度 "macno": 1520164,//设备号 "time": 1511661561//时间戳(毫秒) "temperature": 15,//温度值 "number": 1//机柜号 }</code></pre> <p><strong>信号上报</strong></p> <pre><code>{ "type": status_3,//信号上报 "macno": 1520164,//设备号 "value": 1//信号值 "number": 1//机柜号 }</code></pre>

页面列表

ITEM_HTML