Research and implementation of electronic driver software automation testing
- Author
- ZhangLei
- Advisor
- GaoHuiMin
- School
- Taiyuan University of Science and Technology
- Major
- Systems Engineering
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 14
- Citations
- 0
Abstract
Train Rear Safety Device is one of the important safety device in the railwaysystem. The electronic commander is one of the core device of this importantdevice. Electronic commander hang at the last one compartment of freight train,and connect to the train brake hose. It communicate to the traction train by radio.It replaces the traditional caboose way, with real-time query of the tail pressureand emergency brake.As a most important safety device, the electronic commander must keep itsperfect status before it beginning to work. To make sure this status, we have totest it every time before it works. But we always face to a situation. There is notenough qualification to make a complex test. Sometimes we use a simple way totest it.This thesis is a part of an innovation project of a group. The purpose of thispart is to reach and develop a automation electronic commander equipment. Theequipment includes hardware and software, such as industrial computer, CANbus, RS232bus, RS485bus, framework and displayer.The main content of this thesis is how to research and develop the software.It contains CAN bus communication, serial port communication, multi-thread,database and so on. The emphasis of this thesis are data communication and theusage of database.This equipment is working at a exclusive railway of a group. It works welland stable. The customer give it a high praise.
Table of contents
Chinese abstract 3-4
Abstract 4-8
Chapter 1 Introduction 8-12
1.1 Project Background 8
1.2 meaning 8-9
1.3 The main contents 9-12
Chapter 2 train rear safety devices 12-20
2.1 system features 12
2.2 hardware components and functions 12-15
2.2.1 ZTF2002F electronic car length 12-14
2.2.2 driver monitor 14
2.2.3 enter the number of portable electronic devices drivers 14
2.2.4 antennas and train data acquisition and control device 14-15 <br / > 2.3 works 15-18
2.4 test standard electronic vehicle length achieve 18-20
Chapter 3 hardware modules 20-34 <br / > 3.1 hardware systems constitute 20-21
3.1.1 test Bench 20
3.1.2 industrial Computer 20-21
3.1.3 radio station control box 21
3.1.4 CAN bus controller 21
3.1.5 powered systems and network interfaces 21
3.2 infrared communication devices 21-25
3.2.1 RS232 standard 21-22
3.2.2 Interface connector 22-23
3.2.3 serial electrical performance 23-24
3.2.4 EIA-RS-232C level and TTL level converter 24
3.2.5 TOIM4232 24-25
3.2 .6 TFDU4101 25
3.3 TAX box data communication 25-28
3.3.1 RS 485 25-26
3.3.2 RS-485 Interface features 26-27
3.3.3 RS-232-C interface converter with TIA/EIA-485-A 27-28
3.4 CAN bus communication system main application areas 28-31
3.4.1 CAN 's 28
3.4.2 CAN performance characteristics 28-29
3.4.3 USBCAN-Ⅱ CAN interface card 29-31
3.5 MCU control unit 31-34
3.5.1 FreeScale microcontroller 31
3.5.2 Freescale 16 bit microcontroller 31-32
3.5.3 Freescale 16-bit microcontroller with reference to the naming rules 32-33
3.5.4 Freescale microcontroller in the system application 33-34
development and implementation of electronic car length in Chapter 4 of automated testing software 34-56
4.1 software architecture 34-35
over 4.2 thread 35-36
4.2.1 worker thread and UI thread 35
realize 4.2.2 multithreading technology 35-36
achieve 4.3 infrared communication function 36-39
4.3.1 MSComm control common property 37
4.3.2 TOIM4232 chip communication to achieve 37-39
4.4 TAX2 data analog functions to achieve 39-40
4.5 serial data debug achieve 40
4.6 CAN bus communication functions 40-48 <br / > 4.6.1 CAN data frame Profile 41
4.6.2 CAN dynamic library functions and their use 41-46
4.6.3 USB-CAN transceiver data achieve 46-48
4.7 electronic car length specific test functions 48-56
4.7.1 radio communications test 48-50
4.7.2 gas tightness test 50-51
4.7.3 exhaust test 51
4.7.4 sensor accuracy test 51-52
4.7.5 wind pressure leak alarm function test 52-56
realize Chapter 5 database functionality 56-62
5.1 ADO technology Overview 56
5.2 common ADO objects introduced 56-57
5.2.1 connection object 56
5.2.2 command object 56
5.2.3 record set object 56-57
5.2.4 field object 57
5.2.5 parameter object 57
5.3 to create a database using Access-2000 57 -58
5.3.1 Access-2000 database structure 57
5.3.2 to create an empty database 57
5.3.3 Creating a database table 57 -58
5.4 manipulate the database via ADO 58-62
5.4.1 preparations before using ADO 59
5.4.2 connection turned off databases nbsp operation 59-60
5.4.3 database ; 60-62
Chapter 6 summarizes the improvement 62-64
6.1 summarizes the project and implementation 62
6.2 needs to continue to improve the local 62-64
References 64-66