Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a method for remotely testing a terminal device according to an embodiment of the present invention, where the method is applicable to an application scenario in which a plurality of terminal devices are subjected to batch testing, data automatic recording, device and proof box remote monitoring, and intervening in the middle of a test execution process.
In the embodiment of the invention, the remote testing device for the terminal equipment comprises a testing end and a cloud server, wherein a main control unit, a testing box and power supply equipment are arranged at the testing end, the cloud server is in communication connection with the testing end main control unit and the terminal equipment to be tested, the testing end main control unit is used for controlling the power supply equipment to supply power to the terminal equipment to be tested, the testing box is controlled to perform reliability testing and conventional function testing on the terminal equipment, test data in the power supply equipment and the testing box are read, and relevant test data are sent to the cloud server and can be arranged in a one-to-one correspondence manner with the terminal equipment to be tested, or one main control unit correspondingly controls the testing process of a plurality of terminal equipment to be tested of the same type.
As shown in fig. 1, the remote testing method for terminal equipment specifically includes the following steps:
step S1: and acquiring the equipment parameters and the test configuration parameters of at least one terminal equipment to be tested.
In the embodiment of the present invention, the terminal device to be tested may be a vehicle-mounted terminal device (for example, a T-box), an internet terminal, or a remote terminal, and the terminal device to be tested supports a wireless communication function, and is used to connect to the cloud server, so that the terminal device to be tested receives the device parameters and the test configuration parameters sent by the cloud server, and periodically uploads the message to the cloud server.
The device parameters refer to parameters for identification and firmware upgrade of the terminal device to be tested. Typically, device parameters include, but are not limited to: parameters such as power supply parameters, terminal models, software versions, manufacturers and production batches are preset.
The test configuration parameters refer to experimental group data used for simulating different working environments and operating conditions. Typically, test configuration parameters include, but are not limited to: test name, sample number, preset environment parameters, test time and data display. The test name adopted by the remote test of the terminal equipment comprises at least one of the following items: the test method comprises the following steps of high-temperature aging test, high-low temperature alternating test, high-low temperature damp-heat test, high-low temperature impact test, dust test, rain test, salt spray corrosion test, ultraviolet aging test and vibration test.
In this step, before the formal test, the device parameters and the test configuration parameters are stored in the cloud server, and in the whole test period, the cloud server issues the device parameters and the test configuration parameters to the test terminal, and the terminal device to be tested and the test box for executing the test are remotely monitored and managed based on the prestored parameters. The cloud server can be in communication connection with the plurality of test terminals at the same time, and simultaneous access and batch test of the multi-channel data are achieved.
Step S2: and controlling the power supply equipment to supply power to at least one terminal equipment to be tested according to the equipment parameters, and carrying out parameter adjustment on the test box according to the test configuration parameters.
In the embodiment of the invention, the power supply equipment can simultaneously supply power to a plurality of terminal equipment to be tested and independently control the power-on and power-off states of each terminal equipment to be tested. Controlling power supply equipment to supply power to at least one terminal equipment to be tested according to equipment parameters, comprising: and determining the terminal equipment to be tested which needs to execute the remote test according to the terminal model, the manufacturer, the production batch and other parameters issued by the cloud server, and controlling the power supply equipment to supply power to the terminal equipment to be tested which needs to execute the test according to the preset power supply parameters. The power supply equipment supports voltage output and current output, and in the power supply process, the power supply equipment can adjust the power supply output type of each terminal equipment to be tested according to preset power supply parameters.
In the embodiment of the invention, the test box is used for realizing the change of environmental parameters such as temperature, humidity, vibration, impact, air pressure, illumination, dust and the like. And adjusting parameters of the test chamber according to the test configuration parameters, wherein the parameter adjustment comprises the following steps: and setting test parameters in the test box according to the test name and the preset environment parameters issued by the cloud server so that the test box executes corresponding test tests.
Step S3: and acquiring the environment actual measurement parameters in the test box and the power supply actual measurement parameters of the power supply equipment, and transmitting the environment actual measurement parameters and the power supply actual measurement parameters to the cloud server.
In one embodiment, the environmental measured parameters may include, but are not limited to: run time, temperature, humidity, air pressure, altitude and illuminance were tested. The power supply measurement parameters may include, but are not limited to: and the measured power supply voltage parameter and the measured power supply current parameter.
In the embodiment of the invention, the environment monitoring module can be adopted to collect the test parameters in the test box in real time and transmit the actually measured environment parameters to the cloud server. Wherein, the environment monitoring module can directly transmit the environment actual measurement parameter to the cloud server, or, the environment monitoring module transmits the environment actual measurement parameter to the test end main control unit, utilizes the test end main control unit to transmit the environment actual measurement parameter to the cloud server.
In the embodiment of the invention, the power supply equipment can be internally provided with a monitoring module, the monitoring module can record the actually measured total power supply voltage value and the actually measured total power supply current value of all the terminal equipment to be tested connected with the power supply equipment and the actually measured sub power supply voltage and the actually measured sub power supply current of each terminal equipment to be tested in real time, and transmit the acquired voltage value and current value to the test end main control unit, and the test end main control unit transmits the power supply actual measurement parameters to the cloud server.
Step S4: and the cloud server is adopted to carry out test abnormity judgment according to the environment actual measurement parameters, the power supply actual measurement parameters and the received test message values, and execute automatic intervention and/or inform a tester to execute manual intervention according to the test abnormity judgment result.
In this step, the test abnormality determination includes determining whether the environment actual measurement parameters of the test chamber are abnormal, determining whether the equipment abnormality exists in the terminal equipment to be tested, and determining whether the communication channel between the test terminal and the cloud server is abnormal.
Specifically, the cloud server can be in communication connection with at least one test terminal main control unit and the terminal devices to be tested at the same time, and each terminal device to be tested can be placed in the same or different test environments to execute remote tests.
Before the remote test is executed, a tester can perform system configuration according to test requirements, and parameters of equipment participating in the test (such as parameters of a terminal model, a software version, a manufacturer, a production batch and the like) and test configuration parameters (such as a test name, a sample number, environment parameters, test time and data display) are stored in a cloud server. The device parameters may be device parameters of one or more terminal devices to be tested, and the test configuration parameters may be test data of one or more different test boxes, which is not limited herein.
When the test is executed, the device parameters to be tested are placed in the test box, the cloud server issues the device parameters and the test configuration parameters to the corresponding terminal device to be tested and the test end main control unit, the main control unit controls the power supply device to supply power to the terminal device to be tested, which needs to execute the test, according to the device parameters, and adjusts the test parameters in the test box according to the test configuration parameters, so that the test box executes corresponding test tests on the device parameters to be tested, for example, a high-temperature aging test, a high-low temperature alternating test, a high-low temperature impact test, a dust test, a rain test, a salt spray corrosion test, an ultraviolet aging test or a vibration test. When the test is executed, the power supply device collects power supply actual measurement parameters (such as a power supply voltage value, a power supply current value, a total power supply voltage value and a total power supply current value) of each terminal device to be tested in real time, and the environment monitoring module collects environment actual measurement parameters in the test box in real time. The cloud server acquires and stores power supply actual measurement parameters and environment actual measurement parameters uploaded by all the devices, compares the environment actual measurement parameters with preset environment parameters set by a test, and judges whether the environment parameters of the test box are abnormal or not; comparing the power supply actual measurement parameter with a preset power supply parameter, and judging whether the terminal equipment to be detected is abnormal or not; and judging whether a communication channel between the test end and the cloud server is abnormal or not according to the communication message value. And when the environment actual measurement parameters in the test box or the test data of the terminal equipment to be tested are abnormal, performing abnormal alarm to realize automatic intervention or inform a tester to execute manual intervention.
According to the technical scheme of the embodiment of the invention, the cloud server is used for acquiring, storing, processing and displaying the test data of the plurality of test boxes and the terminal equipment to be tested, and the remote monitoring and test automatic management of the data of the plurality of terminal equipment and the test boxes are realized simultaneously by improving the test data abnormity analysis algorithm, so that the problems of high test labor cost and high time cost caused by the fact that the conventional terminal equipment test method cannot give consideration to batch automatic test and remote monitoring management are solved, the test labor cost and time cost can be reduced, the test abnormity can be timely checked through data monitoring, and the test efficiency and the test data effectiveness can be improved.
Optionally, fig. 2 is a flowchart of another remote terminal device testing method according to a first embodiment of the present invention, and on the basis of fig. 1, a specific implementation manner of step S4 is exemplarily shown.
As shown in fig. 2, the step S4 includes the following steps:
step S401: acquiring a preset environment parameter, a preset power supply parameter and a preset message parameter.
The preset environment parameters, the preset power supply parameters and the preset message parameters can be stored in the cloud server by a tester before the test is executed.
Step S402: and obtaining the environmental parameter types of the preset environmental parameters, wherein the environmental parameter types comprise a zero environmental parameter, a univariate environmental parameter and a multivariate environmental parameter.
The zero environmental parameter refers to an environmental parameter that does not need to be monitored during the test process. Typically, the zero environmental parameters include temperature parameters in normal temperature common tests, and environmental parameters such as dust, rain, smoke, and the like which are difficult to monitor.
The univariate environmental parameter refers to setting only one environmental parameter as a variable in the test process, for example, only changing one of the environmental parameters such as temperature, humidity, vibration, impact, dust, light, air pressure and the like in the test chamber.
Multivariate environmental parameters refer to setting a plurality of environmental parameters as variables in the test process, typically 2-3 environmental parameter variables may be set, for example, the ambient temperature and the ambient humidity in the test chamber may be changed simultaneously.
Step S403: and matching a corresponding parameter abnormity judgment strategy according to the environment parameter type, and performing abnormity analysis on the environment actual measurement parameter, the power supply actual measurement parameter and the test message value according to the parameter abnormity judgment strategy.
In this step, the environmental parameter type may be a constant variable environmental parameter or a variable environmental parameter for a univariate environmental parameter and a multivariate environmental parameter, wherein the constant variable environmental parameter refers to an environmental parameter set to a single value during the test, for example, the temperature in the test chamber may be set to be constant 85 ℃; variable environmental parameters refer to environmental parameters that vary cyclically within a set range during testing, for example, a test chamber can be set to temperature cycling between-40 ℃ and 85 ℃ or temperature shock.
In one embodiment, when the environmental parameter type is a univariate environmental parameter or a multivariate environmental parameter, matching a corresponding parameter anomaly judgment policy according to the environmental parameter type includes: and judging whether the preset environment parameter is a constant variable environment parameter or a variable environment parameter, and executing a corresponding parameter abnormity judgment strategy according to a judgment result.
Step S404: and executing automatic intervention and/or informing a tester to execute human intervention according to the test abnormity judgment result.
Specifically, the cloud server prestores a plurality of parameter anomaly judgment strategies, the parameter anomaly judgment strategies correspond to the environment parameter types one by one, and after the environment parameter types (such as zero environment parameters, univariate environment parameters or multivariate environment parameters) set by testing personnel and the parameter anomaly judgment strategies corresponding to the environment parameter types are obtained, anomaly analysis is sequentially performed on the environment actual measurement parameters, the power supply actual measurement parameters and the test message values. And when the environment actual measurement parameters in the test box or the test data of the terminal equipment to be tested are abnormal, performing abnormal alarm to realize automatic intervention or inform a tester to execute manual intervention. By matching different test types with different anomaly analysis mechanisms, a test data anomaly analysis algorithm is improved, and remote monitoring of test data is realized through a cloud server, so that the test efficiency and the effectiveness of the test data are improved.
Example two
Optionally, fig. 3 is a flowchart of a remote testing method for a terminal device according to a second embodiment of the present invention, and exemplarily shows a test parameter anomaly analysis policy on the basis of the first embodiment. In the embodiment of fig. 3, the environment parameter type is a zero environment parameter.
As shown in fig. 3, the remote testing method for terminal equipment specifically includes the following steps:
step S1: and acquiring the equipment parameters and the test configuration parameters of at least one terminal equipment to be tested.
Step S2: and controlling the power supply equipment to supply power to at least one terminal equipment to be tested according to the equipment parameters, and carrying out parameter adjustment on the test box according to the test configuration parameters.
Step S3: and acquiring the environment actual measurement parameters in the test box and the power supply actual measurement parameters of the power supply equipment, and transmitting the environment actual measurement parameters and the power supply actual measurement parameters to the cloud server.
Step S431: and executing a zero environment parameter abnormity judgment strategy. The zero environment parameter abnormality judgment strategy refers to a parameter abnormality judgment strategy corresponding to the zero environment parameter.
Step S432: and (5) shielding the abnormal judgment of the environmental parameters.
The step of masking the environmental parameter abnormality judgment refers to not executing the environmental parameter abnormality judgment when the environmental parameter type is a zero environmental parameter.
Step S433: and calculating a difference value between the preset power supply parameter and the power supply actual measurement parameter, and determining whether the power supply actual measurement parameter is abnormal or not according to a comparison result of the difference value and a preset power supply deviation threshold value.
In this step, taking the power supply actual measurement parameter as the power supply current and the preset power supply deviation threshold as the preset power supply current deviation threshold as an example, the cloud server may calculate a difference Δ I between the actual measurement total power supply current and the preset total power supply current of all the terminal devices to be tested connected to the power supply device, if the difference Δ I is greater than the preset power supply current deviation threshold, the power supply device may be controlled to independently perform power-on and power-off processing on each terminal device to be tested, sequentially collect the actual measurement sub power supply current of each terminal device to be tested, calculate a difference Δ I between the actual measurement sub power supply current and the preset sub power supply current, if the difference Δ I is greater than the preset power supply current deviation threshold, it is determined that the corresponding terminal device to be tested is abnormal, and the cloud server sends a terminal device abnormality alarm to the tester.
Step S434: and calculating the error rate between the preset message parameter and the test message value, and determining whether the test message value is abnormal or not according to the comparison result of the error rate and the preset error rate threshold value.
In this step, the cloud server obtains a message value carrying test data uploaded by each terminal device to be tested, compares the actually received message value with a preset message parameter, calculates a message error rate Δ Dw, determines that a communication channel between the terminal device to be tested and the cloud server is abnormal if the error rate Δ Dw is greater than a preset error rate threshold, and sends a terminal device abnormality alarm to a tester.
Specifically, the steps S431 to S434 are applicable to an application scenario in which the test environment does not need to monitor the environmental parameters. And after the environment actual measurement parameters in the test box and the power supply actual measurement parameters of the power supply equipment are obtained, the environment parameter abnormity judgment is not executed. Acquiring specific time of equipment abnormity through the sudden change time point of the total power supply current; through the analysis of the sub-supply current, the specific terminal equipment which is abnormal is positioned; the cloud server is used for remotely checking the message value, further identifying abnormal equipment, realizing accurate positioning of the abnormal terminal equipment, and alarming for abnormality, so that the labor cost and time cost of testing can be reduced, the abnormal testing can be timely checked through data monitoring, and the testing efficiency and the effectiveness of testing data can be improved.
EXAMPLE III
Optionally, fig. 4 is a flowchart of a remote terminal device testing method according to a third embodiment of the present invention, and on the basis of the first embodiment, another testing parameter anomaly analysis strategy is exemplarily shown. In the embodiment of fig. 4, the environment parameter type is a constant variable environment parameter.
As shown in fig. 4, the remote testing method for terminal equipment specifically includes the following steps:
step S1: and acquiring the equipment parameters and the test configuration parameters of at least one terminal equipment to be tested.
Step S2: and controlling the power supply equipment to supply power to at least one terminal equipment to be tested according to the equipment parameters, and carrying out parameter adjustment on the test box according to the test configuration parameters.
Step S3: and acquiring the environment actual measurement parameters in the test box and the power supply actual measurement parameters of the power supply equipment, and transmitting the environment actual measurement parameters and the power supply actual measurement parameters to the cloud server.
Step S441: and executing a constant variable environment parameter abnormity judgment strategy. The constant variable environment parameter abnormality judgment strategy is a parameter abnormality judgment strategy corresponding to the constant variable environment parameter.
Step S442: and determining an environment parameter fluctuation threshold according to the mean value mu and the standard deviation sigma of the plurality of environment actual measurement parameters, and judging the environment parameter abnormity according to the environment parameter fluctuation threshold.
In this step, the environmental parameter fluctuation threshold includes an upper threshold μ + σ and a lower threshold μ - σ, and it is determined whether the environmental measured parameter exceeds an environmental parameter fluctuation threshold range (μ - σ, μ + σ), and if the environmental measured parameter exceeds the environmental parameter fluctuation threshold range (μ - σ, μ + σ), it is determined that the environmental parameter abnormality occurs in the test chamber.
In one embodiment, a tester can adjust the theoretical value of the environmental parameter and the abnormal triggering condition through the cloud server, and the abnormal detection algorithm is favorably optimized.
Step S443: and calculating a difference value between the preset power supply parameter and the power supply actual measurement parameter, and determining whether the power supply actual measurement parameter is abnormal or not according to a comparison result of the difference value and a preset power supply deviation threshold value.
Step S444: and calculating the error rate between the preset message parameter and the test message value, and determining whether the test message value is abnormal according to the comparison result of the error rate and the preset error rate threshold value.
Specifically, the above steps S441 to S444 are applicable to an application scenario in which the test process employs a constant variable environment parameter, for example, the environment variable is set to be maintained at 85 ℃. After obtaining the environment actual measurement parameters in the test box and the power supply actual measurement parameters of the power supply equipment, firstly, calculating a mean value mu and a standard deviation sigma of the currently acquired actual measurement temperature, wherein the environment parameter fluctuation threshold comprises an upper limit threshold mu + sigma and a lower limit threshold mu-sigma, judging whether the actual measurement temperature exceeds the environment parameter fluctuation threshold range (mu-sigma, mu + sigma), and if the actual measurement temperature exceeds the environment parameter fluctuation threshold range (mu-sigma, mu + sigma), judging that the environment parameters of the test box are abnormal. After the environmental parameter abnormality judgment is completed, whether the terminal device abnormality exists is judged through the power supply actual measurement parameter and the message value, and the method is consistent with the embodiment and is not described again. By newly adding a monitoring and abnormity judging strategy of the test environment, the remote monitoring and control of the test box is realized, and the effectiveness of test data is improved.
In one embodiment, when the test chamber is used for sampling the environmental parameters, an environmental monitoring module (such as a temperature sensor) can be arranged on the surface of the terminal device to be tested. For example, when the terminal device to be tested works in an environment of 85 ℃, the actual working temperature of the core component of the terminal device to be tested can be determined by testing the temperature of the surface of the shell or the circuit board of the terminal device to be tested, so that temperature rise information is obtained, and a basis is provided for optimizing heat dissipation and designing a structure.
Example four
Optionally, fig. 5 is a flowchart of a remote testing method for terminal equipment according to a fourth embodiment of the present invention, and exemplarily shows another testing parameter anomaly analysis policy based on the first embodiment. In the embodiment of fig. 5, the environment parameter type is a variable environment parameter.
As shown in fig. 5, the remote testing method for terminal equipment specifically includes the following steps:
step S1: and acquiring the equipment parameters and the test configuration parameters of at least one terminal equipment to be tested.
Step S2: and controlling the power supply equipment to supply power to at least one terminal equipment to be tested according to the equipment parameters, and carrying out parameter adjustment on the test box according to the test configuration parameters.
Step S3: and acquiring the environment actual measurement parameters in the test box and the power supply actual measurement parameters of the power supply equipment, and transmitting the environment actual measurement parameters and the power supply actual measurement parameters to the cloud server.
Step S451: and executing a variable environment parameter abnormity judgment strategy. The variable environment parameter abnormality judgment strategy is a parameter abnormality judgment strategy corresponding to the variable environment parameter.
Step S452: and performing polynomial fitting on the environment actual measurement parameters and the power supply actual measurement parameters, and performing abnormal judgment on the environment parameters according to the deviation rate of the environment actual measurement parameters relative to a fitting curve.
Step S453: and calculating a difference value between the preset power supply parameter and the power supply actual measurement parameter, and determining whether the power supply actual measurement parameter is abnormal or not according to a comparison result of the difference value and a preset power supply deviation threshold value.
Step S454: and calculating the error rate between the preset message parameter and the test message value, and determining whether the test message value is abnormal according to the comparison result of the error rate and the preset error rate threshold value.
Specifically, steps S451 to S454 described above are applicable to an application scenario where the test process employs variable environmental parameters, for example, setting the test chamber to perform temperature cycling or temperature shock between-40 ℃ and 85 ℃. The environment measured parameter is a variable parameter, and the trend of the environment measured parameter (such as temperature) changing along with time has correlation with the trend of the power supply measured parameter (such as measured total power supply current) changing along with time. When polynomial fitting is carried out, curve drawing can be carried out by taking the temperature as an abscissa and the actually measured total power supply current as an ordinate, and a fitting curve is obtained based on a polynomial fitting mode. And calculating the deviation rate between the actually measured temperature and the fitting curve, and if the deviation rate exceeds a preset deviation rate threshold value, judging that the environmental parameter is abnormal. After the environmental parameter abnormality judgment is completed, whether the terminal device abnormality exists is judged through the power supply actual measurement parameter and the message value, and the method is consistent with the embodiment and is not described again. By newly adding a monitoring and abnormity judging strategy of the test environment, the remote monitoring and control of the test box is realized, and the effectiveness of test data is improved.
It should be noted that any environment measured parameter may also be used as the ordinate, the time is used as the abscissa to establish a fitted curve, and the deviation ratio of the environment measured parameter with respect to the fitted curve is calculated, which is not specifically limited.
EXAMPLE five
In the embodiment of the invention, if the power supply actual measurement parameters or the test message values are abnormal, the cloud server can give an alarm to the abnormal terminal equipment to be tested and execute automatic intervention. If the environment actual measurement parameters are abnormal, the cloud server can inform the testing personnel to execute human intervention
Optionally, fig. 6 is a flowchart of a method for remotely testing a terminal device according to a fifth embodiment of the present invention, and on the basis of the first embodiment, a specific implementation manner of intervening halfway in a test execution process is exemplarily shown.
As shown in fig. 6, the automatic intervention is performed according to the test abnormality determination result, which includes:
step S601: and acquiring the actually measured sub-power supply parameters of each terminal device to be measured.
Step S602: and carrying out abnormal positioning on the terminal equipment to be detected according to the actually measured sub power supply parameters.
Step S603: and controlling the power supply equipment to perform power-off or power-on processing on the terminal equipment to be tested according to the abnormal positioning result.
Specifically, the cloud server issues device parameters to the main control unit, so that the main control unit controls the power supply device to independently power on and power off each terminal device to be tested to obtain an actually measured sub-power supply parameter of each terminal device to be tested, the actually measured sub-power supply current of each terminal device to be tested is sequentially collected, a difference value delta i between the actually measured sub-power supply current and a preset sub-power supply current is calculated, and if the difference value delta i is larger than a preset power supply current deviation threshold value, the corresponding terminal device to be tested is judged to be abnormal device; and if the difference value delta i is smaller than or equal to the preset power supply current deviation threshold value, judging that the corresponding terminal equipment to be tested is normal equipment. Furthermore, the cloud server acquires the equipment parameters of the normal equipment and the equipment parameters of the abnormal equipment, controls the corresponding terminal equipment to be tested to be powered on according to the equipment parameters of the normal equipment, and controls the corresponding terminal equipment to be tested to be powered off according to the equipment parameters of the abnormal equipment, so that the automatic power-off intervention of the abnormal equipment is realized, the abnormal equipment is prevented from influencing the test of other equipment, the overall test of a plurality of terminal equipment is ensured to be effectively carried out, and the test efficiency is improved.
As shown in fig. 6, notifying the tester to perform human intervention according to the test abnormality determination result includes:
step S604: and generating alarm information according to the abnormal environment parameters in the environment actual measurement parameters.
Step S605: and sending the alarm information to a tester, and receiving the updated parameters of the test configuration parameters uploaded by the tester.
Step S606: and issuing the updating parameters to a test end, and testing the terminal equipment to be tested.
Specifically, the terminal equipment to be tested can perform firmware upgrading and parameter setting through the cloud server, periodically sends messages to the cloud server, achieves manual intervention through the cloud server, changes testing variables, performs contrast test and quantitative analysis, can achieve batch testing and midway interference, and improves testing efficiency.
In addition, the multivariate environmental parameters may be subjected to an environmental parameter abnormality alarm in a cloud server device alarm mode, for example, when any one or more environmental parameters are set to be abnormal.
EXAMPLE six
Optionally, fig. 7 is a flowchart of a remote testing method for a terminal device according to a sixth embodiment of the present invention, where a runtime detection function is added on the basis of the first embodiment.
As shown in fig. 7, before performing step S4, the method for remotely testing a terminal device further includes:
step S701: and acquiring the preset operation time and the actual operation time of the test box.
Step S702: and judging whether the actual operation time reaches the preset operation time.
If the actual running time reaches the preset running time, executing step S703; otherwise, execution continues with step S4.
Step S703: the abnormality determination is terminated.
Illustratively, the preset operation time may be set equal to 1000 hours. After the remote test is started, recording the actual running time of the test box, and if the actual running time does not reach the preset running time, continuing to execute subsequent abnormal judgment and remote test; if the actual running time reaches the preset running time, the abnormal judgment of the parameters is terminated, and the waste of memory resources caused by the idle running of the program after the test is finished is avoided.
EXAMPLE seven
Based on any of the above embodiments, the seventh embodiment of the present invention provides a remote test system for a terminal device, which is capable of executing the remote test method for the terminal device provided by any of the above embodiments of the present invention, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 8 is a schematic structural diagram of a terminal device remote test system according to a seventh embodiment of the present invention.
As shown in fig. 8, the terminal device remote test system 100 includes: the testing system comprises a cloud server 110 and a testing end 120, wherein the testing end 120 comprises a main control unit 121, a test box 122, an environment monitoring unit 123 and power supply equipment 124, and the test box 122 is used for testing the terminal equipment 200 to be tested; the cloud server 110 is in communication connection with the at least one main control unit 121, and the cloud server 110 is configured to obtain device parameters and test configuration parameters of the at least one terminal device 200 to be tested; the main control unit 121 is configured to control the power supply device 124 to supply power to at least one terminal device 200 to be tested according to the device parameters, and perform parameter adjustment on the test box 122 according to the test configuration parameters; the environment monitoring unit 123 is configured to collect the environment actual measurement parameters in the test box 122, and transmit the environment actual measurement parameters to the cloud server 110; the power supply device 124 is configured to independently supply power to each terminal device 200 to be tested, and transmit power supply actual measurement parameters of the power supply device 124 to the cloud server 110; the cloud server 110 is further configured to perform test exception judgment according to the environment actual measurement parameter, the power supply actual measurement parameter, and the received test message value, and execute automatic intervention according to a test exception judgment result and/or notify a tester to execute manual intervention.
Optionally, as shown in fig. 8, the power supply device 124 includes a power supply body 124A and a multi-way switch 124K, where the multi-way switch 124K is provided with at least one power supply channel, and the power supply channel is electrically connected between the power supply body 124A and the terminal device 200 to be tested; the multi-way switch 124K is configured to receive a power supply control signal of the main control unit 121, and control the terminal device 200 to be tested to power on or power off according to the power supply control signal.
The power supply device 124 supports voltage output and current output, and during power supply, the power supply device 124 may determine a power supply output type according to a terminal model of the terminal device 200 to be tested.
In an embodiment, the multi-way switch 124K may be a relay assembly, a control end of the relay assembly is configured to receive a power supply control signal sent by the main control unit 121, and each terminal device 200 to be tested is electrically connected to the power supply body 124A through a set of independent relay contacts. The power body 124A is provided with a monitoring module therein, and can collect a voltage value and a current value in real time and transmit the voltage value and the current value to the main control unit 121. A set of power source bodies 124A can simultaneously supply power to n terminal devices to be tested, where n is a positive integer greater than or equal to 1, and n includes, but is not limited to, 4, 8, 16, 32, 64, and 80.
Optionally, when the test exception is determined, the cloud server 110 is configured to obtain a preset environment parameter, a preset power supply parameter, and a preset message parameter; acquiring an environment parameter type of a preset environment parameter, wherein the environment parameter type comprises a zero environment parameter, a univariate environment parameter and a multivariate environment parameter; and matching a corresponding parameter abnormity judgment strategy according to the environment parameter type, and performing abnormity analysis on the environment actual measurement parameter, the power supply actual measurement parameter and the test message value according to the parameter abnormity judgment strategy.
Optionally, when the environment parameter type is a zero environment parameter, the parameter exception determining policy includes: judging the abnormal shielding environment parameters; calculating a difference value between a preset power supply parameter and a power supply actual measurement parameter, and determining whether the power supply actual measurement parameter is abnormal or not according to a comparison result of the difference value and a preset power supply deviation threshold value; and calculating the error rate between the preset message parameter and the test message value, and determining whether the test message value is abnormal according to the comparison result of the error rate and the preset error rate threshold value.
Optionally, when the environmental parameter type is a univariate environmental parameter or a multivariate environmental parameter, the parameter anomaly determination policy includes: determining an environment parameter fluctuation threshold value according to the mean value and the standard deviation of a plurality of environment measured parameters, and judging the environment parameter abnormity according to the environment parameter fluctuation threshold value; or performing polynomial fitting on the environment actual measurement parameters and the power supply actual measurement parameters, and performing abnormal judgment on the environment parameters according to the deviation rate of the environment actual measurement parameters relative to the fitting curve.
Optionally, executing automatic intervention according to the test abnormality judgment result, including: acquiring actual measurement sub power supply parameters of each terminal device to be measured; carrying out abnormal positioning on the terminal equipment to be detected according to the actually measured sub-power supply parameters; and controlling the power supply equipment to perform power-off or power-on processing on the terminal equipment to be tested according to the abnormal positioning result.
Optionally, notifying a tester to perform human intervention according to the test abnormality determination result, including: generating alarm information according to abnormal environment parameters in the environment actual measurement parameters; sending the alarm information to a tester, and receiving an update parameter of a test configuration parameter uploaded by the tester; and issuing the updating parameters to a test end, and testing the terminal equipment to be tested.
In one embodiment, the terminal device remote testing system 100 further includes: the timing unit is used for acquiring preset running time and actual running time of the test box; the cloud server 110 is further configured to determine whether the actual operation time reaches a preset operation time, and terminate the anomaly determination when the actual operation time reaches the preset operation time.
Example eight
According to another aspect of the present invention, there is provided an electronic apparatus including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the above-mentioned remote testing method for a terminal device.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 9, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the terminal device remote test method.
In some embodiments, the terminal device remote testing method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the above described remote testing method of a terminal device may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the terminal device remote test method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.