Method, device and non-transitory storage medium for vehicle controller testing

By acquiring and modifying the vehicle controller's flashing information, its installation status can be determined, solving the problem of the lack of vehicle controller verification function in the prior art. This ensures that the vehicle controller can identify and stop the tampering process when data is tampered with, thus improving the vehicle's safety and reliability.

CN117681808BActive Publication Date: 2026-07-03CHINA FAW CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA FAW CO LTD
Filing Date
2023-10-26
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

The lack of a method in the existing technology to verify the vehicle controller's verification function means that data cannot be verified after being tampered with, which affects the vehicle's functionality.

Method used

By acquiring the target information of the controller and modifying it to obtain the second target information, the installation status of the vehicle controller is determined based on the second target information, and it is judged whether it is in normal working condition.

Benefits of technology

This system enables the determination of whether the vehicle controller has a verification function, ensuring that the vehicle controller can identify and stop the tampering process when data is tampered with, thereby improving the safety and reliability of the vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117681808B_ABST
    Figure CN117681808B_ABST
Patent Text Reader

Abstract

The application discloses a kind of for the inspection method, device and nonvolatile storage medium of vehicle controller.Therein, the method includes: obtaining the first target information of the flashing of flashing controller, wherein the first target information includes the data to be flashed;First target information is modified to obtain second target information;Determine the installation state of second target information based on second target information Vehicle controller of target vehicle, wherein installation state includes normal installation and abnormal installation;Determine whether flashing controller is in normal working state based on installation state.The application solves the technical problem that the method for checking the vehicle controller calibration function is lacked in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle controller inspection technology, and more specifically, to an inspection method, apparatus and non-volatile storage medium for vehicle controllers. Background Technology

[0002] The accelerating trend towards software-defined vehicles has led to increasingly frequent vehicle software updates. These updates are mostly performed via bus-based diagnostic flashing. However, this flashing process can result in data tampering or falsification of the flashing file. Therefore, the controller itself should have the function to verify the accuracy of data packets. If the controller cannot verify the tampered data and directly installs the modified data packet, it will significantly impact vehicle functionality. Currently, existing technologies lack methods for verifying the vehicle controller's verification function.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This application provides a method, apparatus, and non-volatile storage medium for testing vehicle controllers, to at least solve the technical problem of the lack of a method for testing vehicle controller verification functions in the prior art.

[0005] According to one aspect of the embodiments of this application, a method for inspecting a vehicle controller is provided, comprising: acquiring first target information for flashing the controller, wherein the first target information includes data to be flashed; modifying the first target information to obtain second target information; determining the installation status of the vehicle controller of the target vehicle for the second target information based on the second target information, wherein the installation status includes normal installation and abnormal installation; and determining whether the flashing controller is in a normal working state based on the installation status.

[0006] Optionally, the installation status of the vehicle controller of the target vehicle with respect to the second target information is determined based on the second target information, and the status of the flashing controller is determined based on the installation status, including: if the installation status of the vehicle controller with respect to the second target information is determined to be normal, the vehicle controller is determined to be in an abnormal working state.

[0007] Optionally, the installation status of the vehicle controller of the target vehicle with respect to the second target information is determined based on the second target information, and the status of the flashing controller is determined based on the installation status, including: if it is determined that the installation status of the vehicle controller with respect to the second target information is abnormal, the vehicle controller is determined to be in normal working condition.

[0008] Optionally, the first target information is modified to obtain the second target information, including: adding a preset value to the data to be written in the first target information to obtain the second target information.

[0009] Optionally, the default value is 1.

[0010] According to another aspect of the embodiments of this application, a testing device for a vehicle controller is also provided, comprising: a flashing controller, which is used to acquire first target information, wherein the first target information includes data to be flashed; a modification processing device, which is used to modify the first target information to obtain second target information; a determination module, which determines the installation status of the vehicle controller of the target vehicle for the second target information based on the second target information, wherein the installation status includes normal installation and abnormal installation; and a judgment module, which determines whether the vehicle controller is in a normal working state based on the installation status.

[0011] Optionally, the modification processing device includes: a data receiving module for receiving first target information; a data unpacking module for disassembling and extracting the first target information; a data tampering module for adding a preset value to the data to be written in the first target information to obtain second target information; a data packaging module for packaging the second target information; and a data sending module for sending the second target information.

[0012] Optionally, the modification processing device includes: a data decryption module for decrypting the first target information; a data encryption module for encrypting the second target information; and a power supply module for supplying power to the device used to test the vehicle controller.

[0013] Optionally, the modified processing device includes: a CAN transceiver interface for connecting to the vehicle's CAN bus; and an Ethernet transceiver interface for connecting to the vehicle's Ethernet bus.

[0014] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, the non-volatile storage medium including a stored program, wherein, when the program is running, it controls the device where the non-volatile storage medium is located to execute the above-described inspection method for a vehicle controller.

[0015] In this embodiment, the first target information of the flashing controller is modified to obtain the second target information, and then the second target information is transmitted to the vehicle controller of the target vehicle. The working status of the vehicle controller is determined by the feedback of the installation status of the second target information from the vehicle controller of the target vehicle. This achieves the technical effect of judging whether the vehicle controller has a verification function, and solves the technical problem of lacking a method for verifying the vehicle controller's verification function in the prior art. Attached Figure Description

[0016] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0017] Figure 1 This is a flowchart of an embodiment of an optional inspection method for a vehicle controller according to an embodiment of this application;

[0018] Figure 2 This is a schematic diagram of an embodiment of an optional inspection device for a vehicle controller according to an embodiment of this application;

[0019] Figure 3 This is a schematic diagram of an embodiment of an optional modification processing apparatus according to an embodiment of this application;

[0020] Figure 4 This is a schematic diagram of an embodiment of an optional inspection device for a vehicle controller according to an embodiment of this application;

[0021] Figure 5 This is a flowchart of an embodiment of an optional inspection device for a vehicle controller according to an embodiment of this application. Detailed Implementation

[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] According to one aspect of the embodiments of this application, a method for inspecting a vehicle controller is provided, comprising: acquiring first target information for flashing the controller, wherein the first target information includes data to be flashed; modifying the first target information to obtain second target information; determining the installation status of the vehicle controller of a target vehicle for the second target information based on the second target information, wherein the installation status includes normal installation and installation failure; and determining whether the vehicle controller is in a normal working state based on the installation status.

[0025] According to an embodiment of this application, a method embodiment for testing a vehicle controller is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0026] Figure 1 This is a testing method for a vehicle controller according to embodiments of this application, such as... Figure 1 As shown, the method includes the following steps:

[0027] Step S101: Obtain the first target information for the flashing controller, wherein the first target information includes the data to be flashed.

[0028] Step S102: Modify the first target information to obtain the second target information.

[0029] Step S103: Determine the installation status of the vehicle controller of the target vehicle for the second target information based on the second target information, wherein the installation status includes normal installation and abnormal installation.

[0030] Step S104: Determine whether the vehicle controller is in normal working condition based on the installation status.

[0031] Through the above steps, the first target information of the flashing controller can be modified to obtain the second target information, and then the second target information can be transmitted to the vehicle controller of the target vehicle. The vehicle controller's working status is determined by the installation status of the second target information, thereby achieving the technical effect of judging whether the vehicle controller has a verification function, and thus solving the technical problem of lacking a method for verifying the vehicle controller's verification function in the prior art.

[0032] Optionally, the installation status of the vehicle controller of the target vehicle with respect to the second target information is determined based on the second target information, and the status of the flashing controller is determined based on the installation status, including: if the installation status of the vehicle controller with respect to the second target information is determined to be normal, the vehicle controller is determined to be in an abnormal working state.

[0033] In the above embodiments, if the vehicle controller is determined to be in an abnormal working state when the second target information is installed normally, it proves that the vehicle controller does not have the function of verifying data packets. The security of the vehicle controller is low, and it is easy to cause a significant impact on the vehicle's functions during the flashing process. It should be replaced or upgraded in time to avoid further losses.

[0034] Optionally, the installation status of the vehicle controller of the target vehicle with respect to the second target information is determined based on the second target information, and the status of the flashing controller is determined based on the installation status, including: if it is determined that the installation status of the vehicle controller with respect to the second target information is abnormal, the vehicle controller is determined to be in normal working condition.

[0035] In the above embodiments, if the vehicle controller is determined to be in normal working condition when the installation status of the second target information is abnormal, it proves that the vehicle controller has the function of verifying data packets. The security of the vehicle controller is high. If there is data tampering or falsification of data in the flashing file during the flashing process, the vehicle controller can identify and stop the flashing process in time, avoiding the significant impact of the tampered data flashing on the vehicle's function, and realizing reasonable risk avoidance during the flashing process.

[0036] Optionally, the first target information is modified to obtain the second target information, including: adding a preset value to the data to be written in the first target information to obtain the second target information.

[0037] In the above embodiments, after obtaining the first target information for the flashing controller, the data to be flashed in the first target information is increased by a preset value to obtain the second target information. The data tampering process that may occur during the flashing process is simulated. The working state of the vehicle controller is determined by the installation status of the second target information on the vehicle controller of the target vehicle. If the vehicle controller installs the second target information normally, the vehicle controller is in an abnormal working state, proving that the vehicle controller does not have the function of verifying data packets. If the installation status of the second target information by the vehicle controller is abnormal, the vehicle controller is in a normal working state, proving that the vehicle controller has the function of verifying data packets, and the security of the vehicle controller is high.

[0038] Optionally, the default value is 1. In addition, the default value can also be selected as 2, 3, 4, etc., as long as it can be ensured that the data to be written in the first target information can be increased by the default value to obtain the second target information.

[0039] According to another aspect of the embodiments of this application, a testing device for a vehicle controller is also provided, comprising: a flashing controller 11, which is used to acquire first target information, wherein the first target information includes data to be flashed; a modification processing device 12, which is used to modify the first target information to obtain second target information; a determination module 13, which determines the installation status of the vehicle controller of the target vehicle for the second target information based on the second target information, wherein the installation status includes normal installation and abnormal installation; and a judgment module 14, which determines whether the vehicle controller is in a normal working state based on the installation status.

[0040] Combination Figure 2As shown, the inspection device for a vehicle controller includes a flashing controller 11, a modification processing device 12, a determination module 13, and a judgment module 14. During inspection, the flashing controller 11 acquires first target information containing data to be flashed; the modification processing device 12 modifies the first target information to obtain second target information; the determination module 13 determines the installation status of the vehicle controller of the target vehicle for the second target information based on the second target information; and the judgment module 14 determines whether the vehicle controller 11 is in a normal working state based on the installation status. If the installation status is normal, the vehicle controller is in an abnormal working state; otherwise, the vehicle controller is in a normal working state. In this embodiment, by modifying the first target information flashed by the flashing controller 11 to obtain the second target information, and then transmitting the second target information to the vehicle controller of the target vehicle, the working state of the vehicle controller is determined based on the feedback from the vehicle controller of the target vehicle regarding the installation status of the second target information. This achieves the technical effect of judging whether the vehicle controller has an inspection function, thereby solving the technical problem of the lack of a method for inspecting the vehicle controller's verification function in the prior art.

[0041] Optionally, the modification processing device 12 includes: a data receiving module for receiving first target information; a data unpacking module for disassembling and extracting the first target information; a data tampering module for adding a preset value to the data to be written in the first target information to obtain second target information; a data packaging module for packaging the second target information; and a data sending module for sending the second target information.

[0042] In the above embodiment, this configuration helps the data receiving module to receive the first target information, the data unpacking module to disassemble and extract the first target information, the data tampering module to add a preset value to the data to be written in the first target information to obtain the second target information, the data unpacking module to reassemble the second target information, and the data sending module to send the second target information to the vehicle controller. The above modules work together to complete the process of the modification processing device 12 modifying the first target information to obtain the second target information, so as to perform subsequent verification of the vehicle controller's verification function.

[0043] Optionally, the modification processing device 12 includes: a data decryption module for decrypting the first target information; a data encryption module for encrypting the second target information; and a power supply module for supplying power to the flashing controller 11 of the modification processing device 12. This configuration facilitates the decryption of the encrypted first target information by the modification processing device 12, enabling the modification of the encrypted first target information of the flashing controller 11 to obtain the second target information. After the modification is completed, the data encryption module encrypts the second target information and transmits the encrypted second target information to the vehicle controller. The power supply module provides power to the modification processing device 12, making it easy to carry and use independently. Optionally, the modification processing device 12 includes: a CAN transceiver interface and an Ethernet transceiver interface. The CAN transceiver interface is used to connect to the vehicle's CAN bus, and the Ethernet transceiver interface is used to connect to the vehicle's Ethernet bus. This configuration enables modification of the first target information via the CAN bus and Ethernet, improving the versatility of the modification processing device 12.

[0044] Combination Figure 3 As shown, in this embodiment, the modification processing device 12 includes a data receiving module, a data unpacking module, a data decryption module, a data tampering module, a data packet assembly module, a data encryption module, a data sending module, a power supply module, a CAN transceiver interface, and an Ethernet transceiver interface. The data receiving module receives the first target information, the data decryption module decrypts the first target information, the data unpacking module disassembles and extracts the first target information, the data tampering module adds a preset value of 1 to the data to be written in the first target information to obtain the second target information, the data unpacking module assembles the second target information, the data encryption module encrypts the second target information, and the data sending module sends the second target information to the vehicle controller. The above modules work together to complete the modification processing device 12's process of modifying the first target information to obtain the second target information, so as to perform subsequent verification of the vehicle controller's verification function, which helps to improve the security and reliability of the vehicle controller.

[0045] Combination Figure 5As shown, in this embodiment, the data receiving module receives the first target information. The data receiving module can be a CAN data receiving module or an ETH data receiving module. The data decryption module decrypts the first target information. The data tampering module determines whether the second byte of the data to be written is 36. If so, the data unpacking module decomposes and extracts the first target information. Starting from the third byte of the data to be written, the data to be written is incremented by 1 to obtain the second target information. The data unpacking module reassembles the second target information. The data encryption module encrypts the second target information. The data sending module sends the second target information to the vehicle controller. After the data transmission is completed, the working status of the vehicle controller can be determined, thereby realizing the determination of whether the vehicle controller has a verification function.

[0046] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided. The non-volatile storage medium includes a stored program, wherein, when the program is running, it controls the device where the non-volatile storage medium is located to execute the verification method in the above embodiments.

[0047] In another embodiment of this application, a processor is also provided for running a program, wherein the program executes the verification method in the above embodiments.

[0048] In another embodiment of this application, the modification processing device 12 in the above embodiments can be used alone, in combination with Figure 4 As shown, the modification processing device 12 can be connected to the flashing controller 11 and the vehicle controller via the CAN transceiver interface. Optionally, the modification processing device 12 can also be connected to the flashing controller 11 and the vehicle controller via the Ethernet transceiver interface.

[0049] In another embodiment of this application, the modification processing device 12 in the above embodiments can also be used to participate in the data tampering process of other devices to be flashed.

[0050] In another embodiment of this application, the modification processing device 12 can be connected to the flashing controller 11 and the controller of the device to be flashed via a CAN transceiver interface. Optionally, the modification processing device 12 can also be connected to the flashing controller 11 and the controller of the device to be flashed via an Ethernet transceiver interface.

[0051] In another embodiment of this application, the modification processing device 12 in the above embodiments can be integrated with the vehicle end, allowing the vehicle controller verification function to be completed on the vehicle end, further increasing the practicality of the verification device. The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0052] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0053] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0054] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0055] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0056] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0057] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A testing method for a vehicle controller, characterized in that, include: Obtain the first target information for the flashing controller, wherein the first target information includes the data to be flashed; The first target information is modified to obtain the second target information; Based on the second target information, the installation status of the vehicle controller of the target vehicle with respect to the second target information is determined, wherein the installation status includes normal installation and abnormal installation; Determine whether the vehicle controller is in normal working condition based on the installation status; Based on the second target information, determine the installation status of the vehicle controller of the target vehicle in relation to the second target information, and based on the installation status, determine whether the vehicle controller is in normal working condition, including: If it is determined that the vehicle controller is in a normal installation state for the second target information, then it is determined that the vehicle controller is in an abnormal working state. Determining the installation status of the vehicle controller of the target vehicle in relation to the second target information based on the second target information, and determining whether the vehicle controller is in normal working condition based on the installation status, further includes: If it is determined that the vehicle controller is not properly installed for the second target information, then the vehicle controller is in normal working condition. The process of modifying the first target information to obtain the second target information includes: The second target information is obtained by adding a preset value to the data to be written in the first target information.

2. The testing method according to claim 1, characterized in that, The preset value is 1.

3. A testing device for a vehicle controller, characterized in that, include: A flashing controller is used to acquire first target information, wherein the first target information includes data to be flashed; A modification processing device is used to modify the first target information to obtain the second target information; The determination module determines the installation status of the vehicle controller of the target vehicle in relation to the second target information based on the second target information, wherein the installation status includes normal installation and abnormal installation; The determination module determines whether the vehicle controller is in normal working condition based on the installation status. Based on the second target information, determine the installation status of the vehicle controller of the target vehicle in relation to the second target information, and based on the installation status, determine whether the vehicle controller is in normal working condition, including: If it is determined that the vehicle controller is in a normal installation state for the second target information, then it is determined that the vehicle controller is in an abnormal working state. Determining the installation status of the vehicle controller of the target vehicle in relation to the second target information based on the second target information, and determining whether the vehicle controller is in normal working condition based on the installation status, further includes: If it is determined that the vehicle controller is not properly installed for the second target information, then the vehicle controller is in normal working condition. The process of modifying the first target information to obtain the second target information includes: The second target information is obtained by adding a preset value to the data to be written in the first target information.

4. The testing device for a vehicle controller according to claim 3, characterized in that, The modification processing device includes: The data receiving module is used to receive the first target information; A data unpacking module, which is used to decompose and extract the first target information; A data tampering module is used to add a preset value to the data to be written in the first target information to obtain the second target information; A data packetization module, which is used to packetize the second target information; A data sending module, which is used to send the second target information.

5. The testing device for a vehicle controller according to claim 4, characterized in that, The modification processing device includes: A data decryption module, used to decrypt the first target information; A data encryption module, wherein the data encryption module is used to encrypt the second target information; A power module is provided to supply power to the modification processing device.

6. The testing device for a vehicle controller according to claim 5, characterized in that, The modification processing device includes: CAN transceiver interface, which is used to connect to the vehicle CAN bus; An Ethernet transceiver interface is provided for connecting to an in-vehicle Ethernet bus.

7. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the non-volatile storage medium to perform the inspection method for a vehicle controller as described in any one of claims 1 to 2.