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

计算机工程 ›› 2012, Vol. 38 ›› Issue (10): 86-88. doi: 10.3969/j.issn.1000-3428.2012.10.025

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

Xenomai平台下基于以太网的实时通信方案

陈进朝,杜承烈,黄俊江   

  1. (西北工业大学计算机学院,西安 710129)
  • 收稿日期:2011-06-27 出版日期:2012-05-20 发布日期:2012-05-20
  • 作者简介:陈进朝(1987-),男,博士研究生,主研方向:以太网通信,实时操作系统;杜承烈,教授、博士生导师;黄俊江,硕士研究生

Ethernet-based Real Time Communication Solution Under Xenomai Platform

CHEN Jin-chao, DU Cheng-lie, HUANG Jun-jiang   

  1. (School of Computer, Northwestern Polytechnical University, Xi’an 710129, China)
  • Received:2011-06-27 Online:2012-05-20 Published:2012-05-20

摘要: 分析Xenomai平台下实时通信的要求,提出一种基于以太网的实时通信解决方案。将以太网网卡驱动从Linux内核迁移至 Xenomai实时内核,采用时分多址的介质访问控制机制,对各个节点的数据帧发送时刻进行控制,利用多路分解方法解决线程和数据包的优先级倒置问题,采用零拷贝技术减少数据包穿越协议栈时的复制次数。实验结果表明,该方案能实现Xenomai平台下任务间的实时网络通信。

关键词: Xenomai平台, 实时通信, 实时任务, 以太网, 多路分解

Abstract: This paper analyzes the requirements of the real time communication under Xenomai platform. It presents an Ethernet-based real time communication solution. It ports the Ethernet Network Interface Card(NIC) driver from the Linux kernel to the real time kernel. Time Divide Multiple Access(TDMA) based Media Access Control(MAC) supplies a definite period of time sending data frames for all nodes. It uses demultiplexing method to solve the priority inversions of threads and data packets, and also uses zero-copy technology to reduce the times when data packets cross the protocol stack. Experimental results show that this solution can realize the real time communication of inter task under Xenomai platform.

Key words: Xenomai platform, real time communication, real time task, Ethernet, demultiplexing

中图分类号: