CN104484268A - Debugging method and mobile terminal - Google Patents

Debugging method and mobile terminal Download PDF

Info

Publication number
CN104484268A
CN104484268A CN201410673568.XA CN201410673568A CN104484268A CN 104484268 A CN104484268 A CN 104484268A CN 201410673568 A CN201410673568 A CN 201410673568A CN 104484268 A CN104484268 A CN 104484268A
Authority
CN
China
Prior art keywords
interface
mobile terminal
earphone base
switch
control signal
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
CN201410673568.XA
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.)
Xiamen Meitu Mobile Technology Co Ltd
Original Assignee
Xiamen Meitu Mobile 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 Xiamen Meitu Mobile Technology Co Ltd filed Critical Xiamen Meitu Mobile Technology Co Ltd
Priority to CN201410673568.XA priority Critical patent/CN104484268A/en
Publication of CN104484268A publication Critical patent/CN104484268A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a debugging method of a mobile terminal and the mobile terminal. The mobile terminal comprises a CPU chip, a headset seat interface and a switching unit; the CPU chip comprises a debugging serial port for outputting debugging data, an audio interface for outputting audio data, an I/ O interface, and a switching control unit for outputting a switching control signal through the I/ O interface; the switching unit is coupled with the debugging serial port, the audio interface, and the I/ O interface of the CPU chip and the headset seat interface and is used for connecting a first channel between the debugging serial port and the headset seat interface or a second channel between the audio interface and the headset seat interface according to the switching control signal received from the I/ O interface.

Description

A kind of adjustment method and mobile terminal
Technical field
The present invention relates to equipment debugging technology, particularly a kind of mobile terminal adjustment method and mobile terminal.
Background technology
Along with the fast development of hardware and software level, the such as mobile terminal of mobile phone, panel computer and so on has become requisite equipment in people's life.When some faults appear in these equipment, during as run into reproducible deadlock problem, maintenance personal needs to debug it, and the serial ports daily record (log) of being read mobile terminal by personal computer (PC) carrys out failure judgement reason.But, these mobile terminals are the unspecial serial interface connecting PC generally, and therefore common way is taken apart by shell, by out external in the mode of fly line for the AccessPort solder joint on mainboard, then be welded to homemade outside AccessPort platelet, and then connection PC carries out serial ports daily record debugging.This Measures compare is wasted time and energy, and likely damages shell and the mainboard of mobile terminal, particularly under a lot of mobile terminal is all designed to the non-removable situation of bonnet at present.
A kind of mobile phone and PC computer communication system is disclosed, wherein communication data and order and undertaken transmitting and receiving by the serial ports of PC computing machine, translater and handset port in the open CN1467959A of Chinese patent.But this file focuses on the process of PC computing machine, the concrete structure of translater and handset port is not described.
Therefore, it is desirable to need to take apart mobile terminal case and can connect PC and carry out AccessPort, and exceed and increase extra hardware cost.
Summary of the invention
For this reason, the invention provides a kind of method of quick startup application newly, equipment and terminal, to try hard to solve or at least alleviate Problems existing above.
According to an aspect of the present invention, a kind of mobile terminal is provided.This mobile terminal comprises cpu chip, earphone base interface and switch unit.Cpu chip comprises the debug serial port being suitable for output tune-up data, the audio interface being suitable for outputting audio data and I/O interface.Cpu chip also comprises switch control unit, is suitable for by I/O interface output switching control signal.The debug serial port of switch unit and cpu chip, audio interface, I/O interface and earphone base interface coupling, be suitable for according to switch-over control signal, the first path between conducting debug serial port and earphone base interface or the alternate path between audio interface and earphone base interface from I/O interface.
Switch unit can be single-pole double-throw (SPDT) electronic switch.In normal state, switch control unit can by I/O interface output switching control signal with conducting alternate path.In a debug state, switch control unit can by I/O interface output switching control signal with conducting first path.Mobile terminal can also comprise the serial converter be connected between earphone base interface and external computing device, is suitable for the form AccessPort data that earphone base interface exports being converted to applicable external computing device interface.Serial converter can comprise serial ports-USB converter.
According to an aspect of the present invention, a kind of adjustment method of mobile terminal is provided.The method comprises the switch-over control signal receiving and exported by the I/O interface of the cpu chip of mobile terminal, according to switch-over control signal, the first path between the debug serial port of conducting cpu chip and the earphone base interface of mobile terminal or the alternate path between the audio interface of cpu chip and earphone base interface.The method also comprises when the first path conducting, exports the tune-up data from debug serial port to earphone base interface, and when alternate path conducting, exports the voice data from audio frequency serial ports to earphone base interface.The method can also comprise the form tune-up data that earphone base interface exports being converted to applicable external computing device interface.
Accompanying drawing explanation
In order to realize above-mentioned and relevant object; combine description below and accompanying drawing herein to describe some illustrative aspect; these aspects indicate the various modes can putting into practice principle disclosed herein, and all aspects and equivalent aspect thereof are intended to fall in the scope of theme required for protection.Read detailed description below in conjunction with the drawings, above-mentioned and other object of the present disclosure, Characteristics and advantages will become more obvious.Throughout the disclosure, identical Reference numeral is often referred to for identical parts or element.
Fig. 1 shows the block diagram of mobile terminal 100 according to an embodiment of the invention;
Fig. 2 shows the process flow diagram of mobile terminal adjustment method 200 according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows the block diagram of the mobile terminal 100 comprising commissioning device according to an embodiment of the invention
With reference to Fig. 1, mobile terminal 100 comprises cpu chip 110, switch unit 120 and earphone base interface 130 according to an embodiment of the invention.Cpu chip 110 comprises switch control unit 112, I/O interface 114, debug serial port 116, audio interface 118.I/O interface 114, debug serial port 116, audio interface 118 are all existing interfaces on general cpu chip, such as, be the pin of chip.Debug serial port 116 can export tune-up data so that maintainer determines failure cause.Audio interface 118 can outputting audio data, and and then outputs to earphone by earphone base interface.Switch control unit 112 can pass through I/O interface 114 output switching control signal.Switch unit 120 is coupled with the debug serial port 116 of cpu chip 110, audio interface 118, I/O interface 114 and earphone base interface 130 respectively.When switch unit 120 is from I/O interface to switch-over control signal, the first path between conducting debug serial port 116 and earphone base interface 130 or the alternate path between audio interface 118 and earphone base interface 130.In normal state, switch control unit 112 passes through I/O interface output switching control signal with conducting alternate path, thus voice data is exported by audio interface 118 and earphone base interface 130, if user is at earphone base interface 130 plugged earphone, then can listen to corresponding audio frequency.In a debug state, switch control unit 112 passes through I/O interface output switching control signal with conducting first path, thus tune-up data is exported by debug serial port 116 and earphone base interface 130.
Switch control unit 112 can pass through software simulating, and such as, part of functions as the application run in mobile terminal and/or operating system realizes.User can by input operation thus enter debugging mode or exit debugging mode in the interface of application or operating system.Switch unit 120 is such as single-pole double-throw (SPDT) electronic switch.Earphone base interface 130 exports AccessPort data in a debug state, tune-up data is obtained by external computing device (as PC) 300 for the ease of maintainer, can be connected serial converter 200 between earphone base interface 130 with external computing device 300, the AccessPort data being used for being exported by earphone base interface 130 are converted to the form of applicable external computing device interface.Such as, serial converter 200 can comprise serial ports-USB converter, debugs platelet, can be connected with the USB interface of external computing device easily like this as serial ports turns USB.
Switch unit 120 can by various mode, and the mode as internal circuit welding is fixed on the mainboard of mobile terminal inside in advance.Like this when debugging, maintainer only needs serial converter 200 one end plugged earphone interface and the other end is connected external computing device, mobile terminal is made to enter debugging mode to application and/or Operational System Control, just can debug on external computing device easily, as checked daily record data.Do not need the shell taking mobile terminal apart in whole process, do not need to weld fly line yet, thus greatly save the time, improve reliability, it also avoid the possibility of damage shell and mainboard.In addition, hardware only needs increase switch unit 120, obviously can not increase hardware cost.
Fig. 2 shows the process flow diagram of mobile terminal adjustment method 200 according to an embodiment of the invention.
In step S210, receive the switch-over control signal exported by the I/O interface of the cpu chip of mobile terminal.In step S220, according to switch-over control signal, the first path between the debug serial port of conducting cpu chip and the earphone base interface of mobile terminal or the alternate path between the audio interface of cpu chip and earphone base interface.In step S230, the path of conducting exports corresponding data to earphone base interface, wherein when the first path conducting, exports the tune-up data from debug serial port to earphone base interface, when alternate path conducting, export the voice data from audio frequency serial ports to earphone base interface.In step S240, the tune-up data that earphone base interface exports can also be converted to the form of applicable external computing device interface.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires than the feature more multiple features clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are to be understood that the module of the equipment in example disclosed herein or unit or assembly can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned in one or more equipment different from the equipment in this example.Module in aforementioned exemplary can be combined as a module or can be divided into multiple submodule in addition.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
In addition, some in described embodiment are described as at this can by the processor of computer system or the method implemented by other device performing described function or the combination of method element.Therefore, there is the device of processor formation for implementing the method or method element of the necessary instruction for implementing described method or method element.In addition, the element described herein of device embodiment is the example as lower device: this device is for implementing the function performed by the element of the object in order to implement this invention.
As used in this, unless specifically stated so, use ordinal number " first ", " second ", " the 3rd " etc. to describe plain objects and only represent the different instances relating to similar object, and be not intended to imply the object be described like this must have the time upper, spatially, sequence aspect or in any other manner to definite sequence.
Although the embodiment according to limited quantity describes the present invention, benefit from description above, those skilled in the art understand, in the scope of the present invention described thus, it is contemplated that other embodiment.In addition, it should be noted that the language used in this instructions is mainly in order to object that is readable and instruction is selected, instead of select to explain or limiting theme of the present invention.Therefore, when not departing from the scope and spirit of appended claims, many modifications and changes are all apparent for those skilled in the art.For scope of the present invention, be illustrative to disclosing of doing of the present invention, and nonrestrictive, and scope of the present invention is defined by the appended claims.

Claims (8)

1. a mobile terminal, comprising:
Cpu chip, comprising:
Debug serial port, is suitable for exporting tune-up data;
Audio interface, is suitable for outputting audio data;
I/O interface; With
Switch control unit, is suitable for by I/O interface output switching control signal;
Earphone base interface; With
Switch unit, the debug serial port of itself and cpu chip, audio interface, I/O interface and earphone base interface coupling, be suitable for according to switch-over control signal, the first path between conducting debug serial port and earphone base interface or the alternate path between audio interface and earphone base interface from I/O interface.
2. mobile terminal as claimed in claim 1, wherein said switch unit is single-pole double-throw (SPDT) electronic switch.
3. mobile terminal as claimed in claim 1, wherein in normal state, described switch control unit is suitable for by I/O interface output switching control signal with conducting alternate path.
4. mobile terminal as claimed in claim 1, wherein in a debug state, described switch control unit is suitable for by I/O interface output switching control signal with conducting first path.
5. mobile terminal as claimed in claim 1, also comprises the serial converter be connected between described earphone base interface and external computing device, is suitable for the form AccessPort data that described earphone base interface exports being converted to applicable external computing device interface.
6. mobile terminal as claimed in claim 5, wherein said serial converter comprises serial ports-USB converter.
7. an adjustment method for mobile terminal, comprising:
Receive the switch-over control signal exported by the I/O interface of the cpu chip of mobile terminal;
According to switch-over control signal, the first path between the debug serial port of conducting cpu chip and the earphone base interface of mobile terminal or the alternate path between the audio interface of cpu chip and earphone base interface;
When the first path conducting, export the tune-up data from debug serial port to earphone base interface; And
When alternate path conducting, export the voice data from audio frequency serial ports to earphone base interface.
8. adjustment method as claimed in claim 7, also comprises the form tune-up data that earphone base interface exports being converted to applicable external computing device interface.
CN201410673568.XA 2014-11-21 2014-11-21 Debugging method and mobile terminal Pending CN104484268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410673568.XA CN104484268A (en) 2014-11-21 2014-11-21 Debugging method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410673568.XA CN104484268A (en) 2014-11-21 2014-11-21 Debugging method and mobile terminal

Publications (1)

Publication Number Publication Date
CN104484268A true CN104484268A (en) 2015-04-01

Family

ID=52758812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410673568.XA Pending CN104484268A (en) 2014-11-21 2014-11-21 Debugging method and mobile terminal

Country Status (1)

Country Link
CN (1) CN104484268A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630677A (en) * 2015-12-22 2016-06-01 深圳市东微智能科技有限公司 Device debugging method
CN105740117A (en) * 2016-01-29 2016-07-06 硅谷数模半导体(北京)有限公司 Chip debugging method and apparatus
CN105868067A (en) * 2016-04-29 2016-08-17 中国电子科技集团公司第二十九研究所 Debugging interface switching circuit
CN107168910A (en) * 2017-03-29 2017-09-15 昆明理工大学 Microcontroller serial port automatic switch-over circuit
CN110879676A (en) * 2018-09-05 2020-03-13 优视科技有限公司 Debugging control method, master control device, debugging server, controlled device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2750584Y (en) * 2004-12-02 2006-01-04 上海贝豪通讯电子有限公司 A three-in-one handset interface realizing functions of earphone, serial port, and charging
CN101360145A (en) * 2008-09-27 2009-02-04 上海闻泰电子科技有限公司 Mobile communication apparatus implementing function of earphone and JTAG
CN101951421A (en) * 2010-09-20 2011-01-19 深圳桑菲消费通信有限公司 Expansion use method for cell phone earphone interface
CN102158575A (en) * 2011-02-21 2011-08-17 深圳桑菲消费通信有限公司 Method for expanding USB (Universal Serial Bus) interface of mobile terminal into earphone interface
CN102413208A (en) * 2011-10-14 2012-04-11 杭州芯赛微电子有限公司 Method for realizing serial port communication by using earphone interface of mobile phone
CN102469190A (en) * 2010-11-19 2012-05-23 比亚迪股份有限公司 Complete machine debugging method and device based on mobile communication terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2750584Y (en) * 2004-12-02 2006-01-04 上海贝豪通讯电子有限公司 A three-in-one handset interface realizing functions of earphone, serial port, and charging
CN101360145A (en) * 2008-09-27 2009-02-04 上海闻泰电子科技有限公司 Mobile communication apparatus implementing function of earphone and JTAG
CN101951421A (en) * 2010-09-20 2011-01-19 深圳桑菲消费通信有限公司 Expansion use method for cell phone earphone interface
CN102469190A (en) * 2010-11-19 2012-05-23 比亚迪股份有限公司 Complete machine debugging method and device based on mobile communication terminal
CN102158575A (en) * 2011-02-21 2011-08-17 深圳桑菲消费通信有限公司 Method for expanding USB (Universal Serial Bus) interface of mobile terminal into earphone interface
CN102413208A (en) * 2011-10-14 2012-04-11 杭州芯赛微电子有限公司 Method for realizing serial port communication by using earphone interface of mobile phone

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630677A (en) * 2015-12-22 2016-06-01 深圳市东微智能科技有限公司 Device debugging method
CN105630677B (en) * 2015-12-22 2018-06-26 深圳市东微智能科技股份有限公司 A kind of apparatus debugging method
CN105740117A (en) * 2016-01-29 2016-07-06 硅谷数模半导体(北京)有限公司 Chip debugging method and apparatus
CN105740117B (en) * 2016-01-29 2018-05-25 硅谷数模半导体(北京)有限公司 Chip adjustment method and device
CN105868067A (en) * 2016-04-29 2016-08-17 中国电子科技集团公司第二十九研究所 Debugging interface switching circuit
CN105868067B (en) * 2016-04-29 2018-09-18 中国电子科技集团公司第二十九研究所 A kind of debugging interface switching circuit
CN107168910A (en) * 2017-03-29 2017-09-15 昆明理工大学 Microcontroller serial port automatic switch-over circuit
CN107168910B (en) * 2017-03-29 2020-02-07 昆明理工大学 Automatic serial port switching circuit of single chip microcomputer
CN110879676A (en) * 2018-09-05 2020-03-13 优视科技有限公司 Debugging control method, master control device, debugging server, controlled device and system

Similar Documents

Publication Publication Date Title
CN104484268A (en) Debugging method and mobile terminal
CN108475227B (en) Test functional assembly and data debugging method
CN102902618B (en) The method of mobile device application development debugging and device
CN105510763A (en) Integrated circuit pin testing device
US20090036115A1 (en) System and method for testing gsm modules
CN111045930A (en) Method and system for downloading and debugging optical module code
CN207052880U (en) The earphone interface and mobile terminal of a kind of mobile terminal
JP2002024201A (en) Semiconductor integrated circuit
CN110247265B (en) Multifunctional data line, switching circuit and switching method
CN101997737A (en) Method for positioning errors of serial port and system
US7577887B2 (en) JTAG interface device of mobile terminal and method thereof
CN110046119A (en) Serial interface management method, system and serial ports structure and storage medium mostly between control between more controls
US20160204594A1 (en) Electronic device with circuit protection and assembling method thereof
EP2062141B1 (en) Providing maintenance access via an external connector
CN103425123A (en) Automated testing method for CAN (controller area network) bus based on software script
CN205091732U (en) Automatic switching device for USB interface
CN102664836A (en) Prototype verification platform for broadband wireless communication digital baseband processor
CN112379763B (en) Method, system, equipment and medium for preventing electric leakage
US9664731B2 (en) Dual RF test connection in portable device
CN102469190B (en) Based on complete machine debugging method and the device of mobile communication terminal
CN110808876B (en) Telephone debugging system and equipment
CN103995563A (en) Method for achieving extensible 3G communication function of tablet personal computer
CN110850779A (en) Circuit of CAN bus interface expansion interface
CN204650511U (en) A kind of Multifunctional main board diagnostic card
CN110501567B (en) Power consumption testing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150401

RJ01 Rejection of invention patent application after publication