Professional Documents
Culture Documents
This section describes the structure of a message. The message structure consists of three parts:
• Header
• Data bytes
• Checksum
(1)
Bytes are optional, depending on the format byte
(2)
Service identification, part of data bytes
14.1.1.1 Header
The header consists of maximum 4 bytes. A format byte includes information about the form of the
message. Target and source address bytes are optional for use with multi node connections. An optional
separate length byte allows message lengths up to 255 bytes. The different possibilities of using header
bytes is shown in the figure below.
A1 A0 L5 L4 L3 L2 L1 L0
A1, A0 define the form of the header which will be used by the message (see below).
L5..L0 define the length of a message from the beginning of the data field (service identification byte included) to the
checksum byte (not included). A message length of 1 to 63 bytes is possible. If L0 to L5 = 0, then the additional length
byte is included.
A1 A0 Mode
0 0 no address information
0 1 exception mode (CARB)
1 0 with address information, physical addressing
1 1 with address information, functional addressing
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
14.1.5 Timing
During normal operation the following timing parameters are relevant:
P2 P3 P2
P4 P1 P4
byte
block
(message)
Value Description
P1 Inter-byte-time in the ECU response message
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
Value Description
P2 Time between end of tester request and start of ECU
response (inter-block-time)
P3 Time between end of ECU response and start of new
tester request (inter-block-time)
P4 Inter-byte-time in the tester request message
As for EDC7, the limits and default values for these parameters are defined in the "extended timing
parameter set", which restricts to physical addressing to allow fast communication:
14.1.6 Initialization
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
TWuP P2
25ms 25ms 0..1000ms
Tidle TiniL
StartCommunication
Vehicle positive response
10400 baud
Fast initialization
The transfer of a wake up pattern as described above is followed by a startCommunication request from the
tester and a response from the ECU. The first two messages of a fast initialization (startCommunication
request and response message) always use headers with target and source address and without additional
length byte. The key bytes in the startCommunication positive response message inform the tester about
the ECU supported modes (see following section).
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
This section describes the structure of a CAN message. The message structure consists of three parts:
• CAN Identifier
• Network protocol information
• Data bytes
The contens of the CAN Identifier and the data bytes depends on the used addressing scheme used for the
diagnostic communication on CAN. EDC7 supports extended addressing with 11 bit CAN Identifier . The
physical addresses mapped into the diagnostic CAN messages are the same as used on K line (10h for
EDC7).
Using the extended addressing the CAN Identifier holds the 11 bit source address information (N_AI) of the
transmitting device. The address information N_AI is build by adding a fixed offset of 600h to the physical
address of the transmitter. The physical address of the target device (N_TA) is mapped into the first data
byte.
A single CAN frame can contain a maximum number of eight data bytes including the N_PCI data.
Therefore the network layer uses different types of CAN frames to transmit diagnostic messages with a
higher number of data bytes that donít fit into a single frame. Each CAN frame is identified by means of a
Network Protocol Control Information (N_PCI) as illustrated below:
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
The parameter SingleFrame DataLength (SF_DL) is used in the SingleFrame N_PDU to specify the number
of service user data bytes.
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
The parameter FirstFrame DataLength (FF_DL) is used in the FirstFrame N_PDU to specify the number of
service user data bytes.
The parameter SequenceNumber (SN) is used in the ConsecutiveFrame N_PDU to specify the order of the
consecutive frames. The following rules apply to the SequenceNumber (SN):
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
The SequenceNumber (SN) shall start with zero (0) for all segmented messages. The FirstFrame shall
be assigned the value zero (0). It does not include an explicit SequenceNumber in the N_PCI field but it
shall be treated as the segment number zero (0).
The SequenceNumber (SN) of the first ConsecutiveFrame that immediately follows the FirstFrame
shall be set to one (1).
The SequenceNumber (SN) shall be incremented by one (1) for each new ConsecutiveFrame (CF) that
is transmitted during a segmented message transmission.
The SequenceNumber (SN) value shall not be affected by any FlowControl (FC) frame.
When the SequenceNumber (SN) reaches the value of fifteen (15), it shall wraparound and be set to
zero (0) for the ConsecutiveFrame (CF).
N_PDU FF CF CF CF CF CF CF CF
SN (hex) 0 1 Ö E F 0 1 Ö
The table below provides an overview about the FlowControl N_PCI bytes:
The parameter FlowStatus (FS) indicates whether the sending network entity can proceed the message
transmission.
Hex value Description
0 ContinueToSend (CTS)
The FlowControl ContinueToSend parameter shall be encoded by setting the lower nibble of the
N_PCI byte #1 to "0". It shall cause the sender to resume the sending of Consecutive frames. The
meaning of this value is that the receiver is ready to receive a maximum of BS number of
Consecutive frames.
1 Wait (WT)
The FlowControl Wait parameter shall be encoded by setting the lower nibble of the N_PCI byte #1
to "1". It shall cause the sender to continue to wait for a new FlowControl N_PDU.
2-F Reserved
This range of values is reserved by this document.
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
The table below provides an overview about the FlowControl N_PCI byte:
Hex value Description
00 BlockSize (BS)
The BlockSize (BS) parameter value zero (0) shall be used to indicate to the sender that no more
FlowControl frames shall be sent during the transmission of the segmented message. The sending
network layer entity shall send all remaining consecutive frames without any stop for further
FlowControl frames from the receiving network layer entity.
01 - FF BlockSize (BS)
This range of BlockSize (BS) parameter values shall be used to indicate to the sender the
maximum number of consecutive frames that can be received without an intermediate FlowControl
frame (FC) from the receiving network entity.
Example: if STmin is equal to ten (10) (decimal) then the minimum SeparationTime authorised between
consecutive frame network protocol data units is equal to 10 ms.
The mapping of the N_PCI data into the CAN message depends on the used addressing scheme and frame
type.
CAN frame types and position of N_PCI data for extended addressing:
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
14.2.3 Timing
During normal operation the following timing parameters are relevant for diagnostic messages on CAN:
Value Description
P2 Time between end of tester request and start of ECU
response (Single Frame or First Frame)
P3 Time between end of ECU response and start of new
tester request (Single Frame or First Frame)
14.2.4 Initialization
There is no initialization or wake-up defined for diagnostic communication on CAN. The external tester
device may start the communication with any available diagnostic service and the EDC7 will immediately
activate the diagnostic protocoll and send the appropiate response. A baudrate of 250 kBaud is used for the
diagnostic communication on CAN.
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.
© Robert Bosch GmbH (Germany) reserves all rights even in the event of industrial rights. We reserve all rights of disposal such as copying and passing to third parties.