CN107727133B - Method and system for testing internal sensor of intelligent terminal - Google Patents

Method and system for testing internal sensor of intelligent terminal Download PDF

Info

Publication number
CN107727133B
CN107727133B CN201711054419.5A CN201711054419A CN107727133B CN 107727133 B CN107727133 B CN 107727133B CN 201711054419 A CN201711054419 A CN 201711054419A CN 107727133 B CN107727133 B CN 107727133B
Authority
CN
China
Prior art keywords
intelligent terminal
sensor
screen
test
response data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711054419.5A
Other languages
Chinese (zh)
Other versions
CN107727133A (en
Inventor
韩继梁
赵彦玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Huabei Electronic Technology Co Ltd
Original Assignee
Dongguan Huabei Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Huabei Electronic Technology Co Ltd filed Critical Dongguan Huabei Electronic Technology Co Ltd
Priority to CN201711054419.5A priority Critical patent/CN107727133B/en
Publication of CN107727133A publication Critical patent/CN107727133A/en
Application granted granted Critical
Publication of CN107727133B publication Critical patent/CN107727133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00

Abstract

The invention discloses a method and a system for testing an internal sensor of an intelligent terminal, wherein the method comprises the following steps: the upper computer transmits a trigger instruction to the mechanical suite; the mechanical suite executes the trigger instruction to simulate a test scene of a target sensor in the intelligent terminal; and the upper computer receives response data of the intelligent terminal, wherein the response data is data of the target sensor responding to the test scene. The invention can automatically test the sensor in the intelligent terminal, saves time and labor, can cover various application scenes of the sensor during the test, can effectively screen out the defects of the sensor in the intelligent terminal, and ensures the factory yield of the intelligent terminal.

Description

Method and system for testing internal sensor of intelligent terminal
Technical Field
The invention relates to a test of a sensor, in particular to a test method and a test system of an internal sensor of an intelligent terminal.
Background
At present, intelligent terminals such as mobile phones and Pad (tablet personal computers) include various sensors, such as progressive sensors (also called distance sensors), optical line sensors, gyroscope sensors, and the like, and these sensors are installed in the intelligent terminals in the production process of the intelligent terminals, so in the factory test of the intelligent terminals, these sensors need to be tested one by one, so that the defects of the internal sensors of the intelligent terminals can be screened out before the factory leaves, the yield of the intelligent terminals when the intelligent terminals leave the factory is improved, and meanwhile, good use experience of intelligent terminal users is ensured.
In the existing test, the test of the sensors generally needs manual operation of workers and manual judgment of test results, and the test can only simply simulate a certain application scene each time to carry out the test aiming at a certain function of a certain sensor, so that the test of a plurality of sensors in the intelligent terminal is finished even if different functions of one sensor are tested, which wastes time and labor. In addition, the response conditions of the sensors in multiple application scenarios cannot be tested one by one through manual testing.
Disclosure of Invention
The invention provides a method and a system for testing a sensor in an intelligent terminal, aiming at overcoming the defects that in the prior art, a worker manually operates and tests time-consuming and labor-consuming tests, and cannot test the response condition of the sensor in a plurality of application scenes.
The invention solves the technical problems through the following technical scheme:
the invention provides a test method of an internal sensor of an intelligent terminal, which is characterized by comprising the following steps:
the upper computer transmits a trigger instruction to the mechanical suite;
the mechanical suite executes the trigger instruction to simulate a test scene of a target sensor in the intelligent terminal;
and the upper computer receives response data of the intelligent terminal, wherein the response data is data of the target sensor responding to the test scene.
In this scheme, the host computer is as test control end like PC (personal computer, computer), the testing tool of operation sensor, for example to the inside sensor test of intelligent terminal based on Android (Android) system, at this moment the host computer just can operate the automatic testing tool of Android for example UiAutomator (the automatic testing tool of UI), the host computer can be connected with intelligent terminal like USB (Universal Serial Bus) through general standard interface like this, thereby the host computer controls intelligent terminal through the UiAutomator script, make the host computer can in time acquire the response data of the inside sensor of intelligent terminal. On the other hand, since the mechanical kit is generally a non-standard device and is generally provided with an interface facilitating communication with a PC, such as a serial interface like RS232, RS485, USB, etc., the upper computer transmits the trigger command to the mechanical kit through a serial protocol. Therefore, the upper computer in the scheme can realize automatic test on the sensor inside the intelligent terminal by combining the UiAutomator script with the serial protocol.
Optionally, after the step of receiving, by the upper computer, the response data of the intelligent terminal, the method further includes: and the upper computer judges whether the response data is matched with the pre-stored data, if so, the test is successful, and if not, the test is failed.
Optionally, the host computer specifically includes to mechanical external member transmission trigger command:
the upper computer transmits a trigger instruction to the lower computer through a serial interface;
the lower computer converts the trigger instruction into a trigger signal;
and the relay in the lower computer triggers the mechanical external member according to the trigger signal.
In this scheme, constitute single chip microcomputer control operation ware as the communication intermediary of host computer and mechanical external member through adopting the lower computer like MCU (Microcontroller Unit, little the control Unit), receive and resolve the trigger instruction by the lower computer to adopt like the relay drive ability strong like this, can keep apart the electric drive circuit of front and back level again and generate trigger signal and remove trigger mechanical external member, can simplify the design of mechanical external member like this, realize the modularization of mechanical external member, the universalization design, improve the use flexibility of mechanical external member.
Optionally, the receiving, by the upper computer, the response data of the intelligent terminal specifically includes:
the upper computer triggers a monitoring program in the intelligent terminal, the monitoring program is used for monitoring response data, and the response data is data of the target sensor responding to the test scene;
and the upper computer receives the response data output by the intelligent terminal.
In the scheme, the upper computer can collect monitoring data of a monitoring program in the intelligent terminal through a UiAutomator script, so that response data of an internal sensor of the intelligent terminal can be acquired.
Optionally, the target sensor includes a progressive sensor, and the mechanical kit includes a first fixing bracket and a solenoid valve, where the first fixing bracket is used to fix the intelligent terminal;
the electromagnetic valve executes the trigger instruction to pop out a valve to shield the progressive sensor so as to simulate a first test scene, wherein the first test scene is as follows: the head of a user in the call is close to the test scene of the intelligent terminal;
when the intelligent terminal is in a voice call state, the monitoring program monitors the data of the intelligent terminal in the screen-off state of the progressive sensor and the data of the screen-on state of the progressive sensor;
the response data includes the screen-off state data and the screen-on state data.
Optionally, the target sensor includes a light sensor, the mechanical kit includes a dark box, a second fixed bracket and an LED (light emitting diode) light source are disposed in the dark box, the second fixed bracket is used to fix the intelligent terminal, the LED light source executes the trigger instruction to change a light emitting brightness so as to simulate a second test scenario, and the second test scenario is: the intelligent terminal is located in a test scene of the brightness change of external light;
when the brightness of external light of the intelligent terminal changes, the monitoring program monitors screen brightness data of the intelligent terminal when the light sensation sensor senses the brightness of the external light;
the response data includes the screen brightness data.
Optionally, the target sensor includes a gyroscope sensor, the mechanical kit includes a third fixed support and a servo motor, the third fixed support is used to fix the intelligent terminal, the servo motor is used to rotate an angle of the third fixed support according to the trigger instruction to simulate a third test scenario, and the third test scenario is: a test scene of screen rotation of the intelligent terminal;
when the screen of the intelligent terminal is in a rotating state, the monitoring program monitors the horizontal screen state or the vertical screen state of the intelligent terminal when the gyroscope sensor senses the angle;
the response data includes the landscape screen state and/or the portrait screen state.
The invention also provides a test system of the sensor in the intelligent terminal, which is characterized by comprising an upper computer and a mechanical suite, wherein the upper computer comprises a command transmitter and a logic processor;
the command transmitter is used for transmitting a triggering instruction to the mechanical suite;
the mechanical suite is used for executing the trigger instruction to simulate a test scene of a target sensor in the intelligent terminal;
the logic processor is used for receiving response data of the intelligent terminal, and the response data is data of the target sensor responding to the test scene.
Optionally, the upper computer further includes a judgment processor, after the logic processor receives the response data, the judgment processor is configured to judge whether the response data is matched with pre-stored data, if so, the test is successful, otherwise, the test fails.
Optionally, the test system further comprises a lower computer, the upper computer further comprises a first serial interface module, and the lower computer comprises a control processing module, a second serial interface module and a relay module;
the first serial interface module is used for transmitting the trigger instruction to the second serial interface module;
the control processing module is used for converting the trigger instruction into a trigger signal and transmitting the trigger signal to the relay module;
the relay module triggers the mechanical suite according to the trigger signal.
Optionally, the logic processor firstly triggers a monitoring program in the intelligent terminal, where the monitoring program is used to monitor response data, and the response data is data of the target sensor responding to the test scenario; and then the logic processor receives the response data output by the intelligent terminal.
Optionally, the target sensor includes a progressive sensor, the mechanical kit includes a first fixed bracket and an electromagnetic valve, the first fixed bracket is used to fix the intelligent terminal, the electromagnetic valve is used to execute the trigger instruction pop-up valve to shield the progressive sensor, so as to simulate a first test scenario, where the first test scenario is: the head of a user in the call is close to the test scene of the intelligent terminal;
the monitoring program is used for making a call and monitoring the data of the intelligent terminal in the screen-off state of the progressive sensor and the data of the screen-on state of the progressive sensor;
the response data includes the screen-off state data and the screen-on state data.
Optionally, the target sensor includes a light sensor, the mechanical kit includes a dark box, a second fixed bracket and an LED light source are disposed in the dark box, the second fixed bracket is used to fix the intelligent terminal, the LED light source is used to execute the trigger instruction to change the light-emitting brightness so as to simulate a second test scenario, and the second test scenario is: the intelligent terminal is located in a test scene of the brightness change of external light;
when the brightness of external light at which the intelligent terminal is located changes, the monitoring program is used for monitoring screen brightness data of the intelligent terminal when the light sensation sensor senses the brightness of the external light;
the response data includes the screen brightness data.
Optionally, the target sensor includes a gyroscope sensor, the mechanical kit includes a third fixed support and a servo motor, the third fixed support is used to fix the intelligent terminal, the servo motor is used to rotate an angle of the third fixed support according to the trigger instruction to simulate a third test scenario, and the third test scenario is: a test scene of screen rotation of the intelligent terminal;
when the screen of the intelligent terminal is in a rotating state, the monitoring program is used for monitoring the horizontal screen state or the vertical screen state of the intelligent terminal when the gyroscope sensor senses the angle;
the response data includes the landscape screen state and/or the portrait screen state.
The positive progress effects of the invention are as follows: the method and the system for testing the sensor in the intelligent terminal can automatically test the sensor in the intelligent terminal, not only save time and labor, but also cover various application scenes of the sensor in the test, can effectively screen out the defects of the sensor in the intelligent terminal and ensure the ex-factory yield of the intelligent terminal.
Drawings
Fig. 1 is a flowchart of a method for testing an internal sensor of an intelligent terminal according to embodiment 1 of the present invention.
Fig. 2 is a flowchart of a method for testing an internal sensor of an intelligent terminal according to embodiment 2 of the present invention.
Fig. 3 is a schematic composition diagram of a system for testing an internal sensor of an intelligent terminal according to embodiment 3 of the present invention.
Fig. 4 is a schematic composition diagram of a system for testing an internal sensor of an intelligent terminal according to embodiment 4 of the present invention.
Fig. 5 is a schematic composition diagram of a mechanical kit of a system for testing an internal sensor of an intelligent terminal according to embodiment 4 of the present invention when a target sensor is a progressive sensor.
Fig. 6 is a schematic composition diagram of a mechanical kit of a system for testing an internal sensor of an intelligent terminal according to embodiment 4 of the present invention, when a target sensor is a light-sensitive sensor.
Fig. 7 is a schematic composition diagram of a mechanical kit of a system for testing an internal sensor of an intelligent terminal according to embodiment 4 of the present invention when a target sensor is a gyroscope sensor.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
As shown in fig. 1, the method for testing an internal sensor of an intelligent terminal according to the present embodiment includes the steps of:
101. the upper computer transmits a trigger instruction to the mechanical suite;
102. the mechanical suite executes the trigger instruction to simulate a test scene of a target sensor in the intelligent terminal;
103. and the upper computer receives response data of the intelligent terminal, wherein the response data is data of the target sensor responding to the test scene.
In this embodiment, a PC may be used as the upper computer, and a test tool of the sensor is run in the PC, for example, for a sensor test inside an intelligent terminal (e.g., Pad or smart phone) of an Android system, the test tool may select an Android automatic test tool such as uiauto, so that the PC may be connected to the intelligent terminal through a universal standard interface such as USB, and at this time, the PC may control the intelligent terminal through a uiauto script, so as to obtain response data of the sensor inside the intelligent terminal in time. On the other hand, since the mechanical kit is generally a non-standard device and is generally provided with an interface for facilitating communication with a PC, such as a Serial interface like RS232, RS485, USB (Universal Serial Bus), etc., the PC can transmit the trigger command to the mechanical kit through a Serial protocol. Therefore, by the testing method of the embodiment, manual operation of workers is not needed for testing the sensor inside the intelligent terminal, time and labor are saved, different testing scenes are automatically simulated, and automatic testing can be performed on the sensor inside the intelligent terminal.
Example 2
On the basis of embodiment 1, as shown in fig. 2 in particular, a possible implementation manner of step 101 is provided:
1011. the upper computer transmits a trigger instruction to the lower computer through a serial interface;
1012. the lower computer converts the trigger instruction into a trigger signal;
1013 the relay inside the lower computer triggers the mechanical external member according to the trigger signal.
At this moment, the lower computer is used as a communication medium of the upper computer and the mechanical external member, the lower computer receives and analyzes the trigger instruction, and the trigger signal is generated by the driving circuit which has strong driving capability and can isolate front and rear electrical stages like a relay to trigger the mechanical external member, so that the design of the mechanical external member can be simplified, the modularization and the generalization of the mechanical external member can be realized, and the use flexibility of the mechanical external member is improved. The lower computer can preferably adopt MCU.
Further, this embodiment also provides a possible implementation manner of step 103:
1031. the upper computer triggers a monitoring program in the intelligent terminal, the monitoring program is used for monitoring response data, and the response data is data of the target sensor responding to the test scene;
1032. and the upper computer receives the response data output by the intelligent terminal.
At this moment, the host computer can be through setting up monitor like UiAutomator script in that intelligent terminal is inside, need not to change intelligent terminal like this, and the host computer just can in time collect intelligent terminal internal sensor's response data through monitor.
Further, in this embodiment, after step 103, the testing method further includes:
104. and the upper computer judges whether the response data is matched with the pre-stored data, if so, the test is successful, otherwise, the test is failed, so that the upper computer can judge to determine the subsequent test work according to the test condition, and the automatic test is better performed. Of course, in the actual test, the test can be closed more by setting the test times and the number of times of failure without performing the test, so as to obtain better test effect.
Further, when the target sensor comprises a progressive sensor, the mechanical suite comprises a first fixed support and an electromagnetic valve, the first fixed support is used for fixing the intelligent terminal, the electromagnetic valve executes the trigger instruction to pop out a valve to shield the progressive sensor so as to simulate a first test scene, the first test scene is a test scene that the head of a user is close to the intelligent terminal in a call, and when the intelligent terminal is in a voice call state, the monitoring program monitors screen-off state data of the intelligent terminal in the progressive sensor and screen-on state data of the progressive sensor; the response data includes the screen-off state data and the screen-on state data.
At the moment, when a call is made, the screen of the intelligent terminal is bright, and when the head of a user is close to the screen of the mobile phone, the screen of the intelligent terminal becomes dark, and even when the head of the user is shielded, the screen is off. Here, the host computer can set a monitoring program in the intelligent terminal by using the Uiautomator script through a USB interface, and control the intelligent terminal to make a call or answer, and then the electromagnetic valve of the mechanical suite pops up the valve to shield the progressive sensor, so that the action of the user when the head approaches is simulated. In addition, the upper computer can also control the intelligent terminal to play the video, so that the response data of the progressive sensor in the video playing state can be tested.
Further, when the target sensor comprises a light sensation sensor, the mechanical suite comprises a dark box, a second fixed support and an LED light source are arranged in the dark box, the second fixed support is used for fixing the intelligent terminal, the LED light source executes the trigger instruction to change the brightness of the emitted light so as to simulate a second test scene, and the second test scene is a test scene of brightness change of external light where the intelligent terminal is located; when the brightness of external light of the intelligent terminal changes, the monitoring program monitors screen brightness data of the intelligent terminal when the light sensation sensor senses the brightness of the external light; the response data includes the screen brightness data.
At this time, when the external light environment changes (such as becoming brighter or darker), the screen of the smart terminal becomes brighter or darker. Here, the upper computer can set a monitoring program in the intelligent terminal by using the Uiautomator script through a USB interface, so as to feed back the change value of the screen brightness in real time, at the moment, the mechanical suite controls the LED brightness according to a trigger signal such as a current intensity signal, and the upper computer can timely collect response data through the monitoring program.
Further, when the target sensor includes a gyroscope sensor, the mechanical kit includes a third fixed support and a servo motor, the third fixed support is used for fixing the intelligent terminal, the servo motor is used for rotating an angle of the third fixed support according to the trigger instruction to simulate a third test scenario, and the third test scenario is: a test scene of screen rotation of the intelligent terminal; when the screen of the intelligent terminal is in a rotating state, the monitoring program monitors the horizontal screen state or the vertical screen state of the intelligent terminal when the gyroscope sensor senses the angle; the response data includes the landscape screen state and/or the portrait screen state.
At this moment, when the intelligent terminal overturns, the screen display mode can change along with the rotation angle. Here, the host computer just can be through like the USB interface, use Uiautomator script to set up monitor in intelligent terminal to real-time feedback screen display mode's change, at this moment the third fixed bolster is generally perpendicular to the horizontal plane and is placed, miniature servo motor has still been put to the third fixed bolster centre, the machinery external member just can let the third fixed bolster carry out in the same direction as/anticlockwise rotation according to trigger signal, the inside gyroscope of intelligent terminal will be according to the contained angle of different horizontal planes, and change the presentation mode of screen, for example horizontal screen or vertical screen.
In view of the fact that the types of the sensors in the intelligent terminal are more, the testing methods of other sensors can be set corresponding to the testing method according to the embodiment, and are not listed one by one.
Example 3
As shown in fig. 3, the system for testing an internal sensor of an intelligent terminal according to this embodiment includes an upper computer 1 and a mechanical suite 2, where the upper computer 1 includes a command transmitter 11 and a logic processor 12, the command transmitter 11 is configured to transmit a trigger instruction to the mechanical suite 2, the mechanical suite 2 is configured to execute the trigger instruction to simulate a test scenario of an internal target sensor of the intelligent terminal 3, and the logic processor 12 is configured to receive response data of the intelligent terminal 3, where the response data is data of the target sensor responding to the test scenario.
Wherein the command transmitter 11 is electrically connected to the machine kit 2; the logic processor 12 is in communication connection with the intelligent terminal 3; according to the test requirement of the test scene, the intelligent terminal 3 is fixed by the mechanical suite 2, so that the intelligent terminal 3 is matched to complete the test.
In this embodiment, if the PC serves as the upper computer, at this time, a test tool of the sensor is run in the PC, for example, for a sensor test inside an intelligent terminal (e.g., Pad or a smart phone) of an Android system, the test tool may select an Android automatic test tool such as uiauto, so that the PC may be connected to the intelligent terminal through a universal standard interface such as USB, and at this time, the PC may control the intelligent terminal through a uiauto script, so that response data of the sensor inside the intelligent terminal may be obtained in time. On the other hand, since the mechanical kit is generally a non-standard device and is generally provided with an interface for facilitating communication with a PC, such as a Serial interface like RS232, RS485, USB (Universal Serial Bus), etc., the PC can transmit the trigger command to the mechanical kit through a Serial protocol. Therefore, by the testing method of the embodiment, manual operation of workers is not needed for testing the sensor inside the intelligent terminal, time and labor are saved, different testing scenes are automatically simulated, and automatic testing can be performed on the sensor inside the intelligent terminal.
Example 4
On the basis of the embodiment 3, a possible implementation manner is provided, specifically, as shown in fig. 4, the upper computer 1 further includes a judgment processor 13, wherein the logic processor 12 is electrically connected to the judgment processor 13, so that after the logic processor 12 receives the response data, the judgment processor 13 is configured to judge whether the response data matches with the pre-stored data, if yes, the test is successful, and if not, the test is failed.
Further, in this embodiment, the testing system further includes a lower computer 4, the upper computer 1 further includes a first serial interface module 14, the lower computer 4 includes a control processing module 41, a second serial interface module 42 and a relay module 43, wherein the command transmitter 11 is electrically connected to the first serial interface module 14, the first serial interface module 14 is communicatively connected to the second serial interface module 42, the second serial interface module 42 is electrically connected to the control processing module 41, the control processing module 41 is electrically connected to the relay module 43, the relay module 43 is electrically connected to the mechanical kit 2, the first serial interface module 14 is thus used to transmit the trigger instruction to the second serial interface module 42, the control processing module 41 is used to convert the trigger instruction into a trigger signal, and transmits the trigger signal to the relay module 43, and the relay module 43 triggers the mechanical suite 2 to simulate the test scene of the target sensor according to the trigger signal.
Further, in this embodiment, the logic processor 12 first triggers a monitoring program in the intelligent terminal 3, where the monitoring program is configured to monitor response data, and the response data is data of the target sensor responding to the test scenario; the logic processor 12 then receives said response data output by the intelligent terminal 3.
Further, in this embodiment, when the target sensor includes a progressive sensor, as shown in fig. 5, the mechanical kit 2 includes a first fixing bracket 21 and an electromagnetic valve 22, where the first fixing bracket 21 is used to fix the intelligent terminal 3, and the electromagnetic valve 22 is used to execute the trigger instruction to pop out the valve to shield the progressive sensor, so as to simulate a first test scenario, where the first test scenario is a test scenario in which the head of the user approaches the intelligent terminal during a call; the monitoring program is used for making a call and monitoring the data of the intelligent terminal 3 in the screen-off state of the progressive sensor and the data of the screen-on state of the progressive sensor; the response data includes the screen-off state data and the screen-on state data.
Further, in this embodiment, when the target sensor includes a light sensor, as shown in fig. 6, the mechanical kit 2 includes a dark box 23, a second fixing bracket 231 and an LED light source 232 are disposed in the dark box 23, the second fixing bracket 231 is used for fixing the intelligent terminal 3, and the LED light source 232 is used for executing the trigger instruction to change the light-emitting brightness so as to simulate a second test scenario, where the second test scenario is a test scenario in which the brightness of the external light where the intelligent terminal 3 is located changes; when the brightness of external light at which the intelligent terminal 3 is located changes, the monitoring program is used for monitoring screen brightness data of the intelligent terminal 3 when the light sensation sensor senses the brightness; the response data includes the screen brightness data.
Further, in this embodiment, when the target sensor includes a gyroscope sensor, as shown in fig. 7, the mechanical kit 2 includes a third fixing bracket 24 and a servo motor 25, where the third fixing bracket 24 is used to fix the intelligent terminal 3, and the servo motor 25 is used to rotate an angle of the third fixing bracket 24 according to the trigger instruction, so as to simulate a third test scenario, where the third test scenario is a test scenario in which the screen of the intelligent terminal 3 rotates; when the screen of the intelligent terminal 3 is in a rotating state, the monitoring program is used for monitoring the horizontal screen state or the vertical screen state of the intelligent terminal 3 when the gyroscope sensor senses the angle; the response data includes the landscape screen state and/or the portrait screen state.
In view of the fact that the types of the sensors in the intelligent terminal are more, the test systems of other sensors can build corresponding test system architectures according to the embodiment, and the test systems are not listed one by one.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (10)

1. A testing method for an internal sensor of an intelligent terminal is characterized by comprising the following steps:
the upper computer transmits a trigger instruction to the mechanical suite;
the mechanical suite executes the trigger instruction to simulate a test scene of a target sensor in the intelligent terminal;
the upper computer sets a monitoring program in the intelligent terminal;
the upper computer receives response data of the intelligent terminal, wherein the response data is data of the target sensor responding to the test scene;
the upper computer receives the response data of the intelligent terminal, and the method specifically comprises the following steps:
the upper computer triggers a monitoring program in the intelligent terminal, and the monitoring program is used for monitoring the response data;
the upper computer receives the response data output by the intelligent terminal;
the target sensor comprises a progressive sensor, the mechanical suite comprises a first fixing support and an electromagnetic valve, and the first fixing support is used for fixing the intelligent terminal;
the electromagnetic valve executes the trigger instruction to pop out a valve to shield the progressive sensor so as to simulate a first test scene, wherein the first test scene is as follows: the head of a user in the call is close to the test scene of the intelligent terminal;
the monitoring program is used for making a call, and when the intelligent terminal is in a voice call state, the monitoring program monitors the screen off state data of the progressive sensor and the screen on state data of the progressive sensor of the intelligent terminal;
the response data includes the screen-off state data and the screen-on state data.
2. The method for testing the sensor inside the intelligent terminal according to claim 1, wherein after the step of receiving the response data of the intelligent terminal by the upper computer, the method further comprises:
and the upper computer judges whether the response data is matched with the pre-stored data, if so, the test is successful, and if not, the test is failed.
3. The method for testing the internal sensor of the intelligent terminal according to claim 1, wherein the upper computer transmits a trigger instruction to the mechanical suite, and specifically comprises:
the upper computer transmits a trigger instruction to the lower computer through a serial interface;
the lower computer converts the trigger instruction into a trigger signal;
and the relay in the lower computer triggers the mechanical external member according to the trigger signal.
4. The method for testing the sensor inside the intelligent terminal as claimed in claim 1, wherein the target sensor comprises a light sensor, the mechanical kit comprises a dark box, a second fixed bracket and an LED light source are arranged in the dark box, the second fixed bracket is used for fixing the intelligent terminal, the LED light source executes the trigger command to change the light emitting brightness so as to simulate a second test scenario, and the second test scenario is as follows: the intelligent terminal is located in a test scene of the brightness change of external light;
when the brightness of external light of the intelligent terminal changes, the monitoring program monitors screen brightness data of the intelligent terminal when the light sensation sensor senses the brightness of the external light;
the response data includes the screen brightness data.
5. The method for testing the sensor inside the intelligent terminal according to claim 1, wherein the target sensor comprises a gyroscope sensor, the mechanical kit comprises a third fixed support and a servo motor, the third fixed support is used for fixing the intelligent terminal, the servo motor is used for rotating an angle of the third fixed support according to the trigger command so as to simulate a third test scenario, and the third test scenario is as follows: a test scene of screen rotation of the intelligent terminal;
when the screen of the intelligent terminal is in a rotating state, the monitoring program monitors the horizontal screen state or the vertical screen state of the intelligent terminal when the gyroscope sensor senses the angle;
the response data includes the landscape screen state and/or the portrait screen state.
6. The test system of the sensor in the intelligent terminal is characterized by comprising an upper computer and a mechanical suite, wherein the upper computer comprises a command transmitter and a logic processor;
the command transmitter is used for transmitting a triggering instruction to the mechanical suite;
the mechanical suite is used for executing the trigger instruction to simulate a test scene of a target sensor in the intelligent terminal;
the logic processor is used for receiving response data of the intelligent terminal, wherein the response data is data of the target sensor responding to the test scene;
the upper computer is used for setting a monitoring program in the intelligent terminal; the logic processor firstly triggers a monitoring program in the intelligent terminal, and the monitoring program is used for monitoring the response data; then the logic processor receives the response data output by the intelligent terminal;
the target sensor comprises a progressive sensor, the mechanical suite comprises a first fixed support and an electromagnetic valve, the first fixed support is used for fixing the intelligent terminal, the electromagnetic valve is used for executing the trigger instruction pop-up valve to shield the progressive sensor so as to simulate a first test scene, and the first test scene is as follows: the head of a user in the call is close to the test scene of the intelligent terminal;
the monitoring program is used for making a call and monitoring the data of the intelligent terminal in the screen-off state of the progressive sensor and the data of the screen-on state of the progressive sensor;
the response data includes the screen-off state data and the screen-on state data.
7. The system for testing the sensor inside the intelligent terminal as claimed in claim 6, wherein the upper computer further comprises a judgment processor, after the logic processor receives the response data, the judgment processor is configured to judge whether the response data is matched with pre-stored data, if yes, the test is successful, and if not, the test is failed.
8. The system for testing the sensor inside the intelligent terminal as claimed in claim 6, wherein the system further comprises a lower computer, the upper computer further comprises a first serial interface module, and the lower computer comprises a control processing module, a second serial interface module and a relay module;
the first serial interface module is used for transmitting the trigger instruction to the second serial interface module;
the control processing module is used for converting the trigger instruction into a trigger signal and transmitting the trigger signal to the relay module;
the relay module triggers the mechanical suite according to the trigger signal.
9. The system for testing the sensor inside the intelligent terminal as claimed in claim 6, wherein the target sensor comprises a light sensor, the mechanical kit comprises a dark box, a second fixing bracket and an LED light source are arranged in the dark box, the second fixing bracket is used for fixing the intelligent terminal, the LED light source is used for executing the trigger command to change the light emitting brightness so as to simulate a second test scenario, and the second test scenario is as follows: the intelligent terminal is located in a test scene of the brightness change of external light;
when the brightness of external light at which the intelligent terminal is located changes, the monitoring program is used for monitoring screen brightness data of the intelligent terminal when the light sensation sensor senses the brightness of the external light;
the response data includes the screen brightness data.
10. The system for testing the sensor inside the intelligent terminal according to claim 6, wherein the target sensor comprises a gyroscope sensor, the mechanical kit comprises a third fixed support and a servo motor, the third fixed support is used for fixing the intelligent terminal, the servo motor is used for rotating an angle of the third fixed support according to the trigger command so as to simulate a third test scenario, and the third test scenario is as follows: a test scene of screen rotation of the intelligent terminal;
when the screen of the intelligent terminal is in a rotating state, the monitoring program is used for monitoring the horizontal screen state or the vertical screen state of the intelligent terminal when the gyroscope sensor senses the angle;
the response data includes the landscape screen state and/or the portrait screen state.
CN201711054419.5A 2017-10-31 2017-10-31 Method and system for testing internal sensor of intelligent terminal Active CN107727133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711054419.5A CN107727133B (en) 2017-10-31 2017-10-31 Method and system for testing internal sensor of intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711054419.5A CN107727133B (en) 2017-10-31 2017-10-31 Method and system for testing internal sensor of intelligent terminal

Publications (2)

Publication Number Publication Date
CN107727133A CN107727133A (en) 2018-02-23
CN107727133B true CN107727133B (en) 2020-12-25

Family

ID=61202639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711054419.5A Active CN107727133B (en) 2017-10-31 2017-10-31 Method and system for testing internal sensor of intelligent terminal

Country Status (1)

Country Link
CN (1) CN107727133B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108413990B (en) * 2018-03-26 2021-08-27 上海摩软通讯技术有限公司 Gyroscope testing device and method of mobile terminal

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202485715U (en) * 2011-12-02 2012-10-10 湖北众友科技实业股份有限公司 Electronic apparatus function production line detection device
CN103336655A (en) * 2013-06-21 2013-10-02 广东欧珀移动通信有限公司 Method for controlling switchover between horizontal screen and vertical screen states of mobile phone
CN103925992A (en) * 2013-01-16 2014-07-16 光宝电子(广州)有限公司 Brightness measurement method and system with backlight device
CN103973857A (en) * 2013-01-28 2014-08-06 深圳富泰宏精密工业有限公司 Mobile phone calibration device, system and method
CN104601771A (en) * 2014-12-26 2015-05-06 沈阳晨讯希姆通科技有限公司 Method and system for testing main board of mobile phone
CN106506830A (en) * 2016-10-27 2017-03-15 努比亚技术有限公司 A kind of distance measurement method, mobile terminal and system
CN106568468A (en) * 2016-10-31 2017-04-19 努比亚技术有限公司 Automatic test calibration system based on light sensor and method thereof
CN106598441A (en) * 2016-10-31 2017-04-26 努比亚技术有限公司 Device and method for setting horizontal and longitudinal screen modes of terminal, and terminal
CN106932004A (en) * 2017-03-27 2017-07-07 上海与德科技有限公司 The detection method and device of a kind of sensor
CN107093416A (en) * 2017-06-08 2017-08-25 青岛海信电器股份有限公司 Screen backlight luminance regulating method, device and terminal based on light sensor

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202485715U (en) * 2011-12-02 2012-10-10 湖北众友科技实业股份有限公司 Electronic apparatus function production line detection device
CN103925992A (en) * 2013-01-16 2014-07-16 光宝电子(广州)有限公司 Brightness measurement method and system with backlight device
CN103973857A (en) * 2013-01-28 2014-08-06 深圳富泰宏精密工业有限公司 Mobile phone calibration device, system and method
CN103336655A (en) * 2013-06-21 2013-10-02 广东欧珀移动通信有限公司 Method for controlling switchover between horizontal screen and vertical screen states of mobile phone
CN104601771A (en) * 2014-12-26 2015-05-06 沈阳晨讯希姆通科技有限公司 Method and system for testing main board of mobile phone
CN106506830A (en) * 2016-10-27 2017-03-15 努比亚技术有限公司 A kind of distance measurement method, mobile terminal and system
CN106568468A (en) * 2016-10-31 2017-04-19 努比亚技术有限公司 Automatic test calibration system based on light sensor and method thereof
CN106598441A (en) * 2016-10-31 2017-04-26 努比亚技术有限公司 Device and method for setting horizontal and longitudinal screen modes of terminal, and terminal
CN106932004A (en) * 2017-03-27 2017-07-07 上海与德科技有限公司 The detection method and device of a kind of sensor
CN107093416A (en) * 2017-06-08 2017-08-25 青岛海信电器股份有限公司 Screen backlight luminance regulating method, device and terminal based on light sensor

Also Published As

Publication number Publication date
CN107727133A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
US10726068B2 (en) App processing method and apparatus
US10019920B2 (en) Display module detection device
CN107968883B (en) Distance state detection method and device, storage medium and electronic equipment
CN102984488B (en) Optical projection system, device, transducer and electric power produce control method
WO2020220184A1 (en) Visual programming control apparatus, programmable control device and control method therefor, computer readable storage medium, and programming control system
CN112333057B (en) Intelligent household equipment distribution network testing method and device, executive machine and storage medium
US20130318400A1 (en) Electronic device, system, and method for testing exception handling mechanism
CN107727133B (en) Method and system for testing internal sensor of intelligent terminal
CN104601771A (en) Method and system for testing main board of mobile phone
CN100562134C (en) A kind of test macro of digital display device and method of testing thereof
CN107005656A (en) Movable equipment and its control method and device, control terminal and capture apparatus
CN105430448B (en) A kind of the control processing method and video player client of video player
CN109491811B (en) Game testing method, device and storage medium
CN105487978A (en) Method and system for automatically testing application software based on UFT
CN113064618B (en) System and method for simulating new energy vehicle conformance detection
CN113873122A (en) Independent flash control method, system and device for double-flash camera and storage medium
JP2014230199A (en) Control device and program
CN113705389A (en) Face recognition module testing method and device, storage medium and electronic equipment
CN112860559A (en) Upgrade test system and method
KR20190089561A (en) Cloud-based device emulation system and method thereof
CN106250106A (en) The startup method and device of projector equipment
CN117171000A (en) Application program APP testing method and device, electronic equipment and storage medium
CN109522170B (en) Front shell display module detection device and system
KR20220139506A (en) Automatic evaluating apparatus for built-in video recording device of vehicle, system having the same, and method thereof
JP2016189895A (en) Test system, portable terminal, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant