CN115687157B - Test method, test system, storage medium, electronic device, and vehicle - Google Patents

Test method, test system, storage medium, electronic device, and vehicle Download PDF

Info

Publication number
CN115687157B
CN115687157B CN202211682557.9A CN202211682557A CN115687157B CN 115687157 B CN115687157 B CN 115687157B CN 202211682557 A CN202211682557 A CN 202211682557A CN 115687157 B CN115687157 B CN 115687157B
Authority
CN
China
Prior art keywords
data
vehicle
software
information
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211682557.9A
Other languages
Chinese (zh)
Other versions
CN115687157A (en
Inventor
刘俊涛
解智
董沐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Automobile Technology Co Ltd
Original Assignee
Xiaomi Automobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Automobile Technology Co Ltd filed Critical Xiaomi Automobile Technology Co Ltd
Priority to CN202211682557.9A priority Critical patent/CN115687157B/en
Publication of CN115687157A publication Critical patent/CN115687157A/en
Application granted granted Critical
Publication of CN115687157B publication Critical patent/CN115687157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present disclosure relates to the field of automatic driving, and in particular, to a test method, a test system, a storage medium, an electronic device, and a vehicle. And performing the software in-loop test according to the running data acquired in real time in the actual running process of the vehicle, so that the efficiency and the accuracy of the software in-loop test of the vehicle are improved. The test method comprises the following steps: acquiring operation data generated by a functional module of a vehicle in the actual running process of the vehicle, wherein the operation data carries time information; determining whether the operation data meets a preset vehicle abnormal condition; and under the condition that the operation data meet the abnormal condition of the vehicle, performing a software-in-loop test according to data information and the operation data which are stored in a data storage unit in advance to obtain a software-in-loop test result of the vehicle, wherein the data information comprises configuration information of each functional module of the vehicle.

Description

Test method, test system, storage medium, electronic device, and vehicle
Technical Field
The present disclosure relates to the field of automatic driving, and in particular, to a test method, a test system, a storage medium, an electronic device, and a vehicle.
Background
With the development of the automatic driving technology, software in-loop simulation test is often introduced in the design link of an advanced driver assistance system, and problems of a real vehicle in various scenes are reproduced through a simulation machine, so that repeated code compilation and real vehicle tests can be reduced, the difficulty of problem emergence is reduced, and the efficiency of problem solving is improved, therefore, the software in-loop test is particularly important in the test process of the vehicle.
In the related art, software ring test is mostly realized in a log file mode, that is, each functional module of a vehicle records a detailed log generated correspondingly in the driving process of the vehicle to form a log file to be stored locally, and when software ring test is performed, positioning and reproduction of specific problems are realized by analyzing data before and after certain specific time points in the stored log file.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a test method, a system, a storage medium, an electronic device, and a vehicle. And performing the software in-loop test according to the running data acquired in real time in the actual running process of the vehicle, so that the efficiency and the accuracy of the software in-loop test of the vehicle are improved.
According to a first aspect of embodiments of the present disclosure, there is provided a test method, including:
acquiring operation data generated by a functional module of a vehicle in the actual running process of the vehicle, wherein the operation data carries time information;
determining whether the operation data meets a preset vehicle abnormal condition;
and under the condition that the operation data meet the abnormal condition of the vehicle, performing a software-in-loop test according to data information and the operation data which are stored in a data storage unit in advance to obtain a software-in-loop test result of the vehicle, wherein the data information comprises configuration information of each functional module of the vehicle.
Optionally, when the operating data meets the vehicle abnormal condition, performing a software in-loop test according to data information and the operating data pre-stored in a data storage unit to obtain a software in-loop test result of the vehicle, including:
determining a target function module according to the time information, and determining target data information corresponding to the target function module from the data information;
determining target operation data corresponding to the target function module and the target data information according to the operation data;
and performing software in-loop test according to the target function module, the target data information and the target operation data to obtain a software in-loop test result of the vehicle.
Optionally, the performing a software in-loop test according to the target function module, the target data information, and the target operation data to obtain a software in-loop test result of the vehicle includes:
configuring a test environment for performing the software in-loop test according to the target function module and the target data information;
and performing the software in-loop test according to the test environment and the target operation data to obtain a software in-loop test result of the vehicle.
Optionally, before acquiring the operation data generated by the functional module of the vehicle during the actual running of the vehicle, the method further includes:
acquiring initial data information of each functional module of the vehicle, wherein the initial data information comprises configuration information of the corresponding functional module;
adding identification information and timestamp information to each piece of initial data information;
carrying out structuralization processing on each initial data information added with identification information and timestamp information;
and storing the data information obtained by the structuring processing into the data storage unit according to a preset storage rule.
Optionally, before the storing the data information obtained by the structuring processing to the data storage unit according to a preset storage rule, the method further includes:
determining that the data information is inconsistent with data information already stored in the data storage unit.
According to a second aspect of the embodiments of the present disclosure, a test system is provided, which includes a data acquisition module, a client, a server, and a software-in-loop test module;
the data acquisition module is used for acquiring operation data generated by a vehicle function module in the actual running process of the vehicle and sending the operation data to the client under the condition that the operation data meets a preset vehicle abnormal condition, wherein the operation data carries time information;
the client is used for forwarding the received operation data to the server;
the server is used for sending a test instruction to the software in-loop test module according to the running data;
the software in-loop testing module is used for performing software in-loop testing according to the testing instruction, the operating data and data information pre-stored in the data storage unit to obtain a software in-loop testing result of the vehicle, wherein the data information in the data storage unit comprises configuration information of the functional module of the vehicle.
Optionally, the software-in-loop test module is configured to:
determining a target function module according to the time information, and requesting the server to acquire target data information corresponding to the target function module;
after the target data information is obtained, configuring a test environment for performing the software in-loop test according to the target function module and the target data information;
according to the time information, requesting the server to acquire the target function module and target operation data corresponding to the target data information;
and after the target operation data is obtained, performing software in-loop test according to the test environment and the target operation data to obtain a software in-loop test result of the vehicle.
According to a third aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of the first aspect.
According to a fifth aspect of the disclosed embodiments, there is provided a vehicle including the electronic device of the fourth aspect and a functional module.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of acquiring running data which are generated by functional modules of a vehicle in the actual running process of the vehicle and carry time information in real time, and carrying out software in-loop test according to data information which is pre-stored in a data storage unit and comprises configuration information of each functional module and the running data acquired in real time under the condition that the running data meet abnormal conditions of the vehicle so as to obtain a software in-loop test result of the vehicle. Therefore, the timeliness of acquiring the test data for the software in-loop test can be improved, the efficiency and accuracy of the software in-loop test can be improved, and the efficiency and accuracy of solving the abnormal problem of the vehicle can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a testing method according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a testing method according to another exemplary embodiment.
FIG. 3 is a block diagram illustrating a test system in accordance with an exemplary embodiment.
FIG. 4 is a block diagram illustrating a test apparatus according to an exemplary embodiment.
FIG. 5 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The inventor researches to find that unpredictable time barriers exist when testers acquire log files required by software in-loop tests. For example, the data storage disk needs to be sent to testers located in different places for processing at irregular intervals, so that log files are not obtained timely enough, and further, the software has delay in the ring test. In addition, the data in the log file is unstructured data, so that the log file acquisition and analysis process is complex, and the efficiency of the software in-loop test is reduced. Meanwhile, the efficiency and accuracy of final problem solving can be influenced by analyzing the log files manually.
In view of the above, the present disclosure provides a testing method, a testing system, a storage medium, an electronic device, and a vehicle. And performing the software in-loop test according to the running data acquired in real time in the actual running process of the vehicle, so that the efficiency and the accuracy of the software in-loop test of the vehicle are improved.
FIG. 1 is a flow chart illustrating a method of testing, as shown in FIG. 1, including the following steps, according to an exemplary embodiment.
In step S101, operation data generated by a functional module of the vehicle during actual driving of the vehicle is obtained, and the operation data carries time information.
In step S102, it is determined whether the operation data satisfies a preset vehicle abnormality condition.
In step S103, in the case that the operation data meets the vehicle abnormal condition, performing a software-in-loop test according to the data information and the operation data stored in the data storage unit in advance to obtain a software-in-loop test result of the vehicle, wherein the data information includes configuration information of each functional module of the vehicle.
It should be understood at first that the testing method provided by the present disclosure may be applied to a vehicle or a testing system provided by the present disclosure, and an on-board terminal or a control system of the vehicle or the testing system provided by the present disclosure acquires operation data generated by a functional module of the vehicle during actual driving of the vehicle, and performs a software in-loop test according to data information and the operation data pre-stored in a data storage unit in case that the operation data satisfies an abnormal condition of the vehicle. The vehicle may also interact with the test system provided in the present disclosure, so as to perform a software-in-loop test of the vehicle, which is not limited by the embodiment of the present disclosure.
For example, the functional modules of the vehicle may be various modules running on the vehicle, and may include a parking module, a high-precision map module, a manual intervention module, and the like. The operation data generated during the actual running process of the vehicle may include data acquired by the sensor corresponding to each functional module, such as front camera data, side camera data, laser radar data, and the like of the vehicle. Since the functional module is operated at any time during the actual running of the vehicle, the operation data generated by the functional module is changed at any time, so that the operation data generated by the functional module of the vehicle during the actual running of the vehicle can be acquired at preset time intervals, and the time information for acquiring each operation data is associated with the operation data. The abnormal condition of the vehicle can be determined according to data acquired by the sensor corresponding to each functional module of the vehicle in the normal running process. For example, the vehicle abnormal condition may include one or more of that the image is not correctly acquired by the camera, that the distance or speed acquired by the laser radar exceeds a preset distance range or speed range, and that the rotating speed value acquired by the rotating speed sensor is greater than a preset rotating speed threshold value.
Of course, the software in-loop test may be performed on one or more functional modules of the vehicle, that is, only the operation data generated by the one or more functional modules of the vehicle during the actual running of the vehicle may be acquired, in which case, the preset vehicle abnormal condition may be determined according to the one or more functional modules. The functional module targeted by the software in the ring test is not limited by the disclosure, and can be defined in a specific application scene.
According to the technical scheme, the running data which is generated by the functional modules of the vehicle in the actual running process of the vehicle and carries time information is obtained in real time, and under the condition that the running data meets the abnormal conditions of the vehicle, the software in-loop test is carried out according to the data information which is stored in the data storage unit in advance and comprises the configuration information of each functional module and the running data obtained in real time, so that the software in-loop test result of the vehicle is obtained. Therefore, the timeliness of acquiring the test data for the software in-loop test can be improved, the efficiency and accuracy of the software in-loop test can be improved, and the efficiency and accuracy of solving the abnormal problem of the vehicle can be improved.
In a possible manner, before the acquisition of the operating data of the functional module of the vehicle generated during the actual travel of the vehicle, it is also possible to:
acquiring initial data information of each functional module of the vehicle, wherein the initial data information comprises configuration information of the corresponding functional module;
adding identification information and timestamp information for each piece of initial data information;
carrying out structuralization processing on each initial data information added with the identification information and the timestamp information;
and storing the data information obtained by the structuring processing into a data storage unit according to a preset storage rule.
For example, the initial data information of each function module of the vehicle may be obtained when the function module is started, and for each function module, the corresponding initial data information of the function module is obtained when the function module is started. The initial data information may include name information of the function module, version information, and configuration information of the current version, wherein the version information may include a version number of the history version and a version number of the current version, and the configuration information may include parameter information and a configuration file of the current version. And then, adding identification information and timestamp information to the initial data information according to the initial data information and the time for acquiring the initial data information.
The structural processing of each piece of initial data information after the identification information and the timestamp information are added may be completed according to a preset structural data display form, and the structural data display form may be determined according to the type and the data content of the initial data information, which is not specifically limited in this embodiment of the present disclosure. The preset storage rule may be consistent with the data display form after the structured processing, for example, the preset storage rule may be classified and stored according to the timestamp information, the data type, and the function category of the module to which the data belongs. The embodiment of the present disclosure does not limit the initial data information structuring processing manner and the storage rule of data information storage.
It should be understood that, since the version of the function module, its version number and configuration file may change during the actual running process of the vehicle, in a possible manner, before the data information obtained by the structuring process is stored in the data storage unit according to the preset storage rule, it may further be:
it is determined that the data information is inconsistent with the data information already stored in the data storage unit.
For example, after the data information obtained by the structuring processing is stored in the data storage unit for the first time, the initial data information of each function module of the vehicle may be acquired in real time at preset time intervals, after the identification information and the timestamp information are added to the initial data information acquired each time and the structuring processing is performed, whether the obtained data information is consistent with the structured data information stored in the data storage unit is determined, and then, under the condition that it is determined that the data information is inconsistent with the structured data information stored in the data storage unit, data updating is performed on the data information stored in the data storage unit according to the structured data information determined this time. And under the condition that the data information is determined to be consistent with the structured data information stored in the data storage unit, continuously monitoring whether the structured data information acquired in real time is consistent with the structured data information stored in the data storage unit.
For example, the data information stored in the data storage unit is updated according to the structured data information determined this time, all the data stored in the data storage unit may be directly replaced by all the structured data information determined this time, or inconsistent partial data information may be further determined, and corresponding partial data information in the data storage unit may be replaced by the structured partial data information determined this time, and the data updating method of the data storage unit in the embodiment of the present disclosure is not limited.
In a possible mode, when the operation data meets the vehicle abnormal condition, the software in-loop test is performed according to the data information and the operation data stored in the data storage unit in advance to obtain a software in-loop test result of the vehicle, and the method comprises the following steps:
determining a target function module according to the time information, and determining target data information corresponding to the target function module from the data information;
determining target operation data corresponding to the target function module and the target data information according to the operation data;
and performing the software in-loop test according to the target function module, the target data information and the target operation data to obtain a software in-loop test result of the vehicle.
For example, when the operation data meets the vehicle abnormality condition, the time information carried by the operation data is the time point or the time period when the vehicle is abnormal. Therefore, it is possible to first determine a functional module (i.e., a target functional module) that is being operated at the time point or time period based on the time information, then determine target data information of the target functional module including name information, version information, and configuration information of the current version, and then determine target operation data related to the target functional module and the target data information in the operation data. And finally, performing the software in-loop test according to the target function module, the target data information and the target operation data to obtain a software in-loop test result of the vehicle.
In a possible mode, performing a software-in-loop test according to the target function module, the target data information and the target operation data to obtain a software-in-loop test result of the vehicle, including:
configuring a test environment for performing the software in-loop test according to the target function module and the target data information;
and performing the software in-loop test according to the test environment and the target operation data to obtain the software in-loop test result of the vehicle.
Illustratively, since the purpose of the software-in-loop test is to perform playback test in an emulation environment without relying on hardware devices until an exception problem is reproduced. Therefore, a test environment for performing the software in-loop test can be configured according to the target function module and the target data information corresponding to the vehicle time information, and then the target operation data is used as the test data to perform the software in-loop test according to the configured test environment, so as to obtain the software in-loop test result of the vehicle. The configuration method of the test environment and the method of the software in-loop test are not specifically limited in the embodiments of the present disclosure.
Fig. 2 is a flow chart illustrating a testing method according to another exemplary embodiment, as shown in fig. 2, the method including the following steps.
In step S201, initial data information of each functional module of the vehicle is obtained, and the initial data information includes configuration information of the corresponding functional module.
In step S202, identification information and time stamp information are added to each piece of initial data information.
In step S203, a structuring process is performed for each piece of initial data information to which identification information and time stamp information are added.
In step S204, it is determined whether the data information coincides with the data information already stored in the data storage unit. If the data information is not consistent with the data information already stored in the data storage unit, step S205 is executed, otherwise step S206 is executed and the process returns to step S201.
In step S205, the data information obtained by the structuring process is stored in the data storage unit according to a preset storage rule.
In step S206, operation data generated by the functional module of the vehicle during actual driving of the vehicle is acquired, and the operation data carries time information.
In step S207, it is determined whether the operation data satisfies a preset vehicle abnormality condition. And if the operation data meet the preset vehicle abnormal conditions, executing the step S208, otherwise, returning to the step S206.
In step S208, the target function module is determined according to the time information, and target data information corresponding to the target function module is determined from the data information.
In step S209, target operation data corresponding to the target function module and the target data information is determined based on the operation data.
In step S210, a test environment for performing the software in-loop test is configured according to the target function module and the target data information.
In step S211, a software in-loop test is performed according to the test environment and the target operation data to obtain a software in-loop test result of the vehicle.
According to the technical scheme, the running data which is generated by the functional modules of the vehicle in the actual running process of the vehicle and carries time information is obtained in real time, and under the condition that the running data meets the abnormal conditions of the vehicle, the software in-loop test is carried out according to the data information which is stored in the data storage unit in advance and comprises the configuration information of each functional module and the running data obtained in real time, so that the software in-loop test result of the vehicle is obtained. The data information prestored in the data storage unit is structured data and carries identification information and timestamp information, so that timeliness of obtaining test data for performing software in-loop test can be improved, efficiency and accuracy of the software in-loop test are improved, and efficiency and accuracy of solving abnormal problems of vehicles are improved.
Based on the same inventive concept, the present disclosure further provides a test system, as shown in fig. 3, the test system includes a data acquisition module, a client, a server, and a software-in-loop test module;
the data acquisition module is used for acquiring operation data generated by the functional module of the vehicle in the actual running process of the vehicle and sending the operation data to the client under the condition that the operation data meets the preset abnormal condition of the vehicle, wherein the operation data carries time information;
the client is used for forwarding the received operation data to the server;
the server is used for sending a test instruction to the software in-loop test module according to the running data;
the software in-loop test module is used for performing software in-loop test according to the test instruction, the operation data and data information pre-stored in the data storage unit to obtain a software in-loop test result of the vehicle, wherein the data information in the data storage unit comprises configuration information of the functional module of the vehicle.
It should be understood that the functional modules may be various modules running on the vehicle, and may include, for example, a parking module, a high-precision map module, a manual intervention module, and the like. The data acquisition module may be an acquisition module disposed on each functional module, and is configured to acquire data acquired by each functional module in an actual driving process of the corresponding sensor vehicle, for example, the data may include front camera data, side camera data, laser radar data, and the like of the vehicle. The server can be operated on-line for 24 hours, and the client can be operated as a single module of the vehicle. The software in-the-loop test module can be a sub-module of a server side, and can also be an independent software in-the-loop test module.
For example, the client may initiate operation at vehicle start-up, and then be initiated by a function module of the client-controlled vehicle. After the function module is started, the initial data information of the function module is reported to the client, wherein the initial data information may include name information, version information and configuration information of the current version of the function module, the version information may include a version number of a historical version and a version number of the current version, and the configuration information may include parameter information and configuration files of the current version. After the functional module reports the initial data information for the first time, whether the initial data information is changed or not is constantly monitored, and the changed initial data information is reported to the client again under the condition that the initial data information is monitored to be changed. After receiving the initial data information reported by the functional module, the client forwards the initial data information to the server, the server adds identification information and timestamp information to each initial data information, performs structural processing on each initial data information added with the identification information and the timestamp information, and then stores the data information obtained through the structural processing in the data storage unit.
The data acquisition module acquires running data generated by the functional module in real time after the vehicle is started, the running data carries time information, and judges whether the running data meets a preset vehicle abnormal condition, the running data can be reported to a client side by manpower or a program (such as watchdog) under the condition that the running data meets the vehicle abnormal condition, and the reported data can further comprise the abnormal functional module, the abnormal type, the abnormal error stack information and the current time point. The client forwards the received data sent by the client to the server, the server sends a test instruction to the software in-loop test module according to the running data, and the software in-loop test module is used for performing software in-loop test according to the test instruction, the running data and data information prestored in the data storage unit to obtain a software in-loop test result of the vehicle.
Through the test system, the operating data generated by the functional module of the vehicle in the actual driving process can be efficiently stored and acquired in real time through the structural design of the client and the server, the data storage is not required to be carried out by a local disk, and the local resources are saved. In addition, when the vehicle is abnormal, the software in-loop test module can be triggered to perform the software in-loop test in real time according to the abnormal information, abnormal data does not need to be analyzed manually, and the efficiency and the accuracy of the software in-loop test are greatly improved.
In one embodiment, the software-on-loop test module is to:
determining a target function module according to the time information, and requesting a server to acquire target data information corresponding to the target function module;
after the target data information is obtained, configuring a test environment for performing the software in-loop test according to the target function module and the target data information;
according to the time information, requesting a server to acquire target function modules and target operation data corresponding to the target data information;
and after the target operation data is obtained, performing the software in-loop test according to the test environment and the target operation data to obtain a software in-loop test result of the vehicle.
For example, after the ring test module receives a test instruction sent by the server, the software first determines the abnormal target function module according to time information carried by the running data, then requests the server to acquire target data information corresponding to the target function module from the data storage unit, and after the target data information is acquired, configures a test environment for performing the in-ring test of the software according to the target function module and the target data information. And then, according to the time information, requesting a server to acquire target running data corresponding to the target function module and the target data information from the running data, returning a downloading link of the target running data by the server according to the request information of the software in-loop test module, acquiring the target running data by the software in-loop test module according to the downloading link, and after acquiring the target running data, performing software in-loop test according to the test environment and the target running data to obtain a software in-loop test result of the vehicle.
Of course, after the abnormal target function module is determined, the server may be simultaneously requested to acquire target data information corresponding to the target function module from the data storage unit, and acquire target operating data corresponding to the target function module and the target data information from the operating data, and then configure a test environment for performing the in-loop test of the software according to the target function module and the target data information, and perform the in-loop test of the software according to the test environment and the target operating data. The embodiments of the present disclosure are not limited thereto.
FIG. 4 is a block diagram illustrating a testing device according to an exemplary embodiment. Referring to fig. 4, the testing apparatus 400 includes an obtaining module 401, a determining module 402, and a testing module 403.
The obtaining module 401 is configured to obtain operation data generated by a functional module of a vehicle during actual running of the vehicle, wherein the operation data carries time information;
the determination module 402 is configured to determine whether the operation data satisfies a preset vehicle abnormality condition;
the testing module 403 is configured to perform a software-in-loop test according to data information and the operating data stored in a data storage unit in advance to obtain a software-in-loop test result of the vehicle when the operating data meets the vehicle abnormal condition, where the data information includes configuration information of each functional module of the vehicle.
Optionally, the test module 403 is configured to:
determining a target function module according to the time information, and determining target data information corresponding to the target function module from the data information;
determining target operation data corresponding to the target function module and the target data information according to the operation data;
and performing software in-loop test according to the target function module, the target data information and the target operation data to obtain a software in-loop test result of the vehicle.
Optionally, the test module 403 is configured to:
configuring a test environment for performing the software in-loop test according to the target function module and the target data information;
and performing the software in-loop test according to the test environment and the target operation data to obtain a software in-loop test result of the vehicle.
Optionally, the testing apparatus 400 further comprises:
the vehicle control system comprises an acquisition submodule and a control submodule, wherein the acquisition submodule is configured to acquire initial data information of each functional module of a vehicle before acquiring operation data generated by the functional module of the vehicle in the actual running process of the vehicle, and the initial data information comprises configuration information of the corresponding functional module;
the adding module is configured to add identification information and timestamp information for each piece of initial data information;
the structural processing module is configured to perform structural processing on each initial data information added with the identification information and the timestamp information;
and the storage module is configured to store the data information obtained by the structuring processing into the data storage unit according to a preset storage rule.
Optionally, the testing apparatus 400 further comprises:
the determining submodule is configured to determine that the data information is inconsistent with the data information stored in the data storage unit before the data information obtained through the structuring processing is stored in the data storage unit according to a preset storage rule.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Based on the same inventive concept, the present disclosure also provides a computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, implement the steps of the testing method provided by the present disclosure.
Based on the same inventive concept, the present disclosure also provides an electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the testing method provided by the present disclosure.
Based on the same inventive concept, the present disclosure also provides a vehicle including the electronic device provided by the present disclosure.
FIG. 5 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the electronic device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a tablet device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the testing method described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The input/output interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described test methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the testing method described above, is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The apparatus may be a part of a stand-alone electronic device, for example, in an embodiment, the apparatus may be an Integrated Circuit (IC) or a chip, where the IC may be one IC or a collection of multiple ICs; the chip may include, but is not limited to, the following categories: a GPU (Graphics Processing Unit), a CPU (Central Processing Unit), an FPGA (Field Programmable Gate Array), a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an SOC (System on Chip, SOC, system on Chip, or System on Chip), and the like. The integrated circuit or chip may be configured to execute executable instructions (or code) to implement the test method described above. Where the executable instructions may be stored in the integrated circuit or chip or may be retrieved from another device or apparatus, for example, where the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instructions may be stored in the memory, and when executed by the processor, implement the test method described above; alternatively, the integrated circuit or chip may receive executable instructions through the interface and transmit the executable instructions to the processor for execution, so as to implement the testing method.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned test method when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A method of testing, comprising:
acquiring operation data generated by a functional module of a vehicle in the actual running process of the vehicle, wherein the operation data carries time information;
determining whether the operation data meets a preset vehicle abnormal condition;
under the condition that the operation data meet the abnormal condition of the vehicle, performing a software-in-loop test according to data information and the operation data which are stored in a data storage unit in advance to obtain a software-in-loop test result of the vehicle, wherein the data information comprises configuration information of each functional module of the vehicle;
the performing a software-in-loop test according to the data information and the operating data pre-stored in a data storage unit under the condition that the operating data meets the vehicle abnormal condition to obtain a software-in-loop test result of the vehicle includes:
determining a target function module according to the time information, and determining target data information corresponding to the target function module from the data information;
determining target operation data corresponding to the target function module and the target data information according to the operation data;
and performing software in-loop test according to the target function module, the target data information and the target operation data to obtain a software in-loop test result of the vehicle.
2. The method according to claim 1, wherein the performing a software-in-loop test according to the target function module, the target data information, and the target operating data to obtain a software-in-loop test result of the vehicle comprises:
configuring a test environment for performing the software in-loop test according to the target function module and the target data information;
and performing the software in-loop test according to the test environment and the target operation data to obtain a software in-loop test result of the vehicle.
3. The test method according to claim 1, before acquiring operation data generated by a function module of a vehicle during actual travel of the vehicle, further comprising:
acquiring initial data information of each functional module of the vehicle, wherein the initial data information comprises configuration information of the corresponding functional module;
adding identification information and timestamp information to each piece of initial data information;
carrying out structuralization processing on each initial data information added with identification information and timestamp information;
and storing the data information obtained by the structuring processing into the data storage unit according to a preset storage rule.
4. The method according to claim 3, before the storing the data information obtained by the structuring processing into the data storage unit according to a preset storage rule, further comprising:
determining that the data information is inconsistent with data information already stored in the data storage unit.
5. A test system is characterized by comprising a data acquisition module, a client, a server and a software in-loop test module;
the data acquisition module is used for acquiring operation data generated by a vehicle function module in the actual running process of the vehicle and sending the operation data to the client under the condition that the operation data meets a preset vehicle abnormal condition, wherein the operation data carries time information;
the client is used for forwarding the received operation data to the server;
the server is used for sending a test instruction to the software in-loop test module according to the running data;
the software in-loop test module is used for performing software in-loop test according to the test instruction, the operating data and data information prestored in the data storage unit to obtain a software in-loop test result of the vehicle, wherein the data information in the data storage unit comprises configuration information of the functional module of the vehicle;
the software-in-the-loop test module is used for:
determining a target function module according to the time information, and determining target data information corresponding to the target function module from the data information;
determining target operation data corresponding to the target function module and the target data information according to the operation data;
and performing software in-loop test according to the target function module, the target data information and the target operation data to obtain a software in-loop test result of the vehicle.
6. The test system of claim 5, wherein the software-in-the-loop test module is to:
determining a target function module according to the time information, and requesting the server to acquire target data information corresponding to the target function module;
after the target data information is obtained, configuring a test environment for performing the software in-loop test according to the target function module and the target data information;
according to the time information, requesting the server to acquire the target function module and target operation data corresponding to the target data information;
and after the target operation data is obtained, performing software in-loop test according to the test environment and the target operation data to obtain a software in-loop test result of the vehicle.
7. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 4.
8. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1 to 4.
9. A vehicle characterized by comprising a functional module and the electronic device of claim 8.
CN202211682557.9A 2022-12-27 2022-12-27 Test method, test system, storage medium, electronic device, and vehicle Active CN115687157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211682557.9A CN115687157B (en) 2022-12-27 2022-12-27 Test method, test system, storage medium, electronic device, and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211682557.9A CN115687157B (en) 2022-12-27 2022-12-27 Test method, test system, storage medium, electronic device, and vehicle

Publications (2)

Publication Number Publication Date
CN115687157A CN115687157A (en) 2023-02-03
CN115687157B true CN115687157B (en) 2023-03-21

Family

ID=85055063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211682557.9A Active CN115687157B (en) 2022-12-27 2022-12-27 Test method, test system, storage medium, electronic device, and vehicle

Country Status (1)

Country Link
CN (1) CN115687157B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106198049B (en) * 2016-07-15 2019-03-12 百度在线网络技术(北京)有限公司 Real vehicles are in ring test system and method
CN112835790A (en) * 2021-01-22 2021-05-25 北京罗克维尔斯科技有限公司 Test method, device, equipment and medium for automatic driving software
CN113704119A (en) * 2021-08-31 2021-11-26 中汽创智科技有限公司 Test method, device and system for intelligent driving and storage medium
CN114415628A (en) * 2021-12-28 2022-04-29 阿波罗智联(北京)科技有限公司 Automatic driving test method and device, electronic equipment and storage medium
CN114817076A (en) * 2022-06-22 2022-07-29 国汽智控(北京)科技有限公司 Data processing method, device, equipment, medium and product of vehicle-mounted operating system

Also Published As

Publication number Publication date
CN115687157A (en) 2023-02-03

Similar Documents

Publication Publication Date Title
WO2017177606A1 (en) Method and device for managing video data, terminal, and server
US10831514B2 (en) Display method and device of application interface
CN111221733A (en) Information processing method and device, mobile terminal and storage medium
CN115185717B (en) Interface calling method and device, electronic equipment and storage medium
CN110968492B (en) Information processing method and device and storage medium
CN115687157B (en) Test method, test system, storage medium, electronic device, and vehicle
CN110213062B (en) Method and device for processing message
CN108228433B (en) Electronic equipment, and method and device for counting visit time and stay time of mobile application
CN112383661B (en) Mobile terminal automatic test method and device, electronic equipment and storage medium
CN111597106A (en) Point burying management method and device
CN105892832B (en) Method and device for displaying display information
CN110989987A (en) Portal webpage generation method, portal webpage generation device, client, server and storage medium
CN114531493B (en) Request processing method and device, electronic equipment and storage medium
CN116546502B (en) Relay attack detection method, device and storage medium
CN113420205B (en) Method and device for determining shared source account, terminal equipment and server
CN113778385B (en) Component registration method, device, terminal and storage medium
CN114020504B (en) Data processing method and device, electronic equipment and storage medium
CN110311968B (en) Method and device for loading file in streaming mode and intelligent equipment
CN109947640B (en) Regression test-based core function coverage statistical method and device
CN108173846B (en) Login method and device
CN116340297A (en) Data analysis method, device, equipment and storage medium
CN115390911A (en) Node information determination method, device and equipment
CN112860550A (en) Method, device and storage medium for detecting application privacy items
CN115455007A (en) Data processing method, device, equipment and storage medium
CN112527651A (en) Display method and device for installation package size, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant