计算机应用 ›› 2011, Vol. 31 ›› Issue (08): 2065-2067.DOI: 10.3724/SP.J.1087.2011.02065

• 网络与通信 • 上一篇    下一篇

基于曼彻斯特码的通信协议设计及实现

周青山1,王珏1,2,谭辉2   

  1. 1. 重庆大学 自动化学院,重庆400030
    2. 重庆大学 ICT研究中心,重庆400030
  • 收稿日期:2011-02-17 修回日期:2011-04-20 发布日期:2011-08-01 出版日期:2011-08-01
  • 通讯作者: 王珏
  • 作者简介:周青山(1987-),男,重庆忠县人,硕士研究生,主要研究方向:嵌入式操作系统、工业CT数据传输;王珏(1961-),男,四川仁寿人,教授,博士生导师,主要研究方向:工业CT、检测技术、自动化装置;谭辉(1983-),男,湖南耒阳人,助理研究员,硕士,主要研究方向:数据采集与传输、嵌入式操作系统。

Design and realization of communication protocol based on Manchester code

Qing-shan ZHOU1,Jue WANG1,2,Hui QIN2   

  1. 1. College of Automation, Chongqing University, Chongqing 400030, China
    2. ICT Research Center, Chongqing University, Chongqing 400030, China
  • Received:2011-02-17 Revised:2011-04-20 Online:2011-08-01 Published:2011-08-01
  • Contact: Jue WANG

摘要: 为了在强干扰环境下进行数据的准确传输,设计了一种基于曼彻斯特码的通信协议。协议分为发送模块和接收模块:在发送端,采用了数据打包传输;在接收端,采用了“错位码+计数器”的方法进行时钟同步。协议能有效解决数据边界识别问题和时钟累积误差造成的相位偏差问题。利用设计和制作的硬件实验平台,在模拟的干扰环境中,进行了40Mbps数据的传输测试。结果表明,该通信协议能够进行数据的准确传输。

关键词: 曼彻斯特码, 通讯协议, 错位码, 时钟, 相位偏差

Abstract: To transmit data accurately in strong interference environments, a communication protocol based on Manchester code was designed. It is composed of sending module and receiving module: data were transferred in the form of “packets” at the sending end; dislocated code and a counter were used to solve the problem of clock synchronization at the receiving end. The communication protocol could solve the issue of identifying the data boundaries and the phase error caused by the accumulated error of clock. In a simulated interference environment, a transfer rate of 40Mbps was achieved on a platform. The experimental results indicate that the communication protocol is able to transmit data accurately.

Key words: Manchester code, communication protocol, dislocated code, clock, phase error

中图分类号: