02H,52H,48H,30H,31H,32H,33H,34H,35H,36H,37H,38H,39H,03H,03H,25H,13H,
12H,30H,03H,29H,03H上位机接收到数据后,发送返回如下:
允许通过发送: 02H,52H,50H,03H,03H,25H,13H,12H,30H,01H,24H,03H
不允许通过发送: 02H,52H,51H,03H,03H,25H,13H,12H,30H,01H,25H,03H
要求单片机再次发送数据发送:02H,52H,52H,03H,03H,25H,13H,12H,30H,01H,26H,03H
上位机设置单片机时间:假设当前时间为2003/5/13,早上9点42分20秒,上位机发送数据:02H,52H,54H,03H,05H,13H,09H,42H,20H,01H,2EH,03H。单片机数据接收正确,返回状态:02H,52H,49H,48H,00H,E5H,03H ;单片机数据接收错误,请求重发:02H,52H,49H,49H,00H,E6H,03H。
上位机查询单片机状态:假设当前时间为2003/5/13 早上9点42分20秒,上位机发送数据:02H,52H,53H,03H,05H,13H,09H,42H,20H,01H,2DH,03H;单片机返回状态:02H,52H,49H,48H,00H,E5H,03H(48H表示无故障,其它依次类推)。上位机查询单片机最后一次记录的卡号和时间:假设当前时间为:2003/5/13,早上9点42分20秒,单片机最后一次记录处理卡号的时间是:2003/5/12,下午16点30分59秒,上位机发送数据:02H,52H,52H,03H,05H,13H,09H,42H,20H,01H,2CH,03H;单片机返回:02H,52H,48H,30H,31H,32H,33H,34H,35H,36H,37H,38H,39H,03H,05H,13H,09H,
42H,20H,03H,2FH,03H。
四、结语
目前使用的停车场管理系统硬件复杂、体积较大,而且价格昂贵,出现故障时很难检查和维护。基于P89c58核心的停车场管理功能板结构简单,本文作者的创新点是在硬件和软件设计过程中充分开发了P89c58的功能,达到了最高的性价比;在软件设计方面考虑较周到, 使通讯顺畅、功能齐全、管理人性化,并且性能稳定、监测数据准确。实际试验后效果很好。