项目软件进度总结

1、卡号上传

  (1)本地有卡号

  (2)本地无卡号

2、卡号同步,服务器下发卡号

  (1)下发单个卡号

  (2)json数组批量下发多个卡号

  (3)单次下发卡号最大数目限制

3、心跳包(带门禁状态)

  (1)心跳包上发(GPRS A9 MAC地址使用SIM卡CCID前10位)

  (2)心跳包响应 :时间、动态密码、卡号格式

4、接收数据

  (1)临时密码(超时无效)

  (2)动态密码(每日更新)

  (3)开门

  (4)门弹回时间

5、本地超级密码设置

6、RTC

7 、IIC密码开门

8、http服务器只有接收到心跳包后,没任何动作会返回心跳包响应;其他连接没有数据往来,1分钟后自动断开。

 

 

 

 

发送内容和响应:(最后有回车  按HTTP协议)

GET http://app.tdvpn.com/heartbeat?mac=798607B01017&status=00/ HTTP/1.1
Host:localhost

响应:

HTTP/1.1 200 
Content-Type: application/json;charset=UTF-8
Content-Length: 44
Date: Mon, 15 Jan 2018 05:26:11 GMT

{"date":"180115132611","mac":"798607B01017"}

上发内容为刷卡记录:

GET http://app.tdvpn.com/acrecord?mac=898607B81017&type=1&num=2384885493/ HTTP/1.1
Host:localhost


HTTP/1.1 200
Content-Type: application/json;charset=UTF-8
Content-Length: 85
Date: Mon, 15 Jan 2018 07:06:20 GMT

{"date":"2018-01-15 15:06:20","code":404,"success":false,"message":"闂ㄧ涓嶅瓨鍦?}

 

posted on 2018-01-11 17:26  马勇123  阅读(157)  评论(0编辑  收藏  举报

导航