摘要
介绍了支持多串口同时抄表的智能仪表软件构架、驱动层程序设计方法,并设计了一种支持多串口同时抄表的智能仪表程序。通过通信协议层和应用层中的接收回调函数、发送回调函数、接收帧处理和发送帧处理详细过程,有效地实现多个用户根据自己的权限同时对同一块仪表进行抄读。实践证明,该设计获得了较好的预期效果,具有良好的应用前景。
The paper introduces the integellent meter software architecture which supports the multi-serial ports simultaneously and driver layer programming method. And it has designed one type integellent meter procedure that support multi-serial ports simultaneous meter reading. The receive callback function, through the communication protocol level and application layer and transmission in callback function and receive frame processing and transmission frame processing, realized multiple users to act according to their own jurisdiction simultaneously to effectively copy to read together with the measuring appliance. Practice proves that the design achieves good results, and has wide application prospect.
出处
《单片机与嵌入式系统应用》
2014年第3期63-65,共3页
Microcontrollers & Embedded Systems
基金
渭南市自然科学基础研究计划项目(2012KYJ-8)
陕西省教育厅科研计划项目(14JK)
关键词
多串口
通信协议
智能仪表
回调函数
multi-serial port
communication protocol
intelligent instrument
callback function