Computer Engineering and Applications ›› 2013, Vol. 49 ›› Issue (3): 65-68.

Previous Articles     Next Articles

CAN communication driver and multi-channel communication scheduling based on DeltaOS

TAN Liang1,2, WU Xiao1,2, ZHANG Kailong1,2, SU Erfeng1,2   

  1. 1.School of Computer Science, Northwestern Polytechnical University, Xi’an 710072, China
    2.Shaanxi Key Laboratory of Embedded System Technology, Xi’an 710072, China
  • Online:2013-02-01 Published:2013-02-18

DeltaOS下的CAN总线驱动及多通道通信调度

谭  亮1,2,吴  晓1,2,张凯龙1,2,苏二峰1,2   

  1. 1.西北工业大学 计算机学院,西安 710072
    2.陕西省嵌入式系统技术重点实验室,西安 710072

Abstract: This paper analyzes the basic framework of device driver based on DeltaOS, designs and implements multi-channel driver of PMC-CAN. In connection with the characteristics of real-time and multitask in DeltaOS, based on watchdog timer, this paper effectively simplifies the design of periodic task polling in the multitask environments. It also designs a method of processing multi-channel interrupt to improve the efficiency of multi-channel data transmission and channel utilization. Based on dynamic scheduling table it proposes a scheduling method for the system of multi channels of CAN. It verifies the correctness of the CAN driver and effectiveness of multi-channel’s scheduling through experiments.

Key words: DeltaOS, task polling, watchdog timer, multi-channel scheduling, dynamic scheduling table

摘要: 分析了DeltaOS的设备驱动基本框架,设计实现了多通道PMC-CAN驱动程序。针对DeltaOS实时多任务的特点,基于看门狗定时器方法,有效简化了多任务环境下周期任务轮询程序的设计;设计了一种多通道中断处理的方法,提高了多通道数据传输效率及通道利用率;针对多个CAN通道的调度提出了一种基于动态调度表的调度方法;通过实验验证了CAN驱动的正确性及多通道调度的有效性。

关键词: DeltaOS, 任务轮询, 看门狗定时器, 多通道调度, 动态调度表