Development of An On-Board Diagnostics System Base
Development of An On-Board Diagnostics System Base
100-106
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.
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.
101
Sensors & Transducers, Vol. 164, Issue 2, February 2014, pp. 100-106
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
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
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