Method, system, vehicle, device and medium for protecting electrical inspection data of a vehicle

By employing dual-data-copy storage and integrity verification in vehicles, the problem of incomplete or damaged storage of electrical inspection data due to power outages or system failures during the writing process is solved, thereby improving data integrity and reliability.

CN122111758APending Publication Date: 2026-05-29ANHUI DEEPWAY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ANHUI DEEPWAY TECHNOLOGY CO LTD
Filing Date
2026-01-08
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

During the vehicle's off-line electrical inspection, the inspection data may be incomplete, damaged, or lost due to power failure or system malfunction when being written, affecting the vehicle's malfunction.

Method used

A dual-data-copy storage method is adopted, combined with integrity check value calculation, to ensure that the data is still available under single point of failure. The status flag points to the currently used data copy, and the two data copies are physically isolated and stored. Integrity checks are performed when synchronizing data.

Benefits of technology

It improves the integrity and reliability of electronic inspection data storage, avoids data loss or damage caused by single point of failure, and ensures that the data can still be used normally in the event of a failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122111758A_ABST
    Figure CN122111758A_ABST
Patent Text Reader

Abstract

The application discloses a kind of protection method, system, vehicle, equipment and medium of electrical inspection data of vehicle.Therein, vehicle storage system is configured two data copies, by state flag bit points current use data copy, current use data copy is first data copy, another data copy is second data copy, the protection method of electrical inspection data of vehicle, comprising: target controller receives electrical inspection instrument sent electrical inspection instruction;According to electrical inspection instrument sent electrical inspection instruction, obtain data to be written;Data is written into the second data copy, and the integrity check value of second data copy is calculated;Update the state flag bit, point to second data copy;Data is synchronized to the first data copy.Adopt the present application, by double data copy storage, and in combination with integrity check value calculation, can avoid the risk that storage data is unavailable under single point failure, improve the integrity and reliability of electrical inspection data storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle technology, and in particular to a method, system, vehicle, device and medium for protecting vehicle electrical inspection data. Background Technology

[0002] During automobile manufacturing, an electrical test is required before vehicles are put off the production line to ensure the normal operation of the electronic control system. During this process, the electrical tester sends an electrical test command to the vehicle controller. The vehicle controller writes the calibration data or configuration data in the electrical test command into its own storage device. However, if a power outage or system failure occurs during data writing, the electrical test data may be incomplete, damaged, or lost, which will affect the use of the electrical test data and cause abnormal vehicle functions. Summary of the Invention

[0003] Based on this, the present invention provides a method, system, vehicle, equipment and medium for protecting vehicle electrical inspection data. By storing data in duplicate and combining it with integrity check value calculation, the risk of data unavailability under single point of failure can be avoided, thereby improving the integrity and reliability of electrical inspection data storage.

[0004] Firstly, a method for protecting vehicle electrical inspection data is provided, wherein the vehicle's storage system is configured with two data copies, with a status flag indicating the currently used data copy, the currently used data copy being a first data copy and the other data copy being a second data copy. The method for protecting the vehicle's electrical inspection data includes: The target controller receives the electrical testing command sent by the electrical testing instrument; According to the electrical testing command sent by the electrical testing instrument, the data to be written is obtained, including calibration data and / or configuration data; Write the data into the second data copy and calculate the integrity check value of the second data copy; Update the status flag to point to the second data copy; The data is synchronized to the first data copy.

[0005] Furthermore, the first data copy and the second data copy are physically isolated and stored separately.

[0006] Furthermore, the status flag is a hexadecimal value that is neither all 0s nor all 1s, and the status flag is physically isolated from the first data copy and the second data copy.

[0007] Furthermore, after synchronizing the data to the first data copy, the method further includes: Update the status flag to point to the first data copy.

[0008] Furthermore, it also includes: According to the data read instruction, read data from the data copy pointed to by the status flag bit.

[0009] Further, the step of reading data from the data copy pointed to by the status flag bit according to the data read instruction includes: Verify the integrity check value of the data copy pointed to by the status flag bit; If the integrity check value of the data copy pointed to by the status flag passes the verification, then data is read from the data copy pointed to by the status flag. If the verification fails, then the status flag is pointed to another data copy, and the integrity check value of the other data copy is verified. If the integrity check value of the other data copy passes the verification, data is read from the other data copy; if the verification fails, an error status is returned.

[0010] Secondly, a protection system for vehicle electrical inspection data is provided. The vehicle's storage system is configured with two data copies, with a status flag indicating the currently used data copy. The currently used data copy is a first data copy, and the other data copy is a second data copy. The vehicle electrical inspection data protection system includes: The receiving module is used by the target controller to receive the electrical inspection command sent by the electrical inspector; The acquisition module is used to obtain the data to be written according to the electrical testing command sent by the electrical testing instrument, the data including calibration data and / or configuration data; The storage and computing module is used to write the data into the second data copy and calculate the integrity verification value of the second data copy; The update module is used to update the status flag bit to point to the second data copy; A synchronization module is used to synchronize the data to the first data copy.

[0011] Thirdly, a vehicle is provided, including: a protection system for the vehicle's electronic inspection data as described in the second aspect above.

[0012] Fourthly, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the method for protecting the electronic inspection data of a vehicle according to the first aspect described above.

[0013] Fifthly, a computer-readable storage medium is provided, including a memory and a computer program stored on the memory and executable on a processor, wherein when executed by the processor, the program implements the method for protecting the electronic inspection data of a vehicle according to the first aspect described above.

[0014] In the embodiments of this application, the target controller first receives the electrical inspection command sent by the electrical inspection instrument; then, based on the electrical inspection command sent by the electrical inspection instrument, it obtains the data to be written, which includes calibration data and / or configuration data; next, the data is written to a second data copy, and the integrity check value of the second data copy is calculated; then, the status flag is updated to point to the second data copy; finally, the data is synchronized to the first data copy. Therefore, by storing data in dual copies and combining it with the integrity check value calculation, the risk of data unavailability under a single point of failure can be avoided, improving the integrity and reliability of electrical inspection data storage. Attached Figure Description

[0015] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 A flowchart illustrating a method for protecting vehicle electrical inspection data provided in an embodiment of this application; Figure 2 This is a schematic diagram of the device connection provided in the embodiments of this application; Figure 3 A structural block diagram of a vehicle electrical inspection data protection system provided in an embodiment of this application; Figure 4 This is a structural block diagram of a computer device provided in an embodiment of this application. Detailed Implementation

[0016] The present application will now be described in further detail with reference to the embodiments and accompanying drawings. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the application. Furthermore, it should be noted that, for ease of description, only the parts relevant to the application are shown in the accompanying drawings.

[0017] It should be noted that, unless otherwise specified, the embodiments and features of the embodiments in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0018] The following describes in detail, with reference to the accompanying drawings, a method, system, vehicle, device, and medium for protecting vehicle electrical inspection data according to embodiments of this application.

[0019] Figure 1 This is a flowchart of a method for protecting vehicle electrical inspection data according to an embodiment of this application. Figure 1 As shown, according to an embodiment of the present application, a method for protecting vehicle electrical inspection data includes a storage system for the vehicle with two data copies configured, each with a status flag indicating the currently used data copy. The currently used data copy is the first data copy, and the other data copy is the second data copy.

[0020] In one embodiment of this application, the first data copy and the second data copy are physically isolated to reduce the risk of both data copies being corrupted simultaneously.

[0021] In one embodiment of this application, the status flag is a hexadecimal value that is neither all 0s nor all 1s to prevent misjudgment during storage device initialization; the status flag is physically isolated from the first data copy and the second data copy.

[0022] The method for protecting the vehicle's electrical inspection data includes the following steps: S101: The target controller receives the electrical inspection command sent by the electrical inspection instrument.

[0023] like Figure 2 As shown, the electrical testing instrument is connected to the target controller. When the vehicle is undergoing electrical testing after leaving the production line, the target controller receives the electrical testing command sent by the electrical testing instrument.

[0024] S102: Based on the electrical test command sent by the electrical tester, obtain the data to be written, the data including calibration data and / or configuration data.

[0025] S103: Write the data into the second data copy and calculate the integrity check value of the second data copy.

[0026] The integrity check value refers to a fixed-length check value calculated based on the data content within the data copy after the data is written, using a specific algorithm such as cyclic redundancy check or hash algorithm, and stored together with the data content.

[0027] S104: Update the status flag to point to the second data copy.

[0028] S105: Synchronize the data to the first data copy.

[0029] The data synchronization operation can be performed immediately after updating the status flag, or it can be performed asynchronously, such as when the system is idle or under low load, to avoid affecting real-time performance.

[0030] In one embodiment of this application, after synchronizing the data to the first data copy, the method further includes: updating the status flag bit to point to the first data copy.

[0031] In one embodiment of this application, the method further includes: reading data from the data copy pointed to by the status flag bit according to the data read instruction.

[0032] In one embodiment of this application, reading data from the data copy pointed to by the status flag bit according to the data read instruction includes: verifying the integrity check value of the data copy pointed to by the status flag bit; if the integrity check value of the data copy pointed to by the status flag bit passes the verification, then reading data from the data copy pointed to by the status flag bit; if the verification fails, then pointing the status flag bit to another data copy and verifying the integrity check value of the other data copy; if the integrity check value of the other data copy passes the verification, then reading data from the other data copy; if the verification fails, then returning an error status.

[0033] Specifically, when data needs to be read from a data copy, the current integrity check value is calculated using the same algorithm as described above, based on the data content stored in that data copy. This value is then compared with a pre-stored integrity check value. If they match, the integrity check of that data copy has passed verification, and data can be read from it. If they differ, verification has failed, and the status flag is set to another data copy, which is then verified in the same way. If both data copies fail verification, an error status is returned. This method ensures that read operations are performed on a complete data copy, thereby improving the reliability of electronic inspection data reading.

[0034] According to the vehicle electrical inspection data protection method of the present invention, the target controller first receives the electrical inspection command sent by the electrical inspection instrument; then, according to the electrical inspection command sent by the electrical inspection instrument, it obtains the data to be written, which includes calibration data and / or configuration data; next, it writes the data to a second data copy and calculates the integrity check value of the second data copy; then, it updates the status flag bit to point to the second data copy; finally, it synchronizes the data to the first data copy. Thus, by storing data in dual copies and combining the integrity check value calculation, the risk of data unavailability under a single point of failure can be avoided, improving the integrity and reliability of electrical inspection data storage.

[0035] Figure 3 This is a structural block diagram of a vehicle electrical inspection data protection system according to an embodiment of this application. Figure 3 As shown, a vehicle electrical inspection data protection system according to an embodiment of this application includes a vehicle storage system with two data copies configured, each indicated by a status flag. The currently used data copy is a first data copy, and the other data copy is a second data copy. The vehicle electrical inspection data protection system includes: a receiving module 310, an acquisition module 320, a storage and calculation module 330, an update module 340, and a synchronization module 350. The receiving module 310 is used for the target controller to receive the electrical inspection command sent by the electrical inspector; The acquisition module 320 is used to obtain the data to be written according to the electrical inspection command sent by the electrical inspection instrument, the data including calibration data and / or configuration data; The storage computing module 330 is used to write the data into the second data copy and calculate the integrity verification value of the second data copy; Update module 340 is used to update the status flag bit to point to the second data copy; The synchronization module 350 is used to synchronize the data to the first data copy.

[0036] According to the vehicle electrical inspection data protection system of this application embodiment, the target controller first receives the electrical inspection command sent by the electrical inspection instrument; then, based on the electrical inspection command sent by the electrical inspection instrument, it obtains the data to be written, which includes calibration data and / or configuration data; next, it writes the data to a second data copy and calculates the integrity check value of the second data copy; then, it updates the status flag bit to point to the second data copy; finally, it synchronizes the data to the first data copy. Thus, by storing data in dual copies and combining it with the integrity check value calculation, the risk of data unavailability under a single point of failure can be avoided, improving the integrity and reliability of electrical inspection data storage.

[0037] Specific limitations regarding the protection system for vehicle electrical inspection data can be found in the above description of the protection methods for vehicle electrical inspection data, and will not be repeated here. Each module of the aforementioned vehicle electrical inspection data protection system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0038] Furthermore, embodiments of this application provide a vehicle, including: a protection system for vehicle electrical inspection data according to any of the above embodiments. The vehicle first receives an electrical inspection command sent by an electrical inspection device from a target controller; then, based on the electrical inspection command sent by the device, it obtains data to be written, including calibration data and / or configuration data; next, it writes the data to a second data copy and calculates the integrity check value of the second data copy; then, it updates the status flag to point to the second data copy; finally, it synchronizes the data to a first data copy. Thus, by storing dual data copies and combining them with the integrity check value calculation, the risk of data unavailability under a single point of failure can be avoided, improving the integrity and reliability of electrical inspection data storage.

[0039] Furthermore, other components and functions of the vehicle according to the embodiments of this application are known to those skilled in the art and will not be described in detail here.

[0040] In one embodiment, a computer device is provided. Figure 4 This is a structural block diagram of the computer device provided in the embodiments of this application, with reference to... Figure 4 The computer device includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the aforementioned flexible fuel content identification method embodiment. For example, it executes the following: the target controller receives an electrical detection command sent by the electrical detector; According to the electrical testing command sent by the electrical testing instrument, the data to be written is obtained, including calibration data and / or configuration data; Write the data into the second data copy and calculate the integrity check value of the second data copy; Update the status flag to point to the second data copy; The data is synchronized to the first data copy.

[0041] This application also provides a computer-readable storage medium storing a computer program. When the processor executes the computer program, it implements the aforementioned flexible fuel content identification method embodiment. For example, it executes: the target controller receives an electrical detection command sent by the electrical detector; According to the electrical testing command sent by the electrical testing instrument, the data to be written is obtained, including calibration data and / or configuration data; Write the data into the second data copy and calculate the integrity check value of the second data copy; Update the status flag to point to the second data copy; The data is synchronized to the first data copy.

[0042] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0043] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0044] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for protecting vehicle electrical inspection data, characterized in that, The vehicle's storage system is configured with two data copies, with a status flag indicating the currently used data copy. The currently used data copy is the first data copy, and the other data copy is the second data copy. The method for protecting the vehicle's electrical inspection data includes: The target controller receives the electrical testing command sent by the electrical testing instrument; According to the electrical testing command sent by the electrical testing instrument, the data to be written is obtained, including calibration data and / or configuration data; Write the data into the second data copy and calculate the integrity check value of the second data copy; Update the status flag to point to the second data copy; The data is synchronized to the first data copy.

2. The method for protecting vehicle electrical inspection data according to claim 1, characterized in that, The first data copy and the second data copy are physically isolated and stored separately.

3. The method for protecting vehicle electrical inspection data according to claim 1, characterized in that, The status flag is a hexadecimal value that is neither all 0s nor all 1s, and the status flag is physically isolated from the first data copy and the second data copy.

4. The method for protecting vehicle electrical inspection data according to claim 1, characterized in that, After synchronizing the data to the first data copy, the method further includes: Update the status flag to point to the first data copy.

5. The method for protecting vehicle electrical inspection data according to claim 1, characterized in that, Also includes: According to the data read instruction, read data from the data copy pointed to by the status flag bit.

6. The method for protecting vehicle electrical inspection data according to claim 5, characterized in that, The step of reading data from the data copy pointed to by the status flag bit according to the data read instruction includes: Verify the integrity check value of the data copy pointed to by the status flag bit; If the integrity check value of the data copy pointed to by the status flag passes the verification, then data is read from the data copy pointed to by the status flag. If the verification fails, then the status flag is pointed to another data copy, and the integrity check value of the other data copy is verified. If the integrity check value of the other data copy passes the verification, data is read from the other data copy; if the verification fails, an error status is returned.

7. A protection system for vehicle electrical inspection data, characterized in that, The vehicle's storage system is configured with two data copies, with a status flag indicating the currently used data copy. The currently used data copy is the first data copy, and the other data copy is the second data copy. The vehicle's electrical inspection data protection system includes: The receiving module is used by the target controller to receive the electrical inspection command sent by the electrical inspector; The acquisition module is used to obtain the data to be written according to the electrical testing command sent by the electrical testing instrument, the data including calibration data and / or configuration data; The storage and computing module is used to write the data into the second data copy and calculate the integrity verification value of the second data copy; The update module is used to update the status flag bit to point to the second data copy; A synchronization module is used to synchronize the data to the first data copy.

8. A vehicle, characterized in that, include: The vehicle electrical inspection data protection system according to claim 7.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method for protecting the vehicle's electrical inspection data according to any one of claims 1-6.

10. A computationally readable storage medium, comprising a memory and a computer program stored on the memory and executable on a processor, characterized in that, When the program is executed by the processor, it implements the method for protecting the vehicle's electronic inspection data according to any one of claims 1-6.