Académique Documents
Professionnel Documents
Culture Documents
MODBUS
proprietary multi 1Mbps Bus 1800 32bytes chip
PLUS
transfer and the elaborate things is introduced equipped with a CAN bus control system [6]. With
regarding data coding and bus accessing. regard to customers’ demands and mechanical
robustness, CAN bus is suitable for the task- allocating
2.1. Availability and standardization in the control system of WHAM.
According to OSI/RM (Open System Interconnect/
CAN is a serial communication protocol which Reference Model) the CAN architecture is constituted
efficiently supports distributed real-time control with a by two layers: DLL (Data Link Layer) and PL
very high level of security [5]. Furthermore it (Physical Layer) (see Fig. 1). The first and second
efficiently supports functional redundancy due to its layers are international standards, so the defined
multi-master capabilities. The success of CAN bus in interface to second layer for our application is
automotive industry, together with its low cost and employed. On this basis some software development
high performance has led to rapidly increasing environment have available to test functionality of
CAN bus, which makes the fast development and cost
LAYER CAN Equivalent LAYER reduction possible.
LAYER 7 2.2. Data transferring and handling
User’s definition
APPLICATION
CRC Field 16 16 No No
Figure 2. Layout of working position in
ACK Field 2 2 No No WHAM.
End of
7 7 No No
Frame According to the working flow, we can draw the
Error Flag No No 6~12 No working-position graph showing in Fig. 2. In each
Error
No No 8 No
position there are executors, detectors or indicators
Delimiter which are connected to CAN bus system as a node.
Intermission No No No 3 Each working position has its own unique function
Suspend name (see Table 3), and they fulfill the expected task
No No No 8
Intermission by cooperating with each other.
Bus idle No No No n
3.2. Node identifier planning in CAN bus
Total 44~52 44 14~18 11+n
system for dynamic priority
Note: n∈N
The value of node identifier in a CAN message
Table 2. Frame length of standard determines the priority of the message. To achieve
format. dynamic priority for all CAN bus nodes, 11-bits can be
segmented in the following format: ###****XXXX.
2.4. Length of four different types frames The first three bits represent operation modes of the
CAN bus system. WHAM may work at four states:
In the CAN bus system, message transfer is normal mode, error mode, customized mode and self-
maintained and controlled by four different frame check mode. At any given time WHAM is working at
Frame Identifier
Description
(Binary)
The last four bits are used to distinguish different
001****XXXX Normal mode (mode 1)
CAN bus nodes, and identifiers are planned according
010****XXXX Customized mode (mode 2)
to working flow (see Table 3).
011****XXXX Error mode (mode 3)
100****XXXX Self-check mode (mode 4) 3.3. Processing efficiency model of WHAM
###0000XXXX WHAM halts
###0001XXXX Error found by detector 1 3
###****0101 Detector 1 T3 ( x, y ) = C ( x, y )
###****0110 Executor 4 s.t.
###****0111 Executor 5 r
###****1000 Detector 2 Pi ( x, y ) = max ∑ x ( j ) /r |y
###****1001 Executor 6 j =1
###****1010 Detector 3 Bi ( y ) = (1 + p + ps1 + ps 2 + pr ) × pe × q
###****1011 Executor 7
###****1100 Detector 4
M i ∈ [14,18] ∪ [ 44, 52]
###****1101 Executor 8 Ei ∈ [0,10]
###****1110 Executor 9
I i ∈ {3n + m | n ∈ N ∩ n ≤ 3, m ∈ N ∩ m ≤ 10}
###****1111 Executor 10
Table 3. Bits assignment of CAN bus
frame identifier. C ( x, y ) = Syn( x, y ) Li
x ≤ 10
y =1, 2, 3, 4
only one mode, so the first three bits of all identifiers
should be same. Through such coding method we can mi ∈ [0,10]
easily trace the error nodes.
The middle four bits are used for error mark
wi ∈ [0,10]
identification. CAN bus system can have one of two r =100
complementary logical values: ‘dominant’ representing ps1 = 1, 2, 3, 4, 5, 6, 7, 8
0 and ‘recessive’ representing 1. During simultaneous
transmission of ‘dominant’ and ‘recessive’ bits, the ps 2 = 1, 2, 3, 4, 5, 6, 7, 8
result of CAN bus value will be ‘dominant’. The pr = 0, 1, 2
middle four bits are all recessive, demonstrating that
WHAM is working at the setting mode. Whenever
errors are found, a message with dominant bit in the The efficiency of the WHAM is a critical factor
middle part of the identifier can dominate the CAN when designing the control system and it will be
bus. helpful to know the minimum processing time; thereby
More occurrences of ERROR frame may reduce the processing efficiency model is introduced by applying
processing efficiency or cause lots of inferior wire optimization theory and statistic method (see (1)). The
harness. In the application layer, wi is defined as parameters and functions are defined as follows:
occurrences times of the CAN bus node ERROR
frame. When the value of wi is more than ten, WHAM T ( x, y ) is the one circle time function of data
will be halted by the highest priority frame from transfer in WHAM.
Display node. x( j ) denotes the times of a CAN bus node
transferring error data frame at the j
processing circle. x(j)∈N. wi denotes the times of ERROR frame
y denotes the code of WHAM working transferred by the number i CAN bus
mode. y(j)∈N∩y≦4 (see Table 4). node.
Pi ( x, y ) is the power function of the number i I (i, i + 1) is the function that represents the
CAN bus node at the y mode. To length of INTERFRAME.
avoiding disqualified product C ( x, y ) is a correction function that corrects
appearing, adaptive method is function T(x, y), for data transfer may
introduced. In our program a counter be accelerated or delayed by various
is used in every CAN bus node to tiny changes of the CAN bus system.
store the error times of DATA frame, Compared with T1 and T2 and, C(x, y)
which is initialed by different number has little weight in T(x, y), herewith
according to WHAM mechanism (see statistic method is introduced to give
Table 6). the approximate value.
Syn( x, y ) denotes the CAN bus synchronization
j denotes the circle times of data
time.
transfer in CAN bus system. j ∈N.
r denotes the maximum value of j, Li denotes the distance between the i
which is preferred to initial 100, for a CAN bus node behaving as the
bundle of wire harness is produced transmitter, and the node behaving as
through 100 data transfer circles. receiver.
Bi ( y ) is one nominal bit time function of
the number i CAN bus node at the y
mode. y Mode
are all parameters of NOMINAL BIT 1 Normal mode (mode 1)
p , ps1 , 2 Customized mode (mode 2)
TIME [5].
ps 2 3
4
Error mode (mode 3)
Self-check mode (mode 4)
and pr Table 4. Definition of y.
p denotes the time quanta of
PROP_SEG [5].
ps1 denotes the time quanta of
PHASE_SEG1 [5].
4. Conclusions
ps 2 denotes the time quanta of Through above analyses, conclusion can be drawn
PHASE_SEG2 [5]. that the CAN bus is very promising candidate for the
pr denotes the time quanta of WHAM application due to its basic concepts: multi-
INFORMATION PROCESSING master priority bus access, nondestructive contention-
TIME which is programmable [5]. based arbitration, and configuration flexibility. As the
q denotes the time quantum which is a discussion above, the application layer is defined in
fixed unit of time derived from the CAN bus by users, thereupon CAN bus application
oscillator period [5]. layer planning for dynamic priority is presented. With
pe denotes the value of the prescaler the planning, it is convenient to find out where the
which is programmable. As pe has error node appeared and improve the efficiency of
close relation with hardware rather data-filtering. The vital issue for the use of CAN bus
than software, we regard it as a fixed system in WHAM is whether CAN bus has the ability
value to simplify our model. of transferring mass data in brief time between
denotes the DATA frame length different nodes, whereupon processing efficiency
Mi model is introduced to give the theory support of the
transmitted by the number i CAN bus
node. feasibility of CAN bus in WHAM. Furthermore, with
denotes the times of DATA frame the guide of processing efficiency model, it becomes
mi convenient to find out the possible data transfer bottle-
retransmitted by the number i CAN
neck and time waste phases in the CAN bus system of
bus node.
WHAM.
Ei denotes the ERROR frame length
transmitted by the number i CAN bus
node.
References [4] S. J. Luis, P. Arturo and J. Gabriel, “Analysis of Channel
Utilization for Controller Area Networks,” Computer
[1] E.Aguirre and B.Raucent, “Performance of Wire Harness Communications, vol. 21, pp. 1446-1451.
Assembly Systems”, proceedings of ISIE’94, Santiago, May
[5] Robert Bosch GmbH, CAN Specification, Version 2.0,
1994, pp. 292-297.
Sep. 1991.
[2] http://www.fieldbus.org/.
[6] G.Craessaerts, K.Maertens, J. and De Baerdemaeker, “A
[3] J.Klaus and B.Annerose, “Application of Industrial CAN Windows-based Design Environment for Combine
Bus Technology for LEO-satellites,” Acta Astronautica, vol. Automation via CANbus,” Computers and Electronics in
46, pp. 313-317. Agriculture, vol. 49, pp. 233-245.