CN104615524A - USB (universal serial bus) plug testing method for mobile terminal - Google Patents
USB (universal serial bus) plug testing method for mobile terminal Download PDFInfo
- Publication number
- CN104615524A CN104615524A CN201510081673.9A CN201510081673A CN104615524A CN 104615524 A CN104615524 A CN 104615524A CN 201510081673 A CN201510081673 A CN 201510081673A CN 104615524 A CN104615524 A CN 104615524A
- Authority
- CN
- China
- Prior art keywords
- test
- usb
- mode
- relay
- pulse output
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 61
- 238000010998 test method Methods 0.000 claims abstract description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Landscapes
- Information Transfer Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种移动终端用的USB插拔测试方法,包括如下步骤:步骤一、硬件连接:硬件包括PC主控制器、脉冲输出控制器、继电器、USB、以及测试设备;PC主控制器用于向脉冲输出控制器发送开启/关闭指令,同时接收测试设备的测试信息;脉冲输出控制器与继电器的控制端子电连接;继电器的输出端子与USB的四根线电连接;USB与测试设备电连接;步骤二、测试环节:将USB的四根线两两一组分成多种模式,每种模式在PC主控制器内均设置有一个开启/关闭指令模块和一个测试结果模块;PC主控制器依次通过脉冲输出控制器、继电器实现对每种模式的开启/关闭;测试设备实现对每种模式的测试,并将测试结果发送给测试结果模块。
The invention discloses a USB plug-in test method for a mobile terminal, comprising the following steps: Step 1, hardware connection: the hardware includes a PC main controller, a pulse output controller, a relay, a USB, and testing equipment; the PC main controller uses It is used to send open/close instructions to the pulse output controller and receive test information from the test equipment at the same time; the pulse output controller is electrically connected to the control terminal of the relay; the output terminal of the relay is electrically connected to the four wires of the USB; the USB is electrically connected to the test equipment Connection; step 2, test link: divide the four USB lines into multiple modes in pairs, and each mode is equipped with an on/off command module and a test result module in the PC main controller; PC main control The device realizes the on/off of each mode through the pulse output controller and the relay in turn; the test equipment realizes the test of each mode, and sends the test result to the test result module.
Description
技术领域technical field
本发明涉及移动终端测试技术领域,特别是涉及一种移动终端用的USB插拔测试方法。The invention relates to the technical field of mobile terminal testing, in particular to a USB plug-in test method for a mobile terminal.
背景技术Background technique
随着智能移动终端的普及,用户对终端设备稳定性、性能和用户体验方面等方面的要求越来越高,智能机器人在智能移动终端测试领域中的使用也随之变得普及。相对于传统手工测试和纯软件自动化测试而言,智能机器人测试在测试准确性、无软件干预、更高可靠性、测试一致性、拟人仿真等方面有显著优势。With the popularity of smart mobile terminals, users have higher and higher requirements for terminal equipment stability, performance and user experience, and the use of smart robots in the field of smart mobile terminal testing has also become popular. Compared with traditional manual testing and pure software automated testing, intelligent robot testing has significant advantages in terms of test accuracy, no software intervention, higher reliability, test consistency, and anthropomorphic simulation.
利用智能机器人进行移动终端测试时,需要获取到终端的相关数据信息、充电状态从而完成后续对手机的精确数据分析。目前主流智能机器人测试系统中,对被测对象充电状态,数据传输的俘获方法有以下几种:When using an intelligent robot to test a mobile terminal, it is necessary to obtain relevant data information and charging status of the terminal to complete subsequent accurate data analysis of the mobile phone. At present, in the mainstream intelligent robot test system, there are several ways to capture the charging state and data transmission of the measured object as follows:
1.手动插拔USB;1. Manually plug and unplug the USB;
2.对移动终端进行线路改造;2. Carry out line transformation on mobile terminals;
3.模式切换需手动改造通断数据线。3. Mode switching requires manual modification of the on-off data line.
以上三种技术都存在明显的缺陷,如下:There are obvious defects in the above three technologies, as follows:
1.手动插拔模式混杂,无法单一测试。只能依靠软件模拟测试。数据准确率底。1. The manual plugging and unplugging modes are mixed and cannot be tested individually. Can only rely on software simulation testing. Data accuracy is low.
2.想进行单一测试,需要对手机进行线路改造等物理干预,虽然解决了信号干扰,但也破坏移动终端的完整。且耗时耗力,专业技术要求高2. If you want to conduct a single test, you need to carry out physical intervention such as line modification on the mobile phone. Although the signal interference is solved, it also destroys the integrity of the mobile terminal. It is time-consuming and labor-intensive, requiring high professional skills
3.手动改造工作强度高,测试效率低下,且信号传输不平滑,数据传输不稳定。测试准确度极低。3. The manual modification is intensive and the test efficiency is low, and the signal transmission is not smooth and the data transmission is unstable. The test accuracy is extremely low.
发明内容Contents of the invention
本发明要解决的技术问题是:提供一种高效率、操作简单方便的移动终端用的USB插拔测试方法。The technical problem to be solved by the present invention is to provide a high-efficiency, simple and convenient USB plug-in test method for mobile terminals.
本发明为解决公知技术中存在的技术问题所采取的技术方案是:The technical scheme that the present invention takes for solving the technical problem existing in known technology is:
一种移动终端用的USB插拔测试方法,上述USB包括两根电源线和两根信号线;其特征在于:包括如下步骤:A kind of USB plug-in test method that mobile terminal is used, above-mentioned USB comprises two power lines and two signal lines; It is characterized in that: comprise the following steps:
步骤一、硬件连接:所述硬件包括PC主控制器、脉冲输出控制器、继电器、USB、以及测试设备;所述PC主控制器用于向脉冲输出控制器发送开启/关闭指令,同时接收测试设备的测试信息;所述脉冲输出控制器与继电器的控制端子电连接;所述继电器的输出端子与USB的四根线电连接;所述USB与测试设备电连接;Step 1, hardware connection: the hardware includes a PC master controller, a pulse output controller, a relay, USB, and a test device; the PC master controller is used to send an on/off command to the pulse output controller, and simultaneously receive the test device The test information; the pulse output controller is electrically connected to the control terminal of the relay; the output terminal of the relay is electrically connected to the four wires of the USB; the USB is electrically connected to the test equipment;
步骤二、测试环节:将USB的四根线两两一组分成多种模式,每种模式在PC主控制器内均设置有一个与该种模式对应的开启/关闭指令模块,以及用于接收该种模式测试信息的测试结果模块;PC主控制器依次通过脉冲输出控制器、继电器实现对每种模式的开启/关闭;测试设备实现对每种模式的测试,并将测试结果发送给测试结果模块。Step 2. Test link: Divide the four USB lines into multiple modes in pairs. Each mode is equipped with an on/off command module corresponding to the mode in the PC main controller, and is used to receive The test result module of the test information of this mode; the PC main controller realizes the on/off of each mode through the pulse output controller and the relay in turn; the test equipment realizes the test of each mode and sends the test result to the test result module.
本发明具有的优点和积极效果是:通过采用上述技术方案,本发明通过脉冲输出控制卡、继电器与PC主控制器,在USB多种模式(AC充电通断、USB充电通断、数据传输通断几种模式)中自由切换。显著提高了原来由手动插拔或其他方法进行通断时带来的低效率、高强度的问题,有效的降低了目前利用机械手做移动终端测试时人工参与度高,劳动强度大的问题。且操作方便快速,傻瓜式操作。The advantages and positive effects of the present invention are: by adopting the above-mentioned technical scheme, the present invention controls the card, the relay and the PC main controller through the pulse output, in various USB modes (AC charging on-off, USB charging on-off, data transmission on-off) Switch freely among several modes). It has significantly improved the low efficiency and high strength problems caused by manual plugging or other methods of switching on and off, and effectively reduced the problems of high manual participation and high labor intensity when using manipulators to test mobile terminals. And the operation is convenient and fast, fool-like operation.
附图说明Description of drawings
图1是本发明硬件部分的结构框图;Fig. 1 is a structural block diagram of the hardware part of the present invention;
图2是本发明的工作流程图;Fig. 2 is a work flow chart of the present invention;
图3是本发明硬件部分的电路原理图。Fig. 3 is a schematic circuit diagram of the hardware part of the present invention.
具体实施方式Detailed ways
为能进一步了解本发明的发明内容、特点及功效,兹例举以下实施例,并配合附图详细说明如下:In order to further understand the invention content, characteristics and effects of the present invention, the following examples are given, and detailed descriptions are as follows in conjunction with the accompanying drawings:
请参阅图1、图2和图3:一种移动终端用的USB插拔测试方法,本优选实施例中的USB包括两根电源线和两根信号线;Please refer to Fig. 1, Fig. 2 and Fig. 3: a kind of USB plug-in test method that mobile terminal is used, the USB in this preferred embodiment comprises two power lines and two signal lines;
步骤一、硬件连接:所述硬件包括PC主控制器、脉冲输出控制器、继电器、USB、以及测试设备;所述PC主控制器用于向脉冲输出控制器发送开启/关闭指令,同时接收测试设备的测试信息;所述脉冲输出控制器与继电器的控制端子电连接;所述继电器的输出端子与USB的四根线电连接;所述USB与测试设备电连接;Step 1, hardware connection: the hardware includes a PC master controller, a pulse output controller, a relay, USB, and a test device; the PC master controller is used to send an on/off command to the pulse output controller, and simultaneously receive the test device The test information; the pulse output controller is electrically connected to the control terminal of the relay; the output terminal of the relay is electrically connected to the four wires of the USB; the USB is electrically connected to the test equipment;
步骤二、测试环节:将USB的四根线两两一组分成多种模式,每种模式在PC主控制器内均设置有一个与该种模式对应的开启/关闭指令模块,以及用于接收该种模式测试信息的测试结果模块;PC主控制器依次通过脉冲输出控制器、继电器实现对每种模式的开启/关闭;测试设备实现对每种模式的测试,并将测试结果发送给测试结果模块。Step 2. Test link: Divide the four USB lines into multiple modes in pairs. Each mode is equipped with an on/off command module corresponding to the mode in the PC main controller, and is used to receive The test result module of the test information of this mode; the PC main controller realizes the on/off of each mode through the pulse output controller and the relay in turn; the test equipment realizes the test of each mode and sends the test result to the test result module.
本发明的工作原理是:对USB的四根线分别进行单独通断。The working principle of the present invention is as follows: the four wires of the USB are separately switched on and off.
通过继电器对USB内的4跟线两两单独通断,实现对不同模式的切换。Through the relay, the 4 wires in the USB are switched on and off in pairs to realize the switching of different modes.
USB自动通断步骤说明:USB automatic on-off steps:
测试初始化(将USB连接到被测终端)Test initialization (connect USB to the terminal under test)
选择测试模式Select test mode
这里主要USB充电模式的两种状态的电路运行见图3The circuit operation of the two states of the main USB charging mode here is shown in Figure 3
在USB充电模式时,由PC主控制器对脉冲输出控制器发送指令,使对应的输出端口Out1 out2 out3 out4处在高电平状态(默认低电平断开状态)线圈1、2、3、4导通触点1、2、3、4闭合USB接口与主控制器线路完全导通。此模式模拟了传统USB插拔状态,同理将控制数据传输的端口2和3(D+ D-)的高电平转为低电平。线圈2、3失电、触点2、3断开。只留下1、4导通。成功切换到单独的USB充电状态模拟了USB单一的充电状态无其他干扰。这样就保证模式的自由转换。In the USB charging mode, the PC main controller sends instructions to the pulse output controller, so that the corresponding output ports Out1 out2 out3 out4 are in a high level state (default low level off state) coils 1, 2, 3, 4 Conduction contacts 1, 2, 3 and 4 are closed and the USB interface is completely conducted with the main controller circuit. This mode simulates the traditional USB plugging and unplugging state, and similarly changes the high level of ports 2 and 3 (D+ D-) that control data transmission to low level. Coils 2 and 3 are de-energized, and contacts 2 and 3 are disconnected. Only 1 and 4 are left to conduct. Successfully switching to an individual USB charging state simulates a USB single charging state without other disturbances. This guarantees free conversion of modes.
以上对本发明的实施例进行了详细说明,但所述内容仅为本发明的较佳实施例,不能被认为用于限定本发明的实施范围。凡依本发明申请范围所作的均等变化与改进等,均应仍归属于本发明的专利涵盖范围之内。The embodiments of the present invention have been described in detail above, but the content described is only a preferred embodiment of the present invention, and cannot be considered as limiting the implementation scope of the present invention. All equivalent changes and improvements made according to the application scope of the present invention shall still belong to the scope covered by the patent of the present invention.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510081673.9A CN104615524B (en) | 2015-02-15 | 2015-02-15 | The USB plug method of testings of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510081673.9A CN104615524B (en) | 2015-02-15 | 2015-02-15 | The USB plug method of testings of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104615524A true CN104615524A (en) | 2015-05-13 |
CN104615524B CN104615524B (en) | 2017-06-16 |
Family
ID=53149981
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510081673.9A Expired - Fee Related CN104615524B (en) | 2015-02-15 | 2015-02-15 | The USB plug method of testings of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104615524B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104932962A (en) * | 2015-06-05 | 2015-09-23 | 惠州Tcl移动通信有限公司 | USB (Universal Serial Bus) plug testing system and method thereof |
CN109061342A (en) * | 2018-07-11 | 2018-12-21 | 维沃移动通信有限公司 | A kind of fast charge plug test method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100485632C (en) * | 2007-02-01 | 2009-05-06 | 炬力集成电路设计有限公司 | USB device testing module, USB device and testing method thereof |
US20140304555A1 (en) * | 2013-04-09 | 2014-10-09 | Quanta Computer Inc. | Universal serial bus testing device |
CN104237699A (en) * | 2014-09-28 | 2014-12-24 | 上海斐讯数据通信技术有限公司 | USB (universal serial bus) interface communication test system and method |
-
2015
- 2015-02-15 CN CN201510081673.9A patent/CN104615524B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100485632C (en) * | 2007-02-01 | 2009-05-06 | 炬力集成电路设计有限公司 | USB device testing module, USB device and testing method thereof |
US20140304555A1 (en) * | 2013-04-09 | 2014-10-09 | Quanta Computer Inc. | Universal serial bus testing device |
CN104237699A (en) * | 2014-09-28 | 2014-12-24 | 上海斐讯数据通信技术有限公司 | USB (universal serial bus) interface communication test system and method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104932962A (en) * | 2015-06-05 | 2015-09-23 | 惠州Tcl移动通信有限公司 | USB (Universal Serial Bus) plug testing system and method thereof |
CN109061342A (en) * | 2018-07-11 | 2018-12-21 | 维沃移动通信有限公司 | A kind of fast charge plug test method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104615524B (en) | 2017-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10613952B2 (en) | Multi-port communications switch with automated flip emulation | |
CN109062751A (en) | USB Type-C interface rapid test system and method | |
CN104778109B (en) | Program downloading system and method for PCIE/PCIX external plug-in card | |
CN107544001B (en) | Insulation test equipment for spacecraft heat test cables | |
CN208547675U (en) | A kind of plug test module for USB Type-C interface | |
CN208109980U (en) | USB on off test device and its system | |
CN105487955B (en) | The test method of measurement jig and C type USB ports | |
CN204086955U (en) | Portable multi-protocols dual bus multistage integratedization electromechanical coupling system measure and control device | |
CN201707413U (en) | Electromagnetic compatibility testing device | |
CN101685432A (en) | Device for realizing USB interface switching and system for realizing USB interface testing | |
CN104615524B (en) | The USB plug method of testings of mobile terminal | |
CN103594121B (en) | Memory test method, memory test device and adapter thereof | |
CN204228912U (en) | A kind of electric automatization facility switching tests pick-up unit automatically | |
CN107544880A (en) | A kind of USB hot plugs stability test method and test device | |
CN204287861U (en) | A kind of audio-frequency signal switching device | |
CN203287403U (en) | Signal wiring device | |
CN110245042A (en) | A kind of laptop shipment mode capabilities automatic test approach and system | |
CN209803310U (en) | Convenient switch plug power simulation testing arrangement | |
CN208207593U (en) | A kind of experimental provision of robot workstation's electric control system | |
CN105718407B (en) | The USB switch of chip controls | |
CN209748581U (en) | Data security testing arrangement of distributed storage | |
CN204304161U (en) | USB2.0, USB3.0 switch | |
CN216816910U (en) | Wire rod integration test system | |
CN204204291U (en) | PLC control system experimental provision is used in teaching | |
CN204557469U (en) | The USB switch of chip controls |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170616 |