Vehicle soft switching memory test method and system and vehicle
By setting the initial state value in the vehicle computer system, collecting and comparing the initial and current state values of the soft switches, and outputting test results, the problems of inefficiency and misjudgment of the existing soft switch memory test methods in the vehicle computer system are solved, and more efficient and accurate test results are achieved.
Patent Information
- Application Number
- CN202411872847.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-03-14
AI Technical Summary
The existing soft switch memory testing methods of automotive and computer systems are inefficient and prone to misjudgment, which cannot effectively solve the test problem of soft switch memory function.
By setting the initial state of all soft switches of the vehicle machine, collecting and recording the initial state value, operating according to the predetermined test conditions, obtaining the current state value, and outputting the test results by comparing the initial state value with the current state value. This method uses the CAN network acquisition device to automatically obtain the soft switch status to reduce human error.
It improves the efficiency and accuracy of soft switch testing, reduces the workload of manual comparison, avoids misjudgment, and can locate problems more quickly, saving time.
Smart Images

Figure CN119619825A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle testing technology, and more specifically, to a vehicle soft switch memory testing method, system and vehicle. Background Art
[0002] With the rapid development of automotive electronic technology, the car system has become an indispensable key component of modern cars. The car system integrates multiple functions such as navigation, entertainment, and communication, and through continuous technological innovation, it enhances the convenience and safety of driving. As an important means of interaction with the car system, the stability and reliability of the performance of the car soft switch play a vital role in improving the user experience. The car soft switch mainly uses the software switch on the central control screen, or new interaction methods such as voice and gesture to replace the traditional physical switch. This transformation not only enhances the sense of technology in the car, but also allows the driver to focus more on driving and reduce the risk of distraction due to operating the physical switch.
[0003] However, due to the widespread use of soft switches, their testing technology and methods are facing new challenges. In particular, the memory function of the soft switch may fail to remember the soft switch status in some cases, which in turn causes customer dissatisfaction.
[0004] The conventional method for testing the memory of the soft switches of the vehicle system is manual testing. The tester needs to set the soft switch status by himself, wait for the vehicle to enter a dormant state, and then observe and record the memory status of each soft switch after the vehicle wakes up again. Then, perform manual comparison to determine whether the memory status of the soft switch meets the design requirements. This method has a large overall workload, and manual comparison is prone to misjudgment. Summary of the invention
[0005] An object of the present invention is to provide a vehicle soft switch memory test method, system and vehicle to solve the problem that conventional testing means for the soft switch memory of the aforementioned vehicle system are inefficient and prone to misjudgment.
[0006] According to a first aspect of the present invention, a vehicle soft switch memory test method is provided, comprising:
[0007] Set the initial state of all soft switches of the vehicle computer;
[0008] Collect and record the initial state values of all soft switches of the vehicle computer;
[0009] Operate according to the predetermined test conditions and obtain the current state values of all soft switches after the test;
[0010] The acquired initial state value and the current state value after the test are compared, and the test result is output.
[0011] Optionally, setting the initial status of all soft switches of the vehicle computer includes setting all soft switches of the vehicle computer to be on or off.
[0012] Optionally, the initial state values of all soft switches are collected and recorded through a CAN network collection device, and the current state values of all soft switches after the test are obtained through the CAN network collection device.
[0013] Optionally, the operation is performed according to a predetermined test condition, and the current state values of all soft switches after the test are obtained, including:
[0014] Open and close all the soft switches of the vehicle computer in sequence;
[0015] The state of the soft switch set when all the soft switches are turned on is obtained and set to state a, and the state of the soft switch set when all the soft switches are turned off is set to state b.
[0016] Optionally, the memory function setting values of all soft switches are obtained, and a preset logic is used to perform judgment according to the memory function setting values.
[0017] Optionally, the preset logic includes a first logic mode, including:
[0018] When the memory function setting value of the soft switch is set to "yes" and the initial state value is "open", if both state a and state b are "open", the output test result is "NG";
[0019] When the memory function setting value of the soft switch is set to "yes" and the initial state value is "on", if the state a is "on" and the state b is "off", the output test result is "OK";
[0020] When the memory function setting value of the soft switch is set to "yes" and the initial state value is "off", if both state a and state b are "on", the output test result is "NG";
[0021] When the memory function setting value of the soft switch is set to "yes" and the initial state value is "off", if the state a is "on" and the state b is "off", the output test result is "OK".
[0022] Optionally, the preset logic includes a second logic mode, and the preset logic includes a second logic mode, and setting the memory function setting value of the soft switch to "no" includes:
[0023] First, determine whether the state a and the state b are equal, and if they are not equal, directly output "NG—the switch cannot be restored to factory settings";
[0024] If they are equal, continue to determine whether any state a or state b is equal to the initial state value. If they are equal, output "OK—test passed"; if they are not equal, output "NG—initial state test does not match".
[0025] Optionally, operations are performed according to predetermined test conditions, including:
[0026] Whether it is the "factory reset" condition is automatically determined through the CAN signal, or whether it is the "factory reset" condition is manually indicated through the reserved manual selection interface.
[0027] According to a second aspect of the present invention, a vehicle soft switch memory test system is provided, comprising:
[0028] The initial setting module is used to set the initial status of all soft switches of the vehicle computer;
[0029] The first acquisition module is used to acquire and record the initial state values of all soft switches of the vehicle computer;
[0030] The second acquisition module is used to operate according to the predetermined test conditions and obtain the current state values of all soft switches after the test;
[0031] The comparison and analysis module is used to compare the acquired initial state value with the current state value after the test, and output the test result.
[0032] According to a third aspect of the present invention, a vehicle is provided, comprising the vehicle soft switch memory test system according to the second aspect of the present invention.
[0033] The vehicle soft switch memory test method, system and vehicle disclosed in the present invention have the following technical effects:
[0034] By setting two initial states of the soft switch for each working condition, the test can more fully explore the performance of the soft switch under different starting conditions compared to the single initial state test. The test method is concise and fundamentally increases the test efficiency.
[0035] The CAN tool is used to obtain the status of each soft switch, which increases efficiency and improves the accuracy of data acquisition (compared to the test personnel checking the switch status in sequence on the vehicle), avoiding human errors and ensuring the accuracy of the test;
[0036] After the soft switch test is completed, relevant data containing many soft switch test results will be generated. The output results have a filtering function. The tester only needs to use this function to set the filtering condition to "NG" to quickly filter out the soft switch related information that does not meet the design requirements in all test results, which greatly improves the speed of finding problems and saves time.
[0037] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0039] Figure 1 A schematic flow chart of a vehicle soft switch memory test method provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0041] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0042] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0043] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0044] The specific test examples of the present invention for the two properties of the default value of the soft switch and whether to remember can be divided into the following cases:
[0045] 1. If the test condition is to restore the factory settings, all soft switch states will be restored to the designed default state after the vehicle computer is restarted;
[0046] 2. If the soft switch is memory, the soft switch will keep the original setting state after other test conditions;
[0047] 3. If the soft switch has no memory, it will return to the default state (determined by the design document) after other test conditions.
[0048] For example, the properties of the soft switch can be illustrated by the following table, which is actually stored in the form of a structure / list in the software script:
[0049]
[0050] The present invention proposes an embodiment of a vehicle soft switch memory test method. Specifically, Figure 1 shown, including:
[0051] Set the initial status of all soft switches of the vehicle computer, including setting all soft switches of the vehicle computer to open or close;
[0052] Collect and record the initial state values of all soft switches of the vehicle computer, state 1 is open, state 2 is closed; use the CAN network acquisition device, after setting the initial state, immediately collect and record the initial state values of all related soft switches, and store them in the form of a list of [soft switch name, state value].
[0053] Operate according to the predetermined test conditions and obtain the current state values of all soft switches after the test; the test conditions include but are not limited to power on, power off, switching function modes, restoring factory settings, etc.;
[0054] Compare the acquired initial state value with the current state value after the test, and output the test result. By writing an automated script, compare the acquired initial state value with the state value after the working condition ends, and judge whether the test result meets the design requirements according to the preset logic. For example, if the soft switch should keep the state unchanged under the set working condition, the test passes if the initial state and the end state are the same; otherwise, the test fails.
[0055] In the embodiment of the present invention, the initial state values of all soft switches are collected and recorded through the CAN network acquisition device, and the current state values of all soft switches after the test are obtained through the CAN network acquisition device. And one-key recording is performed through the software script, and the recording format is stored in the structure / list form of [soft switch name state value], and the order of all soft switch names is kept consistent.
[0056] In the embodiment of the present invention, the operation is performed according to the predetermined test conditions, and the current state values of all soft switches after the test are obtained, including:
[0057] Open and close all the soft switches of the vehicle computer in sequence;
[0058] The state of the soft switch set when all the soft switches are turned on is obtained and set to state a, and the state of the soft switch set when all the soft switches are turned off is set to state b.
[0059] In the embodiment of the present invention, the memory function setting values of all soft switches are obtained, and a preset logic is used to perform a judgment according to the memory function setting values; wherein the memory function setting value includes setting whether the soft switch has a memory function.
[0060] In an embodiment of the present invention, the preset logic includes a first logic mode, including:
[0061] When the memory function setting value of the soft switch is set to "yes" and the initial state value is "on", if both state a and state b are "on", the output test result is "NG", that is, the test fails;
[0062] When the memory function setting value of the soft switch is set to "yes" and the initial state value is "on", if the state a is "on" and the state b is "off", the output test result is "OK", that is, the test is passed;
[0063] When the memory function setting value of the soft switch is set to "yes" and the initial state value is "off", if both state a and state b are "on", the output test result is "NG", that is, the test fails;
[0064] When the memory function setting value of the soft switch is set to "yes" and the initial state value is "off", if the state a is "on" and the state b is "off", the output test result is "OK", that is, the test is passed. Specifically, the first logic mode is shown in the following table:
[0065]
[0066] In an embodiment of the present invention, the preset logic includes a second logic mode, and the preset logic includes a second logic mode, and setting the memory function setting value of the soft switch to "no" includes:
[0067] First, determine whether the state a and the state b are equal, and if they are not equal, directly output "NG—the switch cannot be restored to factory settings";
[0068] If they are equal, continue to determine whether any state a or state b is equal to the initial state value. If they are equal, output "OK—test passed", and if they are not equal, output "NG—initial state test does not match". Specifically include:
[0069] When the memory function setting value of the soft switch is set to "No" and the initial state value is "On", if both state a and state b are "On", the output test result is "OK", that is, the test passes;
[0070] When the memory function setting value of the soft switch is set to "No" and the initial state value is "Open", if the state a is "Open" and the state b is "Closed", the output test result is "NG—The switch cannot be restored to factory settings";
[0071] When the memory function setting value of the soft switch is set to "No" and the initial state value is "Closed", if the state a is "Opened" and the state b is "Opened", the output test result is "NG—Initial state test does not match";
[0072] When the memory function setting value of the soft switch is set to "No" and the initial state value is "Off", if both the state a and the state b are "Off", the output test result is "OK", that is, the test passes.
[0073] Specifically, the second logic mode is shown in the following table:
[0074]
[0075] In an embodiment of the present invention, the operation is performed according to a predetermined test condition, including:
[0076] Automatically determine whether it is in the "factory reset" condition through CAN signals, or reserve a manual selection interface in the test script or related test tool interface (it can be a button, check box, etc. in a graphical interface, or implemented by setting parameter input in the command line script). Through the reserved manual selection interface, manually indicate whether it is currently in the "factory reset" condition, which facilitates the correct execution of the script for models without the CAN signal, and improves the versatility and compatibility of the test process.
[0077] In the embodiment of the present invention, after completing the above-mentioned first logic mode and second logic mode, the final test result is output in the form of a set structure or list, and the specific format is: [soft switch name, whether to remember, initial state, state a, state b, result]. Each element corresponds to the set test result information, the soft switch name is used to clearly identify the specific soft switch object tested; "whether to remember" is used to indicate whether the soft switch has a memory function; "initial state" records its preset standard state for comparison with the subsequent actual test state; "state a" and "state b" are the real-time state presentations of the soft switch after the working condition test at different test stages; the last "result" field directly gives the final judgment conclusion of the soft switch test, such as "OK" means passing the test and meeting the design requirements, and "NG" means failing the test and there is an abnormal situation. In order to further improve the test efficiency and assist testers to focus more efficiently on the problematic parts, a targeted screening script is specially written. The script traverses the entire result data set according to preset rules, identifies and matches the result fields, and immediately extracts the complete record once the word "NG" is found, summarizes and organizes all "NG" items, and presents them to the tester in a clear and intuitive form. Testers do not need to manually check the massive test results one by one, but can directly conduct in-depth analysis and confirmation work on the selected "NG" items to accurately locate the root cause of the problem.
[0078] The embodiment of the present invention realizes full-link automation from test execution, data processing to result generation. On the one hand, it reduces the dependence on the number of professional testers and their skill proficiency, and enterprises can expand the test coverage under limited labor costs; on the other hand, high-quality test result feedback can locate soft switch design defects or software logic vulnerabilities faster and more accurately, prompting the R&D team to respond quickly to improvements, shorten the product iteration cycle, and accelerate the process of bringing the vehicle system to market.
[0079] The present invention also provides an embodiment of a vehicle soft switch memory test system, comprising:
[0080] The initial setting module is used to set the initial status of all soft switches of the vehicle computer;
[0081] The first acquisition module is used to acquire and record the initial state values of all soft switches of the vehicle computer;
[0082] The second acquisition module is used to operate according to the predetermined test conditions and obtain the current state values of all soft switches after the test;
[0083] The comparison and analysis module is used to compare the acquired initial state value with the current state value after the test, and output the test result.
[0084] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application, and are devices corresponding to the above-mentioned vehicle soft switch memory test method. All implementation methods in the above-mentioned method embodiment are applicable to the embodiments of the device. Its specific functions and technical effects can be found in the method embodiment part, which will not be repeated here.
[0085] The present invention also provides an embodiment of a vehicle, comprising the above-mentioned vehicle soft switch memory test system.
[0086] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings, but the above is only a preferred embodiment of the present invention. It should be noted that the technical features involved in the above embodiments and their preferred methods can be reasonably combined and matched into a variety of equivalent schemes by those skilled in the art without departing from or changing the design ideas and technical effects of the present invention; therefore, the present invention is not limited to the scope of implementation shown in the drawings, and all changes made in accordance with the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the specification and drawings, should be within the protection scope of the present invention.
Claims
1. A vehicle soft switch memory test method, characterized in that: include: Set the initial state of all soft switches of the vehicle computer; Collect and record the initial state values of all soft switches of the vehicle computer; Operate according to the predetermined test conditions and obtain the current state values of all soft switches after the test; The acquired initial state value and the current state value after the test are compared, and the test result is output.
2. The vehicle soft switch memory test method according to claim 1, characterized in that: Set the initial status of all soft switches of the vehicle computer, including setting all soft switches of the vehicle computer to open or close.
3. The vehicle soft switch memory test method according to claim 1, characterized in that: The initial state values of all soft switches are collected and recorded through the CAN network collection device, and the current state values of all soft switches after the test are obtained through the CAN network collection device.
4. The vehicle soft switch memory test method according to claim 1, characterized in that: Operate according to the predetermined test conditions and obtain the current status values of all soft switches after the test, including: Open and close all the soft switches of the vehicle computer in sequence; The state of the soft switch set when all the soft switches are turned on is obtained and set to state a, and the state of the soft switch set when all the soft switches are turned off is set to state b.
5. The vehicle soft switch memory test method according to claim 4, characterized in that: The memory function setting values of all soft switches are obtained, and a preset logic is used to make a judgment based on the memory function setting values.
6. The vehicle soft switch memory test method according to claim 5, characterized in that: The preset logic includes a first logic mode, including: When the memory function setting value of the soft switch is set to "yes" and the initial state value is "on", if both state a and state b are "on", the output test result is "NG"; When the memory function setting value of the soft switch is set to "yes" and the initial state value is "on", if the state a is "on" and the state b is "off", the output test result is "OK"; When the memory function setting value of the soft switch is set to "yes" and the initial state value is "off", if both state a and state b are "on", the output test result is "NG"; When the memory function setting value of the soft switch is set to "yes" and the initial state value is "off", if the state a is "on" and the state b is "off", the output test result is "OK".
7. The vehicle soft switch memory test method according to claim 5, characterized in that: The preset logic includes a second logic mode, setting the memory function setting value of the soft switch to "no", specifically including: First, determine whether the state a and the state b are equal, and if they are not equal, directly output "NG—the switch cannot be restored to factory settings"; If they are equal, continue to determine whether any of the state a or the state b is equal to the initial state value. If they are equal, output "OK—test passed"; if they are not equal, output "NG—initial state test does not match".
8. The vehicle soft switch memory test method according to claim 1, characterized in that: Operate according to the predetermined test conditions, including: Whether it is the "restore factory settings" condition is automatically determined through the CAN signal, or whether it is currently in the "restore factory settings" condition is manually indicated through the reserved manual selection interface.
9. A vehicle soft switch memory test system, characterized in that: include: The initial setting module is used to set the initial status of all soft switches of the vehicle computer; The first acquisition module is used to acquire and record the initial state values of all soft switches of the vehicle computer; The second acquisition module is used to operate according to the predetermined test conditions and obtain the current state values of all soft switches after the test; The comparison and analysis module is used to compare the acquired initial state value with the current state value after the test, and output the test result.
10. A vehicle, characterized in that: Including the vehicle soft switch memory test system as described in claim 9.