Function verification method and device, equipment and storage medium
By generating and processing test signals, verifying the functions of the suspension control software, the problem of verification of the fault judgment function of the suspension control software in the prior art is solved, and compatibility testing and simplifying the verification process is realized.
Patent Information
- Application Number
- CN202510310401.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-17
- Publication Date
- 2025-06-24
AI Technical Summary
The prior art is difficult to effectively verify the fault judgment function of suspension control software, especially due to the high cost and diversity of suspension sensors, compatibility testing cannot be carried out.
By generating test signals for triggering target functions, processing these signals with a preset suspension sensor, and sending the corresponding suspension gap data to the suspension vehicle to be tested, triggering its target function, thereby verifying the functions of the suspension control software.
The function verification of the suspension control software is realized, without changing the software code, not destroying the sensor, and is compatible with verification of multiple functions, simplifying the verification process.
Smart Images

Figure CN120196006A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of suspension control, and particularly relates to a function verification method, device, equipment and storage medium. Background Art
[0002] The suspension control software is the key to maintaining the stable suspension of the maglev train; the suspension sensor itself is expensive and has many types of faults, and destructive fault tests cannot be carried out. Currently, to verify the suspension sensor fault judgment function of the suspension control software, fault simulation needs to be carried out first. For digital suspension sensors, the fault simulation method is to customize a set of special programmable suspension sensors from the supplier, and set different fault types through the supporting host computer, but the equipment is expensive and cannot be compatible with analog suspension sensors; for analog suspension sensors, the supplier cannot provide special programmable suspension sensors, and only simple faults can be simulated by interfering with the probe through a simple tooling, and the faults cannot be quantitatively simulated.
[0003] It can be seen that how to verify whether the fault judgment function of the suspension control software meets the requirements is a problem to be solved in this field. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a function verification method, device, equipment and storage medium, which generate test signals according to the function definition of the suspension control software, and send the suspension gap data corresponding to the test signals to the to-be-tested suspension vehicle through the suspension sensor; during the process, the code of the suspension control software does not need to be changed, the suspension sensor is not damaged, and the verification of multiple functions can be compatible; the function verification process of the suspension control software is simplified. The specific scheme is as follows:
[0005] In a first aspect, the present application provides a function verification method, which is applied to a simulation platform and includes:
[0006] Generate a test signal for triggering the target function according to the definition of the target function of the suspension control software corresponding to the to-be-tested suspension vehicle;
[0007] Process the test signal through a preset suspension sensor, and send the obtained suspension gap data to the to-be-tested suspension vehicle, so that the to-be-tested suspension vehicle triggers the target function based on the suspension gap data and obtains a corresponding test result;
[0008] Verify the test result and the test signal to obtain a verification result for the suspension control software.
[0009] Optionally, the generating a test signal for triggering the target function according to the definition of the target function of the suspension control software corresponding to the to-be-tested suspension vehicle includes:
[0010] Based on the test requirements of each target function of the suspension software corresponding to the suspension vehicle to be tested, determine the operating state signals required for each of the target functions during testing;
[0011] Generate test signals for triggering each of the target functions according to the definition of the target functions of the suspension control software corresponding to the suspension vehicle to be tested and the operating state signals.
[0012] Optionally, the suspension vehicle to be tested triggers the target function based on the suspension gap data and obtains corresponding test results, including:
[0013] Obtain the suspension gap data from the preset suspension sensor by the suspension vehicle to be tested and obtain the operating state signal from the preset host computer;
[0014] Trigger the target function based on the suspension gap data and the operating state signal to obtain corresponding test results.
[0015] Optionally, the generation of test signals for triggering the target function according to the definition of the target functions of the suspension control software corresponding to the suspension vehicle to be tested includes:
[0016] Obtain the suspension signal of the suspension vehicle to be tested forwarded by the preset signal conditioning box; the suspension signal includes suspension gap, suspension acceleration, and suspension current;
[0017] Generate test signals for triggering each of the target functions based on the suspension signal and the definition of each target function.
[0018] Optionally, the processing of the test signal by the preset suspension sensor and the sending of the processed suspension gap data to the suspension vehicle to be tested includes:
[0019] Obtain the test signal transmitted by the preset signal conditioning box through the preset suspension sensor to process the test signal through the preset suspension sensor to obtain corresponding suspension gap data; the preset suspension sensor is a digital suspension sensor or an analog suspension sensor;
[0020] Send the suspension gap data to the suspension vehicle to be tested.
[0021] Optionally, the verification of the test results and the test signals to obtain a verification result for the suspension control software includes:
[0022] Verify the test results corresponding to each of the target functions and the corresponding test signals based on the preset expected results, and generate a target verification result for the suspension control software according to the initial verification results corresponding to each of the target functions.
[0023] Optionally, generating a target verification result for the suspension control software according to the initial verification results corresponding to the respective target functions includes:
[0024] If the initial verification result corresponding to the current function among the respective target functions indicates non - compliance with the corresponding preset expected result, modify the suspension control software based on the difference between the initial verification result and the preset expected result;
[0025] Obtain a new initial verification result corresponding to the current function through the modified suspension control software, and jump to the step of verifying the test results and the corresponding test signals corresponding to the respective target functions based on the preset expected result;
[0026] Until all the initial verification results indicate compliance with the corresponding preset expected results, generate a target verification result indicating that the suspension control software has passed the verification.
[0027] In a second aspect, the present application provides a function verification device, including:
[0028] A test signal generation module, configured to generate a test signal for triggering the target function according to the definition of the target function of the suspension control software corresponding to the to - be - tested suspension vehicle;
[0029] A function trigger module, configured to process the test signal through a preset suspension sensor and send the obtained suspension gap data to the to - be - tested suspension vehicle, so that the to - be - tested suspension vehicle triggers the target function based on the suspension gap data to obtain a corresponding test result;
[0030] A verification module, configured to verify the test result and the test signal to obtain a verification result for the suspension control software.
[0031] In a third aspect, the present application provides an electronic device, including:
[0032] A memory, configured to store a computer program;
[0033] A processor, configured to execute the computer program to implement the function verification method as described above.
[0034] In a fourth aspect, the present application provides a computer - readable storage medium, configured to store a computer program, and when the computer program is executed by a processor, the function verification method as described above is implemented.
[0035] It can be seen that, first, according to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested, the present application generates a test signal for triggering the target function; then, processes the test signal through a preset suspension sensor, and sends the obtained suspension gap data to the suspension vehicle to be tested, so that the suspension vehicle to be tested triggers the target function based on the suspension gap data to obtain corresponding test results; and then verifies the test results and the test signal to obtain a verification result for the suspension control software. In this way, according to the function definition of the suspension control software, the present application can generate corresponding test signals, and through the suspension sensor, the suspension gap data corresponding to the test signal can be sent to the suspension vehicle to be tested to trigger the corresponding function of the suspension control software; during the process, it is not necessary to change the code of the suspension control software, the suspension sensor will not be damaged, and it can be compatible with the verification of multiple functions; the function verification process of the suspension control software is simplified. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.
[0037] Figure 1 It is a flowchart of a function verification method disclosed in the present application;
[0038] Figure 2 It is a flowchart of a specific function verification method disclosed in the present application;
[0039] Figure 3 It is a schematic diagram of a connection relationship disclosed in the present application;
[0040] Figure 4 It is a schematic diagram of the structure of a function verification device disclosed in the present application;
[0041] Figure 5 It is a structural diagram of an electronic device disclosed in the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0043] See Figure 1As shown in the figure, an embodiment of the present invention discloses a function verification method, which is applied to a simulation platform and includes:
[0044] Step S11: Generate a test signal for triggering the target function according to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested.
[0045] In an embodiment of the present application, in order to verify the functions of the suspension control software of the suspension vehicle, it is necessary to clarify the definitions of each function; for example, the definition of a certain function is that the average value of a certain gap is less than A and the duration is greater than T, which is defined as the gap failure of this road, and report the gap failure of this road to the host computer; then various test signals that can be used to trigger this function can be generated according to the function definition.
[0046] In a specific embodiment, the generating a test signal for triggering the target function according to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested may include: determining the operating state signals required for each target function during testing based on the test requirements of each target function of the suspension software corresponding to the suspension vehicle to be tested; generating a test signal for triggering each target function according to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested and the operating state signals. Specifically, in the process of generating test signals for each target function, the operating state requirements of each target function during testing can be determined in combination with the test requirements, for example, realizing dynamic suspension or abnormal landing; further, the operating state signals of the suspension vehicle required for the corresponding function during testing can be determined. Then, in combination with the definition of the target function of the suspension control software and the operating state signals of the corresponding suspension vehicle, test signals for triggering each target function are generated. It can be understood that the operating state signals can be set by the user through the host computer, and the host computer sends the operating state signals (vehicle-mounted signals) to the suspension controller, and the operating state signals are an integral part of the test signal input.
[0047] In another specific embodiment, the generating a test signal for triggering the target function according to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested may include: obtaining the suspension signal of the suspension vehicle to be tested forwarded by a preset signal conditioning box; the suspension signal includes suspension gap, suspension acceleration and suspension current; generating a test signal for triggering each target function based on the suspension signal and the definition of each target function. Specifically, in the process of generating the test signal, the simulation platform needs to obtain relevant variables of the suspension vehicle, and the suspension signal of the suspension vehicle forwarded by the signal conditioning box, and this signal may include variables such as suspension gap, suspension acceleration and suspension current; after being processed by the simulation platform and combined with the definitions of each target function of the suspension control software, test signals for triggering relevant functions can be generated. It should be noted that the suspension vehicle can send the suspension signal to the simulation platform, and specifically, it can be transferred and transmitted through a suspension sensor and a signal conditioning box.
[0048] Step S12: Process the test signal through a preset suspension sensor, and send the obtained suspension gap data to the to-be-tested suspension vehicle, so that the to-be-tested suspension vehicle triggers the target function based on the suspension gap data to obtain corresponding test results.
[0049] In the embodiment of the present application, a test signal for testing the functions of the suspension control software can be generated through the above steps. Further, the test signal can be processed through a preset suspension sensor, and the signal can be converted into corresponding suspension gap data; the suspension sensor can send the suspension gap data to the suspension vehicle, so that the to-be-tested suspension vehicle can trigger corresponding target functions based on the suspension gap data to obtain corresponding test results.
[0050] In a specific embodiment, the process of processing the test signal through a preset suspension sensor and sending the obtained suspension gap data to the to-be-tested suspension vehicle may include: obtaining the test signal transmitted through a preset signal conditioning box through the preset suspension sensor, so as to process the test signal through the preset suspension sensor to obtain corresponding suspension gap data; the preset suspension sensor is a digital suspension sensor or an analog suspension sensor; sending the suspension gap data to the to-be-tested suspension vehicle. Specifically, the simulation platform includes a simulation model and a corresponding signal conditioning box. The generated test signal can be converted into another form through the signal conditioning box, and the converted test signal is sent to a preset suspension sensor. The suspension sensor processes the test signal to obtain corresponding suspension gap data, and the suspension gap data can be parsed by the suspension controller to trigger corresponding functions of the suspension control software. It should be noted that the preset suspension sensor in this embodiment can be a digital suspension sensor or an analog suspension sensor. During the process of verifying the functions, the suspension control software is not changed, and the suspension sensor is not damaged.
[0051] In a specific embodiment, the process that the to-be-tested suspension vehicle triggers the target function based on the suspension gap data to obtain corresponding test results may include: obtaining the suspension gap data from the preset suspension sensor through the to-be-tested suspension vehicle, and obtaining the operation state signal from a preset host computer; triggering the target function based on the suspension gap data and the operation state signal to obtain corresponding test results. Specifically, the to-be-tested suspension vehicle is connected to the host computer and a preset suspension sensor, and can obtain in-vehicle signals, that is, operation state signals for the suspension vehicle, from the host computer; and can obtain the suspension gap data (obtained by processing the test signal) from the suspension sensor; further, based on the operation state signal and the suspension gap data, the suspension vehicle can trigger relevant target functions to implement the function test of the suspension control software and obtain corresponding test results.
[0052] Step S13: Verify the test result and the test signal to obtain a verification result for the suspension control software.
[0053] In this application, verifying the test result and the test signal to obtain a verification result for the suspension control software may include: verifying the test result corresponding to each target function and the corresponding test signal based on a preset expected result, and generating a target verification result for the suspension control software according to the initial verification results corresponding to each target function. Specifically, the test result corresponding to the test signal can be obtained through the above steps, and the test signal is generated according to the definition of the relevant function, that is, based on the definition of the relevant function, there is a unique expected result corresponding to the test signal; for the function tested using a certain test signal, the corresponding test result and the corresponding expected result can be used for verification to obtain the verification result of the corresponding function of the suspension control software.
[0054] In a specific embodiment, generating a target verification result for the suspension control software according to the initial verification results corresponding to each target function may include: if the initial verification result corresponding to the current function among each target function indicates non - compliance with the corresponding preset expected result, modifying the suspension control software based on the difference between the initial verification result and the preset expected result; obtaining a new initial verification result corresponding to the current function through the modified suspension control software, and jumping to the step of verifying the test result corresponding to each target function and the corresponding test signal based on the preset expected result; until each initial verification result indicates compliance with the corresponding preset expected result, generating a target verification result indicating that the suspension control software passes the verification. Specifically, during the function verification process of the suspension control software, if the initial verification result corresponding to a certain function indicates non - compliance with its corresponding expected result, then the suspension control software needs to be adjusted; specifically, it is to modify the suspension control software based on the difference between the initial verification result and the expected result, and use the test signal to test the modified suspension control software to obtain a new initial verification result. Modifying the suspension control software during the test process can directly obtain a suspension control software in which each function meets the expectations after the test.
[0055] In another specific embodiment, all the test signals can be directly used to test the relevant functions of the suspension control software to obtain all the test results. Then, these test results are verified to determine the abnormal test results that do not meet the expectations. Then, the suspension control software is uniformly modified based on the abnormal test results until all modifications are completed. Then, the relevant functions are tested using the modified suspension control software, and the originally generated test signals are also used to obtain new test results. If all the new test results obtained by the finally modified suspension control software meet the expectations, that is, the test results obtained when the modified suspension control software reuses the corresponding test signals for function testing all meet the expectations, the testing is ended; at the same time, it is ensured that all functions of the suspension control software can operate normally. Further, the test results are displayed through the host computer, and relevant staff participate in the modification process of the suspension control software. After the modification is completed, the relevant functions of the modified suspension control software are retested through the simulation platform, and the new test results obtained are redisplayed through the host computer for result verification.
[0056] It can be seen that according to the function definition of the suspension control software, the present application can generate corresponding test signals, and the suspension gap data corresponding to the test signals can be sent to the suspension vehicle to be tested via the suspension sensor, triggering the corresponding functions of the suspension control software. During the process, there is no need to change the code of the suspension control software, and the suspension sensor will not be damaged, and it can be compatible with the verification of multiple functions, simplifying the function verification process of the suspension control software.
[0057] As Figure 2 shown, the embodiment of the present application discloses a function verification method, which specifically includes:
[0058] In the embodiment of the present application, first, the connection relationship between the simulation platform and the suspension vehicle should be constructed; as Figure 3As shown, the simulation platform can be dSPACE (an open-source software platform). The simulation platform can set variables such as the suspension gap, suspension acceleration, and suspension current of the suspension vehicle to be tested according to the test requirements and input them as test signals. Moreover, it can display the input data of the test signals to ensure the intuitiveness and accuracy of the test signal input. The signal conditioning box is used to transfer and isolate the transmission interaction of the test signals. Specifically, it can include first transmitting variables such as the suspension gap, suspension acceleration, and suspension current of the suspension vehicle platform to the simulation platform, and then the simulation platform, according to the test requirements, transmits the original signal or the test signal to the suspension controller of the suspension vehicle platform. The suspension vehicle platform specifically includes real components of the suspension system such as the suspension controller and suspension electromagnets. It is the carrier for realizing the functions of the suspension control software, and can realize the static suspension and landing functions of the suspension system. It can also, in combination with the vehicle-mounted signals sent by the diagnostic host computer (i.e., the operating state signals in the above embodiments), simulate and realize functions such as the dynamic suspension and abnormal landing of the suspension system. The host computer and the suspension vehicle can communicate through CAN (a serial communication protocol). Here, the diagnostic host computer is used to send vehicle-mounted signals and display test results. It can send vehicle-mounted signals (including signals such as speed and operating state change) to the suspension controller, which are also part of the test signals. It can also, during the test process, display in real time the test results of the suspension control software such as the fault judgment of the suspension sensor, and observe whether the test results conform to the software function definition. It should be noted that the test signal is not necessarily a single signal. It can be a combination of several signals or multiple combinations. The specific set parameters are related to the software function definition. The vehicle-mounted signals sent are generated according to the content of the vehicle diagnostic network protocol. According to the analyzed test requirements, it is decided whether to use the diagnostic host computer to send vehicle-mounted signals to the suspension controller as part of the test signal input.
[0059] Then start the test, execute the test for the first software function item point, analyze the test requirements through the simulation platform, and set the test signal input; for example, the definition of the first suspension control software function is: if the average value of a certain gap is less than A and the duration is greater than T, it is defined as a fault of this gap, and this gap fault is reported through the diagnostic network. Correspondingly, the suspension car platform can transmit the 4-channel gap signals (gap 1, gap 2, gap 3, and gap 4) of the suspension sensor to the simulation platform through the signal conditioning box; analyze the test requirements through the simulation platform: there are 2 test thresholds in the function item point, the average gap value A and the duration T, that is, there are 4 permutations and combinations. According to the test requirements of the test function item point of the suspension control software, since there are exactly 4 independent gaps, a set of test input signals can be set, set the average value of gap 1 less than A and the duration greater than T (expected to report a gap 1 fault), the average value of gap 2 greater than or equal to A and the duration greater than T (expected not to report a gap 2 fault), set the average value of gap 3 less than A and the duration less than or equal to T (expected not to report a gap 3 fault), set the average value of gap 4 greater than A and the duration less than or equal to T (expected not to report a gap 4 fault). Further, the test signal can be transmitted to the suspension controller of the suspension car platform through the signal conditioning box, and the suspension control software makes a logical judgment on the test signal to obtain the corresponding test result. This first software function item point does not require the on-vehicle signal to be sent from the diagnostic network upper computer to the suspension controller, only the test result needs to be displayed. If the test result is that gap 1 reports a fault and gaps 2, 3, and 4 do not report faults, then it is judged that the test result meets the expected result defined by this software function, and proceed to the next software function item point. Otherwise, it is judged that the test result does not meet the expected result defined by this software function, modify the suspension control software, and then conduct the test for this software function item point after the modification is completed. After the test of the first software function item point is completed, sequentially conduct the tests for the second to the Nth software function item points, and the set test input signals are adjusted according to the specific software function item points. When all the software item point functions are tested, the test ends.
[0060] It can be seen that in the embodiment of the present application, first, the communication between the suspension car, the simulation platform, the upper computer, etc. should be established, and then according to the requirements defined by the software function, the test signal input is set by using the simulation platform, and the test signal is transmitted to the suspension controller through the signal conditioning box; the function test of the suspension control software of the suspension car is realized. And the test result can be viewed through the upper computer, and the suspension control software can be modified based on the test result until all the function tests are completed. In this way, on the basis of simulating the actual operation of the suspension control system, when performing the function test, it is not necessary to change the code of the suspension control software, and the suspension sensor will not be damaged, and it can be compatible with various function tests of various suspension sensors.
[0061] Such as Figure 4As shown in the figure, an embodiment of the present application discloses a function verification device, including:
[0062] A test signal generation module 11, configured to generate a test signal for triggering the target function according to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested;
[0063] A function trigger module 12, configured to process the test signal through a preset suspension sensor and send the obtained suspension gap data to the suspension vehicle to be tested, so that the suspension vehicle to be tested triggers the target function based on the suspension gap data and obtains a corresponding test result;
[0064] A verification module 13, configured to verify the test result and the test signal to obtain a verification result for the suspension control software.
[0065] It can be seen that according to the function definition of the suspension control software, the present application can generate corresponding test signals. The suspension gap data corresponding to the test signals can be sent to the suspension vehicle to be tested through the suspension sensor to trigger the corresponding function of the suspension control software. During the process, it is not necessary to change the code of the suspension control software, and the suspension sensor will not be damaged. It can be compatible with the verification of multiple functions and simplifies the function verification process of the suspension control software.
[0066] In a specific embodiment, the test signal generation module 11 may include:
[0067] An operating state signal determination unit, configured to determine the operating state signals required for each target function during testing based on the test requirements of each target function of the suspension software corresponding to the suspension vehicle to be tested;
[0068] A first signal generation unit, configured to generate test signals for triggering each target function according to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested and the operating state signals.
[0069] In another specific embodiment, the function trigger module 12 may include:
[0070] A data acquisition unit, configured to obtain the suspension gap data from the preset suspension sensor through the suspension vehicle to be tested and obtain the operating state signal from a preset upper computer;
[0071] A function trigger unit, configured to trigger the target function based on the suspension gap data and the operating state signal to obtain a corresponding test result.
[0072] In a specific embodiment, the test signal generation module 11 may include:
[0073] A suspension signal acquisition unit for acquiring the suspension signals of the to-be-tested maglev vehicle forwarded by a preset signal conditioning box; the suspension signals include suspension gap, suspension acceleration, and suspension current;
[0074] A second signal generation unit for generating test signals for triggering each of the target functions based on the suspension signals and the definitions of the respective target functions.
[0075] In a specific embodiment, the function trigger module 12 may include:
[0076] A signal processing unit for acquiring the test signals transmitted by the preset signal conditioning box through a preset suspension sensor, so as to process the test signals through the preset suspension sensor to obtain corresponding suspension gap data; the preset suspension sensor is a digital suspension sensor or an analog suspension sensor;
[0077] A data sending unit for sending the suspension gap data to the to-be-tested maglev vehicle.
[0078] In a specific embodiment, the verification module 13 may include:
[0079] A verification sub-module for verifying the test results corresponding to each of the target functions and the corresponding test signals based on a preset expected result, and generating a target verification result for the suspension control software according to the initial verification results corresponding to each of the target functions.
[0080] In another specific embodiment, the verification sub-module may include:
[0081] A modification unit for modifying the suspension control software based on the difference between the initial verification result and the preset expected result when the initial verification result corresponding to the current function among each of the target functions indicates non-conformance to the corresponding preset expected result;
[0082] A jump unit for obtaining a new initial verification result corresponding to the current function through the modified suspension control software, and jumping to the step of verifying the test results corresponding to each of the target functions and the corresponding test signals based on the preset expected result;
[0083] A verification result generation unit for generating a target verification result indicating that the suspension control software is verified to pass until each of the initial verification results indicates conformance to the corresponding preset expected result.
[0084] Furthermore, an embodiment of the present application also discloses an electronic device, Figure 5It is a structural diagram of an electronic device 20 shown according to an exemplary embodiment, and the content in the figure should not be regarded as any limitation on the scope of use of this application.
[0085] Figure 5 It is a schematic structural diagram of an electronic device 20 provided by an embodiment of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the function verification method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0086] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is any communication protocol applicable to the technical solution of this application, and no specific limitation is imposed on it here; the input / output interface 25 is used to obtain external input data or output data to the outside, and its specific interface type can be selected according to specific application needs, and no specific limitation is made here.
[0087] In addition, as a carrier for resource storage, the memory 22 may be a read-only memory, a random access memory, a disk, or an optical disc, etc., and the resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method may be temporary storage or permanent storage.
[0088] Among them, the operating system 221 is used to manage and control each hardware device and the computer program 222 on the electronic device 20, and it may be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the function verification method executed by the electronic device 20 disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program that can be used to complete other specific tasks.
[0089] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the function verification method disclosed above. For the specific steps of this method, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not described herein again.
[0090] In this specification, the various embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple. For the relevant parts, reference can be made to the description in the method section.
[0091] Those skilled in the art can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0092] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of both. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0093] Finally, it should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
[0094] The technical solutions provided in this application have been introduced in detail above. Specific examples are used herein to elaborate on the principles and implementation manners of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to this application.
Claims
1. A function verification method, characterized in that: Applied to simulation platforms, including: According to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested, a test signal for triggering the target function is generated; The test signal is processed by a preset suspension sensor, and the suspension gap data obtained by the processing is sent to the suspension vehicle to be tested, so that the suspension vehicle to be tested triggers the target function based on the suspension gap data to obtain a corresponding test result; The test result and the test signal are verified to obtain a verification result for the suspension control software.
2. The function verification method according to claim 1, characterized in that: The step of generating a test signal for triggering the target function according to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested comprises: Based on the test requirements of each target function of the suspension software corresponding to the suspension vehicle to be tested, determining the operating state signal required for each target function during the test; According to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested and the operation status signal, a test signal for triggering each of the target functions is generated.
3. The function verification method according to claim 2, characterized in that: The suspended vehicle to be tested triggers the target function based on the suspended gap data to obtain corresponding test results, including: The suspended vehicle to be tested obtains the suspended gap data from the preset suspended sensor, and obtains the operating status signal from a preset host computer; The target function is triggered based on the suspension gap data and the operating status signal to obtain a corresponding test result.
4. The function verification method according to claim 1, characterized in that: The step of generating a test signal for triggering the target function according to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested comprises: Acquire the suspension signal of the suspended vehicle to be tested forwarded by a preset signal conditioning box; the suspension signal includes a suspension gap, a suspension acceleration and a suspension current; Based on the suspension signal and the definition of each target function, a test signal for triggering each target function is generated.
5. The function verification method according to claim 1, characterized in that: The method of processing the test signal by a preset suspension sensor and sending the suspension clearance data obtained by the processing to the suspension vehicle to be tested includes: The test signal transmitted by the preset signal conditioning box is acquired through the preset suspension sensor, so as to process the test signal through the preset suspension sensor to obtain corresponding suspension gap data; the preset suspension sensor is a digital suspension sensor or an analog suspension sensor; The suspension gap data is sent to the suspension vehicle to be tested.
6. The function verification method according to any one of claims 1 to 5, characterized in that: The verifying the test result and the test signal to obtain a verification result for the suspension control software includes: The test results and the corresponding test signals corresponding to each of the target functions are verified based on preset expected results, and a target verification result for the suspension control software is generated according to the initial verification results corresponding to each of the target functions.
7. The function verification method according to claim 6, characterized in that: Generating a target verification result for the suspension control software according to the initial verification results corresponding to each target function includes: If the initial verification result representation corresponding to the current function in each of the target functions does not conform to the corresponding preset expected result, modifying the suspension control software based on the difference between the initial verification result and the preset expected result; Obtaining a new initial verification result corresponding to the current function through the modified suspension control software, and jumping to the step of verifying the test results and the corresponding test signals corresponding to each target function based on the preset expected result; Until all the initial verification results are characterized as meeting the corresponding preset expected results, a target verification result representing the passing of the verification of the suspension control software is generated.
8. A functional verification device, characterized in that: include: A test signal generating module, used for generating a test signal for triggering the target function according to the definition of the target function of the suspension control software corresponding to the suspension vehicle to be tested; A function triggering module, used for processing the test signal through a preset suspension sensor, and sending the suspension gap data obtained through the processing to the suspension vehicle to be tested, so that the suspension vehicle to be tested triggers the target function based on the suspension gap data to obtain a corresponding test result; The verification module is used to verify the test result and the test signal to obtain a verification result for the suspension control software.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the function verification method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the function verification method according to any one of claims 1 to 7.