CN107727133A - The method of testing and system of intelligent terminal internal sensor - Google Patents

The method of testing and system of intelligent terminal internal sensor Download PDF

Info

Publication number
CN107727133A
CN107727133A CN201711054419.5A CN201711054419A CN107727133A CN 107727133 A CN107727133 A CN 107727133A CN 201711054419 A CN201711054419 A CN 201711054419A CN 107727133 A CN107727133 A CN 107727133A
Authority
CN
China
Prior art keywords
intelligent terminal
sensor
data
test scene
test
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.)
Granted
Application number
CN201711054419.5A
Other languages
Chinese (zh)
Other versions
CN107727133B (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

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)

Abstract

The invention discloses a kind of method of testing and system of intelligent terminal internal sensor, wherein, method includes step:Host computer transmits triggering command to mechanical external member;The mechanical external member performs the triggering command to simulate the test scene of intelligent terminal internal object sensor;The host computer receives the response data of the intelligent terminal, and the response data is the data that the sensor of interest responds the test scene.The present invention can be tested intelligent terminal internal sensor automatically, not only time saving, laborsaving, and test can also cover sensor plurality of application scenes, the defects of effectively filtering out intelligent terminal internal sensor, ensure that intelligent terminal dispatches from the factory yields.

Description

The method of testing and system of intelligent terminal internal sensor
Technical field
The present invention relates to the test of sensor, the method for testing of more particularly to a kind of intelligent terminal internal sensor and it is System.
Background technology
At present, include in intelligent terminal such as mobile phone, Pad (portable android device, tablet personal computer) various The sensor of various kinds, such as progressive sensor (also known as range sensor), light sensor, gyro sensor, due to these Sensor is just installed in intelligent terminal in the production process of intelligent terminal, so in the test of dispatching from the factory of intelligent terminal, is also needed These sensors are tested one by one, before dispatching from the factory with regard to intelligent terminal internal sensor can be filtered out the defects of, to carry Yields when very intelligent terminal is dispatched from the factory, while also ensure that the good usage experience of intelligent terminal user.
In existing test, the tests of these sensors be typically necessary worker be operated manually, artificial cognition test knot Fruit, it is such test every time can only simple analog go out a certain application scenarios come be directed to some function of a certain sensor carry out survey Examination, even so the difference in functionality test for completing sensor is just already time-consuming, laborious, let alone complete in intelligent terminal The test of the multiple sensors in portion.In addition, manual test can not also test out response of the sensor under multiple application scenarios one by one Situation.
The content of the invention
The technical problem to be solved in the present invention be in order to overcome the manually operated test of worker in the prior art, during test fee, Arduously, the defects of response condition of the sensor under multiple application scenarios can not also being tested, there is provided inside a kind of intelligent terminal The method of testing and system of sensor.
The present invention is that solve above-mentioned technical problem by following technical proposals:
The present invention provides a kind of method of testing of intelligent terminal internal sensor, is characterized in, comprises the following steps:
Host computer transmits triggering command to mechanical external member;
The mechanical external member performs the triggering command to simulate the test scene of intelligent terminal internal object sensor;
The host computer receives the response data of the intelligent terminal, and the response data responds for the sensor of interest The data of the test scene.
In this programme, host computer such as PC (personal computer, computer) is used as test control end, operation sensing The testing tool of device, it is at this moment upper such as the sensor test inside the intelligent terminal based on Android (Android) system Machine can operation Android automated test tools such as UiAutomator (UI automated test tools), such host computer It can be connected by general standard interface such as USB (Universal Serial Bus, USB) with intelligent terminal, from And host computer manipulates intelligent terminal by UiAutomator scripts so that host computer can be got inside intelligent terminal in time The response data of sensor.On the other hand, in view of mechanical external member is generally non-standard equipment, and it is typically provided with being easy to lead to PC Triggering command is transferred to by the interface of letter, such as the serial line interface such as RS232, RS485, USB, such host computer by serial protocol Mechanical external member.Therefore, host computer can be by UiAutomator script combination serial protocols, in intelligent terminal in this programme Portion's sensor realizes automatic test.
Alternatively, after the response data step that the host computer receives the intelligent terminal, in addition to:The host computer Judge whether the response data matches with pre-stored data, if being then successfully tested, if otherwise test crash.
Alternatively, the host computer transmits triggering command to mechanical external member, specifically includes:
The host computer transmits triggering command by serial line interface to slave computer;
The triggering command is converted into trigger signal by the slave computer;
Relay inside the slave computer triggers the mechanical external member according to the trigger signal.
In this programme, monolithic is formed by using slave computer such as MCU (Microcontroller Unit, micro-control unit) Machine control operation device is received by slave computer as host computer and the communications intermediary of mechanical external member and parses triggering command, and used The driving force as relay is strong and can isolate the electric drive circuit generation trigger signal of front stage and removes Crush trigger set It part, can so simplify the design of mechanical external member, realize modularization, the General design of mechanical external member, improve mechanical external member Using flexible.
Alternatively, the host computer receives the response data of the intelligent terminal, specifically includes:
The host computer triggers the oracle listener in the intelligent terminal, and the oracle listener is used for snoop responses data, The response data is the data that the sensor of interest responds the test scene;
The host computer receives the response data of the intelligent terminal output.
In this programme, host computer by such as UiAutomator scripts, can collect the prison of the oracle listener in intelligent terminal Data are listened, so as to get the response data of intelligent terminal internal sensor.
Alternatively, the sensor of interest includes progressive sensor, and the mechanical external member includes the first fixed support and electricity Magnet valve, first fixed support are used to fix the intelligent terminal;
The magnetic valve performs the triggering command ejection valve and blocks the progressive sensor, to simulate the first checkout area Scape, first test scene are:Test scene of the user's head close to the intelligent terminal in call;
When the intelligent terminal is in voice call state, the oracle listener monitor the intelligent terminal it is described gradually Enter the bright screen status data for putting out screen status data and the progressive sensor of sensor;
The response data includes described put out and shields status data and the bright screen status data.
Alternatively, the sensor of interest includes photosensitive sensors, and the mechanical external member includes camera bellows, set in the camera bellows The second fixed support and LED (light emitting diode) light source are equipped with, second fixed support is used to fix the intelligent terminal, institute State LED light source and perform the triggering command change luminosity, to simulate the second test scene, second test scene is: The test scene that extraneous light brightness residing for the intelligent terminal changes;
When extraneous light brightness residing for the intelligent terminal changes, the oracle listener monitors the intelligent terminal in institute State screen intensity data when photosensitive sensors sense the luminosity;
The response data includes the screen intensity data.
Alternatively, the sensor of interest includes gyro sensor, the mechanical external member include the 3rd fixed support and Servomotor, the 3rd fixed support are used to fix the intelligent terminal, and the servomotor is used to be referred to according to the triggering Order rotates the 3rd support bracket fastened angle, and to simulate the 3rd test scene, the 3rd test scene is:The intelligence is eventually The test scene of the screen rotation at end;
When the screen of the intelligent terminal is in rotation status, the oracle listener monitors the intelligent terminal described Gyro sensor senses the transverse screen state or portrait layout state during the angle;
The response data includes the transverse screen state and/or the portrait layout state.
The present invention also provides a kind of test system of intelligent terminal internal sensor, is characterized in, including host computer, machinery External member, the host computer include sequencing unit and logic processor;
The sequencing unit is used to transmit triggering command to the mechanical external member;
The mechanical external member is used to perform the triggering command to simulate the test of intelligent terminal internal object sensor Scene;
The logic processor is used for the response data for receiving the intelligent terminal, and the response data passes for the target Sensor responds the data of the test scene.
Alternatively, the host computer also includes decision processor, and the response data is received in the logic processor Afterwards, the decision processor is used to judge whether the response data matches with pre-stored data, is to be successfully tested, otherwise test Failure.
Alternatively, the test system also includes slave computer, and the host computer also includes the first serial interface module, described Slave computer includes control process module, the second serial interface module, relay module;
First serial interface module is used to transmit the triggering command to second serial interface module;
The control process module is used to the triggering command being converted into trigger signal, and the trigger signal is transmitted To the relay module;
The relay module triggers the mechanical external member according to the trigger signal.
Alternatively, the logic processor triggers the oracle listener in the intelligent terminal first, and the oracle listener is used In snoop responses data, the response data is the data that the sensor of interest responds the test scene;Then it is described to patrol Collect the response data that processor receives the intelligent terminal output.
Alternatively, the sensor of interest includes progressive sensor, and the mechanical external member includes the first fixed support and electricity Magnet valve, first fixed support are used to fix the intelligent terminal, and the magnetic valve is used to perform the triggering command ejection Valve shelters from the progressive sensor, and to simulate the first test scene, first test scene is:User's head in call Close to the test scene of the intelligent terminal;
The oracle listener is used to dial call, is additionally operable to monitor the intelligent terminal and puts out screen in the progressive sensor The bright screen status data of status data and the progressive sensor;
The response data includes described put out and shields status data and the bright screen status data.
Alternatively, the sensor of interest includes photosensitive sensors, and the mechanical external member includes camera bellows, set in the camera bellows The second fixed support and LED light source are equipped with, second fixed support is used to fix the intelligent terminal, and the LED light source is used Change luminosity in performing the triggering command, to simulate the second test scene, second test scene is:The intelligence The test scene that extraneous light brightness residing for terminal changes;
When extraneous light brightness residing for the intelligent terminal changes, the oracle listener is used to monitor the intelligent terminal Screen intensity data when the photosensitive sensors sense the luminosity;
The response data includes the screen intensity data.
Alternatively, the sensor of interest includes gyro sensor, the mechanical external member include the 3rd fixed support and Servomotor, the 3rd fixed support are used to fix the intelligent terminal, and the servomotor is used to be referred to according to the triggering Order rotates the 3rd support bracket fastened angle, and to simulate the 3rd test scene, the 3rd test scene is:The intelligence is eventually The test scene of the screen rotation at end;
When the screen of the intelligent terminal is in rotation status, the oracle listener exists for monitoring the intelligent terminal The gyro sensor senses the transverse screen state or portrait layout state during the angle;
The response data includes the transverse screen state and/or the portrait layout state.
The positive effect of the present invention is:The method of testing of intelligent terminal internal sensor provided by the invention and it is System, can be tested intelligent terminal internal sensor automatically, not only time saving, laborsaving, and it is various that test can also cover sensor Application scenarios, the defects of effectively filtering out intelligent terminal internal sensor, it ensure that intelligent terminal dispatches from the factory yields.
Brief description of the drawings
Fig. 1 is the flow chart of the method for testing of the intelligent terminal internal sensor of embodiments of the invention 1.
Fig. 2 is the flow chart of the method for testing of the intelligent terminal internal sensor of embodiments of the invention 2.
Fig. 3 is the composition schematic diagram of the test system of the intelligent terminal internal sensor of embodiments of the invention 3.
Fig. 4 is the composition schematic diagram of the test system of the intelligent terminal internal sensor of embodiments of the invention 4.
Fig. 5 is the test system of the intelligent terminal internal sensor of embodiments of the invention 4 when sensor of interest is progressive The composition schematic diagram of mechanical external member during sensor.
Fig. 6 is the test system of the intelligent terminal internal sensor of embodiments of the invention 4 when sensor of interest is light sensation The composition schematic diagram of mechanical external member during sensor.
Fig. 7 is the test system of the intelligent terminal internal sensor of embodiments of the invention 4 when sensor of interest is gyro The composition schematic diagram of mechanical external member during instrument sensor.
Embodiment
The present invention is further illustrated below by the mode of embodiment, but does not therefore limit the present invention to described reality Apply among a scope.
Embodiment 1
As shown in figure 1, the method for testing for the intelligent terminal internal sensor that the present embodiment is related to includes step:
101st, host computer transmits triggering command to mechanical external member;
102nd, the mechanical external member performs the triggering command to simulate the test of intelligent terminal internal object sensor Scene;
103rd, the host computer receives the response data of the intelligent terminal, and the response data is the sensor of interest Respond the data of the test scene.
In the present embodiment, PC can be used as host computer, and the testing tool of sensor is run in PC, such as pin The internal sensor test of intelligent terminal (such as Pad, smart mobile phone) to android system, testing tool just may be selected Android automated test tools such as UiAutomator, such PC can pass through the general standard interface as USB It is connected with intelligent terminal, at this moment PC just can manipulate intelligent terminal by UiAutomator scripts, so as to get intelligence in time The response data of energy terminal inner sensor.On the other hand, in view of mechanical external member is generally non-standard equipment, and it is typically provided with It is easy to the interface to be communicated with PC, such as the string such as RS232, RS485, USB (Universal Serial Bus, USB) Triggering command can be transferred to mechanical external member by line interface, such PC by serial protocol.Therefore, the test of the present embodiment is passed through Method, the test of intelligent terminal internal sensor is manually operated without worker, time saving and energy saving, and also automatic mold draws up different checkout areas Scape, automatic test can be carried out to intelligent terminal internal sensor.
Embodiment 2
It is specific as shown in Figure 2, there is provided a kind of possible implementation of step 101 on the basis of embodiment 1:
1011st, the host computer transmits triggering command by serial line interface to slave computer;
1012nd, the triggering command is converted into trigger signal by the slave computer;
Relay inside 1013 slave computers triggers the mechanical external member according to the trigger signal.
At this moment, it can be received and conciliate by slave computer by using slave computer as host computer and the communications intermediary of mechanical external member Triggering command is analysed, and uses the driving force as relay strong and the electric drive circuit generation triggering of front stage can be isolated Signal goes Crush trigger external member, so can both simplify the design of mechanical external member, can realize modularization, the generalization of mechanical external member again Design, improve the using flexible of mechanical external member.Here the preferable MCU of slave computer.
Further, the present embodiment also provides a kind of possible embodiment of step 103:
1031st, the host computer triggers the oracle listener in the intelligent terminal, and the oracle listener is used for snoop responses Data, the response data are the data that the sensor of interest responds the test scene;
1032nd, the host computer receives the response data of the intelligent terminal output.
At this moment, host computer can set oracle listener, so by such as UiAutomator scripts inside intelligent terminal Intelligent terminal need not be changed, host computer by oracle listener, can just collect the response data of intelligent terminal internal sensor in time.
Further, after step 103, the method for testing also includes the present embodiment:
104th, the host computer judges whether the response data matches with pre-stored data, if being then successfully tested, if not Then test crash, in order to which host computer is judged to determine that follow-up test works according to test case, preferably carry out automatic Test.Certainly, in actual test, the mode of testing etc. can also be no longer carried out by setting the number tested, after the how many times that fail, So that test more closed loop, to obtain more preferable test effect.
Further, when the sensor of interest includes progressive sensor, the mechanical external member includes the first fixed support And magnetic valve, first fixed support are used to fix the intelligent terminal, the magnetic valve performs the triggering command ejection Valve blocks the progressive sensor, and to simulate the first test scene, first test scene leans on for user's head in call The test scene of the nearly intelligent terminal, when the intelligent terminal is in voice call state, the oracle listener monitors institute State the bright screen status data that puts out screen status data and the progressive sensor of the intelligent terminal in the progressive sensor;The sound Answer data to include described put out and shield status data and the bright screen status data.
At this moment, the intelligent terminal screen bright screen when call, and when user's head is close to mobile phone screen, intelligent terminal screen It is dimmed, or even screen puts out screen when being blocked.Here, host computer can be existed by such as USB interface using Uiautomator scripts Oracle listener and manipulation intelligent terminal is set to carry out call and dial or answer in intelligent terminal, then the magnetic valve of mechanical external member is just Ejection valve shelter from progressive sensor, so as to analog subscriber head close to when action.In addition, the also controllable intelligence of host computer Terminal carries out video playback, so as to can also under test video broadcast state progressive sensor response data.
Further, when the sensor of interest includes photosensitive sensors, the mechanical external member includes camera bellows, the camera bellows In be provided with the second fixed support and LED light source, second fixed support is used to fix the intelligent terminal, the LED light Source performs the triggering command and changes luminosity, and to simulate the second test scene, second test scene is the intelligence The test scene that extraneous light brightness residing for terminal changes;It is described when extraneous light brightness residing for the intelligent terminal changes Oracle listener monitors screen intensity data of the intelligent terminal when the photosensitive sensors sense the luminosity;Institute Stating response data includes the screen intensity data.
At this moment, when extraneous light environment changes (as more and more brighter or darkness deepens), intelligent terminal screen also can Brighten therewith or dimmed.Here, host computer can be by such as USB interface, using Uiautomator scripts in intelligent terminal Oracle listener is set, and so as to the change numerical value of Real-time Feedback screen intensity, at this moment mechanical external member is strong according to trigger signal such as electric current Signal is spent to control LED luminance, the response data that host computer is just collected in time by oracle listener.
Further, when the sensor of interest includes gyro sensor, the mechanical external member includes the 3rd and fixes branch Frame and servomotor, the 3rd fixed support are used to fix the intelligent terminal, and the servomotor is used to be touched according to described Send instructions rotation the 3rd support bracket fastened angle, and to simulate the 3rd test scene, the 3rd test scene is:The intelligence The test scene of the screen rotation of energy terminal;When the screen of the intelligent terminal is in rotation status, the oracle listener prison Listen transverse screen state or portrait layout state of the intelligent terminal when the gyro sensor senses the angle;The response Data include the transverse screen state and/or the portrait layout state.
At this moment, when intelligent terminal is overturn, screen display mode can follow the anglec of rotation and change.Here, host computer is just Oracle listener can be set, so as to Real-time Feedback screen in intelligent terminal using Uiautomator scripts by such as USB interface The change of display mode, at this moment the 3rd fixed support be generally perpendicular to horizontal plane placement, be also equipped among the 3rd fixed support Small-sized servomotor, mechanical external member just can allow the 3rd fixed support to carry out suitable/rotate counterclockwise, intelligence according to trigger signal The gyroscope of terminal inner will be according to the angle of different level, and changes the presentation mode of screen, such as transverse screen or portrait layout.
In view of intelligent terminal internal sensor species is more, the method for testing of other sensors is referred to the present embodiment and set Corresponding detection method is put, is just no longer enumerated one by one here.
Embodiment 3
As shown in figure 3, the test system for the intelligent terminal internal sensor that the present embodiment is related to, including host computer 1 and machine Tool external member 2, host computer 1 include sequencing unit 11 and logic processor 12, and sequencing unit 11 is used to transmit to mechanical external member 2 Triggering command, mechanical external member 2 are used to perform the triggering command to simulate the checkout area of the internal object sensor of intelligent terminal 3 Scape, logic processor 12 are used for the response data for receiving intelligent terminal 3, and the response data responds institute for the sensor of interest State the data of test scene.
Wherein, sequencing unit 11 electrically connects with mechanical external member 2;Logic processor 12 communicates to connect with intelligent terminal 3;Root Needed according to the test of test scene, mechanical external member 2 also fixes intelligent terminal 3, so that intelligent terminal 3, which coordinates, completes test.
In the present embodiment, if PC is as host computer, the testing tool of sensor is at this moment run in PC, such as Android just may be selected in the internal sensor test of the intelligent terminal (such as Pad, smart mobile phone) of android system, testing tool Automated test tool such as UiAutomator, such PC can be whole with intelligence by the general standard interface as USB End connection, at this moment PC just can be by UiAutomator scripts manipulation intelligent terminal, so as to get in time in intelligent terminal The response data of portion's sensor.On the other hand, in view of mechanical external member is generally non-standard equipment, and it is typically provided with being easy to and PC The interface of communication, such as the serial line interface such as RS232, RS485, USB (Universal Serial Bus, USB), So triggering command can be transferred to mechanical external member by PC by serial protocol.Therefore, the method for testing of the present embodiment, intelligence are passed through Can terminal inner sensor test it is manually operated without worker, time saving and energy saving, also automatic mold draws up different test scenes, can be with Automatic test is carried out to intelligent terminal internal sensor.
Embodiment 4
On the basis of embodiment 3, there is provided a kind of possible embodiment, specifically as shown in figure 4, host computer 1 also includes Decision processor 13, wherein logic processor 12 electrically connect with decision processor 13, so receive institute in logic processor 12 After stating response data, decision processor 13 just be used for judge whether the response data matches with pre-stored data, be then test into Work(, otherwise test crash.
Further, in the present embodiment, the test system also includes slave computer 4, and host computer 1 also includes the first serial line interface Module 14, slave computer 4 include control process module 41, the second serial interface module 42 and relay module 43, wherein, order hair Device 11 is sent to be electrically connected with the first serial interface module 14, the first serial interface module 14 and the communication link of the second serial interface module 42 Connect, the second serial interface module 42 electrically connects with control process module 41, and control process module 41 is electrically connected with relay module 43 Connect, relay module 43 electrically connects with mechanical external member 2, and such first serial interface module 14 is just used for the second serial interface mouth mold Block 42 transmits the triggering command, and control process module 41 is used to the triggering command being converted into trigger signal, and by described in Trigger signal is transmitted to relay module 43, relay module 43 and simulates institute according to the trigger signal Crush trigger external member 2 State the test scene of sensor of interest.
Further, in the present embodiment, logic processor 12 triggers the oracle listener in intelligent terminal 3, the monitoring first Program is used for snoop responses data, and the response data is the data that the sensor of interest responds the test scene;Then Logic processor 12 receives the response data that intelligent terminal 3 exports.
Further, in the present embodiment, when the sensor of interest includes progressive sensor, as shown in figure 5, mechanical external member 2 include the first fixed support 21 and magnetic valve 22, and the first fixed support 21 is used to fix intelligent terminal 3, and magnetic valve 22 is used to hold The row triggering command ejection valve shelters from the progressive sensor, to simulate the first test scene, first checkout area Test scene of the scape for user's head in call close to the intelligent terminal;The oracle listener is used to dial call, is additionally operable to Monitor the bright screen status data that puts out screen status data and the progressive sensor of the intelligent terminal 3 in the progressive sensor;Institute State response data and put out screen status data and the bright screen status data including described.
Further, in the present embodiment, when the sensor of interest includes photosensitive sensors, as shown in fig. 6, mechanical external member 2 include camera bellows 23, and the second fixed support 231 and LED light source 232 are provided with camera bellows 23, and the second fixed support 231 is used to fix Intelligent terminal 3, LED light source 232 is used to perform the triggering command change luminosity, described to simulate the second test scene The test scene that second test scene changes for extraneous light brightness residing for intelligent terminal 3;When extraneous light residing for intelligent terminal 3 When brightness changes, the oracle listener is used to monitor intelligent terminal 3 when the photosensitive sensors sense the luminosity Screen intensity data;The response data includes the screen intensity data.
Further, in the present embodiment, when the sensor of interest includes gyro sensor, as shown in fig. 7, machinery set Part 2 includes the 3rd fixed support 24 and servomotor 25, and the 3rd fixed support 24 is used to fix intelligent terminal 3, servomotor 25 For rotating the angle of the 3rd fixed support 24 according to the triggering command, to simulate the 3rd test scene, the 3rd test Scene is the test scene of the screen rotation of intelligent terminal 3;When the screen of intelligent terminal 3 is in rotation status, the monitoring Program is used to monitor transverse screen state or portrait layout state of the intelligent terminal 3 when the gyro sensor senses the angle; The response data includes the transverse screen state and/or the portrait layout state.
In view of intelligent terminal internal sensor species is more, the test system of other sensors is referred to the present embodiment and taken Corresponding test system framework is built, is just no longer enumerated one by one here.
Although the embodiment of the present invention is the foregoing described, it will be appreciated by those of skill in the art that this is only For example, protection scope of the present invention is to be defined by the appended claims.Those skilled in the art without departing substantially from On the premise of the principle and essence of the present invention, various changes or modifications can be made to these embodiments, but these changes and Modification each falls within protection scope of the present invention.

Claims (14)

1. a kind of method of testing of intelligent terminal internal sensor, it is characterised in that comprise the following steps:
Host computer transmits triggering command to mechanical external member;
The mechanical external member performs the triggering command to simulate the test scene of intelligent terminal internal object sensor;
The host computer receives the response data of the intelligent terminal, and the response data is described in sensor of interest response The data of test scene.
2. the method for testing of intelligent terminal internal sensor as claimed in claim 1, it is characterised in that connect in the host computer After the response data step for receiving the intelligent terminal, in addition to:
The host computer judges whether the response data matches with pre-stored data, if being then successfully tested, if otherwise test is lost Lose.
3. the method for testing of intelligent terminal internal sensor as claimed in claim 1, it is characterised in that the host computer is to machine Tool external member transmits triggering command, specifically includes:
The host computer transmits triggering command by serial line interface to slave computer;
The triggering command is converted into trigger signal by the slave computer;
Relay inside the slave computer triggers the mechanical external member according to the trigger signal.
4. the method for testing of intelligent terminal internal sensor as claimed in claim 1, it is characterised in that the host computer receives The response data of the intelligent terminal, is specifically included:
The host computer triggers the oracle listener in the intelligent terminal, and the oracle listener is used for snoop responses data, described Response data is the data that the sensor of interest responds the test scene;
The host computer receives the response data of the intelligent terminal output.
5. the method for testing of intelligent terminal internal sensor as claimed in claim 4, it is characterised in that the sensor of interest Including progressive sensor, the mechanical external member includes the first fixed support and magnetic valve, and first fixed support is used to fix The intelligent terminal;
The magnetic valve performs the triggering command ejection valve and blocks the progressive sensor, to simulate the first test scene, First test scene is:Test scene of the user's head close to the intelligent terminal in call;
When the intelligent terminal is in voice call state, the oracle listener monitors the intelligent terminal in the progressive biography The bright screen status data for putting out screen status data and the progressive sensor of sensor;
The response data includes described put out and shields status data and the bright screen status data.
6. the method for testing of intelligent terminal internal sensor as claimed in claim 4, it is characterised in that the sensor of interest Including photosensitive sensors, the mechanical external member includes camera bellows, and the second fixed support and LED light source, institute are provided with the camera bellows The second fixed support to be stated to be used to fix the intelligent terminal, the LED light source performs the triggering command and changes luminosity, with The second test scene is simulated, second test scene is:The checkout area that extraneous light brightness residing for the intelligent terminal changes Scape;
When extraneous light brightness residing for the intelligent terminal changes, the oracle listener monitors the intelligent terminal in the light Propagated sensation sensor senses the screen intensity data during luminosity;
The response data includes the screen intensity data.
7. the method for testing of intelligent terminal internal sensor as claimed in claim 4, it is characterised in that the sensor of interest Including gyro sensor, the mechanical external member includes the 3rd fixed support and servomotor, and the 3rd fixed support is used for The fixed intelligent terminal, the servomotor are used to rotate the 3rd support bracket fastened angle according to the triggering command, To simulate the 3rd test scene, the 3rd test scene is:The test scene of the screen rotation of the intelligent terminal;
When the screen of the intelligent terminal is in rotation status, the oracle listener monitors the intelligent terminal in the gyro Instrument sensor sensing is to the transverse screen state or portrait layout state during the angle;
The response data includes the transverse screen state and/or the portrait layout state.
A kind of 8. test system of intelligent terminal internal sensor, it is characterised in that including host computer, mechanical external member, it is described on Position machine includes sequencing unit and logic processor;
The sequencing unit is used to transmit triggering command to the mechanical external member;
The mechanical external member is used to perform the triggering command to simulate the test scene of intelligent terminal internal object sensor;
The logic processor is used for the response data for receiving the intelligent terminal, and the response data is the sensor of interest Respond the data of the test scene.
9. the test system of intelligent terminal internal sensor as claimed in claim 8, it is characterised in that the host computer also wraps Decision processor is included, after the logic processor receives the response data, the decision processor is described for judging Whether response data matches with pre-stored data, is, is successfully tested, otherwise test crash.
10. the test system of intelligent terminal internal sensor as claimed in claim 8, it is characterised in that the test system Also include slave computer, the host computer also includes the first serial interface module, and the slave computer includes control process module, second Serial interface module, relay module;
First serial interface module is used to transmit the triggering command to second serial interface module;
The control process module is used to the triggering command being converted into trigger signal, and the trigger signal is transmitted to institute State relay module;
The relay module triggers the mechanical external member according to the trigger signal.
11. the test system of intelligent terminal internal sensor as claimed in claim 8, it is characterised in that the logical process Device triggers the oracle listener in the intelligent terminal first, and the oracle listener is used for snoop responses data, the response data The data of the test scene are responded for the sensor of interest;Then the logic processor receives the intelligent terminal output The response data.
12. the test system of intelligent terminal internal sensor as claimed in claim 11, it is characterised in that the target sensing Device includes progressive sensor, and the mechanical external member includes the first fixed support and magnetic valve, and first fixed support is used for solid The fixed intelligent terminal, the magnetic valve shelter from the progressive sensor for performing the triggering command ejection valve, with The first test scene is simulated, first test scene is:Test scene of the user's head close to the intelligent terminal in call;
The oracle listener is used to dial call, is additionally operable to monitor the intelligent terminal and puts out screen state in the progressive sensor The bright screen status data of data and the progressive sensor;
The response data includes described put out and shields status data and the bright screen status data.
13. the test system of intelligent terminal internal sensor as claimed in claim 11, it is characterised in that the target sensing Device includes photosensitive sensors, and the mechanical external member includes camera bellows, the second fixed support and LED light source are provided with the camera bellows, Second fixed support is used to fix the intelligent terminal, and the LED light source is luminous for performing the triggering command change Brightness, to simulate the second test scene, second test scene is:What extraneous light brightness residing for the intelligent terminal changed Test scene;
When extraneous light brightness residing for the intelligent terminal changes, the oracle listener is used to monitor the intelligent terminal in institute State screen intensity data when photosensitive sensors sense the luminosity;
The response data includes the screen intensity data.
14. the test system of intelligent terminal internal sensor as claimed in claim 11, it is characterised in that the target sensing Device includes gyro sensor, and the mechanical external member includes the 3rd fixed support and servomotor, and the 3rd fixed support is used In the fixation intelligent terminal, the servomotor is used to rotate the 3rd support bracket fastened angle according to the triggering command Degree, to simulate the 3rd test scene, the 3rd test scene is:The test scene of the screen rotation of the intelligent terminal;
When the screen of the intelligent terminal is in rotation status, the oracle listener is used to monitor the intelligent terminal described Gyro sensor senses the transverse screen state or portrait layout state during the angle;
The response data includes the transverse screen state and/or the portrait layout 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 true CN107727133A (en) 2018-02-23
CN107727133B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108413990A (en) * 2018-03-26 2018-08-17 上海摩软通讯技术有限公司 The gyroscope test device and test 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

Cited By (2)

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

Also Published As

Publication number Publication date
CN107727133B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN104242463B (en) A kind of electric power remote monitoring and control system based on GPRS and monitoring method
US20150181447A1 (en) Wireless automation test apparatus and method for mobile device
CN104601771A (en) Method and system for testing main board of mobile phone
US20130318400A1 (en) Electronic device, system, and method for testing exception handling mechanism
CN109541828A (en) A kind of the Mask Failure detection device and method of open air LCD operation maintenance system
CN100562134C (en) Test system and test method of digital display device
CN112333057A (en) Intelligent household equipment distribution network testing method and device, execution machine and storage medium
CN107608848A (en) Method of testing and system
CN112612699A (en) General automatic test equipment for HID (high intensity discharge) human-computer interaction scene use case
CN111083472A (en) Television testing method, device, equipment and storage medium
CN103558225B (en) A kind of cmos image chip detecting method
CN105045712B (en) A kind of test system for resolution chart processing module
CN109581104B (en) Method for testing touch screen of vehicle-mounted entertainment system
CN111141529B (en) Automatic test method for automobile instrument signals
CN107727133A (en) The method of testing and system of intelligent terminal internal sensor
CN205670317U (en) A kind of compound detection type passenger's counting assembly
CN105141947A (en) Pressure testing device and method thereof
CN110232881A (en) Front board measuring method
CN210377147U (en) Production test tool for solar street lamp controller
WO2019210674A1 (en) Method for simulation manual operation smart device, system and apparatus
CN109522170B (en) Front shell display module detection device and system
CN115079664A (en) Embedded automatic testing device and method thereof
CN107346609A (en) A kind of cell phone intelligent sensing identification traffic signal system based on Bluetooth technology
CN208672108U (en) A kind of gas meter function test macro
CN206833442U (en) A kind of unlocked by fingerprint test device of mobile terminal

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