作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2004, Vol. 30 ›› Issue (24): 196-198.

• 论文 • 上一篇    下一篇

自定义串口数据通信协议的分析与设计

王承君   

  1. 潍坊学院计算机系 潍坊 261041
  • 发布日期:2004-12-25

Analysis and Design of Self-defining Serial Port Communication Protocol

WANG Chengjun   

  1. (Department of Computer ,Weifang College, Weifang 261041)
  • Published:2004-12-25

摘要: 以微软公司的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.

中图分类号: