Professional Documents
Culture Documents
The Design of Electric Motor Car's Body Network Based On CAN-bus Distributed Control
The Design of Electric Motor Car's Body Network Based On CAN-bus Distributed Control
The Design of Electric Motor Car's Body Network Based On CAN-bus Distributed Control
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
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:
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.
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
[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.