DE-102024210841-A1 - Method and device for defining a communication protocol for vehicle diagnostics as well as vehicle
Abstract
The invention relates to a method for defining a communication protocol for vehicle diagnostics, comprising the steps: - Reading (S1) at least one first memory value (1) from a data memory (10), - Release (S2) to store at least one second memory value (2) if the read-out at least one first memory value (1) is an initial value of the data memory (10), - Storing (S3) the at least one second memory value (2) on the data storage (10), wherein the at least one second memory value (2) defines the communication protocol for vehicle diagnostics, wherein the storage of the at least one second memory value (2) overwrites the at least one first memory value (1), and a device (100) for defining a communication protocol for vehicle diagnostics and a vehicle (200).
Inventors
- Marcus Gerbrandt
- Boris Deegen
- Stefan Fleischhauer
Assignees
- VOLKSWAGEN AKTIENGESELLSCHAFT
Dates
- Publication Date
- 20260513
- Application Date
- 20241112
Claims (10)
- Method for defining a communication protocol for vehicle diagnostics, comprising the steps of: - Reading (S1) at least one first memory value (1) from a data memory (10), - Enabling (S2) to store at least one second memory value (2), if the read at least one first memory value (1) is an initial value of the data memory (10), - Storing (S3) the at least one second memory value (2) on the data memory (10), wherein the at least one second memory value (2) defines the communication protocol for vehicle diagnostics, and the storage of the at least one second memory value (2) overwrites the at least one first memory value (1).
- Procedure according to Claim 1 , characterized in that the at least one second memory value (2) is provided by an internal signal (211).
- Procedure according to Claim 2 , characterized in that the at least one second memory value (2) is checked by providing the at least one second memory value (2) multiple times through the internal signal (211).
- Method according to one of the preceding claims, characterized in that at least one step (S1, S2, S3) of the method is activated by an external device (300).
- Procedure according to Claim 4 , characterized in that the activation of at least one step (S1, S2, S3) only takes place when at least one external device (300) has been verified.
- Method according to one of the preceding claims, characterized in that at least one error message (50) is output if the release (S2) for saving is not has occurred and/or that at least one further error message is deleted when the at least one first memory value (1) is overwritten.
- Method according to one of the preceding claims, characterized in that the at least one second memory value (2) is overwritten when at least one third memory value (3) is provided which is verified.
- Procedure according to Claim 7 , characterized in that the at least one third storage value (3) is provided by an external device (300).
- Device (100) for defining a communication protocol for vehicle diagnostics, wherein the device (100) is configured to implement a method according to one of the Claims 1 until 8 to execute.
- Vehicle (200), comprising at least one device (100) according to Claim 9 .
Description
The invention relates to a method and a device for defining a communication protocol for vehicle diagnostics, as well as a vehicle with a corresponding device. During vehicle operation, error messages from the vehicle's control units are stored in a fault memory. These stored error messages can be read out as part of vehicle diagnostics. Such vehicle diagnostics may be legally required to comply with exhaust emission limits. Various communication protocols are suitable for vehicle diagnostics, such as On-Board Diagnostics 2 (OBD-2) or Unified Diagnostic Services (UDS). The communication protocol used may be prescribed by country-specific regulations, for example. Therefore, it must be ensured that the prescribed communication protocol cannot be tampered with. The technical problem is to create a method and a device for defining a communication protocol for vehicle diagnostics, as well as a vehicle with a corresponding device, which improves safety in defining the communication protocol. The solution to the technical problem is provided by the articles with the features of the independent claims. Further advantageous embodiments of the invention are described in the dependent claims. A procedure for defining a communication protocol for vehicle diagnostics is proposed, comprising the following steps: - Reading at least one initial value from a data storage device, - Release to store at least one second memory value if the read value is at least one initial value of the data storage, - Storing at least one second memory value on the data storage, wherein the at least one second memory value defines the communication protocol for vehicle diagnostics, and wherein storing the at least one second memory value overwrites the at least one first memory value. A further proposal is a device for defining a communication protocol for vehicle diagnostics, wherein the device is configured to execute a method according to an embodiment described in this disclosure. The device can, for example, be configured as or comprise a microprocessor. Furthermore, a vehicle comprising at least one device according to an embodiment described in this disclosure is proposed. The vehicle can, for example, be designed as a passenger car or a truck. The technical effects and advantages described in this disclosure for the process naturally also apply to the device and the vehicle, and vice versa. The method has the technical effect that the release for storage is linked to the fact that the first read memory value is the initial value of the data storage. Since the initial value is overwritten by the second memory value after the release, no further release is possible. This improves security when defining the communication protocol. The data storage device can be flash memory. The device can include the data storage device. The data storage device is, in particular, non-volatile. The data storage device can have one or more areas. One area can be used to define the communication protocol. The initial memory value can be stored in the area used to define the communication protocol. The data storage device can be factory-new, so that the initial value is stored in each area of the data storage device. The initial value can be a data byte, where, for example, all 8 bits of the initial value have the state "1". The bit sequence of the initial value can be denoted as 0xFF. Of course, the initial value can also be structured or denoted differently. The first memory value can also be a data byte and comprise 8 bits. The first memory value can be configured as an initial value. If the first memory value is configured as an initial value, then no communication protocol is currently defined. However, the first memory value can also be a value other than the initial value, for example, if a communication protocol has already been defined. The first stored value can be read using the device. The device can be configured to generate a read command. For example, a microcontroller in the device can read the data memory using the read command. The read command can be addressed to the area that defines the communication protocol of the data memory. The address of the communication protocol definition area can be pre-known. The first memory value read can, for example, be temporarily stored in main memory. The device can include the main memory. The device can enable the storage process. This enable can include comparing the read first memory value with the initial value. The device can be configured to perform this comparison. For example, it can check whether the bit sequence of the read first memory value matches the bit sequence of the initial value. The bit sequence of the initial value can be pre-defined. This ensures that no other communication protocol is already in use or that the wrong memory value has been read from the data storage. The enable can also include allowing a write operation to store the second memory value and/or other memory value