摘要: 以微软公司的MSComm串口通信控件为底层接口,建立了一个简单的串口通信协议(SPCP)。SPCP协议的设计基于帧传输的思想,采用发送/应答/重连/失败的方式进行。利用该协议能实现双机短信聊天、文件传输等实时数据通信功能。
关键词:
SPCP,
通信协议,
串口,
数据帧
Abstract: This paper proposes a simple serial port communication protocol (SPCP) based on MSComm developed by Microsoft Company. The notion underling SPCP design is data frame transfer in sending/acknowledging/reconnecting/failure way. By SPCP, real-time applications can be developed, for example, peer-to-peer chatting, file transfer, and so forth.
中图分类号:
王承君. 自定义串口数据通信协议的分析与设计[J]. , 2004, 30(24): 196-198.
WANG Chengjun. Analysis and Design of Self-defining Serial Port Communication Protocol[J]. , 2004, 30(24): 196-198.