Vehicle local event testing method, device and equipment, medium and automobile

By using automated testing methods in vehicle testing, using test scripts and signal generators and other equipment to simulate and control the execution of vehicle local events, the problems of inefficient and insufficient accuracy of manual testing in the prior art are solved, and efficient automated testing of vehicle local events are achieved.

CN119916779APending Publication Date: 2025-05-02SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510063802.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-15
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The existing vehicle local event testing methods mainly rely on manual manual methods, which are inefficient and prone to missed tests and missed tests. Especially when some local events need to be tested in combination with the controller's special mechanism, manual testing is more difficult.

Method used

By implementing a vehicle local event testing method on the host computer, it includes determining the test script, executing the test script, obtaining the test data and determining the test results. The specific steps include determining the test script based on the local events of the vehicle to be tested. When executing the script, sending measurement and control signaling to the vehicle through the signal generator and the bus analyzer. After execution, the quiescent current data is obtained through the current loop and the bus analyzer obtaining the test message, and finally determining the test results of the local event based on these data.

Benefits of technology

Automatic testing of vehicle local events is realized, testing efficiency is improved, and the possibility of missed tests and missed tests is reduced. Especially when testing is required in combination with the controller's special mechanism, the test results can be more accurately analyzed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119916779A_ABST
    Figure CN119916779A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle local event testing method, device and equipment, a medium and an automobile, and relates to the field of automobile testing, and the method comprises the steps: determining a corresponding testing script according to a first local event, needing to be tested, of a to-be-tested vehicle; executing the test script to control a signal generator and a bus analyzer to send a measurement and control signaling to the to-be-tested vehicle according to the event type of the first local event, so that the to-be-tested vehicle executes the first local event according to the measurement and control signaling; after execution of the test script is finished, quiescent current data of a to-be-tested vehicle are obtained through a current loop, and a test message of the to-be-tested vehicle is obtained through the bus analyzer; and obtaining a local event test result of the to-be-tested vehicle according to the quiescent current data and the test message. According to the invention, automation of vehicle local event testing can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile testing, and in particular to a vehicle local event testing method, device, equipment, medium and automobile. Background Art

[0002] Vehicle local events refer to functions of the vehicle's internal control system or internal network used to monitor or respond to specific conditions or operations. They usually do not need to obtain data from external devices or servers and take action. Their triggering usually only involves the collaborative work between multiple controllers and the vehicle's segmented wake-up strategy, so that the vehicle's internal functions can be quickly processed and managed. With the in-depth development of vehicle electrification, the types and demands of vehicle local events continue to increase. The interactions between their complex types and related functions have problems such as interaction logic errors, controller failure or abnormal response, and poor hardware stability of parts causing vehicle power supply. Therefore, how to effectively and reasonably test the vehicle's local events and ensure that local events are reliably triggered under various conditions is a top priority for ensuring vehicle stability.

[0003] The existing vehicle local event testing method can only be carried out manually, that is, the tester manually triggers different types of local events one by one. This testing process is not only inefficient, but also prone to missed tests and wrong tests due to the defects of manual testing itself. At the same time, some local events need to be tested in combination with the special mechanism of the controller, and manual testing is more difficult at this time. For example, the process of the local event of automatic battery insulation is: the vehicle T-Box is woken up regularly after the whole vehicle sleeps for a hour, and the sub-segment wake-up mechanism is triggered when the battery pack temperature is judged to be lower than the threshold, and only a certain bus is pulled up and the battery pack insulation function is started through the controller. The manual test of this local event requires the tester to wait for a hour and create a low temperature environment to reduce the battery pack temperature. After the function is triggered, it is also necessary to manually judge whether the sub-segment wake-up mechanism is triggered normally, and manually judge the dormancy of the whole vehicle after the battery pack completes the insulation. The testing process is very labor-intensive, material-intensive and time-consuming. Therefore, how to carry out automated testing of vehicle local events is still a problem that needs to be solved in the existing technology. Summary of the invention

[0004] The present application provides a vehicle local event testing method, device, equipment, medium and automobile to solve the technical problem of the existing difficulty in automating vehicle local event testing.

[0005] According to a first aspect of the implementation manner of the present application, a vehicle local event testing method is provided, which is applied to a host computer and includes:

[0006] Determine a corresponding test script according to a first local event that needs to be tested for the vehicle to be tested;

[0007] Executing the test script to control the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event, so that the vehicle to be tested executes the first local event according to the measurement and control signal;

[0008] After the test script is executed, static current data of the vehicle to be tested is obtained through the current loop, and a test message of the vehicle to be tested is obtained through the bus analyzer;

[0009] A local event test result of the vehicle to be tested is obtained according to the static current data and the test message.

[0010] The present application first determines a test script according to the first local event that needs to be tested on the vehicle to be tested, then executes the test script, and according to the event type of the first local event, controls the signal generator and the bus analyzer to control the vehicle to be tested to execute the first local event. Compared with the prior art that can only perform tests manually, event simulation and global control are performed through the test script, which can realize the automation of local event execution simulation, and then obtain static current data and test messages through the current loop and bus analyzer, and determine the local event test results of the vehicle to be tested, which can realize the automation of local event execution result analysis, thereby realizing the automation of local event testing.

[0011] In certain embodiments of the present application, the controlling the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event specifically includes:

[0012] When the event type of the first local event is a power event, according to the test script, the signal generator is controlled to send a power test signal to the vehicle to be tested, the bus analyzer is controlled to send a power control message to the vehicle to be tested, and the programmable power supply is controlled to output periodically to adjust the vehicle to be tested.

[0013] When the event type of the first local event belongs to a power event, the present application controls the signal generator and the bus analyzer to control the vehicle to be tested according to the test script, and controls the periodic output of the programmable power supply to adjust the vehicle to be tested to execute the first local event. According to the different event types of the first local event, a more matching test process can be selected, thereby improving the accuracy of the local event test.

[0014] In certain embodiments of the present application, the controlling the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event specifically includes:

[0015] When the event type of the first local event belongs to a door key event, according to the test script, the signal generator is controlled to send a door key test signal to the vehicle to be tested, the bus analyzer is controlled to send a door key control message to the vehicle to be tested, and the programmable switch is controlled to periodically trigger the locking state transition of the vehicle to be tested.

[0016] When the event type of the first local event belongs to a door key event, the present application controls the signal generator and the bus analyzer to control the vehicle to be tested according to the test script, and controls the programmable switch to periodically trigger the lock state conversion of the vehicle to be tested to execute the first local event. According to the different event types of the first local event, a more matching test process can be selected, thereby improving the accuracy of the local event test.

[0017] In certain embodiments of the present application, the controlling the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event specifically includes:

[0018] When the event types of the first local events do not belong to power events and door key events, according to the test script, the signal generator is controlled to send an event test signal to the vehicle to be tested, and the bus analyzer is controlled to send an event control message to the vehicle to be tested.

[0019] The present application selects different test processes according to different event types of the first local event, so that each test process can better match the local event corresponding to each event type, thereby improving the accuracy of local event testing.

[0020] In certain embodiments of the present application, obtaining the local event test result of the vehicle to be tested according to the static current data and the test message specifically includes:

[0021] The test message includes a bus message and a network management message;

[0022] According to the bus message, the execution state of the first local event is obtained, and according to the static current data and the network management message, the dormancy result of the vehicle to be tested is obtained;

[0023] A local event test result of the vehicle to be tested is obtained according to the execution state and the sleep result.

[0024] The present application first obtains the execution status of the first local event according to the bus message, and then obtains the sleep result of the vehicle to be tested according to the static current data and the network management message. It can simultaneously determine whether the first local event is executed successfully and whether the vehicle to be tested successfully sleeps after the first local event, thereby avoiding wrong measurement, missed measurement and mismeasurement, thereby making the local event test results obtained according to the execution status and sleep result more accurate.

[0025] In certain embodiments of the present application, obtaining the sleep result of the vehicle to be tested according to the static current data and the network management message specifically includes:

[0026] Identify the status bit of the network management message to obtain the message frame status of the vehicle to be tested;

[0027] The sleep result of the vehicle to be tested is obtained according to the static current data and the message frame status.

[0028] The present application first identifies the status bit of the network management message to obtain the message frame status, and then combines the static current data to obtain the sleep result of the vehicle to be tested. By combining the static current data and the message frame status, the accuracy of the sleep result can be improved.

[0029] According to a second aspect of the implementation of the present application, there is provided a vehicle local event testing device, which is applied to a host computer and includes a test script determination module, a test script execution module, a test data acquisition module and a test result determination module;

[0030] The test script determination module is used to determine the corresponding test script according to the first local event required to be tested for the vehicle to be tested;

[0031] The test script execution module is used to execute the test script to control the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event, so that the vehicle to be tested executes the first local event according to the measurement and control signal;

[0032] The test data acquisition module is used to acquire static current data of the vehicle to be tested through the current loop after the execution of the test script is completed, and to acquire the test message of the vehicle to be tested through the bus analyzer;

[0033] The test result determination module is used to obtain the local event test result of the vehicle to be tested according to the static current data and the test message.

[0034] In certain embodiments of the present application, the test script execution module includes a first test unit;

[0035] The first test unit is used to control the signal generator to send a power test signal to the vehicle to be tested, control the bus analyzer to send a power control message to the vehicle to be tested, and control the periodic output of the programmable power supply to adjust the vehicle to be tested according to the test script when the event type of the first local event is a power event.

[0036] In certain embodiments of the present application, the test script execution module includes a second test unit;

[0037] The second test unit is used to control the signal generator to send a door key test signal to the vehicle to be tested, control the bus analyzer to send a door key control message to the vehicle to be tested, and control the programmable switch to periodically trigger the locking state transition of the vehicle to be tested according to the test script when the event type of the first local event is a door key event.

[0038] In certain embodiments of the present application, the test script execution module includes a third test unit;

[0039] The third test unit is used to control the signal generator to send an event test signal to the vehicle to be tested and control the bus analyzer to send an event control message to the vehicle to be tested according to the test script when the event types of the first local events do not belong to power events and door key events.

[0040] In certain embodiments of the present application, the test message includes a bus message and a network management message, and the test result determination module includes a sleep result determination unit and a test result determination unit;

[0041] The sleep result determination unit is used to obtain the execution state of the first local event according to the bus message, and obtain the sleep result of the vehicle to be tested according to the static current data and the network management message;

[0042] The test result determination unit is used to obtain a local event test result of the vehicle to be tested according to the execution state and the sleep result.

[0043] In certain embodiments of the present application, the sleep result determination unit includes a message frame state determination subunit and a sleep result determination subunit;

[0044] The message frame status determination subunit is used to identify the status bit of the network management message and obtain the message frame status of the vehicle to be tested;

[0045] The sleep result determination subunit is used to obtain the sleep result of the vehicle to be tested according to the static current data and the message frame status.

[0046] The present application first determines a test script according to the first local event that needs to be tested on the vehicle to be tested, then executes the test script, and according to the event type of the first local event, controls the signal generator and the bus analyzer to control the vehicle to be tested to execute the first local event. Compared with the prior art that can only perform tests manually, event simulation and global control are performed through the test script, which can realize the automation of local event execution simulation, and then obtain static current data and test messages through the current loop and bus analyzer, and determine the local event test results of the vehicle to be tested, which can realize the automation of local event execution result analysis, thereby realizing the automation of local event testing.

[0047] According to a third aspect of an implementation of the present application, a computer device is provided, comprising: a processor; a memory; a computer program stored in the memory and configured to be executed by the processor; wherein when the processor executes the computer program, a vehicle local event testing method described in the present application is implemented.

[0048] According to a fourth aspect of an implementation of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for loading by a processor to execute a vehicle local event testing method described in the present application.

[0049] According to a fifth aspect of the implementation manner of the present application, a car is provided, and the car is tested using a vehicle local event testing method described in the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 : A flow chart of a vehicle local event testing method shown in certain embodiments of the present application;

[0051] Figure 2 : A module structure diagram of a vehicle local event testing device shown in certain embodiments of the present application;

[0052] Figure 3 : A system layout diagram of a vehicle local event testing system shown in certain embodiments of the present application. DETAILED DESCRIPTION

[0053] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below in conjunction with the accompanying drawings are exemplary and are only used to explain some embodiments of the present application, and should not be construed as limitations on the embodiments of the present application. Based on the embodiments shown in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0054] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, unless otherwise clearly and specifically defined, "multiple" and "several" mean two or more.

[0055] The existing vehicle local event testing method can only be carried out manually, that is, the tester manually triggers different types of local events one by one. This testing process is not only inefficient, but also prone to missed tests and wrong tests due to the defects of manual testing itself. At the same time, some local events need to be tested in combination with the special mechanism of the controller, which makes manual testing more difficult. Therefore, how to conduct automated testing of vehicle local events is still a problem that needs to be solved urgently in the existing technology.

[0056] Based on the above technical background, please refer to Figure 1 The embodiment of the present application provides a vehicle local event testing method, which is applied to a host computer and includes steps S101 to S104, each of which is as follows:

[0057] Step S101: Determine a corresponding test script according to a first local event that needs to be tested on a vehicle to be tested.

[0058] In certain implementations of the present application, the test script corresponds to the first local event; specifically, the test script corresponds to the triggering scenario and triggering sequence of the first local event.

[0059] In certain embodiments of the present application, the test script includes: the signal type, signal period and signal amplitude sent by the signal generator; the message ID, bus value and bus period sent by the bus analyzer; the output voltage, power-on period and power-off period of the programmable power supply; the pressing position, pressing stroke and pressing period of the programmable switch; and the data recording trigger event of the current loop.

[0060] For example, to specifically describe steps S102 to S104, please refer to Figure 3 , which is a system layout diagram of a vehicle local event test system shown in certain embodiments of the present application, including a DC power supply, a host computer, a signal generator, a bus analyzer, a current loop, a programmable power supply, a programmable switch, a remote control key and a vehicle to be tested; wherein the vehicle to be tested includes a sensor, an actuator and a controller; the DC power supply is respectively connected to the host computer and the signal generator, and is used to power the host computer and the signal generator respectively; the host computer is unidirectionally connected to the signal generator, bidirectionally connected to the bus analyzer, bidirectionally connected to the current loop, unidirectionally connected to the programmable power supply, and unidirectionally connected to the programmable switch, and is used to control the signal generator, the bus analyzer, the current loop, the programmable power supply, the programmable switch, and the programmable switch. The instrument, current loop, programmable power supply and programmable switch execute the test script and obtain the data collected by the bus analyzer and the current loop; the current loop is unidirectionally connected to the programmable power supply to output a stable static current in a non-power event; the programmable switch is unidirectionally connected to the remote control key to control the remote control key to perform corresponding actions according to the test script; the remote control key is used to trigger the lock state conversion of the vehicle to be tested according to the control of the programmable switch; the signal generator is unidirectionally connected to the sensor, actuator and controller of the vehicle to be tested to send a test signal to the vehicle to be tested; the bus analyzer is unidirectionally connected to the controller to send a control message to the vehicle to be tested.

[0061] Specifically, the signal generator sends a test signal to the vehicle to be tested, specifically: sending a control pulse signal to the controller of the vehicle to be tested to change the physical quantity and bus value received by the controller; sending a sensor pulse signal to the sensor of the vehicle to be tested to change the output value of the sensor; sending a level pulse signal to the actuator of the vehicle to be tested to change the working state of the actuator.

[0062] More specifically, the control pulse signal includes a voltage signal and a PWM signal, and the control pulse signal can be a single pulse signal or a continuous pulse signal; the sensor pulse signal includes a power supply signal, a frequency output signal, a voltage signal and a current signal; the level pulse signal includes a high level pulse signal and a low level pulse signal.

[0063] Specifically, the bus analyzer sends a control message to the vehicle to be tested, specifically: sends a control message to the controller of the vehicle to be tested to change the state of the controller.

[0064] More specifically, the controller state includes a controller temperature, a controller speed, and a controller operating mode corresponding to the first local event.

[0065] Specifically, the sensors of the vehicle to be tested include but are not limited to ambient temperature sensors, kick sensors and negative electrode sensors; the controllers of the vehicle to be tested include but are not limited to VCU, I BC and Tbox; the actuators of the vehicle to be tested include but are not limited to door touch switches, PE micro switches and electric windows.

[0066] Specifically, each module of the vehicle local event test system is connected based on CAN communication.

[0067] Step S102: Execute the test script to control the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event, so that the vehicle to be tested executes the first local event according to the measurement and control signal.

[0068] In certain embodiments of the present application, the event types of the first local event include power events, door key events and other events; the power events include events corresponding to each power mode of the vehicle to be tested and battery charging events; the door key events include unlocking, locking and tailgate control events of the vehicle to be tested.

[0069] In certain embodiments of the present application, the controlling the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event specifically includes:

[0070] When the event type of the first local event is a power event, according to the test script, the signal generator is controlled to send a power test signal to the vehicle to be tested, the bus analyzer is controlled to send a power control message to the vehicle to be tested, and the programmable power supply is controlled to output periodically to adjust the vehicle to be tested.

[0071] When the event type of the first local event belongs to a power event, the present application controls the signal generator and the bus analyzer to control the vehicle to be tested according to the test script, and controls the periodic output of the programmable power supply to adjust the vehicle to be tested to execute the first local event. According to the different event types of the first local event, a more matching test process can be selected, thereby improving the accuracy of the local event test.

[0072] In certain embodiments of the present application, the controlling the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event specifically includes:

[0073] When the event type of the first local event belongs to a door key event, according to the test script, the signal generator is controlled to send a door key test signal to the vehicle to be tested, the bus analyzer is controlled to send a door key control message to the vehicle to be tested, and the programmable switch is controlled to periodically trigger the locking state transition of the vehicle to be tested.

[0074] When the event type of the first local event belongs to a door key event, the present application controls the signal generator and the bus analyzer to control the vehicle to be tested according to the test script, and controls the programmable switch to periodically trigger the lock state conversion of the vehicle to be tested to execute the first local event. According to the different event types of the first local event, a more matching test process can be selected, thereby improving the accuracy of the local event test.

[0075] In certain embodiments of the present application, the controlling the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event specifically includes:

[0076] When the event types of the first local events do not belong to power events and door key events, according to the test script, the signal generator is controlled to send an event test signal to the vehicle to be tested, and the bus analyzer is controlled to send an event control message to the vehicle to be tested.

[0077] The present application selects different test processes according to different event types of the first local event, so that each test process can better match the local event corresponding to each event type, thereby improving the accuracy of local event testing.

[0078] Step S103: After the test script is executed, static current data of the vehicle to be tested is obtained through the current loop, and a test message of the vehicle to be tested is obtained through the bus analyzer.

[0079] Step S104: obtaining a local event test result of the vehicle to be tested according to the static current data and the test message.

[0080] In certain embodiments of the present application, obtaining the local event test result of the vehicle to be tested according to the static current data and the test message specifically includes:

[0081] The test message includes a bus message and a network management message;

[0082] According to the bus message, the execution state of the first local event is obtained, and according to the static current data and the network management message, the dormancy result of the vehicle to be tested is obtained;

[0083] A local event test result of the vehicle to be tested is obtained according to the execution state and the sleep result.

[0084] The present application first obtains the execution status of the first local event according to the bus message, and then obtains the sleep result of the vehicle to be tested according to the static current data and the network management message. It can simultaneously determine whether the first local event is executed successfully and whether the vehicle to be tested successfully sleeps after the first local event, thereby avoiding wrong measurement, missed measurement and mismeasurement, thereby making the local event test results obtained according to the execution status and sleep result more accurate.

[0085] In certain embodiments of the present application, obtaining the sleep result of the vehicle to be tested according to the static current data and the network management message specifically includes:

[0086] Identify the status bit of the network management message to obtain the message frame status of the vehicle to be tested;

[0087] The sleep result of the vehicle to be tested is obtained according to the static current data and the message frame status.

[0088] The present application first identifies the status bit of the network management message to obtain the message frame status, and then combines the static current data to obtain the sleep result of the vehicle to be tested. By combining the static current data and the message frame status, the accuracy of the sleep result can be improved.

[0089] For example, to specifically illustrate an implementation of a vehicle local event testing method of the present application, the following is a possible specific implementation process of certain implementations of the present application:

[0090] Assume that the current first local event is a battery automatic heat preservation event, and its event type is other events. At the beginning of the test, according to the test script of the battery automatic heat preservation event, the control signal generator sends an event test signal to the vehicle to be tested to make the controller Tbox enter the wake-up state, and the event test signal is specifically a frequency square wave; the bus analyzer is controlled to send a first event control message to the vehicle to be tested to simulate the BMS sending a message to the controller VCU, so that the controller VCU makes a judgment based on the message, and the first event control message is specifically a message that the power battery pack temperature is less than the threshold; the controller VCU determines that the power battery pack temperature is less than the threshold, so as to pull up the first local event of the corresponding controller triggering the battery automatic heat preservation, and controls the bus analyzer to send a second event control message to the vehicle to be tested to simulate the BMS sending a message to the controller VCU, so that the controller VCU makes a judgment based on the message, and the second event control message is specifically a message that the power battery pack temperature is greater than the threshold; the controller VCU determines that the power battery pack temperature is greater than the threshold, and according to the corresponding strategy, stops the first local event of the battery automatic heat preservation after the preset time of judgment, so that the vehicle to be tested enters the dormant state. After the test is completed, the static current data of the vehicle to be tested is obtained through the current loop, and the bus message and network management message of the vehicle to be tested are obtained through the bus analyzer; according to the bus message, the execution status of the first local event of automatic battery insulation is obtained, and according to the static current data and the network management message, the sleep result of the vehicle to be tested is obtained; according to the execution status and the sleep result, the local event test result of the vehicle to be tested is obtained.

[0091] The present application first determines a test script according to the first local event that needs to be tested on the vehicle to be tested, then executes the test script, and according to the event type of the first local event, controls the signal generator and the bus analyzer to control the vehicle to be tested to execute the first local event. Compared with the prior art that can only perform tests manually, event simulation and global control are performed through the test script, which can realize the automation of local event execution simulation, and then obtain static current data and test messages through the current loop and bus analyzer, and determine the local event test results of the vehicle to be tested, which can realize the automation of local event execution result analysis, thereby realizing the automation of local event testing.

[0092] Corresponding to the previous method, see Figure 2 , the embodiment of the present application provides a vehicle local event testing device, which is applied to a host computer, and includes a test script determination module 210, a test script execution module 220, a test data acquisition module 230 and a test result determination module 240;

[0093] The test script determination module 210 is used to determine the corresponding test script according to the first local event required to be tested for the vehicle to be tested;

[0094] The test script execution module 220 is used to execute the test script to control the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event, so that the vehicle to be tested executes the first local event according to the measurement and control signal;

[0095] The test data acquisition module 230 is used to acquire static current data of the vehicle to be tested through the current loop after the execution of the test script is completed, and to acquire the test message of the vehicle to be tested through the bus analyzer;

[0096] The test result determination module 240 is used to obtain the local event test result of the vehicle to be tested according to the static current data and the test message.

[0097] In some embodiments of the present application, the test script execution module 220 includes a first test unit;

[0098] The first test unit is used to control the signal generator to send a power test signal to the vehicle to be tested, control the bus analyzer to send a power control message to the vehicle to be tested, and control the periodic output of the programmable power supply to adjust the vehicle to be tested according to the test script when the event type of the first local event is a power event.

[0099] In certain embodiments of the present application, the test script execution module 220 includes a second test unit;

[0100] The second test unit is used to control the signal generator to send a door key test signal to the vehicle to be tested, control the bus analyzer to send a door key control message to the vehicle to be tested, and control the programmable switch to periodically trigger the locking state transition of the vehicle to be tested according to the test script when the event type of the first local event is a door key event.

[0101] In certain embodiments of the present application, the test script execution module 220 includes a third test unit;

[0102] The third test unit is used to control the signal generator to send an event test signal to the vehicle to be tested and control the bus analyzer to send an event control message to the vehicle to be tested according to the test script when the event types of the first local events do not belong to power events and door key events.

[0103] In certain embodiments of the present application, the test message includes a bus message and a network management message, and the test result determination module 240 includes a sleep result determination unit and a test result determination unit;

[0104] The sleep result determination unit is used to obtain the execution state of the first local event according to the bus message, and obtain the sleep result of the vehicle to be tested according to the static current data and the network management message;

[0105] The test result determination unit is used to obtain a local event test result of the vehicle to be tested according to the execution state and the sleep result.

[0106] In certain embodiments of the present application, the sleep result determination unit includes a message frame state determination subunit and a sleep result determination subunit;

[0107] The message frame status determination subunit is used to identify the status bit of the network management message and obtain the message frame status of the vehicle to be tested;

[0108] The sleep result determination subunit is used to obtain the sleep result of the vehicle to be tested according to the static current data and the message frame status.

[0109] The present application first determines a test script according to the first local event that needs to be tested on the vehicle to be tested, then executes the test script, and according to the event type of the first local event, controls the signal generator and the bus analyzer to control the vehicle to be tested to execute the first local event. Compared with the prior art that can only perform tests manually, event simulation and global control are performed through the test script, which can realize the automation of local event execution simulation, and then obtain static current data and test messages through the current loop and bus analyzer, and determine the local event test results of the vehicle to be tested, which can realize the automation of local event execution result analysis, thereby realizing the automation of local event testing.

[0110] It should be understood that the device provided in the embodiments of the present application corresponds to the aforementioned method, and a vehicle local event testing device provided in the embodiments of the present application can implement a vehicle local event testing method provided in any embodiment of the present application.

[0111] Adaptively, the embodiments of the present application also provide a computer device, a computer-readable storage medium and a car.

[0112] The computer device comprises: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor;

[0113] Wherein, when the processor executes the computer program, a vehicle local event testing method of the present application is implemented.

[0114] The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute a vehicle local event testing method of the present application.

[0115] The automobile is tested using a vehicle local event testing method described in the present application.

[0116] The above are some implementation methods of the present application, and the purpose, technical scheme and beneficial effects of the present application are further described in detail. It should be clear that the above-mentioned partial implementation methods of the present application cannot be understood as limiting the present application. It is particularly pointed out that for those skilled in the art, any changes, modifications, equivalent substitutions and variations made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A vehicle local event testing method, characterized in that: Applied to the host computer, including: Determine a corresponding test script according to a first local event that needs to be tested for the vehicle to be tested; Executing the test script to control the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event, so that the vehicle to be tested executes the first local event according to the measurement and control signal; After the test script is executed, static current data of the vehicle to be tested is obtained through the current loop, and a test message of the vehicle to be tested is obtained through the bus analyzer; A local event test result of the vehicle to be tested is obtained according to the static current data and the test message.

2. A vehicle local event testing method according to claim 1, characterized in that: The controlling the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event specifically includes: When the event type of the first local event is a power event, according to the test script, the signal generator is controlled to send a power test signal to the vehicle to be tested, the bus analyzer is controlled to send a power control message to the vehicle to be tested, and the programmable power supply is controlled to output periodically to adjust the vehicle to be tested.

3. A vehicle local event testing method according to claim 1, characterized in that: The controlling the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event specifically includes: When the event type of the first local event belongs to a door key event, according to the test script, the signal generator is controlled to send a door key test signal to the vehicle to be tested, the bus analyzer is controlled to send a door key control message to the vehicle to be tested, and the programmable switch is controlled to periodically trigger the locking state transition of the vehicle to be tested.

4. A vehicle local event testing method according to any one of claims 1 to 3, characterized in that: The controlling the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event specifically includes: When the event types of the first local events do not belong to power events and door key events, according to the test script, the signal generator is controlled to send an event test signal to the vehicle to be tested, and the bus analyzer is controlled to send an event control message to the vehicle to be tested.

5. A vehicle local event testing method according to claim 1, characterized in that: The obtaining of the local event test result of the vehicle to be tested according to the static current data and the test message specifically includes: The test message includes a bus message and a network management message; According to the bus message, the execution state of the first local event is obtained, and according to the static current data and the network management message, the dormancy result of the vehicle to be tested is obtained; A local event test result of the vehicle to be tested is obtained according to the execution state and the sleep result.

6. A vehicle local event testing method according to claim 5, characterized in that: The step of obtaining the sleep result of the vehicle to be tested according to the static current data and the network management message specifically includes: Identify the status bit of the network management message to obtain the message frame status of the vehicle to be tested; The sleep result of the vehicle to be tested is obtained according to the static current data and the message frame status.

7. A vehicle local event testing device, characterized in that: Applied to the host computer, including a test script determination module, a test script execution module, a test data acquisition module and a test result determination module; The test script determination module is used to determine the corresponding test script according to the first local event required to be tested for the vehicle to be tested; The test script execution module is used to execute the test script to control the signal generator and the bus analyzer to send a measurement and control signal to the vehicle to be tested according to the event type of the first local event, so that the vehicle to be tested executes the first local event according to the measurement and control signal; The test data acquisition module is used to acquire static current data of the vehicle to be tested through the current loop after the execution of the test script is completed, and to acquire the test message of the vehicle to be tested through the bus analyzer; The test result determination module is used to obtain the local event test result of the vehicle to be tested according to the static current data and the test message.

8. A computer device, characterized in that: include: processor; Memory; a computer program stored in the memory and configured to be executed by the processor; Wherein, when the processor executes the computer program, a vehicle local event testing method as described in any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute a vehicle local event testing method as described in any one of claims 1 to 6.

10. An automobile, characterized in that: The automobile is tested using a vehicle local event testing method as described in any one of claims 1 to 6.