Method for testing sensing sensitivity of terminal based on Internet of things
1. A test method based on terminal sensing sensitivity of the Internet of things is characterized by comprising the following steps: the method comprises the following steps:
s1: a sensing circuit signal interface of a sensor to be tested is accessed into a test signal simulator, and a sensing signal of an actual sensor is simulated through a method of simulating an electric signal on a sensing extension layer to generate linear information of sensor equipment;
s2: the method comprises the following steps that APP application information, short message information and telephone information are accessed to a test system through a man-machine interactive mobile intelligent terminal in an application layer, and human operation behaviors are simulated;
s3: reading output information, transmitting a sensor working signal through a network after self processing, pushing the linear information to the mobile intelligent terminal through a cloud platform, and acquiring sensitivity information of the tested mobile intelligent terminal by an Automatic Test System (ATS) through monitoring APP pushing or short message prompting or telephone prompting information of the mobile intelligent terminal;
s4: judging the accuracy and reliability of system information, continuously carrying out signal excitation of the sensor to be tested, and verifying whether the sensor executes corresponding actions; meanwhile, the system function is continuously tested, the reliability data index of the system output function is obtained, the test closed loop of the sensing sensitivity of the Internet of things is realized, and the bidirectional automatic test operation from the user to the equipment and from the equipment to the user is completed;
s5: different test cases are compiled in a script mode, and reliability tests covering all application functions are completed.
2. The test method based on the terminal sensing sensitivity of the internet of things according to claim 1, characterized in that: the test signal simulator comprises a microprocessor MCU, and an Ethernet port circuit, an input port, an output port, an LED status indicator lamp and a power module which are respectively connected with the microprocessor MCU;
the microprocessor MCU is a data processing core unit, uploads the detected signal to the PC end, and generates a corresponding output signal after the PC end issues an instruction for analysis;
the Ethernet port circuit is communicated with the PC end through the Ethernet;
the LED status indicator lamp is used for displaying the working state and the signal state of the test system;
the input end comprises an AD sampling circuit and an input level conversion circuit, the AD sampling circuit processes the analog signal input of the execution equipment and converts the analog signal into a digital signal to be processed by the MCU, and the input level conversion circuit converts the digital signal of the execution equipment into a level signal to be sent to the MCU for processing;
the output end comprises a DA conversion circuit and an output level conversion circuit, the DA conversion circuit generates an analog trigger signal required by the sensor of the system to be tested to replace an actual physical informing signal, and the output level conversion circuit is used for generating level output for exciting the sensor;
and the power supply module is used for providing power supply for each module.
3. The test method based on the terminal sensing sensitivity of the internet of things according to claim 1, characterized in that: in step S1, the method specifically includes:
signal excitation: running an ATS on a PC, wherein the ATS sends excitation information to a test signal simulator through a test sequence, and the test signal simulator generates a sensing electric signal simulating sensor equipment to excite the tested sensor equipment;
signal acquisition: and running the ATS on the PC, wherein the ATS acquires the electric signal of the sensor equipment through the test signal simulator, and acquires the functional response and sensitivity information of the tested sensor equipment.
4. The test method based on the terminal sensing sensitivity of the internet of things according to claim 1, characterized in that: in step S2, the mobile intelligent terminal is connected to a PC, and then an upper test Agent file is embedded in the mobile intelligent terminal.
5. The test method based on the terminal sensing sensitivity of the internet of things according to claim 4, characterized in that: in step S2, the method specifically includes:
test command stimulus: running an ATS on the PC, wherein the ATS sends a test command to an APP or a short message on the mobile intelligent terminal through a test sequence to stimulate the function of the system to be tested to realize;
collecting a test result: and running the ATS on the PC, wherein the ATS acquires the function response and sensitivity information of the mobile intelligent terminal to be tested by monitoring the APP or short message or telephone information of the mobile intelligent terminal.
6. The test method based on the terminal sensing sensitivity of the internet of things according to claim 1, characterized in that: in step S5, the PC executes various test cases developed based on the script language, sends commands to the test signal simulator, generates excitation signals to simulate and trigger sensor working commands of the tested system, and collects and generates feedback of the application layer and the actuator through the test signal simulator; and automatically comparing the information output by the mobile intelligent terminal with an expected result, judging a test result, generating a log record and outputting a report.
Background
In general, the higher the sensitivity of the sensor, the better, in the linear range of the sensor. Only when the sensitivity is high, the value of the output signal corresponding to the measured change is larger, which is beneficial to signal processing. However, it should be noted that the sensor has high sensitivity, and external noise irrelevant to the measurement is also easily mixed in, and is also amplified by the amplification system, which affects the measurement accuracy. Therefore, it is required that the sensor itself should have a high signal-to-noise ratio to minimize interference signals introduced from the outside. The sensitivity of the sensor is directional. When the measured vector is a single vector and the requirement on the directivity is high, a sensor with low sensitivity in other directions is selected; if the measurand is a multidimensional vector, it is required that the cross-sensitivity of the sensor is as small as possible. At present, most of the current markets adopt manual instruments for testing, and an automatic testing system is not formed.
Disclosure of Invention
In view of this, the invention aims to provide a method for testing the sensing sensitivity of a terminal of the internet of things, so as to realize automation of a test sequence.
In order to achieve the purpose, the invention provides the following technical scheme:
a test method based on the sensing sensitivity of an Internet of things terminal comprises the following steps:
s1: a sensing circuit signal interface of a sensor to be tested is accessed into a test signal simulator, and a sensing signal of an actual sensor is simulated through a method of simulating an electric signal on a sensing extension layer to generate linear information of sensor equipment;
s2: the method comprises the following steps that APP application information, short message information and telephone information are accessed to a test system through a man-machine interactive mobile intelligent terminal in an application layer, and human operation behaviors are simulated;
s3: reading output information, transmitting a sensor working signal through a network after self processing, pushing the linear information to the mobile intelligent terminal through a cloud platform, and acquiring sensitivity information of the tested mobile intelligent terminal by an Automatic Test System (ATS) through monitoring APP pushing or short message prompting or telephone prompting information of the mobile intelligent terminal;
s4: judging the accuracy and reliability of system information, continuously carrying out signal excitation of the sensor to be tested, and verifying whether the sensor executes corresponding actions; meanwhile, the system function is continuously tested, the reliability data index of the system output function is obtained, the test closed loop of the sensing sensitivity of the Internet of things is realized, and the bidirectional automatic test operation from the user to the equipment and from the equipment to the user is completed;
s5: different test cases are compiled in a script mode, and reliability tests covering all application functions are completed.
Further, the test signal simulator comprises a microprocessor MCU, and an Ethernet port circuit, an input port, an output port, an LED status indicator lamp and a power module which are respectively connected with the microprocessor MCU;
the microprocessor MCU is a data processing core unit, uploads the detected signal to the PC end, and generates a corresponding output signal after the PC end issues an instruction for analysis;
the Ethernet port circuit is communicated with the PC end through the Ethernet;
the LED status indicator lamp is used for displaying the working state and the signal state of the test system;
the input end comprises an AD sampling circuit and an input level conversion circuit, the AD sampling circuit processes the analog signal input of the execution equipment and converts the analog signal into a digital signal to be processed by the MCU, and the input level conversion circuit converts the digital signal of the execution equipment into a level signal to be sent to the MCU for processing;
the output end comprises a DA conversion circuit and an output level conversion circuit, the DA conversion circuit generates an analog trigger signal required by the sensor of the system to be tested to replace an actual physical informing signal, and the output level conversion circuit is used for generating level output for exciting the sensor;
and the power supply module is used for providing power supply for each module.
Further, in step S1, the method specifically includes:
signal excitation (upstream): running an ATS on a PC, wherein the ATS sends excitation information to a test signal simulator through a test sequence, and the test signal simulator generates a sensing electric signal simulating sensor equipment to excite the tested sensor equipment;
signal acquisition (downlink): and running the ATS on the PC, wherein the ATS acquires the electric signal of the sensor equipment through the test signal simulator, and acquires the functional response and sensitivity information of the tested sensor equipment.
Further, in step S2, the mobile intelligent terminal is connected to the PC, and then an upper test Agent file is embedded in the mobile intelligent terminal.
Further, step S2 specifically includes:
test command stimulus (downstream): running an ATS on the PC, wherein the ATS sends a test command to an APP or a short message on the mobile intelligent terminal through a test sequence to stimulate the function of the system to be tested to realize;
test result collection (up-line): and running the ATS on the PC, wherein the ATS acquires the function response and sensitivity information of the mobile intelligent terminal to be tested by monitoring the APP or short message or telephone information of the mobile intelligent terminal.
Further, in step S5, the PC executes various test cases developed based on the scripting language, sends a command to the test signal simulator, generates an excitation signal to simulate and trigger a sensor working command of the system under test, and collects feedback of the application layer and the actuator after the excitation is generated by the test signal simulator; and automatically comparing the information output by the mobile intelligent terminal with an expected result, judging a test result, generating a log record and outputting a report.
The invention has the beneficial effects that: the invention adopts an automatic testing method, can realize the development of continuous stability test on the sensitivity of the networked sensors, and realizes the automation of a test sequence by solving the end-to-end controllable programming execution of an application end-sensor end of a networked sensor sensitivity testing system. According to the test method, real equipment is abstracted into different application interface services, transparent simulation is achieved, the defects and the stability of products can be found well, the use flexibility is high, the test efficiency is improved, and the development cost is reduced.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objectives and other advantages of the invention may be realized and attained by the means of the instrumentalities and combinations particularly pointed out hereinafter.
Drawings
For the purposes of promoting a better understanding of the objects, aspects and advantages of the invention, reference will now be made to the following detailed description taken in conjunction with the accompanying drawings in which:
FIG. 1 is a schematic structural diagram of a test signal simulator;
FIG. 2 is a diagram of a test scenario architecture;
FIG. 3 is a functional block diagram of the PC side;
fig. 4 is a schematic structural diagram of a test scenario in an embodiment.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention in a schematic way, and the features in the following embodiments and examples may be combined with each other without conflict.
Wherein the showings are for the purpose of illustrating the invention only and not for the purpose of limiting the same, and in which there is shown by way of illustration only and not in the drawings in which there is no intention to limit the invention thereto; to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it should be understood that if there is an orientation or positional relationship indicated by terms such as "upper", "lower", "left", "right", "front", "rear", etc., based on the orientation or positional relationship shown in the drawings, it is only for convenience of description and simplification of description, but it is not an indication or suggestion that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and therefore, the terms describing the positional relationship in the drawings are only used for illustrative purposes, and are not to be construed as limiting the present invention, and the specific meaning of the terms may be understood by those skilled in the art according to specific situations.
Please refer to fig. 1 to 4.
Example (b): a forest Internet of things terminal sensing sensitivity test is composed of a PC (personal computer) end and a test signal simulator. The PC end and the test signal simulator form hardware equipment of the test system, the test signal simulator receives an instruction sent by the PC end, response analog or digital signals are output from the output port to excite the sensor equipment, analog or digital signals are collected from the input port, and the analog or digital signals are converted and sent to the MCU.
As shown in fig. 1, the test signal simulator includes a microprocessor MCU, and an ethernet port circuit, an AD sampling circuit, an input level conversion circuit, a DA conversion circuit, an output level conversion circuit, an LED status indicator lamp, and a power module, which are respectively connected to the microprocessor MCU.
The microprocessor MCU: and the data processing core unit uploads the detected signals to the PC terminal, and generates corresponding output after the PC terminal issues an instruction for analysis.
Ethernet port circuit: and the PC terminal is communicated with the Ethernet.
An AD sampling circuit: and the processing execution equipment inputs the analog signal and converts the analog signal into a digital signal to be processed by the MCU.
An input level conversion circuit: and converting the digital signal of the execution equipment into a proper level, and sending the level to the MCU for processing.
LED status indicator lamp: and expressing the working state and the signal state of the test instrument.
A DA conversion circuit: the analog trigger signal required by the sensor of the system to be tested is generated to replace the actual physical informing signal.
An output level conversion circuit: if the analog signal generated by the test instrument can not meet the excitation requirement of the sensor equipment, skipping over the analog-to-digital conversion circuit part of the sensor, and directly generating a corresponding signal for excitation.
A power supply unit: providing the power requirements of the various circuit portions.
Aiming at the application function of the method for testing the sensing sensitivity of the terminal of the Internet of things, all sensing devices are accessed to a testing system on a sensing extension layer by a method for simulating electric signals, sensing signals of actual sensors are simulated, and alarm information of all sensing devices is generated; meanwhile, APP application information, short message information, telephone information and the like are accessed to the testing system through a man-machine interactive mobile multifunctional intelligent terminal in an application layer, human operation behaviors are simulated, various output information is read, accuracy and reliability of system information are judged in an automatic mode, a testing and testing closed loop of sensing sensitivity of the Internet of things terminal is achieved, bidirectional automatic testing operation from a user to equipment and from the equipment to the user is completed, different testing cases are further compiled in a script mode, and reliability testing covering all application functions is completed.
The testing System (ATS) is mainly composed of a PC end and a testing signal simulator, the ATS is installed at the PC end, and a System Under Test (SUT) is a typical testing System for the sensing sensitivity of the terminal of the Internet of things. The test scenario structure formed by the test system and the system under test is shown in fig. 2. The test procedure is as follows.
a. Aiming at the function of a test system of the terminal sensing sensitivity of the Internet of things, a sensing circuit signal interface of the sensor equipment to be tested is connected into a test signal simulator in a physical connection mode, and a sensing signal of an actual sensor is simulated on a sensing extension layer by a method of simulating an electric signal to generate required information of the sensor equipment.
Signal excitation (upstream): and running the ATS on the PC, wherein the ATS sends excitation information to the test signal simulator through the test sequence, and the test signal simulator generates a sensing electric signal simulating the sensing equipment to excite the tested sensor equipment.
Signal acquisition (downlink): and running the ATS on the PC, wherein the ATS acquires the electric signal of the sensor equipment through the test signal simulator, and acquires the functional response and sensitivity information of the tested sensor equipment.
b. The method comprises the following steps that APP application information, short message information, telephone information and the like are accessed to a test system through a man-machine interactive mobile intelligent terminal in an application layer, and human operation behaviors are simulated; a mobile intelligent terminal (such as a smart phone) is connected with a PC (personal computer) through a USB (universal serial bus) line, and then an upper test Agent file is embedded in the mobile phone.
Test command stimulus (downstream): and running the ATS on the PC, wherein the ATS sends a test command to the APP or the short message on the mobile intelligent terminal through the test sequence, and the function of the tested system is stimulated to realize.
Test result collection (up-line): and running the ATS on the PC, wherein the ATS acquires the function response and sensitivity information of the mobile intelligent terminal to be tested by monitoring the APP or short message or telephone information of the mobile intelligent terminal.
c. Reading sensor output information, processing a sensor transmission signal, transmitting the processed signal through a network, pushing the alarm information to the mobile intelligent terminal through the cloud platform, and acquiring function response and sensitivity information of the tested mobile intelligent terminal by the ATS through monitoring APP push or short message prompt or telephone prompt information of the mobile intelligent terminal.
d. Judging the accuracy and reliability of system information, continuously carrying out signal excitation of a sensor to be tested, and verifying whether the mobile intelligent terminal executes corresponding actions; meanwhile, the functions of the system are continuously tested for a long time of N x 24 hours, the reliability data index of the alarm function of the system is obtained, the test closed loop of the forestry Internet of things monitoring system is realized, and the bidirectional automatic test operation from the user to the equipment and from the equipment to the user is completed.
The PC terminal executes various test cases developed based on the scripting language, sends commands to the test signal simulation tester, generates excitation signals to simulate and trigger sensor working commands of the tested system, and meanwhile, feedback of an application layer and an actuator is collected and generated by the test signal simulation tester; and processing information output by the mobile multifunctional intelligent terminal of the tested system, automatically comparing the information with an expected result, judging a test result, generating a log record and outputting a report. The functional block diagram of the PC side is shown in fig. 3.
Taking the test based on the sensing sensitivity of the terminal of the internet of things as an example, a test scene structure is constructed as shown in fig. 4, and the test steps are as follows.
(1) In the SUT, a usable Internet of things terminal sensing sensitivity test system is built according to the Internet of things terminal sensing sensitivity test;
(2) in the ATS, a PC end is connected with a mobile multifunctional intelligent terminal in a wired or wireless mode, and a test signal simulation tester is physically connected with the input and the input of an A/D converter;
(3) writing a test sequence of the A/D converter in a test integration development environment in the ATS;
(4) receiving a test sequence command in a test signal simulator, and simulating AD input and DA input through the test signal simulator;
(5) in the test sequence, continuously detecting whether the smart phone and the APP have short messages or phone or APP push output messages, and verifying whether the function of the A/D converter is normal;
the automated test sequence of the a/D converter function which has been constructed and programmed through the above-mentioned (1) to (5). And continuously testing the system function for N × 24 hours for a long time to obtain the reliability and sensitivity data indexes of the A/D converter function.
Therefore, the invention adopts an automatic testing method, can realize the continuous stability test of N x 24 hours for the terminal sensing sensitivity test of the Internet of things, realizes the automation of a testing sequence by solving the end-to-end controllable programming execution of an application end-sensing end of the terminal sensing sensitivity testing system of the Internet of things, finds various defects in the aspects of system requirements, design, coding and the like under the long-time continuous operation of a tested product, and provides reliability data. For testers, the test efficiency and the accuracy of test data are improved.
Finally, the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the present invention, and although the present invention has been described in detail with reference to the preferred embodiments, it will be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions, and all of them should be covered by the claims of the present invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种智能网联传感器自动化下线点检系统