CN-121984887-A - Method, system, equipment and medium for testing environmental adaptability of communication module of Internet of things
Abstract
The application discloses a method, a system, equipment and a medium for testing environmental suitability of an internet of things communication module. The method comprises the steps of responding to the state pre-checking passing of a module to be tested, executing a test case, sending a corresponding test instruction sequence to the module to be tested, dynamically adjusting power consumption data of the module to be tested in the test, receiving response data returned by the module to be tested, recording a test log based on the response data, and analyzing the test log based on a machine learning model to generate a test report. Through the mode, the method and the device can avoid testing under abnormal conditions by performing state pre-checking on the module to be tested, ensure the accuracy and reliability of a test result, comprehensively evaluate the low-power consumption performance and the endurance capacity of the module by dynamically adjusting the power consumption data in the test and considering the power consumption change of the module under different working states, automatically generate a test report through a machine learning model, reduce manual intervention and improve the generation efficiency and accuracy of the test report.
Inventors
- DING WENQI
Assignees
- 深圳市有方科技股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251211
Claims (10)
- 1. The method for testing the environmental suitability of the communication module of the Internet of things is characterized by comprising the following steps of: Responding to the state pre-checking passing of the module to be tested, executing a test case, sending a corresponding test instruction sequence to the module to be tested, and dynamically adjusting the power consumption data of the module to be tested in the test; receiving response data returned by the module to be tested, and recording a test log based on the response data; and analyzing the test log based on a machine learning model to generate a test report.
- 2. The method for testing environmental suitability of an internet of things communication module according to claim 1, wherein the pre-checking of the state of the module to be tested comprises: detecting the standing-wave ratio of an antenna of the module to be detected, and judging whether the standing-wave ratio is smaller than a preset standing-wave ratio threshold value or not; collecting the signal intensity of a base station received by the module to be tested, and judging whether the signal intensity of the base station is larger than a preset intensity threshold value or not; judging whether the state of the SIM card is normal or not based on the SIM card interface detection circuit of the module to be tested; and responding to the standing-wave ratio being smaller than the preset standing-wave ratio threshold, the base station signal strength being larger than the preset strength threshold and the SIM card being in a normal state, the module to be tested passes the state pre-check.
- 3. The method for testing environmental suitability of an internet of things communication module according to claim 1, wherein dynamically adjusting the power consumption data of the module under test during testing comprises: Collecting power consumption data of the module to be tested in real time in the test; And adjusting the working parameters of the module to be tested based on an optimized proportional-integral-derivative control algorithm and a preset power consumption threshold corresponding to the test case so as to dynamically adjust the power consumption data.
- 4. The method for testing environmental suitability of an internet of things communication module according to claim 3, wherein the adjusting the working parameters of the module to be tested based on the optimized proportional-integral-derivative control algorithm and a preset power consumption threshold corresponding to the test case to dynamically adjust the power consumption data comprises: calculating the power consumption errors of the power consumption data and the preset power consumption threshold in real time based on the test case; Setting a proportional gain in a proportional-integral-derivative control algorithm to a first value and enabling a derivative look-ahead control mode to calculate a control amount in response to the power consumption error exceeding a first error set point, setting a proportional gain in a proportional-integral-derivative control algorithm to a second value smaller than the first value and enabling integral control, setting an integral gain to a third value to calculate the control amount in response to the power consumption error being smaller than the second error set point, setting an integral gain in a proportional-integral-derivative control algorithm to a fourth value larger than the third value and enabling an integral separation control mode to calculate the control amount; And adjusting the working parameters of the module to be tested based on the control quantity so as to dynamically adjust the power consumption data.
- 5. The method for testing the environmental suitability of the communication module of the internet of things according to claim 1, wherein the test log at least comprises a power consumption curve and environmental parameters; the machine learning model-based analysis of the test log generates a test report comprising: Inputting the power consumption curve and the environmental parameters into a long-period and short-period memory network, extracting abnormal characteristics and outputting an abnormal event list; based on a pre-constructed historical fault knowledge graph, carrying out root cause positioning on the abnormal characteristics to obtain corresponding fault reasons; inputting the abnormal characteristics and the corresponding fault reasons into a reinforcement learning model to generate optimization suggestions; and generating the test report based on the test log, the abnormal event list, the fault reasons and the optimization suggestions.
- 6. The method for testing environmental suitability of an internet of things communication module according to claim 5, wherein the analyzing the test log based on a machine learning model to generate a test report further comprises: based on the test log and the attention mechanism, respectively calculating a test passing rate, a power consumption stability score and an environmental suitability score to calculate a health score; Based on the health score, the test report is generated.
- 7. The method for testing environmental suitability of an internet of things communication module according to claim 1, further comprising, before sending a test instruction to the module to be tested: and placing the module to be tested in a cavity of an incubator, and controlling a controller of the incubator according to the test case to dynamically adjust the environmental parameters.
- 8. The system for testing the environmental adaptability of the communication module of the Internet of things is characterized by comprising a module to be tested and a testing host: The module to be tested is connected with the test host based on a universal interface; Responding to the state pre-checking passing of the module to be tested, the test host executes a test case, sends a corresponding test instruction sequence to the module to be tested, dynamically adjusts power consumption data of the module to be tested in the test, receives response data returned by the module to be tested, records a test log based on the response data, and analyzes the test log based on a machine learning model to generate a test report.
- 9. A computer device comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to implement the steps of the method for testing the environmental suitability of an internet of things communication module according to any one of claims 1-7.
- 10. A storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the method for testing the environmental suitability of an internet of things communication module according to any one of claims 1-7.
Description
Method, system, equipment and medium for testing environmental adaptability of communication module of Internet of things Technical Field The application relates to the field of automatic testing, in particular to an environment adaptability testing method, system, equipment and medium for an internet of things communication module. Background Along with the rapid development of the internet of things technology, the internet of things communication module is used as a key component for connecting the physical world and the digital world, and the reliability and the stability of the internet of things communication module directly influence the operation of the whole internet of things system. At present, the conventional internet of things communication module testing system in the market has the following problems: 1. And (3) blindly starting the test, namely, not comprehensively checking external conditions of the module before the test, such as unbalanced antenna of the module, bad base station signals, no card insertion or deformation of a test card during the module test, and the like, so that the test result is invalid or inaccurate. 2. The environment simulation is insufficient, the influence of extreme climate conditions on the performance of the module cannot be truly simulated, the testing environment is single, and the testing requirements of the module in different environments cannot be met. 3. And the power consumption test is lack, namely the power consumption change of the module under different working states is not considered in the test process, and the low power consumption performance and the endurance of the module cannot be evaluated. 4. The report generation relies on manual work, namely, after the test is finished, test data are required to be manually arranged and a test report is generated, so that the efficiency is low, and human errors are easy to occur. Disclosure of Invention The application mainly provides an environment adaptability test method, system, equipment and medium for an Internet of things communication module, which are used for solving the problems that in the existing Internet of things communication module test system, blind start test results are reduced in accuracy, power consumption performance of the module cannot be comprehensively evaluated due to lack of power consumption regulation, and manual arrangement report efficiency is low. In order to solve the technical problems, the technical scheme adopted by the application is to provide the environment adaptability test method for the communication module of the Internet of things. The method comprises the following steps: Responding to the state pre-checking passing of the module to be tested, executing a test case, sending a corresponding test instruction sequence to the module to be tested, and dynamically adjusting the power consumption data of the module to be tested in the test; receiving response data returned by the module to be tested, and recording a test log based on the response data; and analyzing the test log based on a machine learning model to generate a test report. In an optional implementation manner of the embodiment of the present application, the pre-checking of the state of the module to be tested includes: detecting the standing-wave ratio of an antenna of the module to be detected, and judging whether the standing-wave ratio is smaller than a preset standing-wave ratio threshold value or not; collecting the signal intensity of a base station received by the module to be tested, and judging whether the signal intensity of the base station is larger than a preset intensity threshold value or not; judging whether the state of the SIM card is normal or not based on the SIM card interface detection circuit of the module to be tested; and responding to the standing-wave ratio being smaller than the preset standing-wave ratio threshold, the base station signal strength being larger than the preset strength threshold and the SIM card being in a normal state, the module to be tested passes the state pre-check. In an optional implementation manner of the embodiment of the present application, the dynamically adjusting the power consumption data of the module to be tested in the test includes: Collecting power consumption data of the module to be tested in real time in the test; And adjusting the working parameters of the module to be tested based on an optimized proportional-integral-derivative control algorithm and a preset power consumption threshold corresponding to the test case so as to dynamically adjust the power consumption data. In an optional implementation manner of the embodiment of the present application, the adjusting the working parameter of the module to be tested to dynamically adjust the power consumption data based on the optimized proportional-integral-derivative control algorithm and a preset power consumption threshold corresponding to the test case includes: calculati