Testing method and device of wireless sensor, electronic equipment and storage medium
By automatically processing the test data uploaded by wireless sensors and using standard analysis algorithms to compare the signal standard values and test values, the problem of wireless sensor testing in the existing technology is not real-time, inconvenient and low accuracy, and an efficient and accurate test process is achieved, reducing costs and time.
Patent Information
- Application Number
- CN202510066148.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-04-15
AI Technical Summary
The existing wireless sensor function testing methods require manual analysis, resulting in unreal-time, inconvenient, low accuracy, and high cost and time.
By obtaining the test data uploaded by the wireless sensor, including the signal test value and the original signal, the original signal is analyzed and processed based on the standard analysis algorithm, the signal standard value is obtained, and the signal standard value and the signal test value are compared, and the function of the wireless sensor is automatically judged.
It realizes the real-time, convenience and accuracy of wireless sensor testing, reduces the testing cost and time, and reduces the demand for labor.
Smart Images

Figure CN119826886A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of sensor testing, and in particular to a testing method, device, electronic device and storage medium for a wireless sensor. Background Art
[0002] Sensor is a technology that obtains the state and parameters of an object by detecting the characteristic value of the object. It is widely used in many fields such as aerospace, machinery manufacturing, automobile industry, construction engineering, etc. With the development of digital technology, compared with traditional sensors, wireless sensors adopt digital technology, have the advantages of small size, convenient installation and transmission, and usually use software to process and send signals. Signal analysis technology is a technology that extracts useful information by digitally processing signals. It includes signal acquisition, filtering, amplification, feature extraction, classification and other links. Digital signal processing technology has a wide range of applications in the processing of sensor signals, which can help us extract useful vibration information from complex signals. Software testing method is a technology that ensures software quality by testing the functions, performance, security and other characteristics of the software, and plays a key role in the functional verification of wireless sensors.
[0003] The existing wireless sensor function test method mainly collects standard signals through sensors, then analyzes and processes the standard signals collected by the sensors, and then compares them with the actual values of the standard signals to determine whether the sensor functions accurately. This method requires manual analysis after obtaining the signals transmitted by the wireless sensors. It is impossible to perform real-time analysis and processing of the signals uploaded by the wireless sensors, and it is also easily affected by human factors, which limits the real-time and convenience of the test and also leads to a decrease in the accuracy of the test results. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a wireless sensor testing method, device, electronic device and storage medium, so as to improve the real-time, convenience and accuracy of wireless sensor testing and reduce the cost and time of wireless sensor testing.
[0005] The first aspect of the present application discloses a method for testing a wireless sensor, the method comprising:
[0006] Acquire test data uploaded by the wireless sensor, wherein the test data includes a signal test value and an original signal, and the signal test value is an analysis and processing result of the wireless sensor on the original signal;
[0007] Analyze and process the original signal based on a standard analysis algorithm to obtain a signal standard value;
[0008] The signal standard value and the signal test value are compared. If the signal standard value is the same as the signal test value, the function test of the wireless sensor passes.
[0009] The test method of the first aspect of the present application is to obtain the test data uploaded by the wireless sensor, wherein the test data includes the signal test value and the original signal, and the signal test value is the analysis and processing result of the wireless sensor for the original signal, and then the original signal can be analyzed and processed based on the standard analysis algorithm to obtain the signal standard value, thereby comparing the signal standard value and the signal test value. If the signal standard value is the same as the signal test value, the functional test of the wireless sensor is passed, and finally the automatic test of whether the power test of the wireless sensor to be tested is normal is realized. The present application can automatically analyze and process the original signal. Compared with the prior art, which requires manual processing and analysis, it reduces the influence of human factors and avoids the problems of non-real-time, inconvenient and low accuracy of the test in the manual processing method, thereby improving the real-time, convenience and accuracy of the test. On the other hand, the present application can reduce the demand for manual labor, thereby reducing the cost and time of testing.
[0010] In an optional embodiment, the method further comprises:
[0011] When the test mode of the wireless sensor is a batch test mode, the mean of the first normal distribution is calculated, and the mean of the second normal distribution and the standard deviation of the second normal distribution are calculated, wherein the plurality of groups of signal test values satisfy the first normal distribution, and the plurality of groups of signal standard values satisfy the second normal distribution;
[0012] Determine whether the difference between the mean of the first normal distribution and the mean of the second normal distribution is less than the standard deviation of the second normal distribution, and whether 99.73% of the test values in the multiple groups of the signal test values fall within a target numerical range, wherein the target numerical range is the mean of the second normal distribution plus 3 times the standard deviation of the second normal distribution;
[0013] When the difference between the mean of the first normal distribution and the mean of the second normal distribution is less than the standard deviation of the second normal distribution, and 99.73% of the test values in the multiple groups of signal test values fall within the target value range, it is determined that the functional test of the wireless sensor has passed.
[0014] This optional implementation manner can determine whether the function test of the wireless sensor passes by the 3Deta method when there is an error between the signal standard value and the signal test value, and the test method is a batch test method, thereby improving the test accuracy and reliability of the wireless sensor.
[0015] In an optional embodiment, the method further comprises:
[0016] When the test mode of the wireless sensor is a small batch test mode, determining whether the plurality of groups of signal test values and the plurality of groups of signal standard values satisfy variance homogeneity;
[0017] When the plurality of groups of signal test values and the plurality of groups of signal standard values satisfy variance homogeneity, a Z test is performed, and if the plurality of groups of signal test values satisfy a Z test pass condition, it is determined that the function test of the wireless sensor has passed.
[0018] This optional implementation manner can determine that the function test of the wireless sensor has passed when the multiple groups of signal test values and the multiple groups of signal standard values satisfy variance homogeneity and the multiple groups of signal test values satisfy a Z-test pass condition.
[0019] In an optional embodiment, the method further comprises:
[0020] When the plurality of groups of signal test values and the plurality of groups of signal standard values do not satisfy variance homogeneity, a T test is performed. If the T test condition is satisfied, the function test of the wireless sensor passes.
[0021] This optional implementation manner may perform a T test when the plurality of groups of signal test values and the plurality of groups of signal standard values do not satisfy variance homogeneity. If the T test condition is satisfied, it can be determined that the functional test of the wireless sensor has passed.
[0022] In an optional embodiment, the method further comprises:
[0023] The original signal is obtained based on the serial number of the wireless sensor.
[0024] This optional implementation can obtain the original signal based on the serial number of the wireless sensor.
[0025] In an optional implementation, the original signal includes a standard signal corresponding to a standard operating condition and an actual signal corresponding to an actual operating condition.
[0026] The original signal of this optional implementation can include the standard signal corresponding to the standard working condition and the actual signal corresponding to the actual working condition, thereby being able to test the to-be-tested functions of the wireless sensor under the standard working condition and the actual working condition.
[0027] In an optional embodiment, the standard analysis algorithm includes a first algorithm, a second algorithm and a third algorithm, wherein the first algorithm is used to calculate the peak value of the acceleration waveform, the second algorithm is used to calculate the effective value of the acceleration, and the third algorithm is used to calculate the acceleration envelope value.
[0028] A second aspect of the present application discloses a testing device for a wireless sensor, the device comprising:
[0029] An acquisition module, used to acquire test data uploaded by the wireless sensor, wherein the test data includes a signal test value and an original signal, and the signal test value is an analysis and processing result of the wireless sensor on the original signal;
[0030] An analysis and processing module, used for analyzing and processing the original signal based on a standard analysis algorithm to obtain a signal standard value;
[0031] The comparison module is used to compare the signal standard value with the signal test value. If the signal standard value is the same as the signal test value, the function test of the wireless sensor passes.
[0032] The test device of the second aspect of the present application obtains the test data uploaded by the wireless sensor, wherein the test data includes the signal test value and the original signal, and the signal test value is the analysis and processing result of the wireless sensor for the original signal, and then the original signal can be analyzed and processed based on the standard analysis algorithm to obtain the signal standard value, thereby comparing the signal standard value and the signal test value. If the signal standard value is the same as the signal test value, the functional test of the wireless sensor is passed, and finally the automatic test of whether the power test of the wireless sensor to be tested is normal is realized. The present application can automatically analyze and process the original signal. Compared with the prior art, which requires manual processing and analysis, it reduces the influence of human factors and avoids the problems of non-real-time, inconvenient and low accuracy of the test in the manual processing method, thereby improving the real-time, convenience and accuracy of the test. On the other hand, the present application can reduce the demand for manual labor, thereby reducing the cost and time of testing.
[0033] The third aspect of the present application discloses an electronic device, comprising:
[0034] processor;
[0035] The memory is configured to store machine-readable instructions, which, when executed by the processor, execute the method of the first aspect of the present application.
[0036] The electronic device of the third aspect of the present application obtains the test data uploaded by the wireless sensor, wherein the test data includes the signal test value and the original signal, and the signal test value is the analysis and processing result of the original signal by the wireless sensor, and then the original signal can be analyzed and processed based on the standard analysis algorithm to obtain the signal standard value, thereby comparing the signal standard value and the signal test value. If the signal standard value is the same as the signal test value, the functional test of the wireless sensor is passed, and finally the automatic test of whether the power test of the wireless sensor to be tested is normal is realized. The present application can automatically analyze and process the original signal. Compared with the prior art, which requires manual processing and analysis, it reduces the influence of human factors and avoids the problems of non-real-time, inconvenient and low accuracy of the test in the manual processing method, thereby improving the real-time, convenience and accuracy of the test. On the other hand, the present application can reduce the demand for manual labor, thereby reducing the cost and time of testing.
[0037] The fourth aspect of the present application discloses a storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor to execute the method of the first aspect of the present application.
[0038] The storage medium of the fourth aspect of the present application obtains the test data uploaded by the wireless sensor, wherein the test data includes the signal test value and the original signal, and the signal test value is the analysis and processing result of the wireless sensor for the original signal, and then the original signal can be analyzed and processed based on the standard analysis algorithm to obtain the signal standard value, thereby comparing the signal standard value and the signal test value. If the signal standard value is the same as the signal test value, the functional test of the wireless sensor is passed, and finally the automatic test of whether the power test of the wireless sensor to be tested is normal is realized. The present application can automatically analyze and process the original signal. Compared with the prior art, which requires manual processing and analysis, it reduces the influence of human factors and avoids the problems of non-real-time, inconvenient and low accuracy of the test in the manual processing method, thereby improving the real-time, convenience and accuracy of the test. On the other hand, the present application can reduce the demand for manual labor, thereby reducing the cost and time of testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1It is a flowchart of a wireless sensor testing method disclosed in an embodiment of the present application;
[0041] Figure 2 It is a structural schematic diagram of a testing device for a wireless sensor disclosed in an embodiment of the present application;
[0042] Figure 3 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0044] Embodiment 1
[0045] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for testing a wireless sensor disclosed in an embodiment of the present application. Figure 1 As shown, the method of the embodiment of the present application includes the following steps:
[0046] 101. Acquire test data uploaded by the wireless sensor, wherein the test data includes a signal test value and an original signal, and the signal test value is an analysis and processing result of the wireless sensor on the original signal;
[0047] 102. Analyze and process the original signal based on a standard analysis algorithm to obtain a signal standard value;
[0048] 103. Compare the signal standard value and the signal test value. If the signal standard value is the same as the signal test value, the function test of the wireless sensor passes.
[0049] The test method of the embodiment of the present application obtains the test data uploaded by the wireless sensor, wherein the test data includes a signal test value and an original signal, and the signal test value is the analysis and processing result of the wireless sensor on the original signal, and then the original signal can be analyzed and processed based on the standard analysis algorithm to obtain a signal standard value, thereby comparing the signal standard value and the signal test value. If the signal standard value is the same as the signal test value, the functional test of the wireless sensor passes, and finally the automatic test of whether the power test of the wireless sensor to be tested is normal is realized. The present application can automatically analyze and process the original signal, which reduces the influence of human factors and avoids the problems of non-real-time, inconvenient and low accuracy of the test in the manual processing method, thereby improving the real-time, convenience and accuracy of the test. On the other hand, the present application can reduce the demand for manual labor, thereby reducing the cost and time of testing.
[0050] In the embodiment of the present application, the original signal refers to a signal that has not been analyzed and processed, for example, a vibration signal.
[0051] In the embodiment of the present application, as an optional implementation, the method of the embodiment of the present application further includes the following steps:
[0052] When the test mode of the wireless sensor is a batch test mode, the mean of the first normal distribution is calculated, and the mean of the second normal distribution and the standard deviation of the second normal distribution are calculated, wherein the multiple groups of signal test values satisfy the first normal distribution, and the multiple groups of signal standard values satisfy the second normal distribution;
[0053] Determine whether the difference between the mean of the first normal distribution and the mean of the second normal distribution is less than the standard deviation of the second normal distribution, and whether 99.73% of the test values in the multiple groups of signal test values fall within a target value range, wherein the target value range is the mean of the second normal distribution plus 3 times the standard deviation of the second normal distribution;
[0054] When the difference between the mean of the first normal distribution and the mean of the second normal distribution is less than the standard deviation of the second normal distribution, and 99.73% of the test values in the multiple groups of signal test values fall within the target value range, it is determined that the function test of the wireless sensor passes.
[0055] This optional implementation manner can determine whether the function test of the wireless sensor passes by the 3Deta method when there is an error between the signal standard value and the signal test value, and the test method is a batch test method, thereby improving the test accuracy and reliability of the wireless sensor.
[0056] For this optional implementation, the batch test is to test the wireless sensors produced in the same batch as a whole. Assuming that the accuracy error of the default wireless sensor is normally distributed, the data distribution of the wireless sensor should meet the standard deviation ±σ (accuracy requirement), and the center is the normal distribution of the standard data. Since there is enough data, it is possible to use statistics to determine whether each wireless sensor meets the 3σ method requirements. That is:
[0057] The tool calculates the distribution of the wireless sensor measurement data and compares it with the standard data. If the center of the normal distribution deviates from the standard data by less than 1σ, and 99.73% of the data are within ±3σ, the batch of wireless sensors is considered to have passed the test, otherwise it is considered to have failed.
[0058] In the embodiment of the present application, as an optional implementation, the method of the embodiment of the present application further includes the following steps:
[0059] When the test mode of the wireless sensor is a small batch test mode, it is determined whether the multiple groups of signal test values and the multiple groups of signal standard values satisfy the variance homogeneity;
[0060] When the multiple groups of signal test values and the multiple groups of signal standard values meet the variance homogeneity, a Z test is performed. If the multiple groups of signal test values meet the Z test pass condition, it is determined that the function test of the wireless sensor has passed.
[0061] This optional implementation manner can determine that the function test of the wireless sensor has passed when the multiple groups of signal test values and the multiple groups of signal standard values satisfy variance homogeneity and the multiple groups of signal test values satisfy a Z-test pass condition.
[0062] In the embodiment of the present application, as an optional implementation, the method of the embodiment of the present application further includes the following steps:
[0063] When the multiple groups of signal test values and the multiple groups of signal standard values do not satisfy the variance homogeneity, a T test is performed. If the T test condition is met, the function test of the wireless sensor passes.
[0064] This optional implementation manner may perform a T test when the multiple groups of signal test values and the multiple groups of signal standard values do not satisfy variance homogeneity. If the T test condition is satisfied, it can be determined that the function test of the wireless sensor has passed.
[0065] For the above optional implementation, a small amount of testing is a laboratory test method for a single or a few wireless sensors. Due to the small amount of data, the 3σ method cannot be used for testing, so only the hypothesis test method can be used. In this case, each set of test data of each sensor can be regarded as an independent set of data. That is, assuming that the wireless sensor measures n sets of data under specific working conditions, the data should satisfy the normal population N (standard value μ 0 , accuracy ) requirements, check H 1 :The wireless sensor measurement value does not meet the accuracy requirements; H 1 : The wireless sensor measurement values meet the accuracy requirements.
[0066] Specifically, the F test is first used to determine the variance subordination of the wireless sensor uploaded data and the standard data. If the variance subordination is satisfied, the Z test is used for determination, that is:
[0067]
[0068] in: is the mean of the wireless sensor measurements, if:
[0069] u<α 0.05 , then accept the original hypothesis and think that the wireless sensor measurement does not meet the accuracy requirements;
[0070] α 0.05 <u<α 0.01, then perform a t - test with a significance level of 0.01 again (paired - sample t - test, considering the measured data and the standard data as paired samples). If the t - test is passed, it is considered that the accuracy of the wireless sensor meets the requirements;
[0071] α 0.01 <u, reject the null hypothesis, and it is considered that the measurement accuracy of the wireless sensor meets the requirements.
[0072] Furthermore, if the variance homogeneity is not satisfied, then use the t - test (the same paired - sample t - test as above) to judge. If the t - test is passed, it is considered that the accuracy of the wireless sensor meets the requirements, otherwise it does not.
[0073] In the embodiment of the present application, as an alternative embodiment, the method of the embodiment of the present application further includes the following steps:
[0074] Obtain the original signal based on the serial number of the wireless sensor.
[0075] This alternative embodiment can obtain the original signal based on the serial number of the wireless sensor.
[0076] For this alternative embodiment, in the same test environment, there are multiple wireless sensors, and these wireless sensors each have a unique serial number, which is determined during production and will be burned into the wireless sensor software at the same time when the software is burned. After receiving the signal transmitted by the wireless sensor, the standard analysis algorithm tool can identify which sensor the signal comes from through the unique serial number uploaded by the wireless sensor.
[0077] For this alternative embodiment, the sources of obtaining the original data include the wireless sensor to be tested, the verified standard sensor, and the standard test environment, such as a vibration table.
[0078] In the alternative embodiment, the original signal includes the standard signal corresponding to the standard working condition and the actual signal corresponding to the actual working condition.
[0079] The original signal of this alternative embodiment can cover the standard signal corresponding to the standard working condition and the actual signal corresponding to the actual working condition, and thus can test the待测 functions of the wireless sensor under the standard working condition and the actual working condition.
[0080] In the embodiment of the present application, as an alternative embodiment, the standard analysis algorithm includes a first algorithm, a second algorithm, and a third algorithm. Among them, the first algorithm is used to calculate the peak value of the acceleration waveform, the second algorithm is used to calculate the effective value of the acceleration, and the third algorithm is used to calculate the envelope value of the acceleration.
[0081] In the embodiment of the present application, as an example, taking a certain type of three - axis temperature - vibration integrated wireless sensor as an example, the functions of this wireless sensor include:
[0082] Collect vibration acceleration waveforms of X, Y, and Z axes;
[0083] Calculate the peak value, effective value and envelope value of vibration acceleration of each axis;
[0084] Measuring contact surface temperature;
[0085] Upload the peak value, effective value, envelope value and contact surface temperature of each axis vibration acceleration to the server;
[0086] The three-axis measuring range is: ±50g (Z axis), ±16g (X / Y axis);
[0087] Frequency response range: (2~12k)Hz@±3dB (Z axis), (2~1k)Hz@±3dB (X / Y axis)
[0088] First, define the standard analysis algorithm that needs to be tested. Specifically, define the required standard algorithm according to the function of the sensor. According to the requirements of this example, the functions that need to be tested by the sensor include: acceleration waveform peak value, effective value, and envelope value algorithm.
[0089] Furthermore, based on the defined standard analysis algorithm, the algorithm tools that need to be developed are screened out. The peak value, effective value and envelope value of acceleration need to be newly developed. In this example, LabView is used as a development tool to develop the peak value algorithm module, the effective value algorithm module and the envelope value algorithm module.
[0090] Furthermore, a wireless sensor test environment is constructed. The construction of a wireless sensor test environment includes four parts:
[0091] Build a standard algorithm environment by combining the three newly developed algorithm modules;
[0092] Construct a vibration standard signal environment for wireless sensor testing. This test uses a vibration table method, setting the acceleration to 1g, 2g, 5g, 10g, 30g, 50g, and the measurement frequency to 2Hz, 160Hz, 1kHz, 5kHz, 12kHz (only measuring the Z axis); the acceleration is 1g, 2g, 4g, 8g, 16g, and the measurement frequency is 2Hz, 80Hz, 512Hz, 1kHz (measuring three axes).
[0093] Construct a temperature standard signal environment for wireless sensors; in this example, a constant temperature box is used. Immerse the sensor in the constant temperature box and increase or decrease the temperature as the box rises and falls. After the temperature of the constant temperature box reaches -40℃ and +75℃ respectively, keep the temperature constant for 1 hour, set the sensor to test mode, and transmit the temperature signal to the test computer.
[0094] Build a real working environment for wireless sensor testing.
[0095] This wireless sensor is used to measure the vibration of large equipment. Considering that there are similar large equipment in the company, this example uses similar large equipment and conducts tests under actual working conditions without building a special test environment.
[0096] Furthermore, the wireless sensor is tested using the constructed test environment. The test includes the following steps:
[0097] Deploy the standard algorithm environment on the test computer to receive the waveform and data sent back by the wireless sensor;
[0098] Place the wireless sensor in a test environment with a standard vibration signal and set different standard vibration signals. During each set of standard signal tests, the wireless sensor will transmit the acceleration waveform to the test computer, and the wireless sensor will calculate the acceleration peak value, effective value and envelope value.
[0099] Place the wireless sensor in a temperature standard signal environment. The wireless sensor will automatically transmit the currently measured temperature to the test computer.
[0100] Place the wireless sensor in the actual working environment and perform the test according to the actual working conditions. The wireless sensor will upload the acceleration waveform, peak value, effective value and envelope value collected in the actual working conditions to the test computer.
[0101] Furthermore, the correctness of the wireless sensor functions is evaluated.
[0102] The standard algorithm tool is used to automatically compare the temperature value, acceleration peak value, velocity effective value and envelope value uploaded by the wireless sensor. The uploaded values for comparison include the uploaded values of the standard signal environment, the uploaded values of the temperature and the uploaded values of the actual working environment. Taking the velocity effective value test of a single sensor as an example, a specific example is given. In a certain test, as shown in Table 1, the velocity effective value of the wireless sensor has 11 sets of data, which are:
[0103]
[0104] Table 1
[0105] First, the F test is used to determine that the measured speed effective value and the standard speed effective value do not meet the variance secondarity. Then the paired sample t test is used to determine. The calculated t test value is 1.675, which is less than the t test with 10 degrees of freedom. 0.01 (3.169), so the original hypothesis is accepted, and it is considered that there is a large deviation between the test data and the standard data, and it is determined that the functional test of this group of wireless sensors fails.
[0106] After the improvement, step 4 and step 5 were re-executed, and the evaluation result was passed. The recalculated hypothesis test data was 4.547, which was greater than the t-value with 10 degrees of freedom. 0.01(3.169), so the hypothesis test passes, and it is determined that the sensor passes the functional test.
[0107] Embodiment 2
[0108] See also Figure 2 , Figure 2 1 is a schematic diagram of the structure of a wireless sensor testing device disclosed in an embodiment of the present application. Figure 2 As shown, the testing device of the embodiment of the present application includes the following functional modules:
[0109] The acquisition module 201 is used to acquire the test data uploaded by the wireless sensor, wherein the test data includes a signal test value, and the signal test value is the analysis and processing result of the wireless sensor on the original signal;
[0110] The analysis and processing module 202 is used to analyze and process the original signal based on a standard analysis algorithm to obtain a signal standard value;
[0111] The comparison module 203 is used to compare the signal standard value and the signal test value. If the signal standard value is the same as the signal test value, the function test of the wireless sensor passes.
[0112] The test device of the embodiment of the present application obtains the test data uploaded by the wireless sensor, wherein the test data includes a signal test value, and the signal test value is the analysis and processing result of the wireless sensor on the original signal, and then the original signal can be analyzed and processed based on the standard analysis algorithm to obtain the signal standard value, thereby comparing the signal standard value and the signal test value. If the signal standard value is the same as the signal test value, the functional test of the wireless sensor is passed, and finally the automatic test of whether the power test of the wireless sensor to be tested is normal is realized. The present application can automatically analyze and process the original signal. Compared with the prior art, which requires manual processing and analysis, it reduces the influence of human factors and avoids the problems of non-real-time, inconvenient and low accuracy of the test in the manual processing method, thereby improving the real-time, convenience and accuracy of the test. On the other hand, the present application can reduce the demand for manual labor, thereby reducing the cost and time of testing.
[0113] Embodiment 3
[0114] See also Figure 3 , Figure 3 Schematic diagram of the structure of an electronic device disclosed in the embodiment of the present application. Figure 3 As shown, the electronic device of the embodiment of the present application includes:
[0115] Processor 301;
[0116] The memory 302 is configured to store machine-readable instructions, which, when executed by the processor 301, execute the method of the embodiment of the present application.
[0117] The electronic device of the embodiment of the present application obtains the test data uploaded by the wireless sensor, wherein the test data includes a signal test value, and the signal test value is the analysis and processing result of the wireless sensor on the original signal, and then can analyze and process the original signal based on the standard analysis algorithm to obtain the signal standard value, thereby comparing the signal standard value and the signal test value. If the signal standard value is the same as the signal test value, the functional test of the wireless sensor is passed, and finally the automatic test of whether the power test of the wireless sensor to be tested is normal is realized. The present application can automatically analyze and process the original signal, which reduces the influence of human factors and avoids the problems of non-real-time, inconvenient and low accuracy of the test in the manual processing method, thereby improving the real-time, convenience and accuracy of the test. On the other hand, the present application can reduce the demand for manual labor, thereby reducing the cost and time of testing.
[0118] Embodiment 4
[0119] An embodiment of the present application discloses a storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor to execute the method of the embodiment of the present application.
[0120] The storage medium of the embodiment of the present application obtains the test data uploaded by the wireless sensor, wherein the test data includes a signal test value, and the signal test value is the analysis and processing result of the wireless sensor on the original signal, and then the original signal can be analyzed and processed based on the standard analysis algorithm to obtain the signal standard value, thereby comparing the signal standard value and the signal test value. If the signal standard value is the same as the signal test value, the functional test of the wireless sensor is passed, and finally the automatic test of whether the power test of the wireless sensor to be tested is normal is realized. The present application can automatically analyze and process the original signal. Compared with the prior art, which requires manual processing and analysis, it reduces the influence of human factors and avoids the problems of non-real-time, inconvenient and low accuracy of the test in the manual processing method, thereby improving the real-time, convenience and accuracy of the test. On the other hand, the present application can reduce the demand for manual labor, thereby reducing the cost and time of testing.
[0121] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0122] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0124] It should be noted that if the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0125] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0126] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for testing a wireless sensor, characterized in that: The method comprises: Acquire test data uploaded by the wireless sensor, wherein the test data includes a signal test value and an original signal, and the signal test value is an analysis and processing result of the wireless sensor on the original signal; Analyze and process the original signal based on a standard analysis algorithm to obtain a signal standard value; The signal standard value and the signal test value are compared. If the signal standard value is the same as the signal test value, the function test of the wireless sensor passes.
2. The method according to claim 1, characterized in that The method further comprises: When the test mode of the wireless sensor is a batch test mode, the mean of the first normal distribution is calculated, and the mean of the second normal distribution and the standard deviation of the second normal distribution are calculated, wherein the plurality of groups of signal test values satisfy the first normal distribution, and the plurality of groups of signal standard values satisfy the second normal distribution; Determine whether the difference between the mean of the first normal distribution and the mean of the second normal distribution is less than the standard deviation of the second normal distribution, and whether 99.73% of the test values in the multiple groups of the signal test values fall within a target numerical range, wherein the target numerical range is the mean of the second normal distribution plus 3 times the standard deviation of the second normal distribution; When the difference between the mean of the first normal distribution and the mean of the second normal distribution is less than the standard deviation of the second normal distribution, and 99.73% of the test values in the multiple groups of signal test values fall within the target value range, it is determined that the functional test of the wireless sensor has passed.
3. The method according to claim 2, characterized in that The method further comprises: When the test mode of the wireless sensor is a small batch test mode, determining whether the plurality of groups of signal test values and the plurality of groups of signal standard values satisfy variance homogeneity; When the plurality of groups of signal test values and the plurality of groups of signal standard values satisfy variance homogeneity, a Z test is performed, and if the plurality of groups of signal test values satisfy a Z test pass condition, it is determined that the function test of the wireless sensor has passed.
4. The method according to claim 3, characterized in that The method further comprises: When the plurality of groups of signal test values and the plurality of groups of signal standard values do not satisfy variance homogeneity, a T test is performed. If the T test condition is satisfied, the function test of the wireless sensor passes.
5. The method according to claim 1, characterized in that The method further comprises: The original signal is acquired based on the serial number of the wireless sensor.
6. The method according to claim 5, characterized in that The original signal includes a standard signal corresponding to a standard working condition and an actual signal corresponding to an actual working condition.
7. The method according to claim 3, characterized in that The standard analysis algorithm includes a first algorithm, a second algorithm and a third algorithm, wherein the first algorithm is used to calculate the peak value of the acceleration waveform, the second algorithm is used to calculate the effective value of the acceleration, and the third algorithm is used to calculate the acceleration envelope value.
8. A wireless sensor testing device, characterized in that: The device comprises: An acquisition module, used for acquiring test data uploaded by the wireless sensor, wherein the test data includes a signal test value and an original signal, and the signal test value is an analysis and processing result of the wireless sensor on the original signal; An analysis and processing module, used to analyze and process the original signal based on a standard analysis algorithm to obtain a signal standard value; The comparison module is used to compare the signal standard value with the signal test value. If the signal standard value is the same as the signal test value, the function test of the wireless sensor passes.
9. An electronic device, characterized in that: include: processor; A memory configured to store machine-readable instructions, wherein when the instructions are executed by the processor, the method according to any one of claims 1 to 7 is performed.
10. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor to perform the method according to any one of claims 1 to 7.