光电技术应用, 2018, 33 (5): 44, 网络出版: 2019-01-10
基于STM32F103的HDLC通信接口设计与实现
Design and Implementation of HDLC Communication Driver Based on STM32F103
摘要
在中高速同步半双工和全双工通信领域, 高级数据链路控制(HDLC)协议因其强大的差错检测、高可靠性、高效率、透明传输等优点而被广泛使用。在航空、航天等特殊的使用场合, 由于对于数据传输正确性和可靠性的要求更高, 在实际使用中往往对HDLC协议进行改进。介绍了一种采用HDLC特殊数据帧结构实现单路半双工数据通信的接口设计方案。该方案采用STM32F103微处理器和差分收发芯片架构, 通过软件编程的方式, 实现了HDLC特殊格式数据帧的解析与生成。测试结果表明, 该通信接口设计方案的合理、正确和可行。
Abstract
Because of the advantages of powerful error detection, high reliability, high efficiency and transparent transmission, high level data link control (HDLC) protocol is widely used in the field of medium and high speed synchronous half-duplex and full-duplex communication. In special occasions such as aviation and aerospace, due to higher requirements of transmission correctness and reliability, HDLC protocol always needs to be improved. A HDLC interface design using special data frame which completed single channel half-duplex data communication is described. Using STM32F103 microprocessor and differential driver and receive pair chips, this design achieves parsing and generation of HDLC data using special frame by the way of software programming. The test results show that the communication interface design is reasonable, correct and feasible.
李永强, 郭少雷. 基于STM32F103的HDLC通信接口设计与实现[J]. 光电技术应用, 2018, 33(5): 44. LI Yong-qiang, GUO Shao-lei. Design and Implementation of HDLC Communication Driver Based on STM32F103[J]. Electro-Optic Technology Application, 2018, 33(5): 44.