Font Size: a A A

The Vehicle Detection System Based On Rtlinux And Implementation

Posted on:2009-07-19Degree:MasterType:Thesis
Country:ChinaCandidate:H J LiFull Text:PDF
GTID:2208360245961199Subject:Computer system architecture
Abstract/Summary:PDF Full Text Request
A good train detection system should get working status data of all components and transfer them to the terminal in time, to let operator make operation properly, so the system must have good real-time performance. Linux is an excellent operating system, but it is poor at real-time performance, it is not suitable for real-time applications, so the detection system is implemented based on RTLinux, which has good real-time performance. The system is divided into two parts: the real-time part and the non-realtime one. The real-time part communicates with hardware, collects and sends status data. The non-real-time part exchanges data between the terminal and the real time part.The train detection system is very complicated. The dissertation mainly analyzes one subsystem, which is detection computer subsystem. This detection machine communicates with two display terminal machines and two operational ones through industrial Ethernet. At the same time, it connects with lots of device nodes through CAN bus, all these make up the detection subsystem. Device nodes collect device's working status and send these data to detection machine through CAN bus, the detection machine receives the data and compares with defined values to decide whether the devices can work normally, and then it transfer the result to display machines and operational machines through the industrial Ethernet. Display machines shows device status to operator, operational machines sends operational instruct to device.This dissertation also introduces the characters and implementations of real-time operating system, and gives several oftentimes used RTOS as example. After analyzing the shortcoming of standard Linux kernel, the dissertation researches the implementation principle and the programming method of RTLinux. At the same time, the dissertation also researches the driver development based on RTLinux specially, it is important to provide basic theory of the CAN card device driver implementation in the detection system. RTLinux requires good real-time performance, so it has different running environment with ordinary Linux, such as resource usage and interrupt management, here dissertation mainly researches the design and implementation of the initialization component, interrupt handling component and the device operation interface about the device driver.At last, the dissertation focuses on design of this device driver under RTLinux, and gives its implementation. With the result we get, the system has good performance and meets the requirement.
Keywords/Search Tags:Real-Time OS, RTLinux, CAN Bus, Device Driver
PDF Full Text Request
Related items