3-15 p42 Odx-Based Flash Solution Subke Softing
3-15 p42 Odx-Based Flash Solution Subke Softing
Software engineering
The described flash solution was approved in practice using an ECU for
construction machines. The powertrain ECUs exchange data via a
CAN-based J1939 network.
PLE
A
CON SE
US TACT
T
A S O GET
PEC
I
COP MEN
Y!
vfz
VERLAG
Hengsener Straße 14 . 44309 Dortmund . Germany
Phone: +49(0)231/92 50 55 50 . [email protected]
www.lift-report.de
References
Software engineering
After the calculation, the flashtool sends the key to the For the CCU, the block length is 4080 bytes.
CCU (securityAccess > sendKey), and the CCU compares The TransferData request (36h) contains the flashware
the key with its own value. If the key is correct, the CCU and comes with a block sequence counter that starts with
unlocks and waits for the next diagnostic service request, the value 01h. Since the number of bytes per block is big-
which is the request to transition into the programming ses- ger than the number of bytes that fit in a single CAN data
sion (diagnosticSessionControl > programmingSession). frame, the TransferData service uses segmented data
The LICoS flashtool requires a security access for repro- transfer and is repeated until a block is written. The flash
download sequence is terminated with a RequestTransfer-
Exit request (37h) and a RoutineControl (31h) request to
check the block. The flash download sequence is repeated
until all blocks are transferred. When the flashtool has sent
Figure 7: Excerpt of the CCU 70 S-record the last byte of the flashware, the CCU performs a software
reset (11h) and returns to the UDS default session.
gramming Liebherr ECUs. In this example, the upload of The LICoS Flashtool is created as a C-program on
the current flash memory content is not part of the process. the MVCI D-Server API. It needs about two and a half min-
utes for the reprogramming of the 3 MiB, meaning that
Flash download sequence the performance (actual data rate) is about 20 kbit/s on a
CAN network with 1 Mbit/s bit-rate. The performance of the
The flash download sequence (see Figure 8) starts with flashtool depends on several parameters: Since not all S-
the request (31h) to erase the flash memory. After the flash records contain executable code or data, the performance
memory is erased, the CCU is ready to receive and pro- can be enhanced if the flashtool checks the S-records in
gram the new flashware. To initiate the data transfer, the the pre-processing sequence and then downloads only
flashtool sends a RequestDownload request (34h), which blocks that contain executable code and data.
contains the data parameters dataFormatIdentifier, ad- The performance depends also on the selected CAN
dressAndLenghtFormatIdentifier, memoryAdress, and bit-rate and the block size, as well as on the implementation
memorySize. The dataFormatIdentifier is set to 00h, mean- of the D-PDU API for the connection of the D-Server with
ing that the data is nei- the VCI. Additionally, the ECU needs time to program the
ther compressed nor flashware to the flash memory. This time depends on the
encrypted. The other flash memory technology and firmware that is implemented
parameters contain in- in the ECU.
formation on the flash
memory of the CCU.
The positive re-
sponse to the request
download service (74h) Authors
contains the data pa-
rameter maxNumber Peter Subke, Klaus Hartwig
OfBlockLength, which Softing Automotive Electronics
lets the flashtool know www.softing.com
the number of data
bytes that can be sent Volker Marquart
by each transferData Figure 8: LICoS Flash Liebherr Elektronik
request message. Download Sequence www.liebherr.com
d 130
, stan
Hall 2
Solutions for
CAN