CN104836877A - Method for debugging and detecting mobile phone - Google Patents

Method for debugging and detecting mobile phone Download PDF

Info

Publication number
CN104836877A
CN104836877A CN201510070507.9A CN201510070507A CN104836877A CN 104836877 A CN104836877 A CN 104836877A CN 201510070507 A CN201510070507 A CN 201510070507A CN 104836877 A CN104836877 A CN 104836877A
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.)
Granted
Application number
CN201510070507.9A
Other languages
Chinese (zh)
Other versions
CN104836877B (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 present invention discloses a method for debugging and detecting a mobile phone, comprising the following steps: S1, inserting a serial conversion adapter into a USB interface of the mobile phone, wherein the other end of the serial conversion adapter is connected with a serial port of a computer; S2, outputting debugging and detecting information during a mobile phone debugging process; S3, identifying the equipment inserted into the USB interface by a USB equipment drive arranged in the mobile phone, if the equipment inserted into the USB interface is used for debugging and detecting the mobile phone, calling and sending control information including the debugging and detecting information to a USB host controller drive arranged in the mobile phone by the USB equipment drive; and S4, transmitting the debugging and detecting information to the serial conversion adapter by the USB host controller drive according to the control information, and transmitting the debugging and detecting information to the computer by the serial conversion adapter. Through the method of the present invention, hardware detection and software debugging of the mobile phone can be conveniently performed in the case of not using an evaluation board, not increasing hardware cost and not opening a cover.

Description

A kind of method of debugging detection of handset
Technical field
The present invention relates to AccessPort technical field, more specifically relate to a kind of method of debugging detection of handset.
Background technology
The method that current mobile phone debugging detects is a lot, and the asynchronous serial port (UART) mainly utilizing mobile phone primary processor (CPU) to provide exports related commissioning information.
The method that current debugging detects has several as follows:
Detected by evaluation board debugging, evaluation board does not have size restrictions, and developer can be debugged by the emulation interface of CPU (as JTAG mouth); This external evaluation board utilize the UART of CPU export related commissioning information to PC, debugging relevant design scheme.
With mobile phone complete machine for prototype, but due to board area limited, can not emulation interface be provided, can not utilize CPU UART export Debugging message, can only screen be utilized to export limited information under brush machine pattern.
The UART pin of CPU is drawn as test point by the circuit board (PCB) of mobile phone, and mobile phone can be tested after uncapping.
Mobile phone employs multi-channel switch chip, be supported in meet industrial standard mini USB port on switch UART mouth.
In above-mentioned technical scheme, each defectiveness:
Evaluation board and mobile phone still there are differences, and can not be equivalent to completely, and not all cell phone software developer can obtain the evaluation board that cell phone manufacturer provides.
Screen output information under brush machine pattern is limited, can only play certain detection effect, helps little to software development.
Mobile phone is uncapped and is drawn UART mouth and export Debugging message to very inconvenient most software developer, moreover for the wiring of pcb board and the consideration of electromagnetic shielding, generally can not draw the UART pin of CPU.
Increase multi-channel switch chip and can solve the problem that mobile phone debugging detects on the basis ensureing not lose function and performance, but for the consideration of cost, most of mobile phone does not add the design of multi-channel switch.
Summary of the invention
(1) technical problem that will solve
The technical problem to be solved in the present invention is how not by means of evaluation board, does not change the design of existing mobile phone hardware, under not increasing the prerequisite of hardware cost, carries out debugging detection to mobile phone.
(2) technical scheme
In order to solve the problems of the technologies described above, the invention provides a kind of method of debugging detection of handset, said method comprising the steps of:
S1, be inserted in the USB interface of mobile phone by serial conversion adapter, wherein the other end of serial conversion adapter connects the serial ports of computer;
Debugging Detection Information is exported in S2, mobile phone debug process;
The USB device arranged in S3, mobile phone drives the equipment to inserting described USB interface to identify; If insert the equipment of described USB interface for debugging detection of handset, then described USB device drives to call and send the control information comprising described debugging Detection Information and drives to the usb host controller arranged in mobile phone;
S4, described usb host controller drive, according to described control information, described debugging Detection Information are passed to described serial conversion adapter, by described serial conversion adapter, debugging Detection Information are passed to computer.
Preferably, the described USB interface of mobile phone connects the USB OTG interface of mobile phone CPU.
Preferably, the serial ports of computers be connected with the other end of described serial conversion adapter is asynchronous serial port.
Preferably, described serial conversion adapter is RS232-USB (such as PL2303) interface convertor.
Preferably, described USB device drives as USB serial port drive or PL2303 drive.
Preferably, described usb host controller drives and debugging Detection Information is passed to described serial conversion adapter by usb bus.
Preferably, described USB device is driven through the mode enumerated and identifies the equipment inserting described USB interface.
(3) beneficial effect
The invention provides a kind of method of debugging detection of handset, not by evaluation board, hardware cost can not increased by method of the present invention, when covered, carry out hardware detection and software debugging easily.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart debugging the method for detection of handset of the present invention;
Fig. 2 is the structural representation that the present invention realizes method equipment therefor of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Following examples for illustration of the present invention, but can not be used for limiting the scope of the invention.
Fig. 1 is a kind of flow chart debugging the method for detection of handset of the present invention; Said method comprising the steps of:
S1, be inserted in the USB interface of mobile phone by serial conversion adapter, wherein the other end of serial conversion adapter connects the serial ports of computer;
Debugging Detection Information is exported in S2, mobile phone debug process;
The USB device arranged in S3, mobile phone drives the equipment to inserting described USB interface to identify; If insert the equipment of described USB interface for debugging detection of handset, then described USB device drives to call and send the control information comprising described debugging Detection Information and drives to the usb host controller arranged in mobile phone;
S4, described usb host controller drive, according to described control information, described debugging Detection Information are passed to described serial conversion adapter, by described serial conversion adapter, debugging Detection Information are passed to computer.
The described USB interface of mobile phone is USB OTG interface.The external interface that general mobile phone provides is mini USB port, can complete charging and data-transformation facility.At interior of mobile phone, what connect mini USB port is the USB OTG interface of mobile phone CPU.USB otg standard, on the basis of complete compatible USB 2.0 standard, had both allowed equipment as main frame, also can carry out transfer of data as peripheral hardware, and the two role can intercourse according to agreement.
The serial ports of computers be connected with the other end of described serial conversion adapter is asynchronous serial port.Described serial conversion adapter is RS2332-USB (such as PL2303) interface convertor.Described USB device drives as USB serial port drive or PL2303 drive.Described usb host controller drives and debugging Detection Information is passed to described serial conversion adapter by usb bus.Described USB device is driven through the mode enumerated and identifies the equipment inserting described USB interface.
Usb host controller drives to be responsible for controlling insertion USB device wherein (i.e. the USB serial conversion adapter on the right, the interface cable etc. containing PL2303 as common) in conjunction with simple usb protocol stack; USB device drive (Universal USB serial port drive or PL2303 drive) to identify and the USB device controlling insertion how with main-machine communication.
Usb host controller drives and the realization of usb protocol stack and USB device driving will as much as possible efficiently succinctly, and this is related to the operating efficiency of whole system.
The present invention, by USB interface and outside USB serial conversion adapter communications, debugs the asynchronous serial port (UART) that Detection Information is transferred to PC the most at last, and display on a pc screen, wholely realizes block diagram as shown in Figure 2.
Not by evaluation board, hardware cost can not increased by method of the present invention, when covered, carry out hardware detection and software debugging easily.
Above execution mode is only for illustration of the present invention, but not limitation of the present invention.Although with reference to embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, various combination, amendment or equivalent replacement are carried out to technical scheme of the present invention, do not depart from the spirit and scope of technical solution of the present invention, all should be encompassed in the middle of right of the present invention.

Claims (7)

1. debug a method for detection of handset, it is characterized in that, said method comprising the steps of:
S1, be inserted in the USB interface of mobile phone by serial conversion adapter, wherein the other end of serial conversion adapter connects the serial ports of computer;
Debugging Detection Information is exported in S2, mobile phone debug process;
The USB device arranged in S3, mobile phone drives the equipment to inserting described USB interface to identify; If insert the equipment of described USB interface for debugging detection of handset, then described USB device drives to call and send the control information comprising described debugging Detection Information and drives to the usb host controller arranged in mobile phone;
S4, described usb host controller drive, according to described control information, described debugging Detection Information are passed to described serial conversion adapter, by described serial conversion adapter, debugging Detection Information are passed to computer.
2. method according to claim 1, is characterized in that, the described USB interface of mobile phone connects the USB OTG interface of mobile phone CPU.
3. method according to claim 2, is characterized in that, the serial ports of computers be connected with the other end of described serial conversion adapter is asynchronous serial port.
4. method according to claim 3, is characterized in that, described serial conversion adapter is RS232-USB interface convertor.
5. method according to claim 4, is characterized in that, described USB device drives as USB serial port drive or PL2303 drive.
6. method according to claim 5, is characterized in that, described usb host controller drives and described debugging Detection Information is passed to described serial conversion adapter by usb bus.
7. method according to claim 5, is characterized in that, described USB device is driven through the mode enumerated and identifies the equipment inserting described USB interface.
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 true CN104836877A (en) 2015-08-12
CN104836877B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851513A (en) * 2016-12-30 2017-06-13 歌尔科技有限公司 The method of testing and system of a kind of electronic product
CN110737619A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 data transmission method and device based on OTG port
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
CN110737582A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 OTG port-based detection method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050001949A (en) * 2003-06-28 2005-01-07 엘지전자 주식회사 Debugging apparatus for mobile phone
CN101184310A (en) * 2007-09-21 2008-05-21 北京天碁科技有限公司 Test device for mobile phone
CN202475547U (en) * 2011-11-17 2012-10-03 上海晨兴希姆通电子科技有限公司 Voltage conversion adaptation board
CN102790817A (en) * 2011-05-19 2012-11-21 乐金电子(中国)研究开发中心有限公司 Mobile terminal and debugging method thereof
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
US20140329416A1 (en) * 2011-11-30 2014-11-06 Apple Inc. Connectors for electronic devices

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050001949A (en) * 2003-06-28 2005-01-07 엘지전자 주식회사 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
US20140329416A1 (en) * 2011-11-30 2014-11-06 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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851513A (en) * 2016-12-30 2017-06-13 歌尔科技有限公司 The method of testing and system of a kind of electronic product
CN106851513B (en) * 2016-12-30 2020-06-30 歌尔科技有限公司 Method and system for testing electronic product
CN110737619A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 data transmission method and device based on OTG port
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
CN110737582A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 OTG port-based detection method and device

Also Published As

Publication number Publication date
CN104836877B (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN104836877A (en) Method for debugging and detecting mobile phone
CN108475227B (en) Test functional assembly and data debugging method
WO2013191416A1 (en) Battery charging method and electronic device
CN109144036B (en) Manipulator simulation test system and test method based on FPGA chip
CN102917095A (en) Method and device for testing terminal based on Android
CN105868140A (en) A mobile apparatus
CN105446933A (en) Debugging system and debugging method adopting multi-core processor
CN105891764A (en) Watt-hour meter data intelligent reading-writing device and watt-hour meter data intelligent reading-writing method based on Bluetooth communication
CN106786960A (en) Charge control method, device and terminal
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
JP2015053050A (en) Usb device
CN101184310A (en) Test device for mobile phone
CN103795586A (en) Switching type communication interface detection method and apparatus
CN104331350A (en) Method and device for debugging serial port of IC (Integrated Circuit) card electronic equipment
CN102375099A (en) Portable-type electronic device testing system
CN106774769A (en) The changing method and device of a kind of terminal work mode, handheld terminal
CN204256725U (en) A kind of pick-up unit
CN107835108B (en) OpenWrt-based MAC (media Access control) layer protocol stack verification platform
CN115903618A (en) Vehicle machine control equipment
CN100460876C (en) Measuring system and its data interface converting device
CN218849054U (en) Display device and debugging system thereof
CN218886572U (en) Simple peripheral bus system
CN108874716A (en) A kind of charging communication link and its method for portable equipment
CN218647020U (en) Test circuit, electronic equipment and test system
CN110289042A (en) EMMC chip test system

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