本文成功地将符合OSEK/VDX 标准的嵌入式实时操作系统OSEK Turbo OS 应用到燃料电池城市客车整车控制器中。将控制程序划分为合理的任务后,通过引入实时操作系统,采用基于优先级的抢占式调度方式构建控制软件系统,不但提高了软件的执行效率,保证了控制器的实时性要求,也提高了控制软件的开发效率。在该实时操作系统的基础上,成功地实现了对整车运行的管理与控制、基于CAN 总线的各部件节点的协调控制、故障诊断和处理及数据监控记录等功能,顺利完成了燃料电池城市客车整车控制器的开发。 关键词:OSEK/VDX 实时操作系统整车控制器 燃料电池城市客车 Abstract: A real-time operating system “OSEK Turbo OS” which meets the OSEK/VDX standard has been implemented in the vehicle controller of a fuelcell city bus. Control parsers are divided into appropriate tasks, which are scheduled with priority preempt strategy by the real-time operating system. In this process, not only has the execution efficiency of software but also the development efficiency been improved, in the meantime, the real-time performance can be guaranteed. Vehicle control and management, components control via CAN bus, diagnosis, monitoring and etc. have also been successfully established in the real-time system, implementing the vehicle controller of the fuelcell city bus. Keywords: OSEK/VDX RTOS Vehicle Controller Fuelcell City Bus