Vehicle control instruction test method and system, electronic equipment and storage medium

Through the method of generating and executing test files, the problems of low efficiency and poor accuracy of traditional vehicle voice command testing are solved, and efficient and accurate vehicle control command testing is achieved, reducing costs and simplifying the process.

CN118567324APending Publication Date: 2024-08-30CHINA FAW CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410500402.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-24
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The traditional vehicle-to-machine voice command testing method is inefficient, time-consuming, and the results of manual judgment are inaccurate.

Method used

By generating test files, vehicle control instructions are generated based on priority identification and semantic analysis, the instructions are executed and test results are synchronized, and data management is performed locally and in the cloud using a visual approach.

Benefits of technology

Improves testing efficiency, accuracy, and coverage, reduces costs, and simplifies repetitive execution processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567324A
    Figure CN118567324A
Patent Text Reader

Abstract

The invention discloses a vehicle control instruction test method and system, electronic equipment, a storage medium and a terminal, and the method comprises the steps: responding to a test rule of a vehicle control instruction, generating at least one test file, enabling the test file to be generated according to a defined compiling rule, and enabling the compiling rule to give a unique identifier to each test file; traversing the test files, and based on the priorities of the test files, executing identification processing on the test files in sequence to obtain key information in the test files; in response to the key information, performing semantic analysis processing, obtaining a semantic intention of the key information, and generating a vehicle control instruction corresponding to the test rule; the vehicle control instructions are sequentially executed, test results corresponding to the vehicle control instructions are generated, and the test results are synchronized with the cloud locally in a visual mode. The test coverage can be increased, the test cost is reduced, the test efficiency, speed and accuracy are improved, and repeated execution is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a vehicle control instruction testing method, system, electronic equipment, storage medium and terminal. Background Art

[0002] At present, the traditional vehicle voice command test relies on the tester to speak the command to the voice module, which analyzes the voice intention and distributes it to the vehicle module that executes the command. After the corresponding vehicle module completes the processing, it feeds back the tester the result. If this method is used to test a large number of voice commands, the test method has the disadvantages of low efficiency and long time consumption, and human labor may not accurately judge the correctness of the test results during the test.

[0003] Therefore, the present application provides a vehicle control command testing method to solve the above technical problems. Summary of the invention

[0004] The object of the present invention is to provide a vehicle control command testing method, system, electronic device, storage medium and terminal, which can solve at least one of the technical problems mentioned above.

[0005] In order to solve the above technical problems, the present invention provides a vehicle control command testing method, comprising:

[0006] In response to the test rule of the vehicle control instruction, at least one test file is generated, wherein the test file is generated according to a defined writing rule, and the writing rule assigns a unique identifier to each of the test files;

[0007] Traversing the test files, and based on the priorities of the test files, performing identification processing on the test files in turn to obtain key information in the test files;

[0008] In response to the key information, performing semantic analysis processing, obtaining the semantic intent of the key information, and generating a vehicle control instruction corresponding to the test rule;

[0009] The vehicle control instructions are executed in sequence to generate test results corresponding to the vehicle control instructions, wherein the test results are synchronized locally and with the cloud in a visual manner.

[0010] In some specific embodiments, in response to the test rules of the vehicle control command, at least one test file is generated, wherein the test file is generated according to a defined writing rule, and the writing rule assigns a unique identifier to each of the test files, specifically including:

[0011] The writing rules include the naming rules, file format, file structure and included data element information of the test file, wherein the writing rules are used to ensure the consistency and readability of the test file;

[0012] The unique identifier includes a file number and a timestamp information, which is used to identify and manage the test file;

[0013] The test file contains instructions and expected results for testing various functions of the vehicle, and each of the test files corresponds to a specific vehicle control instruction.

[0014] In some specific embodiments, traversing the test files, and performing identification processing on the test files in sequence based on the priorities of the test files to obtain key information in the test files specifically includes:

[0015] Sorting the test files according to a preset priority rule so that the test files with high priority are processed first;

[0016] Scanning and parsing the content of the test file line by line to extract key information in the test file, wherein the key information includes test condition information;

[0017] The key information is verified and screened, invalid or erroneous key information is eliminated, and corresponding records are made.

[0018] In some specific embodiments, in response to the key information, semantic analysis processing is performed to obtain the semantic intent of the key information and generate a vehicle control instruction corresponding to the test rule, specifically including:

[0019] In response to the key information, analyzing the semantic intent in the key information based on contextual information, grammatical structure, and lexical meaning of the key information;

[0020] generating the vehicle control command based on the semantic intent, wherein the vehicle control command is generated according to the requirements and constraints in the test rules, combined with the actual control function and interface characteristics of the vehicle;

[0021] The vehicle control instructions are also generated according to the test scenario, test conditions and test objectives.

[0022] In some specific embodiments, it also includes:

[0023] Verifying and optimizing the generated vehicle control instructions;

[0024] Real-time interaction and testing are performed with the actual control function of the vehicle, real-time feedback of the execution result of the vehicle control command is continuously obtained, and the vehicle control command is dynamically adjusted and optimized according to the feedback result.

[0025] In some specific embodiments, the vehicle control instructions are executed in sequence to generate test results corresponding to the vehicle control instructions, wherein the test results are synchronized locally and with the cloud in a visual manner, specifically including:

[0026] Send the control instruction to the corresponding functional area for execution, monitor the feedback signal of the corresponding functional area, and collect test data during the execution process, wherein the test data includes response time, execution status and error code;

[0027] Based on the test data, display the real-time updated test progress, execution status and specific test data on the local side through a graphical user interface;

[0028] The test data on the local end is transmitted to the cloud server in real time to back up the test data.

[0029] Based on the same concept, the present invention also provides a vehicle control command test system, comprising:

[0030] A test file generation module, configured to generate at least one test file in response to the test rule of the vehicle control command, wherein the test file is generated according to a defined writing rule, and the writing rule assigns a unique identifier to each of the test files;

[0031] A key information acquisition module is configured to traverse the test files, perform identification processing on the test files in sequence based on the priorities of the test files, and acquire key information in the test files;

[0032] A vehicle control instruction generation module is configured to perform semantic analysis processing in response to the key information, obtain the semantic intent of the key information, and generate a vehicle control instruction corresponding to the test rule;

[0033] The test result execution module is configured to execute the vehicle control instructions in sequence and generate test results corresponding to the vehicle control instructions, wherein the test results are synchronized locally and with the cloud in a visual manner.

[0034] Based on the same concept, the present invention also provides an electronic device, including: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the vehicle control instruction testing method.

[0035] Based on the same concept, the present invention also provides a computer-readable storage medium, which stores a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the vehicle control instruction testing method.

[0036] Based on the same concept, the present invention also provides a vehicle control command test terminal, which is provided with the vehicle control command test system as described above.

[0037] Compared with the prior art, the beneficial effects are:

[0038] The present invention discloses a vehicle control command testing method, system, electronic device, storage medium and terminal, which no longer adopt the traditional manual testing method, can increase the test coverage, reduce the test cost, improve the test efficiency, speed and accuracy, and facilitate repeated execution. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a flow chart of a vehicle control command testing method of the present invention in some specific embodiments;

[0040] Figure 2 It is a schematic diagram of an interactive interface of a vehicle control command testing method of the present invention in some applications;

[0041] Figure 3 It is a schematic diagram of a floating window of an interactive interface of a vehicle control command testing method of the present invention in some applications;

[0042] Figure 4 It is a schematic diagram of the overall interaction interface of a vehicle control command testing method of the present invention in some applications;

[0043] Figure 5 It is a flow chart of a vehicle control command testing method of the present invention in some applications;

[0044] Figure 6 It is a test timing diagram of a vehicle control command test method of the present invention in some applications;

[0045] Figure 7 It is a structural schematic diagram of a vehicle control command test system of the present invention in some specific embodiments;

[0046] Figure 8 It is a schematic diagram of the structure of an electronic device in some specific embodiments of the present invention. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0048] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.

[0049] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0050] It should be understood that although the terms first, second, third, etc. may be used to describe in the embodiments of the present application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, without departing from the scope of the embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.

[0051] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0052] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.

[0053] It should be particularly noted that any symbols and / or numbers in the specification that are not marked in the accompanying drawings are not drawing marks.

[0054] Reference Figure 1 , a vehicle control command testing method, comprising:

[0055] S101, generating at least one test file in response to a test rule of a vehicle control instruction, wherein the test file is generated according to a defined writing rule, and the writing rule assigns a unique identifier to each of the test files;

[0056] It can be understood that in this step, the test rules of the vehicle control instructions are first determined. The rules include the test requirements, test conditions, and test steps for various functions of the vehicle. For example, the test rules require testing the working performance of the vehicle's lighting system under different lighting conditions. According to the defined writing rules, the test file is generated. The writing rules include the naming specifications, file format, file structure, and data elements contained in the test file. For example, the naming specification stipulates that the test file should be prefixed with "Test_", followed by the function name and date; the file format selects an easy-to-parse format such as XML or JSON; the file structure includes header information, test instructions, expected results, etc.; the data elements include specific information such as vehicle model and test parameters. In the process of generating the test file, the writing rules also assign a unique identifier to each test file. For example, the unique identifier is a unique file number, an identifier containing a timestamp. By assigning a unique identifier to each test file, each test file can be accurately identified and managed in subsequent test execution and result analysis.

[0057] Taking the vehicle lighting test as an example, multiple test files are generated to test different lighting conditions and lighting functions. Each test file is named and structured according to the writing rules, such as "Test_LightSystem_Daytime.xml" and "Test_LightSystem_Nighttime.xml". At the same time, each test file is assigned a unique file number, such as "001" and "002", so that it can be distinguished and managed in the subsequent testing process.

[0058] In some of these applications, in order to accurately generate vehicle control instructions, at least one test file is generated in response to the test rules of the vehicle control instructions. The test file is generated according to the defined writing rules, and the writing rules give each test file a unique identifier. The writing rules include the naming rules, file format, file structure and data element information contained in the test file. The writing rules are used to ensure the consistency and readability of the test file; the unique identifier includes the file number and timestamp information, which is used to identify and manage the test file; the test file contains instructions and expected results for testing various functions of the vehicle, and each test file corresponds to a specific vehicle control instruction.

[0059] It is understandable that in this application, the writing rules specify the naming method of the test file. For example, the naming of the test file can be in the format of "project name_function module_test type_date", such as "VehicleTest_BrakeSystem_FunctionTest_20230510.xml". It can clearly reflect the basic information of the test file. In terms of file structure, the writing rules specify the basic parts that the test file should contain, such as header information, test instruction set, expected result set, etc. The header information includes the description and version information of the test file; the test instruction set contains the specific instructions for testing the vehicle function; the expected result set lists the expected results corresponding to each instruction for comparison with the actual test results. The data element information contains various parameters and variables required during the test process, such as vehicle model, test environment, test conditions, etc. Each test file corresponds to a specific vehicle control instruction. For example, for the brake system test of the vehicle, a test file containing the brake instruction and the expected brake effect is generated. When performing the test, the tester will operate according to the instructions in the test file and record the actual test results for comparison with the expected results.

[0060] S102, traversing the test files, and performing identification processing on the test files in sequence based on the priorities of the test files to obtain key information in the test files;

[0061] It is understandable that in this step, all test files are first traversed. The test files are stored in a specific folder or database. By traversing these storage locations, a list of all test files that need to be processed is obtained. During the traversal process, the test files are sorted according to their priority. The priority of the test files is determined according to a variety of factors, such as the creation time, urgency, and importance of the test files. A set of priority rules is preset, and the priority is dynamically adjusted according to actual needs. For example, for the new version of the vehicle function test, the relevant test files are set to a higher priority. After the sorting is completed, the test files are identified in turn. Key information is extracted from the test files, including test instructions, expected results, test conditions, vehicle parameters, etc. During the identification process, the content of the test file is first read. According to the format of the test file (such as XML, JSON, etc.), the corresponding parsing method is used to convert the file content into a processable data structure. Then the parsed data is extracted and analyzed. By defining specific recognition rules, key information in the test file is identified. For example, by matching specific tags or keywords, test instructions and expected results are extracted; or by analyzing the relationship and logic between data, test conditions and vehicle parameters are determined. For each test file, the above recognition process is performed, and the extracted key information is saved in the corresponding data structure for subsequent use.

[0062] In some of the applications, in order to conduct tests in an orderly manner, the test files are traversed, and based on the priority of the test files, identification processing is performed on the test files in turn. When key information in the test files is obtained, the test files are sorted according to preset priority rules so that high-priority test files are processed first; the contents of the test files are scanned and parsed line by line to extract key information in the test files, and the key information includes test condition information; the key information is verified and screened, invalid or erroneous key information is eliminated, and corresponding records are made.

[0063] It is understandable that in this application, all test files stored in the specified location are first traversed. During the traversal process, the test files are sorted according to the preset priority rules. The preset priority rules are flexibly formulated according to the actual situation, taking into account the following factors: first, the creation time of the test file. Newer files may contain tests for the latest functions, so they have higher priority; second, the urgency of the test file. In some emergency situations, specific test files need to be processed first; and finally, the importance of the test file. Test files for key functional modules have higher priority. Sort the test files to ensure that high-priority test files can be processed first. After the sorting is completed, the test files are identified and processed in turn. The content of the test file is scanned and parsed line by line. Whether it is a test file in XML format or JSON format, the key information in the file can be extracted through the corresponding parser. The key information includes but is not limited to test instructions, expected results, and test condition information. The test condition information describes the environmental parameters and constraints when the test is executed, such as temperature range, humidity requirements, vehicle speed, etc. In the process of extracting key information, the information is verified and screened. This includes checking whether the key information is complete, whether it conforms to the expected format, and whether it is within a reasonable range. If invalid or erroneous key information is found, it will be recorded accordingly and a warning or error prompt will be triggered to avoid errors and omissions during the test process.

[0064] S103, in response to the key information, performing semantic analysis processing, obtaining the semantic intent of the key information, and generating a vehicle control instruction corresponding to the test rule;

[0065] It can be understood that in this step, the key information is first segmented. For example, for the key information "testing the braking performance at a temperature of 25 degrees", it is segmented into words such as "at", "temperature", "for", "25 degrees", "time", "test", "brake", and "performance". Then these words are tagged with parts of speech. Such as nouns, verbs, adjectives, etc. Through part-of-speech tagging, the grammatical structure of the key information can be further understood, providing a basis for subsequent analysis. After completing the segmentation and part-of-speech tagging, the intent is identified by analyzing the dependency relationship and contextual information between the words to determine the specific intent or demand expressed by the key information. For example, for the above-mentioned brake performance test key information, its intent is identified as "testing the brake performance". Finally, based on the identified intent and test rules, the corresponding vehicle control instructions are generated. The test rules are a series of pre-defined rules used to guide the generation of vehicle control instructions. Including instruction formats and parameter ranges under different test scenarios. According to the intent of the key information and the test rules, a vehicle control instruction that meets the requirements is constructed.

[0066] In some of the applications, in order to accurately generate vehicle control instructions, in response to key information, semantic analysis processing is performed to obtain the semantic intent of the key information, and in the generation of vehicle control instructions corresponding to the test rules, in response to the key information, the semantic intent in the key information is analyzed based on the contextual information, grammatical structure and lexical meaning of the key information; vehicle control instructions are generated based on the semantic intent, and the vehicle control instructions are generated according to the requirements and constraints in the test rules, combined with the actual control functions and interface characteristics of the vehicle; vehicle control instructions are also generated according to the test scenarios, test conditions and test objectives.

[0067] It can be understood that in this application, the semantic intent in the key information is first analyzed. For example, for the key information "testing the emergency braking performance of the vehicle on a slippery road", the key words such as "slippery road" and "emergency braking performance" are first identified, and the specific meanings of these words in the test scenario are understood in combination with the context information. Then, by analyzing the grammatical structure, it is determined that "test" is the main action, "vehicle emergency braking performance" is the test object, and "on a slippery road" is the test condition. Combining this information, the semantic intent of the key information is analyzed as "testing the emergency braking effect of the vehicle under specific road conditions". Next, the vehicle control command is generated based on the semantic intent. When generating the vehicle control command, the requirements and constraints in the test rules are considered, combined with the actual control functions and interface characteristics of the vehicle. Including safety requirements and operating specifications during the test process, at the same time, the control functions and interface characteristics of the vehicle determine the feasibility and implementation of the vehicle control command. The generation of vehicle control commands also needs to consider the test scenario, test conditions and test objectives. The test scenario involves different road types, traffic conditions, etc. The test conditions include environmental factors such as temperature, humidity, and wind speed. The test objectives clarify the specific purpose and expected results of the test.

[0068] Furthermore, in this application, in order to optimize the generated vehicle control instructions, it also includes verifying and optimizing the generated vehicle control instructions; interacting and testing with the actual control functions of the vehicle in real time, continuously obtaining real-time feedback on the execution results of the vehicle control instructions, and dynamically adjusting and optimizing the vehicle control instructions based on the feedback results.

[0069] It is understandable that in this application, the vehicle control instructions are first verified. Ensure that the instructions comply with grammatical rules, logical relationships and test requirements to avoid test failures or vehicle abnormalities caused by instruction errors. The verification process includes checking the format, parameter range, logical relationship, etc. of the instructions to ensure that they comply with the preset rules and standards. If there is a problem with the vehicle control instruction during the verification phase, a corresponding error prompt or warning is given. After the verification is completed, the optimization phase is entered. A variety of optimization strategies are adopted, such as instruction merging, parameter adjustment, and logic optimization, to reduce the number of instructions, improve execution efficiency, or reduce resource consumption. For example, in some cases, the test process is simplified by reducing unnecessary instructions or merging similar instructions; in other cases, the parameters or logic of the instructions are adjusted according to the real-time status or performance of the vehicle to adapt to different test requirements. In order to dynamically adjust and optimize the vehicle control instructions, real-time interaction and testing are performed with the actual control functions of the vehicle. Real-time feedback on the execution results of the vehicle control instructions is continuously obtained. Including instruction execution status, vehicle status changes, test results, etc., according to the feedback results, the vehicle control instructions are dynamically adjusted and optimized. For example, if an error or exception occurs during the execution of an instruction, suspend the test and regenerate or modify the instruction; if the execution efficiency of an instruction is low, adjust its parameters or logic to optimize the execution performance.

[0070] S104, executing the vehicle control instructions in sequence to generate test results corresponding to the vehicle control instructions, wherein the test results are synchronized locally and with the cloud in a visual manner.

[0071] It is understandable that in this step, after verifying and optimizing the vehicle control instructions, these instructions are executed in sequence. During the execution process, the execution status of the instructions is monitored in real time. When an abnormal situation is found, error handling or test interruption is performed immediately to avoid damage to the vehicle or affect the accuracy of the test results. Generate test results corresponding to the instructions. Including vehicle status data, performance parameters, response time, etc., reflecting the actual performance of the vehicle in different test scenarios. Processing is carried out in a visual way. Including presenting the test results in the form of charts, curves or animations, so that testers can intuitively understand the test process and results. For example, the acceleration performance of the vehicle is displayed in the form of a curve chart, with the horizontal axis being time and the vertical axis being speed. The acceleration of the vehicle at different time points can be clearly seen through the changes in the curve. In addition to local display, the test results are also synchronized to the cloud. Ensure that the local and cloud data are consistent and real-time. Through cloud synchronization, testers can access and view test results anytime and anywhere, which is convenient for remote monitoring and collaboration. Cloud synchronization also has the function of data backup and recovery. When local data is lost or damaged, testers can retrieve data from the cloud to avoid interruption and duplication of test work.

[0072] In some of these applications, in order to obtain test results more intuitively, vehicle control instructions are executed in sequence to generate test results corresponding to the vehicle control instructions. The test results are synchronized locally and in the cloud in a visual manner. The control instructions are sent to the corresponding functional areas for execution, and the feedback signals from the corresponding functional areas are monitored. Test data during the execution process is collected, and the test data includes response time, execution status, and error code. Based on the test data, the real-time updated test progress, execution status, and specific test data are displayed locally through a graphical user interface. The local test data is transmitted to the cloud server in real time to back up the test data.

[0073] It is understandable that in this application, the corresponding control instructions are first generated according to the test requirements, and these instructions are sent to different functional areas of the vehicle for execution. While sending the control instructions, the feedback signals of the corresponding functional areas are monitored. It contains important information during the execution process, such as response time, execution status, and possible error codes. By parsing the feedback signals, detailed test data is collected in real time. On the local side, the real-time updated test progress, execution status, and specific test data are displayed through the graphical user interface. This allows testers to intuitively understand the test process and discover and deal with potential problems in a timely manner. For example, the graphical user interface displays the brake response time under different conditions in the form of a bar chart, so that testers can quickly compare and analyze data. In addition to local display, the local test data is also transmitted to the cloud server in real time for backup. To ensure the security and reliability of the test data, even if the local device fails or the data is lost, the data can be restored from the cloud. At the same time, cloud backup also facilitates data sharing and collaboration among multiple users.

[0074] Combine the following Figures 2 to 6 The following describes some examples of the vehicle control command testing method of the present invention in some applications:

[0075] In this embodiment, the tester inputs a pre-arranged test set and the corresponding expected test results to generate a corresponding voice imitating a human voice, inputs the corresponding instructions, continuously and uninterruptedly performs rapid instruction analysis and processing, and finally compares the actual results with the expected results, and automatically outputs a voice test report, thereby improving the efficiency and accuracy of voice instructions.

[0076] like Figure 2 , Figure 3 and Figure 4 As shown, this embodiment includes a cloud service module, a UI interaction module, a TTS audio stream module, a semantic analysis and distribution module, a business module, and a test result collection module, wherein:

[0077] 1. Cloud service module functions include:

[0078] Store the test cases and expected result collection files uploaded by the testers. The reason why the files to be tested are uploaded to the cloud is that traditional transmission media (such as USB flash drives) do not have the characteristics of being shareable, that is, one test file is shared by multiple vehicle models, and mass-produced models generally do not support information input through media such as USB flash drives. Therefore, the car-to-cloud module with a dedicated channel is used for data transmission, which is more secure.

[0079] The test result files are automatically uploaded after the automated test case is stored. The test result files are uploaded to the cloud because mass-produced models generally do not support information extraction using media such as USB flash drives. In addition, uploading the test results to the car cloud module of the exclusive channel is also conducive to unified platform management of test results, which is more secure.

[0080] 2. The functions of the UI interaction module mainly include:

[0081] (1) Tester information input, such as test case and expected collection file name. The information that can be entered includes:

[0082] a. The test file name used for the test downloaded from the cloud. This file name can be used to download the specified test file from the cloud module to the local vehicle computer.

[0083] b. The test result file name to be saved locally. The test results will be saved to this file name and uploaded to the cloud module with this file name. Subsequent testers will also search for test results based on this file name.

[0084] c. The serial number of the case to start the test from. Only numeric input is supported, indicating the case number of the test file to start the test from. If no input is made, the test will start from the first case by default.

[0085] (2) Download the test case and the expected collection file. After entering the name of the test file to be downloaded, click "Download Test File" to download the test file from the dedicated car cloud channel according to the file name to the local computer. A toast will prompt proprietary information if the download is successful or failed.

[0086] (3) Display information such as test case set and test progress. This information is displayed using a floating window. The floating window can be dragged to any position on the screen. It can display the current test status (stopped, started, paused) and the test case list (testers can use this list to view which case is currently being tested and how many cases there are in the entire test set).

[0087] (4) Display pop-up window and other prompt information. This part is the toast prompt information of Android, such as prompting the success or failure of downloading the test file; prompting the success or failure of uploading the test result; and the success or failure of the file name entered by the user.

[0088] (5) Execute the button interaction to start the test and stop the test. Click to start the test, pause the test, etc.

[0089] 3. The main function of the TTS module is to convert the cases in the test case set into voice audio streams through the speech synthesis engine. The principle of the speech synthesis engine is to convert text information into corresponding voice signals:

[0090] (1) Text analysis: The input text will first be analyzed using natural language processing (NLP) technology to identify linguistic features such as sentence structure, part of speech, and stress position.

[0091] (2) Phonological conversion: Words in the text are mapped to corresponding phonemes or sound units.

[0092] (3) Parameter generation: Based on the text content and linguistic features, the speech synthesis engine will generate corresponding acoustic parameters, such as sound frequency, pitch, duration, etc.

[0093] (4) Waveform synthesis: Acoustic parameters are used to synthesize specific speech waveforms.

[0094] (5) Output processing: The final generated speech waveform is encoded into a specific audio format, such as PCM, WAV, MP3, etc., for storage or playback.

[0095] 4. The semantic analysis module analyzes the received audio stream file, breaks down the voice intent and distributes it to the corresponding business module.

[0096] Speech parsing to extract intent refers to extracting the user's intent and required information from speech input. It includes the following key steps:

[0097] Speech recognition: Use speech recognition technology (such as recurrent neural networks (RNN), long short-term memory networks (LSTM), gated recurrent units (GRU) and other deep learning models) to convert speech signals into text. This step converts the sound waveform into the corresponding text.

[0098] (2) Text processing: The text obtained after speech recognition is sent to the natural language processing model for syntactic analysis, entity tagging, part-of-speech tagging, etc.

[0099] (3) Intent extraction: After text processing, determine the user intent.

[0100] (4) Slot filling: In addition to the intent, relevant information needs to be extracted from the text, such as time, place, object, etc.

[0101] (5) Intention execution: perform corresponding operations, such as answering questions, executing commands, etc.

[0102] The following is an example of the parsed intent. The query is the user's words, such as "lower the air volume of the air conditioner in the whole car", and the domain, intention, action, and type are the recognized intent. Figure 4 Tuple, domain indicates which business module the command is to be distributed to, such as ac_control_down_little indicates that the command is to be distributed to the air conditioning module to execute the action; intention; action indicates the type of command distributed to the business; type is the type of action to be executed.

[0103] {

[0104] "query":"Lower the air volume of the whole vehicle's air conditioner", / / Tester's words

[0105] "domain":"ac_control", / / To which business party should it be distributed?

[0106] "intention":"instructing", / / Distribute execution actions to the business side

[0107] "action":"execute", / / Command type distributed to the business party

[0108] "type":"ac_control_down_little", / / action type

[0109] 5. The business module is the module that specifically executes the voice command results. After the business executes the voice command, it will return the execution result to the test result collection module

[0110] After the business side receives the command, for example, in the previous air conditioner example, after the air conditioner receives the voice command, it executes the action of turning down the air conditioner. After the air conditioner succeeds or fails in the execution, it will send the semantic meaning actually analyzed in the execution result in the previous step to the Figure 4 The tuple nludomain, intention, action, type, return code "ackcode" and return reply are written to the local corresponding case result using tts "ackttscontent", which is the result of a case execution. If a test set uploads multiple cases, such as hundreds or thousands, each case will be executed one by one. Each case will wait for up to 10 seconds. If there is no execution result in 10 seconds, the next case will be executed until all cases are completed.

[0111] 6. The test result collection module will organize the results locally. After the organization and analysis are completed, the test results will be uploaded to the cloud service module. The analysis method is mainly to compare the expected results and actual results of each case. Figure 4 The semantic meaning of the tuple nludomain, intention, action, type and actual result Figure 4 The tuples nludomain, intention, action, and type are compared, and the expected ackcode is compared with the actual ackcode. If there is any inconsistency, the problem case is recorded in the local result. Finally, after all cases are tested, the pass rate of all current test cases will be counted, and a complete report will be generated and automatically uploaded to the cloud module through the dedicated channel of the vehicle computer.

[0112] like Figure 5 As shown, this embodiment will be described below in combination with the application steps:

[0113] 1. Testers upload test sets and expected result files to the cloud module:

[0114] (1) The tester first writes the test file to be tested. The content of the test file is a JSON array. The JSON data format of each case is as follows:

[0115] {

[0116] "case_id":0, / / The id of the current case, which is the unique identifier of the case

[0117] "rpc_wait_time_seconds":3, / / Time interval for waiting for the next case after the business party responds

[0118] "case_describe":null, / / case description

[0119] "query":"Lower the air volume of the whole vehicle's air conditioner", / / case statement text used for testing

[0120] "category":null, / / case belongs to the group

[0121] "domain":"ac_control", / / domain of the expected result of case

[0122] "intention":"instructing", / / the intention of the expected result of the case

[0123] "action":"execute", / / action of the expected result of case

[0124] "type":"ac_control", / / type of expected result of case

[0125] "ackcode":

[0126] "Aircondition_ACSpeed_WarningACControlAlreadyClosed", / / ackcode replied by the business side of the expected result of the case

[0127] "ackttscontent":"The air conditioner is already turned off"

[0128] }

[0129] The more important fields are: query is the test sentence text used to be converted into an audio stream; domain / intention / action / type are the four-tuple fields of the expected voice service provider; ackcode is the feedback code of the expected voice service provider. The specific meanings of these fields have been explained above and will not be repeated here.

[0130] 2. Testers will upload the written test case collection files to the cloud module through the cloud management platform. Only authorized testers can log in to the platform, and a dedicated channel is used to upload test collection files to ensure security.

[0131] Testers use the UI interaction module to control the download of the test set and expected result files from the cloud to the local vehicle computer:

[0132] In the UI interaction module, the tester enters the name of the test file to be downloaded and clicks Download. The test file uploaded in the previous step will be downloaded to the local vehicle computer for use in subsequent tests.

[0133] 3. Testers start the test set test through the UI interaction module control:

[0134] Testers can use the UI interactive module to click the Start Test button to conduct automated testing. During testing, each case in the test file will be run in sequence until it is completed. It also supports starting from the specified case number. In order to prevent the test system from crashing or exiting unexpectedly in the middle and not completing the test, the case can be continued from where it was stopped.

[0135] 4. The TTS audio stream module takes the query information in the case to be tested and converts it into a voice audio stream:

[0136] The tts audio stream module will process the query in the current case in advance and convert it into a voice audio stream.

[0137] 5. The semantic analysis and distribution module analyzes the speech intent of the audio stream and distributes the results to the corresponding business processing module:

[0138] 6. The business processing module performs corresponding operations according to the instructions sent by voice, and sends the final execution results to the test result collection module:

[0139] 7. The test result collection module processes the results of the business module:

[0140] The test result collection module will collect the case test results (including the actual domain / intention / action / type intention) sent by the business module. Figure 4 Tuple and business feedback code ackCode) and the expected meaning of the corresponding case in the test set Figure 4 The tuple is compared with the business feedback code. If the actual result is consistent with the expected result, the case test passes; if the actual result is inconsistent with the expected result, the case test fails and the test result is recorded in a local file first.

[0141] For example, each case previously had an expected domain / intention / action / type quadruple value and an expected business feedback code ackCode during orchestration. For example:

[0142] "query":"Lower the air volume of the whole vehicle's air conditioner",

[0143] "expect_domain":"ac_control_domain",

[0144] "expect_intention":"instructing",

[0145] "expect_action":"ac_execute",

[0146] "expect_type":"turn_down_ac_control",

[0147] "expect_ackcode":"ok"

[0148] expect_domain indicates that this is the expected value of the domain field. Similarly, expect_intention is the expected value of intention, expect_action is the expected value of action execution, expect_type is the expected value of command type; expect_ackcode is the expected return value of the business party's execution result.

[0149] If the value of the actual executed quadruple does not match the corresponding item, the case is considered to be inconsistent with expectations and the test result fails; similarly, if the actual result is consistent with the expected quadruple result, the case is passed. Similarly, all cases are compared and recorded in the corresponding cases of the result module.

[0150] 8. The test result collection module records the test result pass rate and test error cases locally:

[0151] After all cases are run, the erroneous cases will be counted, the case pass rate of this test will be calculated, and the results will be integrated into a file to form the final test report.

[0152] 9. The cloud module uploads the local test results to the cloud:

[0153] The cloud module will transmit the final test report compiled locally to the cloud platform.

[0154] 10. Testers get the final voice command automation test results from the cloud:

[0155] Testers obtain the automated test results of the final voice commands from the cloud.

[0156] like Figure 6 As shown, this embodiment will be described below in conjunction with the overall test sequence:

[0157] 1. Testers upload test files to the cloud module;

[0158] 2. The tester operates the UI interaction module on the vehicle computer to download the test file;

[0159] 3. The UI interaction module of the vehicle computer notifies the cloud module to download the test file to the vehicle computer;

[0160] 4. The downloaded test file is used by the tts audio stream module;

[0161] 5. The tts audio stream module converts the cases in the test branch into audio stream files and gives them to the semantic analysis and distribution module;

[0162] 6. The semantic analysis and distribution module analyzes and resolves the intent in the audio stream and distributes it to the corresponding business module;

[0163] 7. After receiving the voice command, the business module executes the corresponding command and sends the execution result to the test result collection module;

[0164] 8. The result collection module compares the actual test results fed back by the business module with the expected results in the test file, finds out the cases that failed the test, compiles the final automated test report, and uploads it to the cloud module;

[0165] 9. Testers obtain the final voice command automation test result report of the vehicle computer through the cloud.

[0166] For the method steps disclosed in the above embodiments, the method steps are described as a series of action combinations for the purpose of simple description, but those skilled in the art should know that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0167] like Figure 7 As shown, the present invention also provides a vehicle control command testing system, comprising:

[0168] A test file generating module 201 is configured to generate at least one test file in response to the test rule of the vehicle control command, wherein the test file is generated according to a defined writing rule, and the writing rule gives each test file a unique identifier;

[0169] The key information acquisition module 202 is configured to traverse the test files, perform identification processing on the test files in sequence based on the priorities of the test files, and acquire key information in the test files;

[0170] The vehicle control instruction generation module 203 is configured to perform semantic analysis processing in response to the key information, obtain the semantic intent of the key information, and generate a vehicle control instruction corresponding to the test rule;

[0171] The test result execution module 204 is configured to execute the vehicle control instructions in sequence and generate test results corresponding to the vehicle control instructions, wherein the test results are synchronized locally and with the cloud in a visual manner.

[0172] It is worth noting that although only some basic functional modules are disclosed in the embodiments of the present invention, it does not mean that the composition of the present system is limited to the above basic functional modules. On the contrary, what the present embodiment wants to express is that on the basis of the above basic functional modules, those skilled in the art can arbitrarily add one or more functional modules in combination with the prior art to form an infinite number of embodiments or technical solutions. In other words, the present system is open rather than closed. Just because the present embodiment only discloses individual basic functional modules, it cannot be considered that the protection scope of the claims of the present invention is limited to the disclosed basic functional modules. At the same time, for the convenience of description, the above devices are described in terms of functions and are described separately in various units and modules. Of course, when implementing the present invention, the functions of each unit and module can be implemented in the same or one or more software and / or hardware.

[0173] like Figure 8 As shown, the present invention also provides an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the vehicle control instruction testing method.

[0174] Figure 8 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 8 The electronic device provided in the embodiment of the present invention includes: one or more processors 710 and a storage device 720; the processor 710 in the electronic device may be one or more, Figure 8 A processor 710 is taken as an example; the storage device 720 is used to store one or more programs; the one or more programs are executed by the one or more processors 710, so that the one or more processors 710 implement the vehicle control instruction testing method as described in any one of the embodiments of the present invention.

[0175] The electronic device may further include: an input device 730 and an output device 740 .

[0176] The processor 710, storage device 720, input device 730 and output device 740 in the electronic device can be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0177] The storage device 720 in the electronic device is a computer-readable storage medium that can be used to store one or more programs, which can be software programs, computer executable programs and modules, such as program instructions / modules corresponding to the vehicle control instruction test method provided in the embodiment of the present invention. The processor 710 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the storage device 720, that is, the vehicle control instruction test method in the above method embodiment is implemented.

[0178] The storage device 720 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the storage device 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 720 may further include a memory remotely arranged relative to the processor 710, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0179] The input device 730 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 740 may include a display device such as a display screen.

[0180] The present invention also provides a computer-readable storage medium storing a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the vehicle control instruction testing method.

[0181] Specifically, the computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0182] The present invention also provides a vehicle control command test terminal, wherein the vehicle control command test terminal is provided with the vehicle control command test system as described above.

[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A vehicle control command testing method, It is characterized in that include: In response to the test rule of the vehicle control instruction, at least one test file is generated, wherein the test file is generated according to a defined writing rule, and the writing rule assigns a unique identifier to each of the test files; Traversing the test files, and based on the priorities of the test files, performing identification processing on the test files in turn to obtain key information in the test files; In response to the key information, performing semantic analysis processing, obtaining the semantic intent of the key information, and generating a vehicle control instruction corresponding to the test rule; The vehicle control instructions are executed in sequence to generate test results corresponding to the vehicle control instructions, wherein the test results are synchronized locally and with the cloud in a visual manner.

2. The vehicle control command testing method according to claim 1, It is characterized in that In response to the test rules of the vehicle control command, at least one test file is generated, wherein the test file is generated according to the defined writing rules, and the writing rules give each test file a unique identifier, specifically including: The writing rules include the naming rules, file format, file structure and included data element information of the test file, wherein the writing rules are used to ensure the consistency and readability of the test file; The unique identifier includes a file number and a timestamp information, which is used to identify and manage the test file; The test file contains instructions and expected results for testing various functions of the vehicle, and each of the test files corresponds to a specific vehicle control instruction.

3. The vehicle control command testing method according to claim 1, It is characterized in that Traversing the test files, and based on the priorities of the test files, sequentially performing identification processing on the test files to obtain key information in the test files, specifically including: Sorting the test files according to a preset priority rule so that the test files with high priority are processed first; Scanning and parsing the content of the test file line by line to extract key information in the test file, wherein the key information includes test condition information; The key information is verified and screened, invalid or erroneous key information is eliminated, and corresponding records are made.

4. The vehicle control command testing method according to claim 1, It is characterized in that In response to the key information, semantic analysis processing is performed to obtain the semantic intent of the key information and generate a vehicle control instruction corresponding to the test rule, specifically including: In response to the key information, analyzing the semantic intent in the key information based on contextual information, grammatical structure, and lexical meaning of the key information; generating the vehicle control command based on the semantic intent, wherein the vehicle control command is generated according to the requirements and constraints in the test rules, combined with the actual control function and interface characteristics of the vehicle; The vehicle control instructions are also generated according to the test scenario, test conditions and test objectives.

5. The vehicle control command testing method according to claim 4, It is characterized in that Also includes: Verifying and optimizing the generated vehicle control instructions; Real-time interaction and testing are performed with the actual control function of the vehicle, real-time feedback of the execution result of the vehicle control command is continuously obtained, and the vehicle control command is dynamically adjusted and optimized according to the feedback result.

6. The vehicle control command testing method according to claim 1, It is characterized in that The vehicle control instructions are executed in sequence to generate test results corresponding to the vehicle control instructions, wherein the test results are synchronized locally and with the cloud in a visual manner, specifically including: Send the control instruction to the corresponding functional area for execution, monitor the feedback signal of the corresponding functional area, and collect test data during the execution process, wherein the test data includes response time, execution status and error code; Based on the test data, display the real-time updated test progress, execution status and specific test data on the local side through a graphical user interface; The test data on the local end is transmitted to the cloud server in real time to back up the test data.

7. A vehicle control command test system, It is characterized in that include: A test file generation module, configured to generate at least one test file in response to the test rule of the vehicle control command, wherein the test file is generated according to a defined writing rule, and the writing rule assigns a unique identifier to each of the test files; A key information acquisition module is configured to traverse the test files, perform identification processing on the test files in sequence based on the priorities of the test files, and acquire key information in the test files; A vehicle control instruction generation module is configured to perform semantic analysis processing in response to the key information, obtain the semantic intent of the key information, and generate a vehicle control instruction corresponding to the test rule; The test result execution module is configured to execute the vehicle control instructions in sequence and generate test results corresponding to the vehicle control instructions, wherein the test results are synchronized locally and with the cloud in a visual manner.

8. An electronic device, It is characterized in that include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method described in any one of claims 1 to 6.

9. A computer-readable storage medium, It is characterized in that It stores a computer program executable by an electronic device, and when the computer program runs on the electronic device, the electronic device executes the steps of the method described in any one of claims 1 to 6.

10. A vehicle control command test terminal, It is characterized in that The vehicle control command test terminal is provided with the vehicle control command test system as claimed in claim 7.

Citation Information

Cited By

  • Vehicle control instruction control method and device, electronic equipment and storage medium

    CN119310897A