电信科学 ›› 2010, Vol. 26 ›› Issue (5): 105-109.doi: 10.3969/j.issn.1000-0801.2010.05.030

• 研究与开发 • 上一篇    下一篇

基于串口的处理器间通信方式的研究与实现

赵婉芳1,赵刚2   

  1. 1 北京电子科技职业学院 北京 100016
    2 中国电话号簿公司 北京 100032
  • 出版日期:2010-05-15 发布日期:2010-05-15

Research and Implementation of Inter-Processor Communication Mode Based on Serial Port

Wanfang Zhao1,Gang Zhao2   

  1. 1 Beijing Vocational College of Electronic Science,Beijing 100016,China
    2 China Telephone Directory Corporation,Beijing 100032,China
  • Online:2010-05-15 Published:2010-05-15

摘要:

为了保证双处理器间数据通信的稳定可靠,兼顾实现方式的低成本和易移植,本文提出了在串口通信中引入TCP/IP协议栈来实现处理器间的通信。在该方式的实现过程中解决了上层协议栈和串口驱动之间的数据交换问题和物理串口传输以太网数据问题。文章具体分析了该通信方式的实现原理,并讨论了上层协议栈接口、串口驱动、串口分帧的设计以及具体实现过程。

关键词: 串口通信, TCP/IP, 以太网, Linux

Abstract:

In order to improve the stability of dual processors communication,reduce cost and ensure the portability,the paper applied TCP/IP to serial port to process the communication among processors by solving the issue of data exchange between upper layers protocol stack and serial port driver,and the issue of ethernet data transmission via physical serial port. The paper emphasized to analyze the implementation principle of the communication mode,introduced upper layer protocol stack interface, serial port driver,serial port framing and the detailed implementation process of the communication.

Key words: serial communication, TCP/IP, ethernet, Linux

No Suggested Reading articles found!