CN104836877B - A kind of method for debugging detection mobile phone - Google Patents

A kind of method for debugging detection mobile phone Download PDF

Info

Publication number
CN104836877B
CN104836877B CN201510070507.9A CN201510070507A CN104836877B CN 104836877 B CN104836877 B CN 104836877B CN 201510070507 A CN201510070507 A CN 201510070507A CN 104836877 B CN104836877 B CN 104836877B
Authority
CN
China
Prior art keywords
mobile phone
usb
debugging
conversion adapter
serial conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510070507.9A
Other languages
Chinese (zh)
Other versions
CN104836877A (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.)
Data Communication Institute Of Science And Technology
Original Assignee
Data Communication Institute Of Science And Technology
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 Data Communication Institute Of Science And Technology filed Critical Data Communication Institute Of Science And Technology
Priority to CN201510070507.9A priority Critical patent/CN104836877B/en
Publication of CN104836877A publication Critical patent/CN104836877A/en
Application granted granted Critical
Publication of CN104836877B publication Critical patent/CN104836877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of method for debugging detection mobile phone, it the described method comprises the following steps:S1, serial conversion adapter is inserted on the USB interface of mobile phone, wherein the other end of serial conversion adapter connects the serial ports of computer;Output debugging detection information in S2, mobile phone debugging process;The equipment for inserting the USB interface is identified for the USB device driving set in S3, mobile phone;If inserting the equipment of the USB interface is used to debug detection mobile phone, USB device driving is called and sent comprising the control information including the debugging detection information to the usb host controller driving set in mobile phone;The debugging detection information is passed to the serial conversion adapter by S4, usb host controller driving according to the control information, and computer is passed to by detection information is debugged by the serial conversion adapter.Hardware cost by evaluation board, can not increased by the method for the present invention, it is covered in the case of easily carry out the hardware detection and software debugging of mobile phone.

Description

A kind of method for debugging detection mobile phone
Technical field
The present invention relates to AccessPort technical field, a kind of method for debugging detection mobile phone is more particularly to.
Background technology
The method of current mobile phone debugging detection is a lot, the asynchronous serial port for mainly using mobile phone primary processor (CPU) to provide (UART) related commissioning information is exported.
The method of debugging detection at present has following several:
Debugged and detected by evaluation board, evaluation board does not have a size limitation, developer can be by CPU emulation interface (such as JTAG mouthfuls) is debugged;In addition related commissioning information is exported to PC using CPU UART in evaluation board, debug relevant design Scheme.
Using mobile phone complete machine as prototype, but it is due to that board area is limited, it is impossible to which emulation interface is provided, can not profit Debugging message is exported with CPU UART, limited information can only be exported using screen under brush machine pattern.
CPU UART pins are drawn as test point on the circuit board (PCB) of mobile phone, mobile phone can be carried out after uncapping Test.
Mobile phone has used multi-channel switch chip, and support switches UART on the mini USB ports for meeting industrial standard Mouthful.
It is each defective in above-mentioned technical scheme:
Evaluation board and mobile phone still have differences, it is impossible to be equivalent to completely, and not all cell phone software exploitation Commercial city can obtain the evaluation board of cell phone manufacturer's offer.
Screen output information under brush machine pattern is limited, can only play certain detection effect, software development is helped not Greatly.
Mobile phone uncap extraction UART mouthful export Debugging message it is very inconvenient for most software developer, moreover go out In the wiring and the consideration of electromagnetic shielding of pcb board, CPU UART pins will not be typically drawn.
Increase multi-channel switch chip can be examined in solution mobile phone debugging on the basis of ensureing not losing function and performance The problem of survey, but due to cost considerations, most of mobile phones do not add the design of multi-channel switch.
The content of the invention
(1) technical problem to be solved
The technical problem to be solved in the present invention is how without the help of evaluation board, not change existing mobile phone hardware design, On the premise of not increasing hardware cost, debugging detection is carried out to mobile phone.
(2) technical scheme
In order to solve the above-mentioned technical problem, the invention provides a kind of method for debugging detection mobile phone, methods described includes Following steps:
S1, serial conversion adapter is inserted on the USB interface of mobile phone, the wherein other end connection of serial conversion adapter The serial ports of computer;
Output debugging detection information in S2, mobile phone debugging process;
The equipment for inserting the USB interface is identified for the USB device driving set in S3, mobile phone;If insertion is described The equipment of USB interface is used to debug detection mobile phone, then the USB device driving is called and sent comprising the debugging detection information Control information inside is to the usb host controller driving set in mobile phone;
S4, usb host controller driving are according to the control information passes to the debugging detection information Serial conversion adapter, computer is passed to by the serial conversion adapter by detection information is debugged.
Preferably, the USB interface connection mobile phone CPU of mobile phone USB OTG interfaces.
Preferably, the serial ports of computers being connected with the other end of the serial conversion adapter is asynchronous serial port.
Preferably, the serial conversion adapter is RS232-USB (such as PL2303) interface convertor.
Preferably, the USB device is driven to USB serial port drives or PL2303 drivings.
Preferably, debugging detection information is passed to described serial turn by the usb host controller driving by usb bus Changer adapter.
Preferably, the USB device is driven through the mode enumerated and the equipment for inserting the USB interface is identified.
(3) beneficial effect
, can be not by assessment by the method for the present invention the invention provides a kind of method for debugging detection mobile phone Plate, does not increase hardware cost, it is covered in the case of easily carry out hardware detection and software debugging.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 detects the flow chart of the method for mobile phone for a kind of debugging of the present invention;
Fig. 2 realizes the structural representation of the method equipment therefor of the present invention for the present invention.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.Following examples are used to illustrate this hair It is bright, but can not be used for limiting the scope of the present invention.
Fig. 1 detects the flow chart of the method for mobile phone for a kind of debugging of the present invention;It the described method comprises the following steps:
S1, serial conversion adapter is inserted on the USB interface of mobile phone, the wherein other end connection of serial conversion adapter The serial ports of computer;
Output debugging detection information in S2, mobile phone debugging process;
The equipment for inserting the USB interface is identified for the USB device driving set in S3, mobile phone;If insertion is described The equipment of USB interface is used to debug detection mobile phone, then the USB device driving is called and sent comprising the debugging detection information Control information inside is to the usb host controller driving set in mobile phone;
S4, usb host controller driving are according to the control information passes to the debugging detection information Serial conversion adapter, computer is passed to by the serial conversion adapter by detection information is debugged.
The USB interface of mobile phone is USB OTG interfaces.The external interface that general mobile phone is provided is mini USB ports, can To complete charging and data-transformation facility.In interior of mobile phone, connect mini USB ports is mobile phone CPU USB OTG interfaces. USB otg standards had both allowed equipment as main frame, can also entered as peripheral hardware on the basis of the completely compatible standards of USB 2.0 Row data transfer, and the two role can intercourse according to agreement.
The serial ports of computers being connected with the other end of the serial conversion adapter is asynchronous serial port.The serial conversion is fitted Orchestration is RS2332-USB (such as PL2303) interface convertor.The USB device is driven to USB serial port drives or PL2303 drives It is dynamic.Debugging detection information is passed to the serial conversion adapter by the usb host controller driving by usb bus.Institute State USB device and be driven through the mode enumerated and the equipment for inserting the USB interface is identified.
Usb host controller driving is responsible for controlling the USB device being inserted (on the right of i.e. with reference to simple usb protocol stack USB serial conversion adapters, such as common interface cable containing PL2303);(Universal USB serial ports drives for USB device driving Dynamic or PL2303 drivings) recognize and control insertion USB device how with main-machine communication.
The realization that usb host controller drives and usb protocol stack and USB device drive is efficiently succinct as far as possible, This is related to the operating efficiency of whole system.
The present invention passes through USB interface and outside USB serial conversion adapter communications, most debugging detection information transmission at last To the asynchronous serial port (UART) of PC, display on a pc screen, entirely realizes that block diagram is as shown in Figure 2.
Hardware cost by evaluation board, can not increased by the method for the present invention, it is covered in the case of it is convenient Ground carries out hardware detection and software debugging.
Embodiment of above is merely to illustrate the present invention, rather than limitation of the present invention.Although with reference to embodiment to this hair It is bright to be described in detail, it will be understood by those within the art that, to technical scheme carry out it is various combination, Modification or equivalent substitution, without departure from the spirit and scope of technical solution of the present invention, the right that all should cover in the present invention is wanted Ask among scope.

Claims (7)

1. a kind of method for debugging detection mobile phone, it is characterised in that the described method comprises the following steps:
S1, serial conversion adapter is inserted on the USB interface of mobile phone, the other end connection of wherein serial conversion adapter is calculated The serial ports of machine;
Output debugging detection information in S2, mobile phone debugging process;
The equipment for inserting the USB interface is identified for the USB device driving set in S3, mobile phone;If inserting the USB to connect Mouthful equipment be used to debug detection mobile phone, then USB device driving is called and sent comprising including the debugging detection information Control information to set in mobile phone usb host controller driving;
S4, usb host controller driving pass to the debugging detection information according to the control information described serial Conversion adapter, computer is passed to by the serial conversion adapter by detection information is debugged.
2. according to the method described in claim 1, it is characterised in that the USB interface connection mobile phone CPU of mobile phone USB OTG interfaces.
3. method according to claim 2, it is characterised in that the meter being connected with the other end of the serial conversion adapter Calculation machine serial ports is asynchronous serial port.
4. method according to claim 3, it is characterised in that the serial conversion adapter is that RS232-USB interfaces turn Parallel operation.
5. method according to claim 4, it is characterised in that the USB device is driven to USB serial port drives or PL2303 Driving.
6. method according to claim 5, it is characterised in that the usb host controller driving detects the debugging Information passes to the serial conversion adapter by usb bus.
7. method according to claim 5, it is characterised in that the USB device is driven through the mode enumerated to insertion The equipment of the USB interface is identified.
CN201510070507.9A 2015-02-10 2015-02-10 A kind of method for debugging detection mobile phone Active CN104836877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510070507.9A CN104836877B (en) 2015-02-10 2015-02-10 A kind of method for debugging detection mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510070507.9A CN104836877B (en) 2015-02-10 2015-02-10 A kind of method for debugging detection mobile phone

Publications (2)

Publication Number Publication Date
CN104836877A CN104836877A (en) 2015-08-12
CN104836877B true CN104836877B (en) 2017-09-15

Family

ID=53814506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510070507.9A Active CN104836877B (en) 2015-02-10 2015-02-10 A kind of method for debugging detection mobile phone

Country Status (1)

Country Link
CN (1) CN104836877B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851513B (en) * 2016-12-30 2020-06-30 歌尔科技有限公司 Method and system for testing electronic product
CN110737582A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 OTG port-based detection method and device
CN110737551A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 method and device for communication between upper computer and lower computer
CN110737561A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 embedded test systems
CN110737583A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 method and device for testing test code
CN110737619A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 data transmission method and device based on OTG port

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100548360B1 (en) * 2003-06-28 2006-02-02 엘지전자 주식회사 Debugging apparatus for mobile phone
CN101184310A (en) * 2007-09-21 2008-05-21 北京天碁科技有限公司 Test device for mobile phone
CN102790817A (en) * 2011-05-19 2012-11-21 乐金电子(中国)研究开发中心有限公司 Mobile terminal and debugging method thereof
CN202475547U (en) * 2011-11-17 2012-10-03 上海晨兴希姆通电子科技有限公司 Voltage conversion adaptation board
EP2786454A1 (en) * 2011-11-30 2014-10-08 Apple Inc. Connectors for electronic devices
CN103294626A (en) * 2012-09-24 2013-09-11 天津思博科科技发展有限公司 Design of USB dual-mode interface equipment for UART acquisition terminal
CN104049924A (en) * 2013-03-13 2014-09-17 鸿富锦精密工业(深圳)有限公司 System for acquiring data of serial interface
CN104090857A (en) * 2014-07-07 2014-10-08 成都联星微电子有限公司 System and method for expanding peripheral interfaces of intelligent terminal

Also Published As

Publication number Publication date
CN104836877A (en) 2015-08-12

Similar Documents

Publication Publication Date Title
CN104836877B (en) A kind of method for debugging detection mobile phone
WO2013191416A1 (en) Battery charging method and electronic device
CN108475227B (en) Test functional assembly and data debugging method
CN205920177U (en) Master slaver mode intelligence wire test appearance
CN106571657A (en) Terminal, converter and connection conversion system and method
CN204028959U (en) A kind of portable IC card supplements read write line with money
CN105446933A (en) Debugging system and debugging method adopting multi-core processor
CN105868140A (en) A mobile apparatus
CN111190782A (en) OCP3.0 interface function test fixture and method
US8990461B2 (en) On-The-Go (OTG) USB devices configuration method for identifying configuration of other connected devices by reacting to change in resistance value on a resistive line
CN107885683A (en) A kind of current test method of terminal and terminal
CN103795586A (en) Switching type communication interface detection method and apparatus
CN101184310A (en) Test device for mobile phone
CN100504723C (en) USB data acquisition apparatus for power supply
CN202939603U (en) Externally-arranged data processing device
CN204256725U (en) A kind of pick-up unit
CN204066097U (en) Portable USB interface debugging equipment
CN210155335U (en) Testing device for multimode navigation receiver
CN203658990U (en) Debugging device for central processing unit
CN203643893U (en) Terminal equipment
CN108681497A (en) A kind of cpci bus test device and method
CN105486970A (en) Pogopin module performance test system and method
CN105242603A (en) Power collection terminal with USB OTG interface and debugging upgrade method thereof
Bhatt et al. Design of a controller for a universal input/output port
CN206193764U (en) CPU module functional test mainboard

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant