CN113438350A - Test system of electronic device - Google Patents

Test system of electronic device Download PDF

Info

Publication number
CN113438350A
CN113438350A CN202110707671.1A CN202110707671A CN113438350A CN 113438350 A CN113438350 A CN 113438350A CN 202110707671 A CN202110707671 A CN 202110707671A CN 113438350 A CN113438350 A CN 113438350A
Authority
CN
China
Prior art keywords
electronic device
tested
test
axis
controller
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.)
Pending
Application number
CN202110707671.1A
Other languages
Chinese (zh)
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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202110707671.1A priority Critical patent/CN113438350A/en
Publication of CN113438350A publication Critical patent/CN113438350A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • 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

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a test system of an electronic device, comprising: the test board is used for fixing the electronic device to be tested and driving the electronic device to be tested to move so as to simulate various moving postures of the electronic device to be tested; the system host is connected with the electronic device to be tested and the test board, and is used for controlling the electronic device to be tested so as to enable the electronic device to be tested to complete the auxiliary operation of the sensor test and controlling the test board so as to enable the test board to drive the electronic device to be tested to move. The invention can realize the automatic test of the function test of the motion sensor in the electronic device.

Description

Test system of electronic device
Technical Field
The invention relates to the technical field of automatic testing, in particular to a testing system of an electronic device.
Background
With the advancement of technology, the mobile phone is no longer a simple communication tool, but is a portable electronic device with integrated functions. Virtual functions of the mobile phone, such as interaction and games, are realized through the powerful computing power of the processor, but functions combined with reality are realized through the sensor.
The built-in sensor in the mobile phone is a miniature physical device which can detect and sense external signals and convert the signals into information required by people according to a certain rule. Android phones typically support multiple types of sensors, some of which are hardware-based and some of which are software-based. Hardware-based sensors are physical devices embedded in a mobile phone, and their data are directly derived from measuring specific physical characteristics, such as an acceleration sensor, a gyroscope, a geomagnetic sensor, a light sensor, and the like. Software-based sensors have no physical components and they are modeled to operate as hardware-based sensors. Software-based sensors acquire data from one or more hardware-based sensors, which are often referred to as virtual sensors or composite sensors, such as rotary vector sensors, gross motion sensors, pedometers, and the like.
When designing a test case of the motion sensor, a test step in most of the test cases of the motion sensor includes a specific gesture operation to trigger the function of the test case. If the automatic screen turning function is tested, the mobile phone to be tested needs to be turned from the vertical screen state to the horizontal screen state, and the screen on-off state of the screen needs to be checked by the shielding distance sensor in the call. At present, most of the motion sensors are manually tested, and the test cases are more, time and labor are wasted, and the efficiency is low.
Disclosure of Invention
In order to solve the above problems, the present invention provides a test system for an electronic device, which can implement an automated test of a function test of a motion sensor in the electronic device.
The invention provides a test system of an electronic device, comprising:
the test board is used for fixing the electronic device to be tested and driving the electronic device to be tested to move so as to simulate various moving postures of the electronic device to be tested;
and the system host is connected with the electronic device to be tested and the test board and used for controlling the electronic device to be tested so as to enable the electronic device to be tested to complete the auxiliary operation of the sensor test and also used for controlling the test board so as to enable the test board to drive the electronic device to be tested to move.
Optionally, the test station comprises:
the clamp is used for fixing the electronic device to be tested;
the three-axis movement mechanism is connected with the clamp and is used for driving the electronic device to be tested on the clamp to do front-back linear movement along the Y axis, 360-degree rotary movement around the X axis and 360-degree rotary movement around the Z axis;
and the controller is connected with the three-axis motion mechanism and the system host and used for receiving a control command issued by the system host, generating a control signal for driving the three-axis motion mechanism according to the control command and sending the control signal to the three-axis motion mechanism.
Optionally, the three-axis motion mechanism comprises:
a three-axis stepper motor;
and the three-axis driver is connected with the three-axis stepping motor and used for driving the three-axis stepping motor according to the control signal of the controller.
Optionally, the controller is a PLC controller.
Optionally, the PLC controller is connected to the tri-axial driver through an I/O port;
and the PLC is connected with the system host through an RS232 or RS485 port.
Optionally, the test bench further comprises:
and the camera bellows is used for simulating the shielded dark environment of the electronic device to be tested.
Optionally, the test bench further comprises:
and the power supply circuit is used for supplying power to the three-axis movement mechanism and the controller.
Optionally, the system host is configured to run a sensor test script frame, load a test script set, and implement control on the electronic device to be tested and the test board, where the sensor test script frame is obtained based on Python + uuatormator 2.
Optionally, the system host is connected to the electronic device to be tested through a USB cable.
Optionally, the electronic device to be tested is a mobile phone.
The test system of the electronic device comprises a test board and a system host, wherein the electronic device to be tested is fixed on the test board, the system host runs a sensor test case to control the test board and the electronic device to be tested, controls the test board to drive the electronic device to be tested to realize various motion postures, and controls the electronic device to be tested to complete sensor test auxiliary operation. The invention can be used for automatically testing various sensors associated with the motion postures on the electronic device, saves labor and improves the testing efficiency.
Drawings
Fig. 1 is a block diagram of a test system of an electronic device according to an embodiment of the present invention;
fig. 2 is a block diagram of a testing system of an electronic device according to an embodiment of the present invention;
FIG. 3 is a schematic view of one embodiment of a test station;
FIG. 4 is a schematic diagram of a scenario of a sensor test script framework.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
Furthermore, the terms "mounted," "disposed," "provided," "connected," and "sleeved" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; can be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Fig. 1 is a block diagram illustrating a testing system of an electronic device according to an embodiment of the present invention.
As shown in fig. 1, the test system of the electronic device includes:
the test bench 101 is used for fixing the electronic device 103 to be tested and driving the electronic device 103 to be tested to move so as to simulate various motion postures of the electronic device to be tested, thereby meeting the action requirements in the test of the motion sensor;
the system host 102 is connected to the electronic device 103 to be tested and the testing platform 101, and is configured to control the electronic device 103 to be tested so that the electronic device to be tested performs auxiliary testing operations, and further to control the testing platform 101 so that the testing platform drives the electronic device to be tested to move.
As an embodiment, as shown in fig. 2, the test station 101 includes a clamp 1011, a three-axis motion mechanism 1012, and a controller 1013, wherein,
a clamp 1011 for fixing the electronic device under test 103;
the three-axis movement mechanism 1012 is connected with the clamp 1011 and is used for driving the electronic device to be tested on the clamp to do front-back linear movement along the Y axis, 360-degree rotary movement around the X axis and 360-degree rotary movement around the Z axis;
the controller 1013 is connected to the three-axis moving mechanism 1012 and the system host 102, and is configured to receive a control instruction sent by the system host 102, generate a control signal for driving the three-axis moving mechanism 1012 according to the control instruction, and send the control signal to the three-axis moving mechanism.
Further, the three-axis moving mechanism 1012, which may also be referred to as an X \ Y \ Z three-axis moving mechanism, may include a linear moving module for driving the electronic device to be tested on the fixture to perform a front-and-back linear movement along the Y axis, a first rotating platform for driving the electronic device to be tested on the fixture to perform a 360-degree rotational movement around the X axis, and a second rotating platform for driving the electronic device to be tested on the fixture to perform a 360-degree rotational movement around the Z axis. In physical structure, the three-axis motion mechanism 1012 is implemented as follows: comprising a three-axis stepping motor and a three-axis driver. The three-axis stepping motor is used for moving in three axial directions; the three-axis driver, i.e. the X \ Y \ Z three-axis driver, is connected to the three-axis stepping motor, and is configured to drive the three-axis stepping motor according to a control signal of the controller 1013. The embodiment adopts the closed-loop stepping motor to control and drive, has high precision and can well complete the sensor test function. Fig. 3 is a schematic view of a test bench, and fig. 3 shows the mutual positions of the linear motion module Y1, the first rotary platform R1 and the second rotary platform R2.
Further, the controller 1013 employs a PLC controller. This is a digital arithmetic operation electronic system designed specifically for application in an industrial environment. It uses a programmable memory, in which the instructions for implementing logical operation, sequence control, timing, counting and arithmetic operation are stored, and utilizes digital or analog input and output to control various mechanical equipments or production processes. The controller has the advantages of powerful function, convenient use, stability, reliability and convenient interaction with the test script.
The PLC is connected with the triaxial driver through an I/O port, and is connected with the system host through an RS232 or RS485 port. Based on this structure, the control flow of the system host 102 to the three-axis movement mechanism 1012 is as follows:
1. the system host computer communicates with the PLC through an RS232 or RS485 port, follows MODBUS ASCII/RTU communication protocol and the like, and sends a control instruction (the PLC needs to write a corresponding control program) to a register address defined by the PLC.
2. The PLC is connected with the triaxial driver through an I/O interface to perform I/O communication, and a PLC output terminal outputs control signals (such as starting commands, speed, direction, pulse number and the like) to the triaxial driver. The PLC input terminal receives a status signal returned by the tri-axis driver.
3. And the three-axis driver drives the three-axis stepping motor to execute corresponding actions such as rotation direction, rotation angle and rotation speed according to the control signal of the PLC. In addition, the motor encoder feeds back real-time position information to the three-axis driver, and positioning accuracy is guaranteed.
It can be understood that the three-axis stepping motors correspond to the three-axis drivers one by one, and the control signal sent by the PLC controller 1013 is input to the three-axis drivers to further drive the three-axis stepping motors.
Further, as an embodiment, the testing platform 101 further includes a dark box 1014, where the dark box 1014 is used for shielding the electronic device to be tested when the electronic device to be tested moves to the backlight side of the dark box, so as to simulate a dark environment where the electronic device to be tested is shielded.
In addition, the test station 101 includes a power circuit 1015 for powering the three-axis motion mechanism 1012 and the controller 1013.
In addition, the system host 102 of the embodiment includes a control computer and a display, the control computer stores a sensor test script frame, and the control computer is used for running the sensor test script frame and loading a test script set to control the electronic device to be tested and the test board. And after the test is finished, outputting the test result of the test case set and executing the log file. The host is provided with an offline client, the offline client is used for receiving a test case set instruction issued by the online test case system, loading a corresponding test script in the test frame for testing, and simultaneously feeding back a test result in the test frame to the online test case system.
The sensor test script framework is written based on Python + Uiautormator 2.
The Uiautomator2 is an Android UI automation framework, and the bottom layer is based on a Google UI automation and supports a Python script to compile a test script to automatically test equipment. Referring to fig. 4, a sensor test script frame mainly includes a lib and scripts, and a lib file mainly includes interfaces packaged by modules in a sensor test; the script file contains a sensor module test script written by taking each test case number as a name, and in the process of writing the script, an interface packaged in a lib library is quoted, and meanwhile, a test case set can be configured by config.
The system host is connected with the electronic device to be tested through a USB line. The system host controls the UI interface of the electronic device to be tested based on Python + Uiautorator 2, and the sensor test script frame analyzes the test case set information in the configuration file and loads the test script. And calling the packaged interface by the test script, controlling the UI interface of the electronic device to be tested, and judging and processing the UI operation result.
Taking the electronic device to be tested as a mobile phone and testing the sensor of the mobile phone to be tested as an example, the test system provided by the above embodiment has the following whole test flow: after the test system is powered on, the mobile phone to be tested is fixed on the test board, a tester opens the off-line client and connects the on-line test case system, the on-line test case system has the selected test cases, then the task number is obtained, the selected test cases are analyzed, and scripts corresponding to the test cases are downloaded to the local system host. And the system host runs the test script framework and loads the corresponding test script in the test script framework for testing. The host and the mobile phone to be tested are connected through the USB, the host obtains the attributes of the mobile phone application control by using a Google ui automatotor 2 library, and operations such as clicking, sliding and obtaining attribute values are performed; the RS232 is connected with the host and the PLC, and sends a control signal to the shaft driver to drive the motor to execute corresponding rotation direction, angle and speed. After the execution is finished, the execution result is fed back to the offline client through the JSON data format, and is analyzed and transmitted to the online test case system, the test result is updated, and meanwhile, the execution log is stored locally, so that the problem reason can be conveniently inquired subsequently. For example: when the setting interface screen-turning test case is implemented, firstly initializing a three-axis movement mechanism of a test board, returning to an initial position, then acquiring a control based on a uiautomator2 library, starting a setting application, clicking a display control, clicking a high-grade control, clicking a button on the right side of an automatic screen-turning function, at the moment, opening the automatic screen-turning function, controlling a motor of a rotary platform R1 to rotate 90 degrees anticlockwise to enable a mobile phone to be tested to be in a front vertical state, controlling a motor of the rotary platform R2 to rotate 90 degrees and 270 degrees clockwise respectively to enable the mobile phone to be tested to be in a left transverse screen state and a right transverse screen state, when the mobile phone to be tested is in the left transverse screen state and the right transverse screen state, obtaining a screen state attribute value for comparison, if the screen state is correct, returning to Pass, otherwise, returning to Fail, and printing a related error log.
The test system of the electronic device comprises the test board and the system host, wherein the electronic device to be tested is fixed on the test board, the system host runs the sensor test case to control the test board and the electronic device to be tested, controls the test board to drive the electronic device to be tested to realize various motion postures, and controls the electronic device to be tested to finish the auxiliary operation of sensor test. Compared with the prior art, the embodiment of the invention can realize the automatic test of the function test of the motion sensor in the electronic device.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A system for testing an electronic device, the system comprising:
the test board is used for fixing the electronic device to be tested and driving the electronic device to be tested to move so as to simulate various moving postures of the electronic device to be tested;
and the system host is connected with the electronic device to be tested and the test board and used for controlling the electronic device to be tested so as to enable the electronic device to be tested to complete the auxiliary operation of the sensor test and also used for controlling the test board so as to enable the test board to drive the electronic device to be tested to move.
2. The system of claim 1, wherein the test station comprises:
the clamp is used for fixing the electronic device to be tested;
the three-axis movement mechanism is connected with the clamp and is used for driving the electronic device to be tested on the clamp to do front-back linear movement along the Y axis, 360-degree rotary movement around the X axis and 360-degree rotary movement around the Z axis;
and the controller is connected with the three-axis motion mechanism and the system host and used for receiving a control command issued by the system host, generating a control signal for driving the three-axis motion mechanism according to the control command and sending the control signal to the three-axis motion mechanism.
3. The system of claim 2, wherein the three-axis motion mechanism comprises:
a three-axis stepper motor;
and the three-axis driver is connected with the three-axis stepping motor and used for driving the three-axis stepping motor according to the control signal of the controller.
4. The system of claim 3, wherein the controller is a PLC controller.
5. The system of claim 4, wherein the PLC controller is connected to the tri-axial driver through an I/O port;
and the PLC is connected with the system host through an RS232 or RS485 port.
6. The system of claim 2, wherein the test station further comprises:
and the camera bellows is used for simulating the shielded dark environment of the electronic device to be tested.
7. The system of claim 2, wherein the test station further comprises:
and the power supply circuit is used for supplying power to the three-axis movement mechanism and the controller.
8. The system of claim 1, wherein the system host is configured to run a sensor test script framework, load a test script set, and control the electronic device under test and the test bench, wherein the sensor test script framework is obtained based on Python + uuatormator 2.
9. The system of claim 1, wherein the system host is connected to the electronic device under test via a USB cable.
10. The system of claim 1, wherein the electronic device under test is a mobile phone.
CN202110707671.1A 2021-06-24 2021-06-24 Test system of electronic device Pending CN113438350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110707671.1A CN113438350A (en) 2021-06-24 2021-06-24 Test system of electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110707671.1A CN113438350A (en) 2021-06-24 2021-06-24 Test system of electronic device

Publications (1)

Publication Number Publication Date
CN113438350A true CN113438350A (en) 2021-09-24

Family

ID=77755321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110707671.1A Pending CN113438350A (en) 2021-06-24 2021-06-24 Test system of electronic device

Country Status (1)

Country Link
CN (1) CN113438350A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150122476A (en) * 2014-04-23 2015-11-02 삼성전자주식회사 Method and apparatus for controlling gesture sensor
CN106092210A (en) * 2016-08-06 2016-11-09 广东每通测控科技股份有限公司 A kind of automatic streamline formula mobile phone on-line testing method and system thereof
CN206865554U (en) * 2017-04-17 2018-01-09 东莞市沃德精密机械有限公司 Mobile phone gravity detection means
CN108430100A (en) * 2018-02-05 2018-08-21 广东欧珀移动通信有限公司 The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN109764906A (en) * 2018-12-11 2019-05-17 深圳市艾特讯科技有限公司 Automatic test device for mobile terminal
CN111885250A (en) * 2020-09-03 2020-11-03 惠州市米琦科技有限公司 Mobile phone MMI automatic test method and equipment thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150122476A (en) * 2014-04-23 2015-11-02 삼성전자주식회사 Method and apparatus for controlling gesture sensor
CN106092210A (en) * 2016-08-06 2016-11-09 广东每通测控科技股份有限公司 A kind of automatic streamline formula mobile phone on-line testing method and system thereof
CN206865554U (en) * 2017-04-17 2018-01-09 东莞市沃德精密机械有限公司 Mobile phone gravity detection means
CN108430100A (en) * 2018-02-05 2018-08-21 广东欧珀移动通信有限公司 The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN109764906A (en) * 2018-12-11 2019-05-17 深圳市艾特讯科技有限公司 Automatic test device for mobile terminal
CN111885250A (en) * 2020-09-03 2020-11-03 惠州市米琦科技有限公司 Mobile phone MMI automatic test method and equipment thereof

Similar Documents

Publication Publication Date Title
US10635082B2 (en) Robot motion program generating method and robot motion program generating apparatus
KR100929445B1 (en) Recording medium including robot simulation apparatus and robot simulation program
Melgar et al. Arduino and kinect projects: Design, build, blow their minds
CN109414823B (en) Robotic-operated handheld device combination with base controller position sensor
US10814486B2 (en) Information processing device, information processing method, and non-transitory computer-readable recording medium
CN103995495A (en) Multifunctional debugging table hybrid control system for large equipment assembly debugging
CN107336244A (en) Intuitive force guiding method and device for robot
US20210011824A1 (en) System, apparatus and methods for automatically testing mobile devices
CN113438350A (en) Test system of electronic device
Thai Exploring robotics with ROBOTIS Systems
CN112506378A (en) Bending track control method and device and computer readable storage medium
CN113626309A (en) Method and device for simulating operation of mobile terminal, electronic equipment and storage medium
Henderson An inertial measurement system for hand and finger tracking
Kong et al. Mobile manipulator control based on voice and visual signal
KR101482701B1 (en) Designing apparatus for gesture based interaction and designing system for gesture based interaction
CN110427106A (en) Body-sensing action data processing method, equipment and computer readable storage medium
CN111332494A (en) Unmanned aerial vehicle debugging, measuring and controlling system and method
JPH0764619A (en) Support system for generation of robot program
CN214265594U (en) Robot movement track planning device
EP4254098A1 (en) Controlling an automation system comprising a plurality of machines
KR20060011561A (en) Mental robot development platform architecture use of serial and parallel handling of arm processor and dsp processor
CN219132335U (en) Robot demonstrator with real-time pose detection capability
CN112925712B (en) Intelligent cabin man-machine interaction system testing device based on triaxial movement system and adopting OpenCV image retrieval technology
CN112781615B (en) Gyro signal data acquisition system
Yordanov et al. “BAXTER” INDUSTRIAL ROBOT ONLINE CONTROL

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210924

RJ01 Rejection of invention patent application after publication