Vehicle controller upgrade test method, device and equipment and storage medium

By injecting simulated faults into the commercial vehicle controller upgrade test system, the problem of insufficient fault analysis during the data upgrade process was solved, and a test report was generated, the reliability of the data upgrade was verified, and the stability of the upgrade process was improved.

CN118916290APending Publication Date: 2024-11-08FAW JIEFANG AUTOMOTIVE CO
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411102080.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

During the data upgrade process of commercial vehicle controllers, various interference factors and complex failure problems exist, resulting in unstable upgrade process and lack of effective fault testing and analysis methods.

Method used

By injecting simulated faults into the vehicle controller upgrade test system, we study and determine possible problems in continuing to upgrade in the event of a failure, and generate corresponding test reports to verify the reliability of data upgrades.

Benefits of technology

It effectively verifies the reliability of vehicle controller data upgrades and provides fault test reports to help testers analyze and improve the upgrade process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916290A_ABST
    Figure CN118916290A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle controller upgrade test method, device and equipment and a storage medium, the method is executed by a vehicle controller upgrade test system, and the method comprises the following steps: obtaining a target upgrade task and executing the target upgrade task; multiple simulation faults are injected in the process of executing the target upgrading task; after execution of all the simulation faults is finished, it is determined that the target upgrading task continues to be executed, and first data in the continuous execution process is obtained; and comparing the first data with a preset expected result data packet, and generating a fault test report. According to the method, the simulation fault is injected to research and determine the possible problem of continuing to upgrade after the fault occurs during the data upgrade of the vehicle controller, the reliability of the data upgrade of the vehicle controller is verified, and meanwhile, a corresponding test report is generated in the fault test process to be analyzed by testers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of data upgrade technology, and in particular to a vehicle controller upgrade test method, device, equipment and storage medium. Background Art

[0002] As the application scope of commercial vehicles expands, on-board controller upgrades have become a norm. Due to the complex vehicle environment, the controller upgrade process may face various interferences from electromagnetic, signal, line, etc., and there are many factors that affect data upgrades.

[0003] During the data upgrade of existing commercial vehicles, the corresponding fault problems that arise during the upgrade process are also complex and diverse. Currently, development and testing personnel lack research on possible problems that may arise when continuing to upgrade after a fault occurs, and there is a lack of corresponding test reports during the fault testing process for testers to analyze. Summary of the invention

[0004] The embodiments of the present invention provide a vehicle controller upgrade test method, device, equipment and storage medium. By injecting simulated faults, the research determines the possible problems that may occur when continuing to upgrade the vehicle controller data after a fault occurs, verifies the reliability of the vehicle controller data upgrade, and generates a corresponding test report during the fault test for testers to analyze.

[0005] In a first aspect, an embodiment of the present invention provides a vehicle controller upgrade test method, the method being executed by a vehicle controller upgrade test system, comprising:

[0006] Obtaining a target upgrade task and executing the target upgrade task;

[0007] Injecting multiple simulated faults during the execution of the target upgrade task;

[0008] After the execution of each of the simulated faults is completed, determining that the target upgrade task continues to be executed, and obtaining first data in the process of continuing the execution;

[0009] The first data is compared with a preset expected result data packet to generate a fault test report.

[0010] In a second aspect, an embodiment of the present invention further provides a vehicle controller upgrade test device, the device comprising:

[0011] A task acquisition and execution module, used to acquire a target upgrade task and execute the target upgrade task;

[0012] A fault injection module, used to inject multiple simulated faults during the execution of the target upgrade task;

[0013] A data acquisition module, configured to determine that the target upgrade task continues to be executed after the execution of each simulated fault is completed, and to acquire first data in the process of continuing the execution;

[0014] The report generation module is used to compare the first data with a preset expected result data packet and generate a fault test report.

[0015] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0016] one or more processors;

[0017] a storage device for storing one or more programs,

[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle controller upgrade test method provided by the embodiment of the present disclosure.

[0019] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to implement the vehicle controller upgrade test method provided by the embodiments of the present disclosure.

[0020] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the vehicle controller upgrade test method provided in the embodiment of the first aspect above.

[0021] The present invention discloses a vehicle controller upgrade test method, device, equipment and storage medium. The method is executed by a vehicle controller upgrade test system, obtains a target upgrade task and executes the target upgrade task; injects multiple simulated faults in the process of executing the target upgrade task; after the execution of each simulated fault is completed, determines that the target upgrade task continues to be executed, obtains the first data in the continued execution process; compares the first data with a preset expected result data packet, and generates a fault test report. Using this method: by injecting simulated faults, the possible problems that may occur when the vehicle controller data is upgraded after the failure occurs are studied and determined, and the reliability of the vehicle controller data upgrade is verified. At the same time, a corresponding test report is generated during the fault test for the tester to analyze. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0023] Figure 1 A flow chart of a vehicle controller upgrade test method provided by an embodiment of the present disclosure;

[0024] Figure 2 A schematic diagram of the structure of a vehicle controller upgrade test system provided by an embodiment of the present disclosure;

[0025] Figure 3 A general schematic diagram of a controller upgrade test provided by an embodiment of the present disclosure;

[0026] Figure 4 A schematic diagram of the structure of a vehicle controller upgrade test device provided by an embodiment of the present disclosure;

[0027] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0031] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0034] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0035] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0036] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0037] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0038] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0039] Figure 1 A flowchart of a vehicle controller upgrade test provided in an embodiment of the present disclosure is applicable to providing a solution to the problem of how to study and determine the possible problems in continuing the upgrade after a fault occurs during the vehicle controller data upgrade, and verify the reliability of the vehicle controller data upgrade. The method can be executed by a vehicle controller upgrade test device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC or a server, etc.

[0040] like Figure 1 As shown, an embodiment of the present disclosure provides a vehicle controller upgrade test method, which is executed by a vehicle controller upgrade test system and may specifically include the following steps:

[0041] S110: Obtain a target upgrade task and execute the target upgrade task.

[0042] Figure 2 This is a schematic diagram of the vehicle controller upgrade test system provided by the embodiment of the present disclosure. Figure 2 As shown in the figure, the vehicle controller upgrade test system includes: host computer, power supply board, fault injection board, communication monitoring equipment, diagnostic monitoring equipment, load board, I / O board, TBOX monitoring equipment, central control screen monitoring equipment, network interference equipment, etc. This system realizes automated testing for commercial vehicle controller data upgrade by simulating the real vehicle environment and network functions on the computer host side. Through automated testing devices and methods, the problems of incomplete verification and long time of commercial vehicle data upgrade in the past can be improved. The boards and devices can be selected but not limited to the following devices: power supply board: responsible for supplying battery power and ON power to the controller; fault injection board: realize error frame fault injection, signal fault injection, power fault injection (by short-circuiting the power ground or power supply), load fault injection (controller connects or disconnects the load, bus load), bus fault injection, etc.; simulate controller loads such as motors, etc., and have the function of creating load short circuit and open circuit faults; simulate sensors, and have the function of creating open circuit and short circuit faults; the board is connected to the PC through the chassis backplane; communication monitoring equipment, diagnostic monitoring equipment, TBOX monitoring equipment, central control screen monitoring equipment: collect Ethernet / CAN / LIN / CAN The FD bus data is simulated, and the network interference equipment is used to apply the arbitrary waveform generation function to generate waveform interference to the network, including square wave, triangle wave, ramp wave, noise, etc.; the central control screen monitoring equipment can be realized by using the camera equipment to collect the central control screen image in real time, and compare the upgrade operation steps in the gallery with the actual operation steps; the above-mentioned bus monitoring equipment can also be realized with a communication board; for TBOX and central control screen, according to the application of different suppliers, in addition to the above-mentioned bus devices, serial port devices may also be applied to internal data call or monitoring.

[0043] In this embodiment, the target upgrade task may be a task of upgrading vehicle controller data.

[0044] Specifically, the target upgrade task sent by the host computer is obtained and sent to the controller to execute the target upgrade task.

[0045] On the basis of the above embodiment, the following specific steps are also included: configuring the vehicle gear position, parking switch, vehicle speed, terminal resistance, communication rate and voltage of the target controller to set values. Simulating the working conditions of the whole vehicle to send simulation messages makes the target controller in normal working state; normal working state includes: stable working voltage, correct load, normal communication function, normal diagnosis function, normal application function, etc.

[0046] In this embodiment, the controller data upgrade test requires a pre-set test environment. The implementation method is: simulate a single controller data upgrade environment or an OTA (Over-the-Air) upgrade test environment, power the target controller and the diagnostic instrument through the power supply board, and disconnect the remaining non-target controllers to ensure that only the target test controller is connected to the bus; set the terminal resistance, communication rate and other parameters, simulate the vehicle message, configure the load board, simulate the actual vehicle operation environment, and use the communication board to monitor the bus status; make the controller under normal working conditions, the voltage is stable, the load is normal, the message cycle is correct, and the signal is correct. The configuration parameters make the controller meet the upgrade conditions, among which the vehicle gear = P / N, the voltage is 24V, the ignition switch is ON, the parking switch = ON, and the vehicle speed <= 3. S120. Inject multiple simulated faults during the execution of the target upgrade task.

[0047] The simulated fault types include: error frame fault, signal fault, power fault, load fault and bus fault.

[0048] In this embodiment, the simulated fault can be a possible fault that is set to be simulated. An error frame fault can be a simulated error frame injection fault; a signal fault can be a simulated 4G / 5G / Wifi fault; a bus fault can be a fault in which the bus simulates the error communication information, error check information, etc. of other controllers of the vehicle, creates bus noise, etc. to interfere with the waveform of the network, and affects the communication of the current controller under test; a bus load fault can be a simulation of a bus load condition from 10% to 100%: starting from 10%, increasing the bus load by 5% in steps until the bus has an error frame, stops communicating, or the controller is dysfunctional, and it is considered that the load value when the problem occurs is the limit load value that the controller can tolerate; a controller load fault can be a short circuit or disconnection fault of a load such as a motor or a lamp; a power supply fault can be a short circuit, disconnection, open circuit, short circuit to power ground, short circuit to power supply, etc.

[0049] Specifically, multiple simulated faults are injected into the process of the controller executing the target upgrade task.

[0050] S130: After the execution of each simulated fault is completed, determine that the target upgrade task continues to be executed, and obtain the first data in the process of continuing the execution.

[0051] In this embodiment, the first data may be upgrade data that is continued to be executed in the target upgrade task after the execution of the simulated fault is completed.

[0052] Specifically, after the execution of each simulated fault is completed, it is determined that the target upgrade task continues to be executed, and the first data in the process of continuing the execution is obtained.

[0053] S140: Compare the first data with a preset expected result data packet and generate a fault test report.

[0054] In this embodiment, the preset expected result data packet may be a data packet for verifying the expected test result. The fault test report may be a data test report recording specific information of the current fault.

[0055] Specifically, a corresponding fault test report is generated according to a comparison result between the first data and a preset expected result data packet.

[0056] For example, during the upgrade process, simulate an error frame injection fault. If the controller can continue to complete the upgrade after the fault stops, then proceed to the next fault simulation test; if the controller exits the data upgrade due to an implementation fault or has other problems such as a freeze, then generate a problem record and re-execute the target upgrade task to generate a test report to see if the upgrade is successful without simulated fault injection. Continue to execute the next test sequence.

[0057] Based on the above embodiment, comparing the first data with the preset expected result data packet and generating a fault test report may include the following steps:

[0058] a1) determining whether the first data is consistent with an upgraded version data packet of a preset expected result data packet.

[0059] b1) If the first data is inconsistent with the upgraded version data packet, a first simulated fault report is generated as a fault test report.

[0060] c1) If it is consistent with the upgraded version data package, determine whether there is data in the first data that matches the upgraded process data in the preset expected result data package.

[0061] d1) If there is data matching the upgrade process data, a first upgrade success report is generated as a fault test report.

[0062] e1) If there is no data matching the upgrade process data, a second simulated fault report is generated as a fault test report according to the match.

[0063] In this embodiment, the upgrade version data includes version-related data that may be an upgrade target. The upgrade process data may be process information for upgrading the target upgrade task.

[0064] Specifically, determine whether the first data is consistent with the upgraded version data packet of the preset expected result data packet. If the first data is inconsistent with the upgraded version data packet, generate a first simulated fault report as a fault test report. If it is consistent with the upgraded version data packet, determine whether there is data in the first data that matches the upgrade process data in the preset expected result data packet. If there is data that matches the upgrade process data, generate a first upgrade success report as a fault test report. If there is no data that matches the upgrade process data, generate a second simulated fault report as a fault test report based on the match.

[0065] On the basis of the above embodiments, it also includes: after injecting multiple simulated faults during the execution of the target upgrade task, it is confirmed that the target upgrade task exits execution or there is no new data within the set time period, returning to re-execute the target upgrade task, obtaining the execution information of the target upgrade task as the second data without the injection of simulated faults, and generating a fault test report based on the second data.

[0066] On the basis of the above embodiment, generating a fault test report according to the second data can be specifically as follows: determining whether the third data is consistent with a preset expected result data packet; if it is inconsistent with the preset expected result data packet, generating a third simulated fault report corresponding to the simulated fault as the fault test report. If it is consistent with the preset expected result data packet, generating a controller no fault report as the fault test report.

[0067] On the basis of the above embodiment, it also includes: before injecting multiple simulated faults in the process of executing the target upgrade task, obtaining the execution information of the target upgrade task as the third data without the injection of simulated faults, comparing the third data with the preset expected result data packet, and generating a visual test report.

[0068] Based on the above embodiment, comparing the third data with the preset expected result data packet and generating a visual test report may include the following steps:

[0069] a2) determining whether the third data is consistent with the upgraded version data packet in the preset expected result data packet.

[0070] b2) If it is inconsistent with the upgraded version data package, a fault report is generated as a visual test report.

[0071] c2) If it is consistent with the upgraded version data package, determine whether there is data in the third data that matches the upgraded process data in the preset expected result data package.

[0072] d2) If there is data matching the upgrade process data, a second upgrade success report is generated as a visual test report.

[0073] e2) If there is no data matching the upgrade process data, an upgrade process failure report in a visual test report is generated according to the match as the visual test report.

[0074] In this embodiment, the visual test report may be a report on the test results obtained during the forward test process. The third data is the completion information of the target upgrade task.

[0075] Based on this embodiment, Figure 3 The overall schematic diagram of the controller upgrade test provided by the embodiment of the present disclosure also includes: Figure 3 As shown, the vehicle controller upgrade test system also includes: data upgrade verification module, network function verification module and diagnostic function verification module. Among them, the data upgrade verification module, in addition to the above embodiments, also includes: interactive terminal test (central control screen and user interaction test, mobile phone and user interaction test, central control screen and instrument interaction test, etc.), ping-pong upgrade test. The network function verification module can verify the network communication function before and after the controller data upgrade, which can be used as a basis for determining whether the data upgrade is successful. Among them, the verification content includes: basic communication test (verification of physical waveform, session establishment, data transmission stability, robustness, etc.), network management test (verification of controller network ring building, limp mode, fault monitoring, fault handling), network sleep and wake-up logic test (verification of sleep conditions, triggering controller working mode under wake-up conditions), network communication signal consistency test (verification of functional signal realization degree, stability); gateway routing function test (verification of message routing, signal routing, domain control management, diagnostic routing, etc.); each domain system level test (verification of multi-controller communication within the domain, cross-domain management, etc.). The diagnostic function verification module is designed to verify the network diagnostic function of the controller before and after the data upgrade, which can be used as a basis for determining whether the data upgrade is successful. The verification content includes: diagnostic protocol and service test; read and write data flow test; input and output signal test; routine control test; fault injection test.

[0076] In this embodiment, there are two ways to implement the system data upgrade test; Method 1, data upgrade verification of the vehicle’s central gateway, domain control, gateway, and controller is implemented through the central gateway; the data upgrade module simulates the diagnostic instrument, and diagnoses and activates the central gateway through the diagnostic port. After the data upgrade starts, the central gateway transmits the upgrade data to the corresponding target controller through the domain control and gateway. Method 2, the data upgrade module implements data upgrade verification of the vehicle’s central gateway, domain control, gateway, and controller through TBOX; the data upgrade module simulates the cloud server and TBOX to establish contact (sign in, authenticate, transmit information, etc.), and sends the upgrade task to TBOX through 4G / 5G / Wifi. TBOX downloads the software package and transmits it to the central control screen after the download is completed. The data upgrade module intercepts the upgrade command of the central control screen, and by simulating human-computer interaction, after the data upgrade starts, the central control screen transmits the upgrade data to the corresponding target controller through the domain control and gateway;

[0077] The present invention discloses a vehicle controller upgrade test method, which is executed by a vehicle controller upgrade test system, and includes: obtaining a target upgrade task and executing the target upgrade task; injecting multiple simulated faults in the process of executing the target upgrade task; after the execution of each simulated fault is completed, determining that the target upgrade task continues to be executed, and obtaining the first data in the process of continuing to execute; comparing the first data with a preset expected result data packet, and generating a fault test report. Using this method: by injecting simulated faults, the possible problems that may occur when the vehicle controller data is upgraded and the upgrade continues after a fault occurs are studied and determined, and the reliability of the vehicle controller data upgrade is verified. At the same time, a corresponding test report is generated during the fault test for the test personnel to analyze.

[0078] Figure 4 The present invention also provides a schematic diagram of a vehicle controller upgrade test device structure. Figure 4 As shown, the device includes: a task acquisition execution module 210, a fault injection module 220, a data acquisition module 230 and a report generation module 240.

[0079] A task acquisition and execution module 210 is used to acquire a target upgrade task and execute the target upgrade task;

[0080] A fault injection module 220, used to inject multiple simulated faults during the execution of the target upgrade task;

[0081] The data acquisition module 230 is used to determine that the target upgrade task continues to be executed after the execution of each simulated fault is completed, and to acquire the first data in the process of continuing the execution;

[0082] The report generating module 240 is used to compare the first data with a preset expected result data packet and generate a fault test report.

[0083] The technical solution provided in the embodiment of the present disclosure injects simulated faults to study and determine the possible problems that may arise when continuing to upgrade the vehicle controller data after a fault occurs, verifies the reliability of the vehicle controller data upgrade, and generates a corresponding test report during the fault test for testers to analyze.

[0084] Furthermore, the report generation module 240 may be used to:

[0085] The simulated fault types include: error frame fault, signal fault, power supply fault, load fault and bus fault;

[0086] Determining whether the first data is consistent with an upgraded version data packet of the preset expected result data packet;

[0087] If the first data is inconsistent with the upgraded version data packet, generating a first simulated fault report as the fault test report;

[0088] If it is consistent with the upgraded version data package, determining whether there is data in the first data that matches the upgrade process data in the preset expected result data package;

[0089] If there is data matching the upgrade process data, generating a first upgrade success report as the fault test report;

[0090] If there is no data matching the upgrade process data, a second simulated fault report is generated according to the match as the fault test report.

[0091] After injecting multiple simulated faults during the execution of the target upgrade task, the device further includes:

[0092] Confirm that the target upgrade task exits execution, return to re-execute the target upgrade task, obtain execution information of the target upgrade task without the simulated fault injection as second data, and generate a fault test report according to the second data.

[0093] The device also includes:

[0094] Determining whether the third data is consistent with the preset expected result data packet;

[0095] If it is inconsistent with the preset expected result data packet, a third simulated fault report corresponding to the simulated fault is generated as the fault test report.

[0096] If it is consistent with the preset expected result data packet, a controller fault-free report is generated as the fault test report.

[0097] Before injecting multiple simulated faults during the execution of the target upgrade task, the device further includes:

[0098] Obtaining execution information of the target upgrade task in the absence of the simulated fault injection as third data, comparing the third data with the preset expected result data packet, and generating a visual test report.

[0099] The device also includes:

[0100] Determining whether the third data is consistent with the upgraded version data packet in the preset expected result data packet;

[0101] If it is inconsistent with the upgraded version data package, a fault report is generated as the visual test report;

[0102] If it is consistent with the upgraded version data packet, determining whether there is data in the third data that matches the upgraded process data in the preset expected result data packet;

[0103] If there is data matching the upgrade process data, generating a second upgrade success report as the visual test report;

[0104] If there is no data matching the upgrade process data, the upgrade process fault report in the visual test report is generated according to the match as the visual test report.

[0105] The device also includes:

[0106] Configuring the vehicle gear position, parking switch, vehicle speed, terminal resistance, communication rate and voltage of the target controller as set values;

[0107] The simulated vehicle installation conditions are simulated to send simulation messages so that the target controller is in a normal working state; the normal working state includes: stable voltage, normal load and correct message cycle.

[0108] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not described in detail in this embodiment, please refer to the methods provided by all the above embodiments of the present invention.

[0109] Figure 5A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is given. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0110] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0111] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0112] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a vehicle controller upgrade test method.

[0113] In some embodiments, the vehicle controller upgrade test method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the vehicle controller upgrade test method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the vehicle controller upgrade test method in any other appropriate manner (e.g., by means of firmware).

[0114] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0115] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0116] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0117] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0118] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0119] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0120] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0121] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A vehicle controller upgrade test method, It is characterized in that The method is performed by a vehicle controller upgrade test system, and includes: Obtaining a target upgrade task and executing the target upgrade task; Injecting multiple simulated faults during the execution of the target upgrade task; After the execution of each of the simulated faults is completed, determining that the target upgrade task continues to be executed, and obtaining first data in the process of continuing the execution; The first data is compared with a preset expected result data packet to generate a fault test report.

2. The method according to claim 1, It is characterized in that The simulated fault types include: error frame fault, signal fault, power fault, load fault and bus fault. Accordingly, the comparison of the first data with the preset expected result data packet to generate a fault test report includes: Determining whether the first data is consistent with an upgraded version data packet of the preset expected result data packet; If the first data is inconsistent with the upgraded version data packet, generating a first simulated fault report as the fault test report; If it is consistent with the upgraded version data package, determining whether there is data in the first data that matches the upgrade process data in the preset expected result data package; If there is data matching the upgrade process data, generating a first upgrade success report as the fault test report; If there is no data matching the upgrade process data, a second simulated fault report is generated according to the match as the fault test report.

3. The method according to claim 1, It is characterized in that After injecting multiple simulated faults during the execution of the target upgrade task, it also includes: confirming that the target upgrade task exits execution or there is no new data within a set time period, returning to re-execute the target upgrade task, obtaining the execution information of the target upgrade task without the simulated fault injection as the second data, and generating a fault test report based on the second data.

4. The method according to claim 3, It is characterized in that Generating a fault test report according to the second data includes: Determining whether the third data is consistent with the preset expected result data packet; If it is inconsistent with the preset expected result data packet, a third simulated fault report corresponding to the simulated fault is generated as the fault test report. If it is consistent with the preset expected result data packet, a controller fault-free report is generated as the fault test report.

5. The method according to claim 1, It is characterized in that Before injecting multiple simulated faults during the execution of the target upgrade task, the method also includes: obtaining the execution information of the target upgrade task as third data without the simulated fault injection, comparing the third data with the preset expected result data packet, and generating a visual test report.

6. The method according to claim 5, It is characterized in that The comparing the third data with the preset expected result data packet to generate a visual test report includes: Determining whether the third data is consistent with the upgraded version data packet in the preset expected result data packet; If it is inconsistent with the upgraded version data package, a fault report is generated as the visual test report; If it is consistent with the upgraded version data packet, determining whether there is data in the third data that matches the upgraded process data in the preset expected result data packet; If there is data matching the upgrade process data, generating a second upgrade success report as the visual test report; If there is no data matching the upgrade process data, the upgrade process fault report in the visual test report is generated according to the match as the visual test report.

7. The method according to claim 1, It is characterized in that Also includes: Configuring the vehicle gear position, parking switch, vehicle speed, terminal resistance, communication rate and voltage of the target controller as set values; Simulating the working conditions of the whole vehicle and sending simulation messages so that the target controller is in a normal working state; The normal working state includes: stable voltage, normal load and correct message cycle.

8. A vehicle controller upgrade test device, It is characterized in that include: A task acquisition and execution module, used to acquire a target upgrade task and execute the target upgrade task; A fault injection module, used to inject multiple simulated faults during the execution of the target upgrade task; A data acquisition module, configured to determine that the target upgrade task continues to be executed after the execution of each simulated fault is completed, and to acquire first data in the process of continuing the execution; The report generation module is used to compare the first data with a preset expected result data packet and generate a fault test report.

9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the vehicle controller upgrade test method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the vehicle controller upgrade test method according to any one of claims 1 to 7 when executed.

Citation Information

Cited By

  • Controller processing method and device, electronic equipment and medium

    CN120234225A

  • Portable energy storage equipment testing method and device, upper computer and storage medium

    CN121679149A