Professional Documents
Culture Documents
Project:
Page 2
contents
Page 3
Page 4
1 introduction
Since the customer did not have a separate communication protocol for the
CAN interface could be presented, it was decided by mutual agreement that the GED the
Provides prototypes with a specially defined protocol to enable test operation.
2 protocol structure
2.1 Message ID
A message ID of the type "Standard" is used by default; this is 11 bits wide.
The following message ID is defined for commands to the device:
0x049 = 0b000.0100.1001
It is the ASCII code for the letter "I" to give the name Ilyin
symbolize.
The most significant bit is set in the message ID for the respective responses:
0x449 = 0b100.0100.1001
2.3 Presentation
All CAN messages are represented as a series of bytes. Each byte is a two digit
Hex number that can alternatively be interpreted as a decimal number in the range 0 ... 255.
2.4 Endianness
The "Little Endian" format is used for numerical values that extend over several bytes
used. This means that the data is sent in the order "MSB first".
The CAN interface does not define any endianness, so the byte order has been adapted to the
CANopen protocol based.
4th
Page 5
Page 6
0x1FFFFFFF
Page 7
In the unlikely event that faulty firmware has been written to the flash
that does not allow any more commands can be bridged (ie short-circuited) of the external
NTC must be forced to jump into the bootloader during startup. This backdoor
Functionality is only used as a safeguard in the event of an emergency.
When the system starts, the bootloader checks the integrity of the firmware and then starts it.
If the integrity check fails, the bootloader remains active, which is indicated by the above switch-on message
is recognizable.
The bootloader is used to carry out a firmware update via the CAN interface.
Under normal circumstances we strongly advise against changing to the bootloader!
7th
Page 8
0 → unknown
1 → Request via command 0x0B
2 → Invalid keyword address in the flash
3 → Invalid keyword in the flash
4 → Invalid CRC in the flash
5 → Backdoor activated
8th
Page 9
II 0x0… ID Message ID
0x1FFFFFFF
In order to maintain compatibility with CAN "Classic", both bit rates must be configured identically
(default). The CAN FD mode, on the other hand, allows a higher bit rate for the
Data part than for the header part.
Page 10
Page 11
11
Page 12
12th
Page 13
Example: The preset values are for Coeff. B 6.7 * 1000 = 6700 (0x2c 0x1a) , as well as for
Coeff. C 0.002 * 1000 = 2 (0x02 0x00) .
13
Page 14
Page 15
Page 16
16
Page 17
0xFFFFFFFF)
• For each started flash page (2048 bytes):
Page 18
0xFFF
DD 0x00 ... 0xFF data Data to be written
7 Abbreviations used
8 Document History
date modification Surname
02/16/2021 Initial creation Lenz
02/24/2021 • Command 0x00 now causes a reboot Lenz
• Notice of the entry into force of recruitment
• Added setting of the CAN bit rate
04/26/2021 • Voltage ranges for the gain factor Lenz
corrected
• Added reference to hex format
• Bootloader added
05/04/2021 • Command 0x0C added Lenz
05/26/2021 • DMS temperature compensation added Lenz
06/09/2021 • Typos in command 0x1C fixed Lenz
03.09.2021 • Commands 0x1D and 0x1E added Lenz
08.09.2021 • Command 0x18 added Lenz
18th