摘要
以景区闸机为设计平台,介绍了串行通讯协议的设计实现方法,包括通讯帧设计,通讯实现图设计,通讯状态设计及具体的编程实现。叙述了从帧结构设计到具体帧接收的实现方法,介绍了涉及到的相关技术,如环形缓冲区、队列和状态机。该方法对异步串行通讯协议的设计与实现有一定的参考意义。
With scenic gate as design platform,this paper introduces the method of implementation and design of serial communication protocol,including the design of communication frame,communication diagram,communication state and the implementation of programme and the related technologies,such as the circular buffer,queues and state machine and describes the implementation method of the frame structure design and frame grabber.The method is of certain reference significance for the design and implementation of the asynchronous serial communication protocol.
作者
沙亚雄
徐骏善
SHA Yaxiong;XU Junshan(School of Mechnical Engineering,Nanjing University of Science&Technology,Nanjing 210094,China)
出处
《机械制造与自动化》
2018年第2期179-182,共4页
Machine Building & Automation
关键词
串行通讯
协议设计
闸机
serial communication
protocol design
gates