计算机应用 ›› 2005, Vol. 25 ›› Issue (02): 273-275.DOI: 10.3724/SP.J.1087.2005.0273

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

嵌入式CANEthernet网关的设计与实现

杨波1,2,徐成1   

  1. 1.湖南省嵌入式计算及系统重点实验室; 2.湖南大学软件学院
  • 出版日期:2005-02-01 发布日期:2005-02-01

Design and implementation of embedded CAN-Ethernet gateway

YANG Bo1,2, XU Cheng1   

  1. 1.Hunan Provincial Key Laboratory of Embedded Computing and System, Changsha Hunan 410082,China; 2. College of Software, Hunan University, Changsha Hunan 410082,China
  • Online:2005-02-01 Published:2005-02-01

摘要:

介绍了以太网与CAN现场总线网间嵌入式网关的软硬件结构设计,描述了uClinux上CAN设备驱动程序的处理流程及其设计方法和技巧。针对CAN协议的特点,为不同实时等级的信息报文设立四个分组,设计了多帧数据发送报文结构,为设备驱动程序的收发缓冲区设计合理的数据结构和管理方法,提高了CAN通讯效率。

关键词:  嵌入式系统, uClinux, CAN现场总线, 设备驱动程序

Abstract:

The architecture of software and hardware of the embedded CAN-Ethernet gateway were introduced, and the principle, the designing methods and technoloques of the CAN Device Driver in uClinux were described. According to the features of the CAN protocol, data package was classified into four groups with different real-time request; the structure of multi-frame was proposed to satisfy the request of sending mass data; the data structure and the method of management for the buffer of the CAN Device Driver were designed to improve the capability of communication.

Key words: embedded system, uClinux, CAN bus, device deriver program

中图分类号: