Vehicle scenario simulation test method, device, equipment, medium and program product
By obtaining and parsing simulation configuration information, loading scenario configuration data and sending scenario simulation data, the problem of uncontrollable vehicle usage scenarios in vehicle R&D and testing is solved, a simple and fast testing method is implemented, and R&D and testing costs are reduced.
Patent Information
- Application Number
- CN202210223834.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-07
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2042-03-07
AI Technical Summary
The vehicle usage scenarios during vehicle R&D and testing are uncontrollable, resulting in longer R&D time and higher testing costs.
By obtaining and parsing the simulation configuration information input by the developer, loading the scenario configuration data corresponding to the simulation configuration information, determining the scenario simulation data according to the preset scenario simulation protocol, and sending the scenario simulation data to the test engine, the vehicle usage scenario in the test engine is changed to perform preset business tests.
It provides a simple and fast testing method, reduces the waiting time of test scenarios, and reduces the cost of development and testing.
Smart Images

Figure CN114579456B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle development and testing, and in particular to a vehicle scenario simulation testing method, device, equipment, medium and program product. Background Art
[0002] With the development of the automotive industry, the research and development cycle of new models is getting shorter and shorter. However, during the development process of new models, it is necessary to test and evaluate the vehicle's business capabilities in various scenarios.
[0003] Currently, when testing vehicles on test benches, many low-level signals from onboard devices are difficult to trigger on the test bench, making real-world scenarios difficult to verify. Developers' lack of familiarity with the applications that rely on them complicates data integration. This necessitates that test evaluations be conducted in real-world scenarios to complete functional debugging and testing before mass production. However, test scenarios can be temporally or spatially uncontrollable, such as rainy days, high / low temperatures, and congested conditions. These conditions are often subject to random factors and cannot be arbitrarily controlled, leading to delays in the R&D cycle.
[0004] Therefore, in the existing technology, there is a technical problem that the vehicle usage scenario is uncontrollable during vehicle development and testing, resulting in long development time and high testing costs. Summary of the Invention
[0005] The present application provides a vehicle usage scenario simulation test method, device, equipment, medium and program product to solve the technical problem in the prior art that the vehicle usage scenario is uncontrollable during vehicle R&D and testing, resulting in long R&D time and high testing costs.
[0006] In a first aspect, the present application provides a vehicle usage scenario simulation test method, which is applied to:
[0007] Obtain and parse the simulation configuration information entered by the developer;
[0008] According to the parsing result of the simulation configuration information, the scene configuration data corresponding to the simulation configuration information is loaded, and the scene simulation data is determined according to the scene configuration data and the preset scene simulation protocol;
[0009] According to the transmission configuration information in the analysis result, the scenario simulation data is sent to the test engine to change the vehicle usage scenario in the test engine and test the various preset services corresponding to the vehicle usage scenario.
[0010] In one possible design, the simulation configuration information includes: data configuration, and according to the parsing result of the simulation configuration information, the scene configuration data corresponding to the simulation configuration information is loaded, including:
[0011] Determine one or more vehicle usage scenarios corresponding to the scenario configuration data, as well as the type and value range of each parameter in the scenario configuration data, based on the data configuration.
[0012] In one possible design, the simulation configuration information further includes: simulation mode configuration, loading scenario configuration data corresponding to the simulation configuration information according to the parsing result of the simulation configuration information, and further including:
[0013] When there are multiple vehicle usage scenarios, the simulation order and switching method of each vehicle usage scenario are determined according to the simulation mode configuration. The switching methods include: manual switching, automatic random switching, and automatic switching according to the simulation order.
[0014] In one possible design, the transmission configuration information is included in the simulation configuration information, and the transmission configuration information includes: one or more transmission frequencies for transmitting the scenario simulation data and one or more start transmission times corresponding to each transmission frequency;
[0015] Send scenario simulation data to the test engine based on the transmission configuration information in the parsed results, including:
[0016] At each start transmission time, the scenario simulation data is sent to the test engine at its corresponding transmission frequency. The transmission frequency is used to test and verify the test vehicle under different data volume processing pressures.
[0017] Optionally, after the test engine receives the scenario simulation data and before testing each preset service corresponding to the vehicle usage scenario, it further includes:
[0018] Verify the legitimacy of scenario simulation data;
[0019] If the verification is legal, the vehicle usage scenario is switched according to the scenario simulation data and the test is started;
[0020] If the verification fails, the scene simulation data is discarded.
[0021] In one possible design, the method further includes:
[0022] The test data of the test engine is synchronized to the simulation monitoring background to determine and store the test record log, which is used to provide developers with debugging feedback information of the preset business and the interface corresponding to the preset business.
[0023] In one possible design, the test data from the test engine is synchronized to the simulation monitoring backend, including:
[0024] The test data is sent to the scene message bus so that the simulation monitoring background can read the test data through the scene message bus.
[0025] In a second aspect, the present application provides a vehicle usage scenario simulation test device, comprising:
[0026] The acquisition module is used to obtain the simulation configuration information input by the developer;
[0027] Processing module for:
[0028] Parse simulation configuration information;
[0029] According to the parsing result of the simulation configuration information, the scene configuration data corresponding to the simulation configuration information is loaded, and the scene simulation data is determined according to the scene configuration data and the preset scene simulation protocol;
[0030] According to the transmission configuration information in the analysis result, the scenario simulation data is sent to the test engine to change the vehicle usage scenario in the test engine and test the various preset services corresponding to the vehicle usage scenario.
[0031] In one possible design, the simulation configuration information includes: data configuration, a processing module, and a processing module for:
[0032] Determine one or more vehicle usage scenarios corresponding to the scenario configuration data, as well as the type and value range of each parameter in the scenario configuration data, based on the data configuration.
[0033] In one possible design, the simulation configuration information further includes: simulation mode configuration, a processing module, and is further used to:
[0034] When there are multiple vehicle usage scenarios, the simulation order and switching method of each vehicle usage scenario are determined according to the simulation mode configuration. The switching methods include: manual switching, automatic random switching, and automatic switching according to the simulation order.
[0035] In one possible design, the transmission configuration information is included in the simulation configuration information, and the transmission configuration information includes: one or more transmission frequencies for transmitting the scenario simulation data and one or more start transmission times corresponding to each transmission frequency;
[0036] Processing module for:
[0037] At each start transmission time, the scenario simulation data is sent to the test engine at its corresponding transmission frequency. The transmission frequency is used to test and verify the test vehicle under different data volume processing pressures.
[0038] Optionally, after the test engine receives the scenario simulation data, before testing each preset service corresponding to the vehicle usage scenario, the processing module is further configured to:
[0039] Verify the legitimacy of scenario simulation data;
[0040] If the verification is legal, the vehicle usage scenario is switched according to the scenario simulation data and the test is started;
[0041] If the verification fails, the scene simulation data is discarded.
[0042] In a possible design, the processing module is further configured to:
[0043] The test data of the test engine is synchronized to the simulation monitoring background to determine and store the test record log, which is used to provide developers with debugging feedback information of the preset business and the interface corresponding to the preset business.
[0044] In a possible design, the processing module is used to send the test data to the scene message bus, so that the simulation monitoring background reads the test data through the scene message bus.
[0045] In a third aspect, the present application provides an electronic device, comprising:
[0046] a memory for storing program instructions;
[0047] The processor is used to call and execute the program instructions in the memory to perform any possible vehicle usage scenario simulation test method provided by the first aspect.
[0048] In a fourth aspect, the present application provides a storage medium, wherein the readable storage medium stores a computer program, and the computer program is used to execute any possible vehicle usage scenario simulation test method provided in the first aspect.
[0049] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements any possible vehicle scenario simulation test system method provided in the first aspect.
[0050] The present application provides a vehicle usage scenario simulation test method, device, equipment, medium and program product, which obtains and parses the simulation configuration information input by the developer; according to the parsing result of the simulation configuration information, loads the scenario configuration data corresponding to the simulation configuration information, and determines the scenario simulation data according to the scenario configuration data and the preset scenario simulation protocol; according to the transmission configuration information in the parsing result, sends the scenario simulation data to the test engine to change the vehicle usage scenario in the test engine, and tests the various preset services corresponding to the vehicle usage scenario. It solves the technical problem in the prior art that the vehicle usage scenario is uncontrollable during vehicle research and development testing, resulting in long research and development time and high testing costs. It achieves the technical effect of providing vehicle development and testing personnel with a simple and fast testing method when verifying scenario services, reducing the waiting time for test scenarios, and reducing the cost of development and testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0052] Figure 1 A schematic diagram of an application scenario of a vehicle usage scenario simulation test method provided in this application;
[0053] Figure 2 A flowchart of a vehicle usage scenario simulation test method provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of the structure of a simulation test system provided in this application;
[0055] Figure 4 A flowchart of another vehicle usage scenario simulation test method provided in an embodiment of the present application;
[0056] Figure 5 A schematic structural diagram of a vehicle usage scenario simulation test device provided in an embodiment of the present application;
[0057] Figure 6 This is a schematic diagram of the structure of an electronic device provided in this application.
[0058] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0059] To make the purpose, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative efforts, including but not limited to combinations of multiple embodiments, are within the scope of protection of this application.
[0060] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the numbers used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0061] Scenario-based services for in-vehicle systems are a key development direction for system intelligence in automotive technology. Scenarios such as commuting, traffic jams, rainy weather, and highway driving are derived from scenarios generated by the scenario engine based on real-time vehicle status, user profiles, and external business environment data. Scenarios rely on numerous data sources from various business entities, including vehicle body signals, navigation data, media information, schedules, and weather conditions. In actual development, developers often face numerous data challenges, such as difficulty triggering underlying signals on test benches, difficulties verifying and implementing real-world scenario conditions, and complex data integration and debugging due to unfamiliarity with application-dependent services. These challenges increase the workload of scenario developers and testers and hinder the integration and debugging of scenarios for subscribers. As the time between vehicle product upgrades shortens, these challenges are increasingly hindering R&D progress, reducing testing efficiency and increasing testing costs.
[0062] In general, the existing technology has technical problems in vehicle development and testing, such as uncontrollable vehicle usage scenarios, which leads to long development time and high testing costs.
[0063] In order to solve the above technical problems, the invention concept of this application is:
[0064] A vehicle usage scenario simulation testing method is proposed. The data simulation application generates simulation data based on a unified data protocol for vehicle system services by simulating the numerous business data required for scenario calculations (such as vehicle body signals, navigation data, media information, schedules, weather conditions, and voice conversations). This simulation data is sent to the test engine via a simulation service, a business program process running within the simulation test system. The test engine receives this simulation data, completes legality verification, sorts data consumption, and then inputs the data into the test engine to calculate the vehicle usage scenario and simultaneously updates the business information to the scenario message bus. The scenario message bus then updates the scenario simulation monitoring backend with data logs, scenario card interaction information, scenario calculation logs, and scenario subscription notifications in real time.
[0065] The scenario simulation backend displays simulation logs in chronological order based on the scenario message bus and automatically stores them in log files. This allows developers to easily and clearly verify scenario services and debug scenario subscription interfaces. This significantly reduces the R&D costs of scenario-based services for various in-vehicle systems. Furthermore, mode and frequency configurations can be configured to meet testers' automated testing needs.
[0066] Figure 1 This is a schematic diagram of an application scenario of a vehicle scenario simulation test method provided in this application. Figure 1 As shown, the vehicle-mounted system of the vehicle to be tested 100 is transplanted into the test engine of the simulation test system 200. The simulation test system 200 inputs simulation protocols for various vehicle usage scenarios, for example, simulation protocols for commuting scenarios, highway scenarios, rural outdoor scenarios, and special scenarios. The so-called special scenarios include tunnels, basements, toll booths, elevated roads, and other scenarios with weak signals. After simulating each vehicle usage scenario and forming vehicle usage scenario simulation data, it is input into the test engine to simulate the service trigger conditions of the vehicle-mounted system in the corresponding vehicle usage scenario, and perform business testing or stress testing on the vehicle-mounted system. The simulation test system 200 then outputs the corresponding simulation test results. Developers adjust the various business modules of the vehicle-mounted system by analyzing the test results, so that the test can be completed without the actual vehicle reaching the vehicle usage scenario.
[0067] Figure 2 This is a flow chart of a vehicle usage scenario simulation test method provided in an embodiment of the present application. Figure 2 As shown, the specific steps of the vehicle usage scenario simulation test method include:
[0068] S201: Acquire and parse simulation configuration information input by a developer.
[0069] In this step, the simulation configuration information includes: data configuration and transmission configuration information. The data configuration is used to specify one or more vehicle usage scenarios, as well as the type and coding value range of various simulation parameters for each vehicle usage scenario. The transmission configuration information includes: one or more transmission frequencies of the transmission scenario simulation data and one or more start transmission times corresponding to each transmission frequency.
[0070] Specifically, developers (including testers) enter simulation configuration information on the simulation test system's configuration interface to specify one or more vehicle usage scenarios to simulate, the order in which each scenario should be simulated, and the simulation start time. Furthermore, if developers want to stress-test the test vehicle's service processing capabilities, they can also adjust the transmission frequency of the simulation data in this step.
[0071] After the developer completes entering the simulation configuration information and clicks Submit, the simulation test system obtains the simulation configuration information and performs configuration analysis to clarify the developer's simulation requirements.
[0072] S202 : According to the parsing result of the simulation configuration information, the scenario configuration data corresponding to the simulation configuration information is loaded, and the scenario simulation data is determined according to the scenario configuration data and a preset scenario simulation protocol.
[0073] In this step, the simulation test system determines one or more vehicle usage scenarios corresponding to the scenario configuration data, as well as the type and value range of each parameter in the scenario configuration data according to the data configuration in the simulation configuration information.
[0074] Specifically, developers need to pre-build simulation protocols based on various vehicle usage scenarios. This means digitizing the vehicle usage scenarios. For example, in a rainy day scenario, the corresponding rain sensor values need to be set, and the rainfall intensity needs to be simulated by varying the values. Each simulation protocol is pre-entered into the simulation test system, allowing the simulation test system to determine the required simulation protocol based on the simulation configuration information and generate the corresponding scenario simulation data.
[0075] In one possible design, if a developer configures multiple vehicle usage scenarios, the simulation configuration information also requires setting simulation modes, such as manual and automatic modes. Manual mode means that the developer manually determines when to generate scenario simulation data for each vehicle usage scenario and when to send that scenario simulation data to the test engine for testing, using the simulation test system's user interface. Automatic mode, on the other hand, means that the developer pre-sets the simulation order for each vehicle usage scenario, either in a random order, and also sets the simulation start time and duration for each scenario.
[0076] S203. Send scenario simulation data to the test engine according to the transmission configuration information in the analysis result to change the vehicle usage scenario in the test engine and test various preset services corresponding to the vehicle usage scenario.
[0077] In this step, scenario simulation data is sent to the test engine according to each transmission frequency in the transmission configuration information and one or more transmission start times corresponding to each transmission frequency.
[0078] Optionally, after receiving the scenario simulation data, the scenario engine can first perform a validity check to avoid the situation where the scenario simulation data is not discarded in time after the user temporarily changes the test target or test content, resulting in erroneous test results and misleading developers.
[0079] It should be noted that during the test process, the test engine can transmit test data to the simulation monitoring background in the form of wired or wireless communication. The simulation monitoring background generates corresponding record logs based on the test data, so that developers can conduct retrospective analysis of the test process at each moment after the test is completed. Because many times, test analysis cannot be completed at the time of testing, it is necessary to organize and summarize the test results after the test to find problems, and then trace the test process to find the real problem.
[0080] In one possible design, the test engine sends test data to the message bus during the test process. The simulation monitoring background only needs to read the data on the message bus to obtain the test data, thereby generating the corresponding record log.
[0081] This embodiment provides a vehicle usage scenario simulation test system method, which obtains and parses the simulation configuration information input by the developer; according to the parsing result of the simulation configuration information, loads the scenario configuration data corresponding to the simulation configuration information, and determines the scenario simulation data according to the scenario configuration data and the preset scenario simulation protocol; according to the transmission configuration information in the parsing result, sends the scenario simulation data to the test engine to change the vehicle usage scenario in the test engine, and tests the various preset services corresponding to the vehicle usage scenario. It solves the technical problem in the prior art that the vehicle usage scenario is uncontrollable during vehicle research and development testing, resulting in long research and development time and high testing costs. It achieves the technical effect of providing vehicle development and testing personnel with a simple and fast testing method for verification testing of scenario services, reducing the waiting time for test scenarios, and reducing the cost of development and testing.
[0082] Figure 3 This is a schematic diagram of the structure of a simulation test system provided by this application. Figure 3 As shown, the simulation test system includes: a data simulation service module 41, a test engine 42, a message bus 43 and a simulation monitoring background 44.
[0083] The data simulation service module 41 includes a configuration management module 411 and a simulation data management module 412. The simulation data management module 412 comprises configuration read and validation, simulation data generation, and data transmission. Data transmission is driven by configuration validation and the association of simulation data. Simulation data must reference the data format and business values of real business data sources, including data encoding, data type, and business significance of the values.
[0084] The test engine 42 includes a calculation module 421 and a data queue management module 422 .
[0085] The simulation monitoring background 44 can display the following contents to the developer: intelligent interaction 441 , simulation data log 442 , scenario calculation log 443 and scenario subscription notification 444 .
[0086] Below through Figure 4 The illustrated embodiment is used to illustrate how each module in the simulation test system works.
[0087] Figure 4 This is a flow chart of another vehicle usage scenario simulation test method provided in an embodiment of the present application. Figure 4 As shown, the vehicle scenario simulation test method is applied to Figure 3 The simulation test system shown includes the following steps:
[0088] S401: Acquire and parse simulation configuration information input by a developer.
[0089] In this step, the simulation configuration information includes: data configuration, simulation mode configuration and transmission configuration information.
[0090] In this embodiment, the data configuration is used to indicate various vehicle usage scenarios that need to be simulated, that is, to specify the corresponding simulation protocol.
[0091] The simulation mode configuration is set up for multiple vehicle usage scenarios or stress tests.
[0092] The transmission configuration information includes one or more transmission frequencies for transmitting scenario simulation data and one or more transmission start times corresponding to each transmission frequency. The transmission frequencies are used to test and verify the test vehicle's processing pressures for different data volumes.
[0093] In this embodiment, if Figure 3 As shown, the configuration management module 411 in the data simulation service module 41 receives the simulation configuration information submitted by the user.
[0094] It is worth noting that the configuration data in the configuration management module 411 includes: preset configuration data and system file replacement configuration data. The content of the configuration data includes three parts: simulation data configuration file, mode configuration file, and frequency configuration file. The data simulation service module 41 will enable the preset configuration data by default when the simulation test system is installed. It should be noted that the file corresponding to the configuration data is a json file. When the developer modifies the data of the configuration file in the operation interface and submits the configuration data, the configuration management module 411 will preferentially load the configuration file to replace the preset configuration data.
[0095] For ease of understanding, Table 1 exemplifies several configuration parameter examples in the simulation configuration information:
[0096]
[0097]
[0098] Table 1
[0099] It should be noted that Table 1 lists the key parameters of simulation data. Developers can simply connect to the data they want to simulate, configure specific simulation data codes and business values, and then add or modify simulation data. They can also query and delete unnecessary simulation data as needed.
[0100] S402. Determine one or more vehicle usage scenarios corresponding to the scenario configuration data, and the type and value range of each parameter in the scenario configuration data according to the data configuration.
[0101] In this embodiment, if Figure 3 As shown, the configuration management module 411 performs configuration validation processing on the three aspects of configuration, namely, data configuration, simulation mode configuration and transmission configuration information, and sends them to the simulation data management module 412 .
[0102] In this step, the simulation data management module 412 reads the data configuration, verifies the validity of the data configuration, and then loads the scenario configuration data corresponding to the data configuration, that is, various parameters.
[0103] S403: Determine the simulation sequence and switching method of each vehicle usage scenario according to the simulation mode configuration.
[0104] In this embodiment, the developer sets up multiple vehicle usage scenarios, and then needs to specify the switching method of each vehicle usage scenario. The switching methods include: manual switching, automatic random switching, and automatic switching according to simulation sequence.
[0105] For ease of understanding, Table 2 exemplarily provides several examples of simulation mode configuration parameters in the simulation configuration information:
[0106]
[0107]
[0108] Table 2
[0109] Specifically, the simulation data management module 412 reads the simulation mode configuration, verifies the validity of the simulation mode configuration, and then sets corresponding parameters in the scenario configuration data according to the simulation mode configuration.
[0110] S404: Determine scene simulation data according to the scene configuration data and a preset scene simulation protocol.
[0111] In this step, after the parameters corresponding to the configuration information are loaded, the scenario simulation protocol corresponding to each vehicle usage scenario is used to generate scenario simulation data according to the configuration parameters.
[0112] S405 : Send scenario simulation data to the test engine at each start transmission time and at its corresponding transmission frequency.
[0113] In this embodiment, for ease of understanding, Table 3 exemplarily provides examples of configuration parameters of several transmission frequencies in the simulation configuration information:
[0114] parameter describe Numerical configId Configuration Code Id frequency configName Configuration Name frequency configValue Configuration Values 1000 description Configuration Description Frequency in milliseconds configId Configuration Code Id startTime configName Configuration Name Start time configValue Configuration Values 022-01-03 09:10:05 description Configuration Description Year Month Day Hour Minute Second
[0115] Table 3
[0116] It should be noted that after all simulation business data is loaded, the queue will be sorted according to the priority of the scenario simulation data to ensure that the scenario simulation data is sent to the test engine in a reasonable order. The lower the priority value, the higher the priority will be, and it will be sent first.
[0117] S406: Verify the legitimacy of the scene simulation data.
[0118] In this step, if the verification result is legal, S407 is executed; if not, the scene simulation data is discarded.
[0119] It should be noted that after simulation data has been generated, if the developer temporarily changes the simulation intent and needs to use a different vehicle scenario, that is, use new simulation data, but the original simulation data has already been sent, then the original simulation data can be discarded through the validation method. For example, after the developer submits the new simulation configuration in the operation interface, the new validation rules are simultaneously sent to the test engine.
[0120] S407: Switch the vehicle usage scenario according to the scenario simulation data and start the test.
[0121] In this embodiment, scenario-based business developers and functional testers can use the test engine to verify specific business implementations and debug corresponding scenario interfaces. Upon startup, the test engine automatically monitors the bound data simulation service and prepares to receive scenario-based simulation data from the data simulation service module. The scenario-based simulation data uses the same data protocol as the actual business data source. The test engine verifies the data's legitimacy and triggers scenario changes through the calculation engine. This allows for reliable and efficient verification of scenario-based business logic.
[0122] S408: Synchronize the test data of the test engine to the simulation monitoring background to determine and store the test record log.
[0123] In this step, the test data is sent to the scene message bus, so that the simulation monitoring background reads the test data through the scene message bus.
[0124] In this embodiment, taking the highway driving scenario as an example, the test engine will sequentially receive data of high-speed driving and 90 kilometers per hour, with an interval of 1000 milliseconds (1 second). After receiving the above scenario simulation data, the high-speed scenario will be triggered, and the corresponding synchronous message bus information will be updated to the data simulation monitoring background. Figure 3 The detailed information displayed in the simulation monitoring background 44 includes: smart card interaction 441, simulation data log 442, scenario calculation log 443, and scenario subscription notification 444. Developers and testers can use this to clearly and conveniently verify scenario services and debug related functional interfaces, greatly reducing the cost of business development.
[0125] This embodiment provides a vehicle usage scenario simulation test system method, which obtains and parses the simulation configuration information input by the developer; according to the parsing result of the simulation configuration information, loads the scenario configuration data corresponding to the simulation configuration information, and determines the scenario simulation data according to the scenario configuration data and the preset scenario simulation protocol; according to the transmission configuration information in the parsing result, sends the scenario simulation data to the test engine to change the vehicle usage scenario in the test engine, and tests the various preset services corresponding to the vehicle usage scenario. It solves the technical problem in the prior art that the vehicle usage scenario is uncontrollable during vehicle research and development testing, resulting in long research and development time and high testing costs. It achieves the technical effect of providing vehicle development and testing personnel with a simple and fast testing method for verification testing of scenario services, reducing the waiting time for test scenarios, and reducing the cost of development and testing.
[0126] Figure 5 This is a schematic diagram of the structure of a vehicle usage scenario simulation test device provided in an embodiment of the present application. The vehicle usage scenario simulation test device 500 can be implemented through software, hardware, or a combination of both.
[0127] like Figure 5 As shown, the vehicle usage scenario simulation test device 500 includes:
[0128] Acquisition module 501, used to acquire simulation configuration information input by the developer;
[0129] The processing module 502 is configured to:
[0130] Parse simulation configuration information;
[0131] According to the parsing result of the simulation configuration information, the scene configuration data corresponding to the simulation configuration information is loaded, and the scene simulation data is determined according to the scene configuration data and the preset scene simulation protocol;
[0132] According to the transmission configuration information in the analysis result, the scenario simulation data is sent to the test engine to change the vehicle usage scenario in the test engine and test the various preset services corresponding to the vehicle usage scenario.
[0133] In one possible design, the simulation configuration information includes: data configuration, processing module 502, configured to:
[0134] Determine one or more vehicle usage scenarios corresponding to the scenario configuration data, as well as the type and value range of each parameter in the scenario configuration data, based on the data configuration.
[0135] In one possible design, the simulation configuration information further includes: simulation mode configuration, and the processing module 502 is further configured to:
[0136] When there are multiple vehicle usage scenarios, the simulation order and switching method of each vehicle usage scenario are determined according to the simulation mode configuration. The switching methods include: manual switching, automatic random switching, and automatic switching according to the simulation order.
[0137] In one possible design, the transmission configuration information is included in the simulation configuration information, and the transmission configuration information includes: one or more transmission frequencies for transmitting the scenario simulation data and one or more start transmission times corresponding to each transmission frequency;
[0138] The processing module 502 is configured to:
[0139] At each start transmission time, the scenario simulation data is sent to the test engine at its corresponding transmission frequency. The transmission frequency is used to test and verify the test vehicle under different data volume processing pressures.
[0140] Optionally, after the test engine receives the scenario simulation data and before testing each preset service corresponding to the vehicle usage scenario, the processing module 502 is further configured to:
[0141] Verify the legitimacy of scenario simulation data;
[0142] If the verification is legal, the vehicle usage scenario is switched according to the scenario simulation data and the test is started;
[0143] If the verification fails, the scene simulation data is discarded.
[0144] In one possible design, the processing module 502 is further configured to:
[0145] The test data of the test engine is synchronized to the simulation monitoring background to determine and store the test record log, which is used to provide developers with debugging feedback information of the preset business and the interface corresponding to the preset business.
[0146] In a possible design, the processing module 502 is configured to send the test data to a scenario message bus, so that the simulation monitoring background reads the test data through the scenario message bus.
[0147] It is worth mentioning that Figure 5 The device provided in the illustrated embodiment can execute the method provided in any of the above method embodiments. Its specific implementation principles, technical features, professional terminology explanations and technical effects are similar and will not be repeated here.
[0148] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 600 may include: at least one processor 601 and a memory 602. Figure 6 An electronic device is shown using a processor as an example.
[0149] The memory 602 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer operation instructions.
[0150] The memory 602 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0151] The processor 601 is configured to execute computer-executable instructions stored in the memory 602 to implement the methods described in the above method embodiments.
[0152] The processor 601 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0153] Optionally, the memory 602 may be independent or integrated with the processor 601. When the memory 602 is a device independent of the processor 601, the electronic device 600 may further include:
[0154] Bus 603 is used to connect the processor 601 and the memory 602. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be divided into address buses, data buses, control buses, etc., but this does not mean that there is only one bus or only one type of bus.
[0155] Optionally, in a specific implementation, if the memory 602 and the processor 601 are integrated on a chip, the memory 602 and the processor 601 can communicate through an internal interface.
[0156] An embodiment of the present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program code. Specifically, the computer-readable storage medium stores program instructions, and the program instructions are used for the methods in the above-mentioned method embodiments.
[0157] An embodiment of the present application further provides a computer program product, including a computer program, which implements the methods in the above-mentioned method embodiments when executed by a processor.
[0158] It should be understood that the present application is not limited to the exact structure 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 application is limited only by the appended claims.
[0159] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A vehicle usage scenario simulation test method, characterized in that: include: Obtain and parse the simulation configuration information entered by the developer; According to the parsing result of the simulation configuration information, loading the scene configuration data corresponding to the simulation configuration information, and determining the scene simulation data according to the scene configuration data and a preset scene simulation protocol; Sending the scenario simulation data to the test engine according to the transmission configuration information in the parsing result to change the vehicle usage scenario in the test engine and test various preset services corresponding to the vehicle usage scenario; The transmission configuration information includes: one or more transmission frequencies for transmitting the scenario simulation data and one or more start transmission times corresponding to each of the transmission frequencies; The sending the scenario simulation data to the test engine according to the transmission configuration information in the parsing result includes: At each of the start transmission times, the scenario simulation data is sent to the test engine at the corresponding transmission frequency, wherein the transmission frequency is used to test and verify the test vehicle under different data volume processing pressures, so that the user can perform a stress test on the service processing capability of the test vehicle by adjusting the transmission frequency; After the test engine receives the scenario simulation data, and before testing each preset service corresponding to the vehicle usage scenario, the test engine further includes: Verifying the legitimacy of the scenario simulation data; If the verification is legal, the vehicle usage scenario is switched according to the scenario simulation data and the test is started; If the verification fails, the scene simulation data is discarded; The simulation configuration information includes: simulation mode configuration, and the loading of scene configuration data corresponding to the simulation configuration information according to the parsing result of the simulation configuration information includes: When there are multiple vehicle usage scenarios, the simulation order and switching method of each vehicle usage scenario are determined according to the simulation mode configuration, and the switching method includes: manual switching, automatic random switching, and automatic switching according to the simulation order.
2. The vehicle usage scenario simulation test method according to claim 1, characterized in that: The simulation configuration information further includes: data configuration, wherein the loading of the scene configuration data corresponding to the simulation configuration information according to the parsing result of the simulation configuration information further includes: One or more vehicle usage scenarios corresponding to the scenario configuration data, as well as the type and value range of each parameter in the scenario configuration data, are determined according to the data configuration.
3. The vehicle usage scenario simulation test method according to claim 1 or 2, characterized in that: The transmission configuration information is included in the simulation configuration information.
4. The vehicle usage scenario simulation test method according to claim 1, characterized in that: Also includes: The test data of the test engine is synchronized to the simulation monitoring background to determine and store the test record log, and the test record log is used to provide the developer with debugging feedback information of the preset business and the interface corresponding to the preset business.
5. The vehicle usage scenario simulation test method according to claim 4, characterized in that: The step of synchronizing the test data of the test engine to the simulation monitoring background includes: The test data is sent to a scene message bus, so that the simulation monitoring background reads the test data through the scene message bus.
6. A vehicle scene simulation test device, characterized in that: include: The acquisition module is used to obtain the simulation configuration information input by the developer; Processing module for: parsing the simulation configuration information; According to the parsing result of the simulation configuration information, loading the scene configuration data corresponding to the simulation configuration information, and determining the scene simulation data according to the scene configuration data and a preset scene simulation protocol; Sending the scenario simulation data to the test engine according to the transmission configuration information in the parsing result to change the vehicle usage scenario in the test engine and test various preset services corresponding to the vehicle usage scenario; The transmission configuration information includes: one or more transmission frequencies for transmitting the scenario simulation data and one or more start transmission times corresponding to each of the transmission frequencies; The processing module is specifically configured to send the scenario simulation data to the test engine at the transmission frequency corresponding to each start transmission time, wherein the transmission frequency is used to test and verify the test vehicle's processing pressure of different data volumes, so that the user can perform a stress test on the test vehicle's business processing capability by adjusting the transmission frequency; The processing module is further configured to, after the test engine receives the scenario simulation data, verify the legitimacy of the scenario simulation data before testing each preset service corresponding to the vehicle usage scenario; if the verification is valid, switch the vehicle usage scenario according to the scenario simulation data and start the test; if the verification fails, discard the scenario simulation data; The simulation configuration information includes: simulation mode configuration. The processing module is also used to determine the simulation order and switching method of each vehicle usage scenario according to the simulation mode configuration when there are multiple vehicle usage scenarios. The switching method includes: manual switching, automatic random switching, and automatic switching according to the simulation order.
7. An electronic device, characterized in that: include: processor; as well as, a memory for storing a computer program for the processor; Wherein, the processor is configured to execute the vehicle usage scenario simulation test method according to any one of claims 1 to 5 by executing the computer program.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the vehicle usage scenario simulation test method according to any one of claims 1 to 5 is implemented.
9. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the vehicle usage scenario simulation test method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Vehicle machine simulation test method, device, equipment and medium
CN113139269A