The Design of Electric Motor Car's Body Network Based On CAN-bus Distributed Control

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

The Design of Electric Motor Car’s Body Network Based on CAN-bus

Distributed Control
Wang Jianfeng , Wang Dafang , Xiong Jie
Harbin Institute of Technology, Weihai 264209, China
E-mail: wjfeee123@163.com

Abstract: CAN-bus is a typical bus control technology, and is now widely applied in many areas.In view of the
characteristics of the electric vehicle body, this paper puts forward a plan that applies CAN-bus technology to build
electric vehicle body network. In terms of the electric vehicle body system,it needs to resolve several issues: One is to
simplify electronic wiring harness as far as possible, and the other is to ensure the normal data communications. In this
article, the body electrical is divided into different nodes in accordance with the principles of proximity, each node
controls a certain area of electrical equipment, and at the same time, communicates with other nodes through CAN bus.
CAN bus used SAE1939 agreement and defined message through this agreement. Each body node of the circuit includes
main circuit board and extended board. The main circuit can achieve the requirements of data communications; the
extended board can achieve the expansion of body electrical. The circuits are divided into several modules in application
with circuit modular design approach. Every module was respectively developed by embedded software system through
some software development tools, at the same time, tested the entire body CAN network communications systems. After
the test, the entire body of communications network can meet the requirements.

Key Words: Distributed control, CAN bus, Electric car and Body network

1. INTRODUCTION 2. CAN BUS AND AGREEMENT


Energy and environment are the two fundamental CAN,which is the short of Controller Area Network, is
problems of the modern world’s sustainable development. the most mature and developable bus technology. It’s a
With the development of economy, the quantities of serial communicational network efficiently supports
vehicle maintained a rapid growth year by year, the distributed control and real-time control. Controller Area
problem of energy and environment becomes austere day Network has many special characteristics so that it can be
by day. Electric motor car has many advantages such as popularly applied in cars.
non-polluting, high energy efficiency, energy CAN bus defines the physical layer and data link layer,
diversification, simple structural parts, convenient to but does not regulate the application layer [5]-[8], CAN
maintain,etc. It’s a good way to relieve the energy and bus protocol architecture is shown in Figure 1. Various
environment problem which becomes more and more CAN networks support different communication speed.
serious. In order to decrease weight, This electric motor To the electric car’s body network, SAE1939 agreement
car adopts electric equipments as many as possible to entirely meets the car body electrical equipments and the
replace the traditional mechanical and hydraulic network nodes communications requirements. The SAE
equipments. The increase of electric equipments not only J1939 is based on CAN agreement. It gives a further
decreases the weight of car, but also brings forward a refined definition of CAN agreement’s extended frames.
higher demand to the car’s communication system. In the SAE J1939,one data message contains a protocol
Vehicle bus technology is just such a kind of technology data unit PDU (Protocol Data Unit), PDU is formed by 7
that can meet the car’s communication demand. Using car fields: the priority composed of CAN message arbitration
bus system can build multi car network subsystems. To domain (P), bit to retain (R) , data page (DP), the format
the electric motor car’s body network, it also can be domain (PF), a specific domain (PS), the source address
divided into multi subsystems, its integrated function, (SA) and data domain composed of data field (DF). They
message safety and real-time performance and reliability will be packaged into one or more CAN data frames, and
are all depended on the cooperative work of the then transferred to the network through physical media.
subsystem. The distributed network based on CAN-bus The content of other messages is in line with CAN2.0B
system is an ideal way to make the subsystem work norms.
cooperatively. Tab. 1: the message style of J1939
This paper,using CAN-bus technology [1], [2] and S S I
Data
O 11bitID R D 18bit ID
controlling the nodes through distributed control method F R E
domain
[3],builds an electric motor car’s body network system. D S
P R PF PF PS DF
P A
17~1 15 7~
28~26 25 24 23~18 0~64
6 ~8 0

978-1-4244-2723-9/09/$25.00 
c 2009 IEEE 3712
definition of the application layer of the nodes is shown in
3. OVERALL DESIGN PROGRAM Table 2.
In this system, SAE1939 agreement is used to connect the
low-voltage electrical system of the body. Design Left front Right front
principles of body network are shown as follows:
(1)Do not change the original electric equipments; only
modify the automotive wiring harness in order to reduce
Instrument
costs.
(2) The network should have interfaces and can be
extended.
(3)Can communicate with vehicle control systems. Left back Right back
(4) Meet the environmental requirements of
communication systems, such as high temperature and
have a high reliability.
Low speed CAN
The car body electric equipments do not need real-time High speed CAN
ability of the message, but have a large number of Body central controller/gate
messages. Through distributed control systems these
Fig.1: the body network topology structure
electronic control unit are separated with the vehicle drive
system in favor of ensuring the real-time ability of the
Tab. 2: the unit of automotive body network
drive system. In the design process, the system interface is
Full name Remarks
reserved; the system can be expanded when needed.
Body Control Unit(BCU) MASTER
The car body network uses distributed control based on Meter(M) SLAVE0
CAN bus due to the multi components of the electrical Front Left(FL) SLAVE1
system and the uneven distribution. Body network is Front Right(FR) SLAVE2
divided into a number of nodes, each node is connected Rear Left(RL) SLAVE3
through the CAN bus and realize data communications. Rear Right(RR) SLAVE4
The division of the node is in accordance with the CAN message should be defined after the definition of
principles of proximity, those close to each other is network nodes and is 8 bytes long. When defining
defined as an electrical node. In accordance with this message, the node priority level should first be defined.
principle, the body network is divided into the central The central node of controlling information has the
controller / gateway, left front node, left back node, the highest priority level 3, the controlling information from
instrument screen node, right front node, right back node, the left front node to the right front node has the priority 4,
and so on. The topology structure of car body network status information from BCU to the engine Motor has the
node is shown in Figure 1. priority 5,the body node status information has the
To the entire network, the definition of application layer priority 6. For this 6 nodes, its address is defined as
protocol, which is the definition of the arbitration field follows: central control node 0xA0; left front node 0x80;
identifiers bit and data field in the CAN data frame right front node 0x81; left back node 0x82; right back
,should referred to CAN bus SAE1939 agreement. The node 0x83; instrument display node 0x84. Message
definition is show in table 3:

Tab. 3: the definition of automotive body network’s message


Message
Message name Sending node Receiving node Message ID
length
0x0C00FFA0
Car Switch BCU broadcast P R DP PF PS SA 8
0x3 0x0 0x0 0x00 0xFF 0xA0
0x140084A0
Engine Status BCU Meter P R DP PF PS SA 8
0x5 0x0 0x0 0x00 0x84 0xA0
0x140184A0
BodyStatus1 BCU Meter P R DP PF PS SA 8
0x6 0x0 0x0 0x01 0x84 0xA0
0x140284A0
BodyStatus2 BCU Meter P R DP PF PS SA 8
0x6 0x0 0x0 0x02 0x84 0xA0
0x1400A080
Front Left Status FL BCU P R DP PF PS SA 8
0x6 0x0 0x0 0x00 0xA0 0x80

2009 Chinese Control and Decision Conference (CCDC 2009) 3713


0x1400A081
Front Right Status FR BCU P R DP PF PS SA 8
0x6 0x0 0x0 0x00 0xA0 0x81
0x1400A082
Rear Left Status RL BCU P R DP PF PS SA 8
0x6 0x0 0x0 0x00 0xA0 0x82
0x1400A083
Rear Right Status RR BCU P R DP PF PS SA 8
0x6 0x0 0x0 0x00 0xA0 0x83
0x10008180
Front Right Switch FL FR P R DP PF PS SA 2
0x4 0x0 0x0 0x00 0x81 0x80

4. DESIGN OF THE HARDWARE OF THE (1) cut off the channel where the electromagnetic
CONTROL SYSTEM radiation goes into the internal control system and has
moderate effect;
The control system of body network is to mainly accept (2) increase the quality of electromagnetic devices
input and send control signals to the corresponding sensitive to the electromagnetic effect;
equipment. When a device is out of order, it can show (3) From the entire system and design of circuit, take
fault information timely, and cut off the electricity. The measures such as shield protection to protect the most
control system should have the communications interface sensitive devices and modules.
in order to communicate datas [9] among the nodes. The
control system is divided into power management 5. SOFTWARE IMPLEMENTATION
modules, power monitoring module, the switch input
module, analog input module, logic control modules, Software environment is based on Metrowerks Inc.
motor drive module, lamp driver module, CAN Personal Computer C language integrated software
communication modules, and other modules as to the environment IDE, it is a powerful embedded software
features of body network. The control system board development tools, support software simulation. In
structure uses two-tier boards. One is the main circuit accordance with the network of the body topology
board[10], including logic control modules, power structure, the whole network is divided into five nodes,
monitoring module, power supply deal part, CAN each of the five nodes respectively needs software
communication modules, RS232 interface module, BDM programming. As the definitions of the four body nodes
programming module, which realizes the main logic and instrument display node are very similar, here we
control ; The other one is the expansion board, including only deal with central control node and right front
power management modules, switch collection modules, programming node.
high-power driver device module, lamp drive module and The central control node includes the main program, the
the motor drive module, and so on ,which connects initialization module, CAN message sending and
external power components. receiving module, switch volume collecting module,
Logic control module is the center of the whole control switch volume processing module, CAN message
system. It should have a strong anti-interference data-processing module. The main program is the core of
capability, high working reliability, the appropriate this software, and is responsible for scheduling and
calculate speed and low price. This paper uses Freescale's allocation of the node. Main function diagram is shown in
MC9S12DP512 [11] microcontroller. Logic control Figure 3.
module circuit is shown in Figure 2: The software design of body node is mainly to collect
signal and control electric equipment. The software
design of body node is modular, the program will be
divided into CAN message sending and receiving module,
switch volume collecting module, switch volume
processing and coding module, CAN data-processing and
coding module, the output driver module, main module
and system initialization Module 5. The main function
diagram is shown in Figure 4.

6. THE BODY NETWORK COMMUNICATIONS


TEST

When the body electric equipment and the nodes circuit


are connected as the body CAN network through CAN
Fig.2: completed circuit board
bus, we need to test the communication system of the
whole network, including CAN communication interface
In order to suppress electromagnetic interference, the module, the switch volume collecting module, light driver
system uses three measures: module, motor drive module and other function module
test.

3714 2009 Chinese Control and Decision Conference (CCDC 2009)


CAN communications interface module is mainly to test As can be seen, when the SP4 pin is grounding, the
whether the body network can achieve reliable CAN electric level of the S0 pin changes from high to low, and
communication. CAN communication uses high-speed the MC33972 chip is connected, and the 24-bit clock
CAN mode at the rate of 250kbps. The test message is signal is sent through the SCK0 pin in a row, the single
shown in Figure 3. CAN message data field is shown in chip Send 24-bit control command to the single-chip
Figure 4 From the map, we can see the sending and MC33972 through the MOSI0 pin, the control signal is
receiving data frames are same, and prove that the CAN shown in Figure 6. When the MC33972 is sending the
node can send and receive the right CAN message. 24bit switch state data, the single chip and MC33972 are
The switch volume collecting module is composed of set to falling edge clock signal, the SPI interface SCLK
MC33972 and single-chip SPI interface. The test of this and SS signal is shown in Figure 7. The 6th data bit is just
module is realized by measuring the SPI interface SCLK the SP4 state, this shows that when the SP4 is "off" the
and the SS signal. MC33972 send the disruption corresponding data is 1, proves that the system hardware
information through its No. 31 pin to the single chip design, the MC33972 initial set-up and the processing
resulting in the interruption, and then exchange data with function of the switch volume break-off is absolutely
the MC33972, and acquire 24bit switching volume correct. Figure 8 is the detected SPI interface SCK and
information through the SPI interface and interruption MISO pin signal when SP2, SG13 switch are grounding at
processing functions. SPI interface SCLK and SS signal is the same time, the signal is fully conform to the system
shown in Figure5. requirements.

Fig.3: CAN testing message


Fig.6: the SPI interface SCLK and the MOSI control single

Fig.4: CAN message frame data field Fig.7: the message of SCLK and MOSI when SP4 is closed

Fig.5: the message of SCLK and SS of SPI interface Fig.8: the message of SCLK and MOSI when SP4 and SG13 are closed

2009 Chinese Control and Decision Conference (CCDC 2009) 3715


Motor drive module is detected by measuring the
relationship between the quantity of the output feedback
simulation voltage and the drive current at different work
states. The feedback simulation voltage of the motor
which drive the door glass is shown in Figure 9. The
driving current of the test motor is sh1985102419851024
own in Figure 10. From the chart, we can see the driving
voltage and driving current is proportional, indicating that
the drive module of the motor is normal.
Fig.11: the input and output in normal state

Fig.12: the input and status output in normal state


Fig.9: feedback voltage in normal state

Fig.13: input and output in open circuit state

Fig.10: feedback voltage when motor is locked

The light driver module is mainly to control the lights


circuit. Through measuring whether the control system
can control the lights in accordance with the instructions
and the status of the feedback lights, we can measure the
accuracy of the drive module. It is generally divided into
three working conditions for testing, including normal,
open circuit, circuit overloading, and other working
conditions. The test is shown in Figure 11-14. The test
showed that the lights drive module can control the lights Fig.14: input and output when overload
effectively in different work conditions.
7. CONCLUSION
Using CAN bus technology, we can realize the
establishing of electric vehicle body networks. And using

3716 2009 Chinese Control and Decision Conference (CCDC 2009)


distributed control system, the body network of cars is [6] Huang Weisheng, Peng Yunfeng, Hu Weisheng.,
divided into a number of nodes. Through this, we can not
Discussion and comparison of car bus
only meet the communications requirements but reduce
the weight of the body harness. In the practical electric communication agreement , No. 11, 24-27,2004.
vehicle manufacturing process, we can greatly reduce the
[7] Zhou Chunjie, Song Mingquan, Wang Yongji, One
manufacturing cost. In the design process of the body
nodes, the expansion interface is set aside for the way and realization of CAN network communication ,
convenience of increasing electrical equipments. Control Engineering, No.1, 50-93, 2005.
REFERENCES [8] Lei Yu, Wang Zhongdong, The design of higher

[1] Wu Kuanming, CAN bus theory and apply in system CAN communication agreement based on Extended
design, Beijing, China, 1996. format, Industrial control computer . No.7, 13-15,
[2] Shuyan, Anping. CAN bus system realization, 2006.
Computer Application Research, No.2, 90-91,1998. [9] Zhong Qiuhai, Modern control theory, Beijing, China,
[3] Qin Guihe, Ge Anlin, Li Zhuzhang, Car network 2004.
technology, Vehicle engineering, No.2, 151-155, [10] Elite technology Complete circuit design manual ,
2003. China Electric Power Press, Beijing, China, 2001.
[4] Wang Changli, Luo An, The design and applications [11] Hui Yin, Cheng Jianping, Gong Guanghua, Theory
of distributed control system, Publishing House of and application of Motorola MC68HC08 .
Electronics Industry, No.2, 101-111, 2004.
[12] Samuel P.Harbison, Guy L.Steele Jr.. C language reference
[5] Zhao ming, Gao song, Yang Xiaojun, Zhang Nan, manual, 2008.
The design and realization of bus body CAN network
communications, Agricultural equipment and vehicle
engineering, No.2, 29-32, 2006.

2009 Chinese Control and Decision Conference (CCDC 2009) 3717

You might also like