0% found this document useful (0 votes)
45 views7 pages

Development of An On-Board Diagnostics System Base

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views7 pages

Development of An On-Board Diagnostics System Base

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Sensors & Transducers, Vol. 164, Issue 2, February 2014, pp.

100-106

Sensors & Transducers


© 2014 by IFSA Publishing, S. L.
http://www.sensorsportal.com

Development of an On-board Diagnostics System


Based on Wireless Network
1
Guosheng FENG, 2 Bo FENG, 1 Sumei JIA, 1 Lisha FENG
1
Shijiazhuang Tiedao University, Shijiazhuang, 050043, China
2
Hebei Construction Investment Group Railway Co. Ltd, 050080, China
Tel.: 13102828580
E-mail: [email protected]

Received: 28 November 2014 /Accepted: 28 January 2014 /Published: 28 February 2014

Abstract: In order to control vehicle exhaust emission effectively, an OBD is developed based on Zigbee
technology. Overall solution design of the system is proposed and the vehicle-mounted monitoring database is
established. The wireless network communication hardware platform is set up by the MC9S08GT60
microcontroller and the MC13192 wireless module. The project document is produced with the help of BeeKit
wireless connectivity toolkit. Under the CodeWarrior IDE development environment, the monitoring station
coordinator networking program and the vehicle-mounted terminal device networking program are designed.
Experimental results shows that this system complete data exchange between the monitoring station coordinator
and the vehicle-mounted terminal device and transfer data into monitoring station computer. The wireless
network of OBD is realized. Copyright © 2014 IFSA Publishing, S. L.

Keywords: Automobile, OBD, Wireless network, ZigBee, MC13192.

1. Introduction Through wireless cellular communication,


satellite communication or Global Positioning
With the increase of vehicle population, the System, OBD III system which takes advantage of
automobile exhaust emissions have become one of the small-vehicle wireless transceiver system, can
the main factors causing air pollution. In order to automatically give the management department some
control vehicle exhaust emission pollution according information including Vehicle identification number
to the law, the major automobile manufacturers have VIN, fault codes and location information. On the
equipped their cars with OBD diagnostic system. The vehicle emission level, the administrative
system is used in the mid-90s, which has strict departments issued a directive including where to
emissions pertinence and its essence is to monitor accept the maintenance time limits of solving the
vehicle emissions [1]. Though OBD-II diagnoses emissions problem and so on. On the basis of the
some emission-related fault, it cannot guarantee the relevant laws and regulations these information will
driver to accept the warning of fault indicator MIL issue the punishment of forbidding operation for the
(Malfunction Indictor Lamp) and timely repair the cars which cause excessive emissions of pollution
vehicle failure [2-3]. A new generation of OBD because of improper maintenance, and also it can
systems-The OBD-III is produced, which is featured lead to punishment to the offenders. OBD-III not
with the wireless transmission of fault information. only requires related communications technologies,

100 Article number P_1838


Sensors & Transducers, Vol. 164, Issue 2, February 2014, pp. 100-106

standards and regulations, it also proposes a higher network coordinator (Full Function Device FFD).The
demand on the accuracy and reliability of the OBD vehicle (Reduced Function Device RFD) is a sensor
system diagnostic functions, now OBD-III is still in node with transceiver function. Through the license
development stage. plate number, these nodes correspond to other
This paper develops the vehicle-mounted information of the vehicle uniquely. When the RFD
diagnostic OBD system based on ZigBee technology, into the coverage of FFD local area network, FFD
comes up with the overall solution design of the collects RFD vehicle diagnostic information and it
system, establishes a monitoring station database, will be transmitted to database of monitor station
complete the system's hardware and software design , computer through the serial port and to monitoring
Preliminary realizes OBD system of wireless center computer finally for completing the on-board
network, and provides the reference for domestic car emissions monitoring and management [4-7].
OBD - III system development. Systems network architecture shown in Fig. 1.
The system consists of the OBD self-diagnostic
system and emissions monitoring system. The
prototype of the OBD self-diagnostic system is the
2. System Project Design OBD-II system which completes the diagnosis of car
emission-related parts. The emission monitoring
In order to design the wireless transceiver system system is the network of OBD system which
which uses ZigBee technology, monitoring stations completes the automatic collecting and processing of
on the vital communication line and crossings was set diagnostic parameters of the vehicle OBD system
up and every station will be equipped with a ZigBee under the unsupervised mode.

Fig. 1. Systems network architecture.

3. Monitoring Station Database information management, vehicle information


management, vehicle owner information
Stations computer can read the vehicles archives management, monitoring records management,
information (Vehicle VIN, License plate number, illegal vehicle management, monitoring information
Owners, etc), fault code, etc which are stored in the query [10].
database. Through the analysis of the fault code, To realize its function, the corresponding logical
stations computer can give emission level, instruction structure was established as shown in Table 1.
of maintenance advice and maintenance time limit, For the realization of data revision and query, first
etc, and issues fines and banned driving commands to the relationship between data table was set up, among
the vehicle which are beyond maintenance time limit. them those were correlated that data tables of the
First the monitoring station database was established vehicle information management, the owner
base on the Access database management system. information management, the illegal vehicle
Then the database was operated using LabVIEW management and the monitoring records management
database toolkit. Finally the LabVIEW program for with primary key "license plate number" field. At the
creating forms, adding records and deleting records same time, the data table of illegal vehicle
in the database were designed. management and the data table of monitoring records
management were correlated with "transit time" field.
The data table of monitoring station information
3.1. Establish Database
management and the data table of monitoring records
The function of vehicle-mounted monitoring management were done with "monitoring station
database mainly includes: Monitoring station numbers".

101
Sensors & Transducers, Vol. 164, Issue 2, February 2014, pp. 100-106

Table 1. Vehicle information management table logical structure.

Field name Field explanation Data type Field size note


VehicleID License plate number text 8 Major key
VehicleType Vehicle type text 4 —
BuyTime Purchase time date/time — date
Purchase compel
BuyComInsu logic 2 —
Insurance
AnnualInsp Annual inspection logic 2 —

3.2. Database Operation Procedure 4. System Hardware Design


In order to realize operation database used the
LabVIEW database toolkit, the database will be Overall design of the hardware platform between
connected. The method of DSN (Data Source Names) the vehicle terminal and the station coordinator in the
was used for connecting the database to establish the wireless network OBD system is shown in Fig. 4.
program code as shown in Fig. 2. After database is Connected with sensors by single-wire,
connected, such as create a form, adds records, delete MC9S08GT60 is the core of the entire hardware
records, inquire the records, close window in platform, and is responsible for collecting the signals
database were carried out, the program code of generated by each sensor and also complete A / D
adding records as shown in Fig. 3. conversion, data processing operations.

Fig. 2. The program code of connecting database.

Fig. 3. The program code of adding records.

It communicates with the MC13192 through the display of data and program download, debugging,
SPI bus, completing data transceiver and control and other operations, Vehicle terminal completes
information exchange. radio frequency communication with the coordination
It is connected with the PC through the RS232 through two MC13192, uploading data and issuing
serial port and the BDM interface, completing the control directive.

102
Sensors & Transducers, Vol. 164, Issue 2, February 2014, pp. 100-106

4 SPI lines, an IRQ interrupt request line and


3 Control lines, as shown in Fig. 5.

Fig. 5. MC9S08GT60 and the MC13192 interface circuit.

Fig. 4. Overall design of the hardware platform.


4.2. MC13192 RF Circuit
4.1. The Interface Circuit Between
MC9S08GT60 and MC13192 RF circuit is composed by the signal receiving
circuit, the signal transmission circuit and crystal
Since both MC9S08GT60 and MC13192 are from oscillator circuit, shown in Fig. 6.
Freescale, and the interfaces are relatively simple:

Fig. 6. MC13192 RF circuit.

103
Sensors & Transducers, Vol. 164, Issue 2, February 2014, pp. 100-106

Pin1 and pin2 are signal receiving ends, leading coordinator, and then issue a request to enter the
to the signal receiving circuit; pin 5 and pin6 are the network, having received the response of the
signal sender, leading to the signal sending circuit. coordinator, it will send their own 64-bit physical
Chip is connected to an external 16 MHz crystal to address to the coordinator, and after that the
form a crystal oscillator circuit, providing the clock coordinator will allocate short address according to
signal to the chip. the receiving order of the physical address of the
The role of the antenna is very important in terminal equipment. At that time, terminal equipment
wireless communication systems. The MC13192 network is successfully connected. After that,
works at 2.4 GHz and uses balanced monopole terminal equipment will send the information such as
antenna or the inverted-F antenna. In this paper, the license plate number, vehicle VIN, and whether the
inverted-F antenna is used and it is embedded emissions are beyond the standard to the coordinator.
directly on the PCB, low cost and good effect. With the vehicle gradually leaving the stations, the
signal of the coordinator gradually decreases, and
finally vehicle exits from the network. Vehicle
5. System Software Design terminal equipment’ network design flow chart is
shown in Fig. 8.
Because MC9S08GT60 read and write MC13192
register through the 4-wire SPI interface, it is needed
to design the SPI communication [11], and later 5.3. Program Design of Receiving and
design the procedure of short distance wireless
Dispatching Oxygen Sensor
communication between the coordinator and vehicle-
mounted terminal, completing the exchange of data Voltage Signal
between coordination and vehicle terminal, and
transmitting data via the serial port to a monitoring Oxygen sensor is ternary catalytic system
station computer. components, but also the key sensor that OBD system
to test for, and an important change for national III
emission standard is equipped with the oxygen
5.1. Program Design of the Stations sensor, so as to better monitor transformation
Coordinator efficiency of the catalytic converter systems. Oxygen
sensor output voltage signal collection mainly
The main task of the stations coordinator is to includes four parts: A/D conversion, interrupt
establish a network and receive the information of the handling, SCI serial port to send, LabVIEW serial
vehicle terminal. When coordinator is powered on, it storage data read [11]. To realize an A/D module's
first needs to initialize ZigBee protocol stack, and collecotion voltage, we can call function
then network management requires the MAC layer to getVoltage(), based on the wireless transceiver
complete the energy scan of the 16 channel, and to processes written in the Zigbee2004 protocol stack as
detect whether there are other ZigBee networks in the shown in Fig. 9.
channels specified by coordinator, and finally select
the appropriate channel based on the results of the
scan. Then it is needed to select the PAN identifier, 6. System Experiment
ensuring that there is no conflict between the selected
PAN identifier and other PAN identifier which is in We set a piece of MC9S08GT60 and
the same channel. After the PAN identifier is chosen, MC13192SARD plate on the laboratory and a car
it is needed to select the network coordinator’ 16 which is 100 meters away from laboratory, do
short address; at last the coordinator can be started, experiment of coordinator and the vehicle-mounted
and begins to receive the connection request of the terminal of dispatch and receipt of monitoring station
vehicle terminal equipment, realizing the sending and database information and coordinator receiving
receiving of the data through CSMA/CA algorithm. oxygen sensor voltage signal.
Stations coordinator network design’ flow chart is
shown in Fig. 7.
6.1. Database Information Experiment
5.2. Program Design of the Vehicle in Monitoring Station
Terminal Equipment
The 9 voltage power supply was adopted in two
There are two main tasks about the vehicle pieces of MC13192 SARD. One of them work as the
terminal equipment: firstly, find the network and join coordinator, the other piece work as vehicle terminal,
the network, secondly, send vehicle’s information to the RS232 serial line link with the two PC
the coordinator. When the vehicle terminal go respectively, and the coordinator procedures and
through the monitoring station, vehicle terminal vehicle-mounted terminal program were downloaded
equipment will scan the channel to find stations to the two boards with BDM emulator.

104
Sensors & Transducers, Vol. 164, Issue 2, February 2014, pp. 100-106

Fig. 7. Stations coordination network Fig. 8. Vehicle terminal equipment network


design process. design process.

Fig. 9. Zigbee wireless transceiver process.

105
Sensors & Transducers, Vol. 164, Issue 2, February 2014, pp. 100-106

First of all power on the coordinator, and transition from OBD II to the OBD III. It completes
secondly the terminal nodes and experimental results the exchange of data between the monitoring station
will be shown in the SSCOM 3.2 serial debugging coordination and vehicle terminal, and sends the data
tools. Serial port sets as follows: Port is the COM 4- to the monitoring station through the serial port,
port, Baud rate is 57600, data bit is 8, stop bit is 1, no preliminarily realizing the wireless the OBD system.
parity and no flow control. Coordinator starts the
network and receives the data. Vehicle terminal joins
the network and sends the data. The physical address Acknowledgement
of the coordinator is 0xFFFFFFFFFFFFFF01, PAN This project was supported by the National
identifier is 0x00001347, the channel is 0x14; The Nature Science Fund of China (Grant No. 11272220).
physical address of the vehicle terminal is
0xFFFFFFFFFFFFFF02, short address is 0x1699, the
data to be sent including: plate number VehicleID is References
Hebei A, 5C688, StationID is 265 301, passage time
[1]. Feng Guosheng, Zhang Junqing, Zhang Wie, Light-
is 2011-9-15 14:25:18 and NO emission excessive. duty gasoline vehicle OBD parts detection system
development, Automotive Engineering, Vol. 30,
6.2. Oxygen Sensor Voltage Signal Issue 7, 2008, pp. 602-604.
[2]. Yan Shuanghe, Su Wentao, Yang Weixin, Car remote
Experiment monitoring system based on OBD II, World
First of all, the voltage signal of front and back Electronic Components, No. 5, 2009, pp. 60-62.
[3]. Huang Airong, Xiang Zhengtao, Zhang Tao, Design
oxygen sensor in the car was connected to vehicle- and implementation of real-time monitoring system
mounted terminal equipment. Then start coordinator of the vehicle information, Vehicle Information Real-
and build network. When LED is bright, it shows that Time Monitoring System, Vol. 31, Issue 8, 2010,
the network sets up successfully. After that, the pp. 1839-1847.
vehicle-mounted terminal equipment was started and [4]. Tsinoqlou Dimitrios, Samaras Zissis, Malfunctions in
let it join the network, when serial port receives selected emissions-related components of euro
related information it shows that terminal equipment 4 passenger cars: Emissions increase and OBD
join network successfully. Terminal equipment start system response, SAE International Journal of Fuels
sending voltage data, coordinator receive voltage data and Lubricants, Vol. 2, Issue 1, 2009, pp. 250-258.
[5]. Yufeng Chen, Zhengtao Xiang, Wei Jian, Weirong
and sent it to the serial port, and LabVIEW Jiang, Design and implementation of multi-source
application reads serial data, serial port have received vehicular information monitoring system in real time,
oxygen sensor voltage signal as shown in Fig. 10. in Proceedings of the IEEE International Conference
on Automation and Logistics, 2009, pp. 1771-1775.
[6]. Huang Yuwei, Younq Jiehshian, Wu Chih-Hunq, Li
Hsing-Junq, A practice learning of on-board
diagnosis (OBD) implementations with embedded
systems, in Proceedings of the American Society for
Engineering Education Annual Conference and
Exposition 2010, Louisville, Kentucky, USA,
20-23 June 2010, pp. 8414-8425.
[7]. Lin Jyonq, Chen Shih-Chang, Shih Yu-Tsen, Chen
Shi-Huang, A study on remote on-line diagnostic
system for vehicles by integrating the technology of
OBD, GPS, and 3G, in Proceedings of the World
Academy of Science, Engineering and Technology,
Vol. 56, 2009, pp. 435-441.
[8]. Bu Jianguo, Zhang Weifeng, Zi Xinyun, Light-duty
Fig.10. The voltage signal of oxygen sensor. diesel vehicles DPF system diagnostic strategy based
on OBD technology, Automotive Engineering,
Vol. 33, Issue 3, 2011, pp. 203-207.
7. Conclusions [9]. Wang Ying, Highway toll collection system based on
ZigBee technology, Anhui Industrial
Wireless network board diagnostic OBD system University, 2009.
which is based on ZigBee technology development, [10]. Zhao Xiaofeng, Ban Jun, Shen Dangyun, The
explores on-board intelligent OBD solution with low- development of the vehicle management information
cost and short-range wireless communication system based on driving behavior, Road Traffic and
Technology, No. 8, 2010, pp. 299-302.
interface, and it can be used for online monitoring of [11]. Feng Lisha, Development of an on-board diagnostics
the emission control systems and replace some system based on wireless network, Shijiazhuang
imported products. It completes the preliminary Tiedao University, 2011.
studies for low cost OBD device development with
independent intellectual property in China, and the

___________________
2014 Copyright ©, International Frequency Sensor Association (IFSA) Publishing, S. L. All rights reserved.
(http://www.sensorsportal.com)

106

You might also like