Escolar Documentos
Profissional Documentos
Cultura Documentos
Abstract-To overcome the shortcomings of compatibility domains. To overcome the above limits of existing
with different CAN (Controller Area Network) monitoring systems, a general purpose real-time
communication devices and applicability in different fields monitoring system for ECU based on CAN bus has been
for the current real-time monitoring systems for ECU developed, which supports a number of CAN
(Electronic Control Unit) based on CAN bus, a novel communication devices provided by different companies,
architecture for the monitoring system was put forward, and
and configures the protocol of application layer flexibly.
the corresponding monitoring software has been developed,
which consists of a communication module, a configuration II. ARCHITECURE OF MONITORING SYSTEM
database for the protocol of application layer and its
management tool, a message parsing module, and an
The architecture of real-time monitoring system for
application module. The proposed architecture and
ECU based on CAN bus is shown as Fig.l, which consists
developed monitoring software were verified through real of the monitoring software, CAN communication interface
time communication tests on the ECU of automatic device(s), CAN bus, and various ECU's bein& monitored.
transmission of an experimental vehicle.
1. INTRODUCTION
m_MinVal: double
.Deacti'\.EIteChan()
m_ValType: BYIE
r )
Receive()
Receive 1 0
SetRxNotification()
ResetClockO
FlushBufferO
.GetDe�nfo() Figure 3. Key classes of VND database
GetLastErrlnfo()
GetErrDescriptionO
�GetRxEventNurnO
RequestChipState()
Flus.hTxBuffer()
Each record in the sub-database "network" is an
FlushRxBuffer()
.GetEventDescription()
instance of class CNetDesc, which not only contains fields
GetDJ"VC:onfig()
GetAppConfig()
used to describe the basic parameters of network (such as
"';SetAppConfig()
GetChanlndex() name m_Name, protocol m_Protocol, communication rate
GetChanMas kO
SetTirnerCycleO
SetChanBaudrateO
m_BaudRate, etc. ), but also is associated with the record
SetChanBitTl",ingPararns()
SetChanBitTirningRegsC2000
in the sub-database "ECU node" via the name of ECU
SetChanOutputModeO node m NodeNames.
SetChanTransceiverO
""';SetChanTxTxrqModeO
SetPortRxModeO Each record in the sub-database "ECU node" is an
SetChanFilter()
instance of class CNodeDesc, which not only contains
�
ResetChanFilterO
ddChanAcceptlDRangeO
Rerno�ChanAcceptlDRangeO
ransrnitViaChanMaskO
fields used to describe the basic parameters of ECU node
GetChanContrStatus 0
-.!GetChanContrPararTlsO
(such as name m_Name, network address m_Address, etc. ),
SetChanContrPararns()
but also is associated with the records of messages sent
Figure 2. UML class diagram of CM module and received by its own, in the sub-database "message",
via the names of message m_TxMsgNames and
The functions provide by CM module includes: load m_RxMsgNames, respectively.
and unload device driver, open and close communication Each record in the sub-database "message" is an
port, initialize, activate, and release channel, transmit and instance of class CMsgDesc, which not only contains
receive message, set notification for receiving event, set fields used to describe the basic parameters of message
and reset hardware clock, clear transmitting and receiving (such as name m_Name, ID mjD, format of frame
buffer, set acceptance code, set output mode, transmitting mjDFormat, data length m_DLC, cycle m_Period, etc.),
mode, and transmitting request mode for channel, etc. but also is associated with the ECU nodes which send and
274
receive the message via the name of ECU node
m�SenderNames and m�ReceiverNames, respectively. In I__
L "_'�
�' _' � �
PD _ a '" _nd_,"_ n_ M ·� , g
,
�
_
7
addition, dynamic extension of the number of signal
objects contained one message is supported via a dynamic
object array m�Signals. As a field of message description Construct msgDatalntcl and msgDataMotorola using the
record, each signal object is an instance of class CSigDesc, data pointed by pDala according 10 canMsg.m _OLe
which contains a couple of sub-fields as follows: signal Loop I '" I to total nwnbcr of canMsg.m_Signals, Step"" I
name m�Name, byte order m�ByteOrder (Intel/Motorola
format), position of start bit m�StartBit, length in bits Extract ul1 bits of cllnMsg.m_Signalslll from msgDatalntel or msgDataMotorola;
store th{'"111 in sigData according 10 canMsg.IIl_Signalslll.IIl_By\f..-0rder,
m�Length, proportion m�Factor, offset value m�O./ftet, canMsg.m_ Signalslll.m_StartBit and canMsg.m _Signalslll.mJ_{'"I1gth
_ � x
275
time monitoring thread, which could be started, paused, monitor the working process of the ECU of automatic
resumed, or stopped by the user. transmission. During the test, these two AM instances
were configured with same baud rate, chart parameters,
update cycle. The test result shows that data recorded in
the monitoring files generated by two instances are strictly
matched.
N
V. CONCLUSION
y
Aiming at the shortages of compatibility and
Calculate elapsed time
applicability of existing real-time monitoring system for
ECU based on CAN bus, a general-purpose architecture of
Accumulate number of frames and total number of bits
according to format (standard and extended) and type the monitoring system was put forward, and corresponding
(data, remote, and error) of frame respectively; calculate monitoring software has also been developed.
rates of various frames and bus load
The proposed monitoring system has been applied to
the monitoring of working process of ECU of automatic
Lock synchronization section; add statistic data into bus
statistics record table; set document updated nag; unlock
transmission. Tests result show: (1) the monitoring system
synchronization section could be compatible with different CAN interface devices;
(2) the protocol of application layer could be configured
N
flexibly thus could be applied in wide range of fields; (3)
CAN messages could be parsed and the parsed signals
y could be visualized via graphic curves and data form; and
(4) bus statistic parameters could be calculated for
Parsing message; lock synchronization section; add parsed
message into message record table; set document updated
communication analysis. Besides, the feature of playback
nag; unlock synchronization section enables the user to analyze the function and performance
of the monitored system after online monitoring process.
Figure 7. Flow chart of monitoring thread
ACKNOWLEDGMENT
IV. EXPERIMENTAL EVALUATION The authors would like to thank National Natural
Science Foundation of China (Grant No. 60970072) and
Real-time monitoring test has been carried out on the
Research Fund of Key Discipline of Vehicle Engineering
ECU of automatic transmission of an experimental vehicle
of Sichuan Province (Grant No. SZD041O-08-0) for
using the proposed system architecture and developed
fmancial support to this project.
software. As shown in Fig. 8, the monitoring system can
not only trace the original information of CAN message,
but also display the parsed signals via graphic curves and REFERENCES
data form simultaneously, during real-time monitoring of
[I] ISO, "ISO 11898-1 2003(E) Road vehicles - Controller area
the working process of automatic transmission. In addition, network (CAN) - Part I: Data link layer and physical signalling,"
the system updates the statistic parameters such as bus load, 2003.
peak load, as well as numbers and rates of various [2] F. Luo, J. Su, and D. H. Yuan, "Vehicle electronic networks and
messages periodically during the real-time monitoring bus standards," Automotive Engineering, vol. 25, Apr. 2005, pp.
process via the bus statistics window. 372-376.
f�
�04
[6] T. Kozak, D. Makowski, and A. Napieralski, "Distributed
Radiation Monitoring System for Linear Accelerators Based on
CAN Bus," Proc. the 16th International Conference "Mixed Design
of Integrated Circuits and Systems" (MIXDES 2009), Lodz, Jun.
2009, pp. 107-110.
Figure 8. Real-time monitoring of the ECU of automatic transmission [7] 1. da Silva Sa, J. J. da Silva, M. G. Wanzeller, and 1. S. da Rocha
Neto, "Monitoring of Temperature Using Smart Sensors Based on
To evaluate the compatibility of the developed real CAN Architecture," Proc. the 15th International Conference on
Electronics, Communications and Computers (CONIELECOMP
time monitoring system, a laptop was equipped with two
2005), Puebla, Feb. 2005, pp. 218-222.
different CAN interface cards (one is CANCardXL from
[8] SAE, "SAE JI939 Recommended practice for a serial control and
Vector Infomatik GmbH, the other is USBCAN II from communications vehicle network," 2005.
Guangzhou ZLG MCU Development Limited Corporation) [9] CAN in Automation, "CiA 2011207 DS V1.1 CAN application
connected to CAN bus, the ECU of automatic transmission layer for industrial applications," 2005.
was also connected to the same CAN bus, two instances of [10] X.Yin, "CM User Guide (V2.0)," ATCESL Lab, Sept. 2009.
AM module launched simultaneously on the laptop to
276