[go: up one dir, main page]

CN107192880A - The detection circuit and its detection method of mobile terminal - Google Patents

The detection circuit and its detection method of mobile terminal Download PDF

Info

Publication number
CN107192880A
CN107192880A CN201710292215.9A CN201710292215A CN107192880A CN 107192880 A CN107192880 A CN 107192880A CN 201710292215 A CN201710292215 A CN 201710292215A CN 107192880 A CN107192880 A CN 107192880A
Authority
CN
China
Prior art keywords
module
mobile terminal
interface
detection
switch module
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
CN201710292215.9A
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.)
Shanghai Yude Technology Co Ltd
Original Assignee
Shanghai Yude 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 Shanghai Yude Technology Co Ltd filed Critical Shanghai Yude Technology Co Ltd
Priority to CN201710292215.9A priority Critical patent/CN107192880A/en
Publication of CN107192880A publication Critical patent/CN107192880A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R27/00Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
    • G01R27/02Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0084Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring voltage only

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The present invention relates to testing field, the detection circuit and its detection method of a kind of mobile terminal are disclosed.In the present invention, the detection circuit of mobile terminal, the partial pressure value for detecting testing resistance;It is connected with the digital-to-analogue conversion ADC interface of system AP sides in mobile terminal;Comprising:Switch module;The first interface connection ADC interface of switch module, second interface connects one end of the first module in one end of testing resistance, the 3rd interface connection mobile terminal, the other end ground connection of testing resistance;Switch module has detection state and non-detection status;When switch module is in detection state, testing resistance is accessed ADC interface by switch module;When switch module is in non-detection status, the first module is accessed ADC interface by switch module.Present invention also offers a kind of detection method of mobile terminal so that when ADC interface is not enough, also can smoothly detect the partial pressure value of resistance, while controlling cost.

Description

The detection circuit and its detection method of mobile terminal
Technical field
The present invention relates to the detection circuit and its detection method of testing field, more particularly to mobile terminal.
Background technology
In Cell Phone Design, because the hardware of different model is, it is necessary to match different softwares, so in test, it is necessary to The different model of hardware is first distinguished, different softwares are loaded further according to different models.
It was found by the inventors of the present invention that the different model in order to distinguish same type module, typically checks the ID of module, Such as battery, is to add the detection resistances of different resistances, AP ends (i.e. the system side of terminal) detection electricity for the battery of different model Partial pressure value is hindered, so as to recognize different battery sizes.AP ends are detected by ADC (digital-to-analogue conversion interface), but often can Occur the not enough situation of ADC interface, if plus special ADC chips, add cost, lose more than gain.
The content of the invention
It is an object of the invention to provide the detection circuit and its detection method of a kind of mobile terminal so that in ADC interface When not enough, the partial pressure value of resistance also can be smoothly detected, while controlling cost.
In order to solve the above technical problems, embodiments of the present invention provide a kind of detection circuit of mobile terminal, it is used for Detect the partial pressure value of testing resistance;It is connected with the digital-to-analogue conversion ADC interface of system AP sides in mobile terminal;Comprising:Switch module; The first interface of the switch module connects the ADC interface, and second interface connects one end of the testing resistance, the 3rd interface Connect one end of the first module in mobile terminal, the other end ground connection of the testing resistance;The switch module has detection State and non-detection status;When the switch module is in detection state, the switch module accesses the testing resistance The ADC interface;When the switch module is in non-detection status, the switch module accesses first module described ADC interface.
Embodiments of the present invention additionally provide a kind of detection method of mobile terminal, by mobile terminal mentioned above Detect that circuit is performed;Including:Judge the access ADC interface is testing resistance or the first module;Judging described to be measured When resistance accesses the ADC interface, the partial pressure value of the testing resistance is read;Judging the first module access ADC During interface, the numerical value of first module is read.
Embodiment of the present invention in terms of existing technologies, is multiplexed so that existing to existing ADC interface ADC interface can realize the data acquisition to original function module, can also obtain the partial pressure value of testing resistance.Due to being multiplexed Switch module is use only in journey, the price of switch module is far below ADC, so be almost not required to be added to this, just can be real Now to the detection of testing resistance;Further, since the connected mode of switch module is relatively simple, so in embodiment of the present invention Detect that circuit structure is simple, it is easy to accomplish, beneficial to popularization.
As a further improvement, the switch module also has input interface, the switch module is according to from the input The height of the level of interface input determines that status is detection state or non-detection status.Determined using the height of incoming level The conduction mode of switch is easy to be accurate when realizing.
As a further improvement, the switch module is single-pole double-throw switch (SPDT).Further limit switch module double as hilted broadsword The cost of throw switch, effectively reduction detection circuit.
Brief description of the drawings
Fig. 1 is the circuit diagram of the detection circuit of the mobile terminal in first embodiment of the invention;
Fig. 2 is the flow chart of the detection method of the mobile terminal in second embodiment of the invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with each reality of the accompanying drawing to the present invention The mode of applying is explained in detail.However, it will be understood by those skilled in the art that in each embodiment of the invention, In order that reader more fully understands the application and proposes many ins and outs.But, even if without these ins and outs and base Many variations and modification in following embodiment, can also realize each claim of the application technical side claimed Case.
The first embodiment of the present invention is related to a kind of detection circuit of mobile terminal.The detection circuit is used to detect to be measured The partial pressure value of resistance, is connected, mobile terminal can be mobile phone with the digital-to-analogue conversion ADC interface of system in mobile terminal (AP) side.
Its structure is as shown in figure 1, specifically include:Switch module in switch module, present embodiment can have six Interface:First interface (i.e. COM ends) therein connects ADC interface, second interface (i.e. NC ends) connection testing resistance R2 one end One end (i.e. ADC2 ends) of the first module in (C-terminal), the 3rd interface (i.e. NO ends) connection mobile terminal, the 4th interface (i.e. IN End) connection GPIO port, and IN ends also include a resistance R3, R3 is connected between IN ends and earth terminal, the 5th interface (i.e. V+ End) connection operating voltage VCC, the 6th interface (i.e. GND ends) ground connection.In addition, the other end ground connection of testing resistance, specifically, It can also be connected in circuit including resistance R1, testing resistance R2 and resistance R1 between voltage end VIO and earth terminal.
Go on to say, switch module has detection state and non-detection status.Wherein, it is in detection state in switch module When, testing resistance is accessed ADC interface by switch module;When switch module is in non-detection status, switch module is by the first mould Block accesses ADC interface.Wherein, the first module can be temperature detecting module or charger identification module.
It is noted that the switch module in present embodiment can be according to the electricity inputted from input interface (i.e. IN ends) Flat height determines that status is detection state or non-detection status.Specifically, switch module is in the level inputted Detection state is in during low level, non-detection status are in when the level inputted is high level.In particular, this implementation What the input interface in mode was connected is the GPIO interface of AP sides, and low and high level is inputted using GPIO interface, is controlled very easy.
Detection circuit in embodiment of the present invention is for detection resistance R2 partial pressure value, according to resistance R2 partial pressure value Can be with the model of identification module.Although it was found by the inventors of the present invention that detect R2 partial pressure value when need to use ADC interface, But and need not use always, that is to say, that ADC interface only need to detection partial pressure value time used i.e. for testing resistance Can, it is possible to and other module reuse ADC interfaces.Specific operation principle is that, when needing to be detected, GPIO ends are provided Low level, i.e. the IN ends input low level from switch module, that is, switch module is in detection state, now, ADC interface With C-terminal conducting, ADC interface can collect the magnitude of voltage of C points.After the completion of collection or after preset time, the level at GPIO ends is drawn Height, i.e. the IN ends input high level from switch module, ADC interface and C-terminal disconnect, and the conducting of ADC2 interfaces, now, ADC interface The data in the first module can be gathered, use of first module to ADC interface is not influenceed thus.Detect the logical table of circuit It is as shown in table 1 below:
LOGIC NO NC
0 OFF ON
1 ON OFF
Table 1
It is noted that the switch module in present embodiment uses the switch module of six interfaces, in practical application In, single-pole double-throw switch (SPDT), or other switch modules can be used, be will not enumerate herein.
Present embodiment in terms of existing technologies, is multiplexed to existing ADC interface so that existing ADC connects Mouth can realize the data acquisition to original function module, can also obtain the partial pressure value of testing resistance.Due in multiplex process Switch module is use only, and the price of switch module is far below ADC, so being almost not required to be added to this, can be achieved with Detection to testing resistance;In addition, the detection circuit structure in embodiment of the present invention using switch module realization is simple, easily In realization, beneficial to popularization.
Second embodiment of the invention is related to a kind of detection method of mobile terminal, by the mobile end in first embodiment The detection circuit at end is performed;Its flow chart is as shown in Fig. 2 specifically include:
Step 201, judge access ADC interface is testing resistance or the first module;If it is determined that being testing resistance, then hold Row step 202;If it is determined that being the first module, then step 203 is performed.
Specifically, the height of the level inputted according to the input (i.e. IN ends) from switch module, judges that access ADC connects Mouth is testing resistance or the first module.Meanwhile, if the level inputted is low level, it is determined that testing resistance is accessed ADC interface;If the level inputted is high level, it is determined that the first module is by access ADC interface.
Step 202, the partial pressure value of testing resistance is read.
Specifically, this step is, when judging testing resistance access ADC interface, to read the partial pressure value of testing resistance.
Step 203, the numerical value of the first module is read.
Specifically, when judging the first module access ADC interface, the numerical value of the first module is read.
Detection circuit in embodiment of the present invention is for detection resistance R2 partial pressure value, according to resistance R2 partial pressure value Can be with the model of identification module.Although it was found by the inventors of the present invention that detect R2 partial pressure value when need to use ADC interface, But and need not use always, that is to say, that ADC interface only need to detection partial pressure value time used i.e. for testing resistance Can, it is possible to and other module reuse ADC interfaces.Specific operation principle is that, when needing to be detected, GPIO ends are provided Low level, i.e. the IN ends input low level from switch module, that is, switch module is in detection state, now, ADC interface With C-terminal conducting, ADC interface can collect the magnitude of voltage of C points.After the completion of collection or after preset time, the level at GPIO ends is drawn Height, i.e. the IN ends input high level from switch module, ADC interface and C-terminal disconnect, and the conducting of ADC2 interfaces, now, ADC interface The data in the first module can be gathered, use of first module to ADC interface is not influenceed thus.
Present embodiment in terms of existing technologies, is multiplexed to existing ADC interface so that existing ADC connects Mouth can realize the data acquisition to original function module, can also obtain the partial pressure value of testing resistance.Due in multiplex process Switch module is use only, and the price of switch module is far below ADC, so being almost not required to be added to this, can be achieved with Detection to testing resistance;In addition, the detection method step in embodiment of the present invention using switch module realization is simple, easily In realization, beneficial to popularization.
It is seen that, present embodiment is the embodiment of the method corresponding with first embodiment, and present embodiment can be with First embodiment is worked in coordination implementation.The relevant technical details mentioned in first embodiment still have in the present embodiment Effect, in order to reduce repetition, is repeated no more here.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in In first embodiment.
It will be understood by those skilled in the art that the respective embodiments described above are to realize the specific embodiment of the present invention, And in actual applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.

Claims (10)

1. a kind of detection circuit of mobile terminal, it is characterised in that the partial pressure value for detecting testing resistance;With in mobile terminal The digital-to-analogue conversion ADC interface connection of system AP sides;Comprising:Switch module;
The first interface of the switch module connects the ADC interface, and second interface connects one end of the testing resistance, the 3rd One end of the first module in interface connection mobile terminal, the other end ground connection of the testing resistance;The switch module has Detection state and non-detection status;
When the switch module is in detection state, the testing resistance is accessed the ADC interface by the switch module;
When the switch module is in non-detection status, first module is accessed the ADC interface by the switch module.
2. the detection circuit of mobile terminal according to claim 1, it is characterised in that the switch module also has input Interface, the switch module determines that status is detection state or non-according to the height of the level inputted from the input interface Detection state.
3. the detection circuit of the mobile terminal according to claim 2, it is characterised in that the switch module is being inputted Level be low level when be in detection state, the level inputted be high level when be in non-detection status.
4. the detection circuit of mobile terminal according to claim 2, it is characterised in that the input interface and earth terminal it Between connect a resistance.
5. the detection circuit of mobile terminal according to claim 1, it is characterised in that the switch module is single-pole double throw Switch.
6. the detection circuit of mobile terminal according to claim 1, it is characterised in that first module is temperature detection Module or charger identification module.
7. a kind of detection method of mobile terminal, it is characterised in that as the mobile end described in any one in claim 1 to 6 The detection circuit at end is performed;Including:
Judge the access ADC interface is testing resistance or the first module;
When judging that the testing resistance accesses the ADC interface, the partial pressure value of the testing resistance is read;
When judging that first module accesses the ADC interface, the numerical value of first module is read.
8. the detection method of mobile terminal according to claim 7, it is characterised in that the judgement accesses the ADC and connect Mouth is testing resistance or the first module, is specially:
According to the height of the level of the input input from the switch module, judge the access ADC interface is electricity to be measured Resistance or the first module;
Also include:
If the level inputted is low level, it is determined that the testing resistance is accessed the ADC interface;
If the level inputted is high level, it is determined that first module is accessed the ADC interface.
9. the detection method of mobile terminal according to claim 1, it is characterised in that the switch module is single-pole double throw Switch.
10. the detection method of mobile terminal according to claim 1, it is characterised in that first module is examined for temperature Survey module or charger identification module.
CN201710292215.9A 2017-04-28 2017-04-28 The detection circuit and its detection method of mobile terminal Pending CN107192880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710292215.9A CN107192880A (en) 2017-04-28 2017-04-28 The detection circuit and its detection method of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710292215.9A CN107192880A (en) 2017-04-28 2017-04-28 The detection circuit and its detection method of mobile terminal

Publications (1)

Publication Number Publication Date
CN107192880A true CN107192880A (en) 2017-09-22

Family

ID=59872208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710292215.9A Pending CN107192880A (en) 2017-04-28 2017-04-28 The detection circuit and its detection method of mobile terminal

Country Status (1)

Country Link
CN (1) CN107192880A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101762335A (en) * 2008-12-24 2010-06-30 精工电子有限公司 Temperature detection circuit
CN102427569A (en) * 2011-12-20 2012-04-25 杭州硅星科技有限公司 Headset interface and GPIO (General Purpose Input/Output) interface multiplex circuit structure
CN103268965A (en) * 2013-04-18 2013-08-28 深圳市金立通信设备有限公司 Battery detection circuit, battery and mobile terminal
CN203242716U (en) * 2013-04-09 2013-10-16 青岛海信移动通信技术股份有限公司 Battery, battery type detection circuit and mobile terminal
CN103676729A (en) * 2013-11-29 2014-03-26 青岛歌尔声学科技有限公司 Digital knob switch multiplexing device and electronic equipment using same
CN105182154A (en) * 2015-08-25 2015-12-23 广东欧珀移动通信有限公司 Universal serial bus interface detection circuit and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101762335A (en) * 2008-12-24 2010-06-30 精工电子有限公司 Temperature detection circuit
CN102427569A (en) * 2011-12-20 2012-04-25 杭州硅星科技有限公司 Headset interface and GPIO (General Purpose Input/Output) interface multiplex circuit structure
CN203242716U (en) * 2013-04-09 2013-10-16 青岛海信移动通信技术股份有限公司 Battery, battery type detection circuit and mobile terminal
CN103268965A (en) * 2013-04-18 2013-08-28 深圳市金立通信设备有限公司 Battery detection circuit, battery and mobile terminal
CN103676729A (en) * 2013-11-29 2014-03-26 青岛歌尔声学科技有限公司 Digital knob switch multiplexing device and electronic equipment using same
CN105182154A (en) * 2015-08-25 2015-12-23 广东欧珀移动通信有限公司 Universal serial bus interface detection circuit and method

Similar Documents

Publication Publication Date Title
CN103852666A (en) Wire harness tester
CN203825107U (en) Wiring harness tester
CN108923957B (en) Distribution network terminal DTU fault elimination method and device and terminal equipment
CN109490763B (en) Universal testing device and testing method for single board of relay
CN102207899A (en) Universal serial bus port testing device
CN203242716U (en) Battery, battery type detection circuit and mobile terminal
CN106526456A (en) Online test device and method of integrated circuit
CN104932962A (en) USB (Universal Serial Bus) plug testing system and method thereof
CN105048018B (en) The charging method and device of a kind of terminal with data exchanging function
CN104568227A (en) Temperature sensing bulb detection circuit, method and device
CN109743240B (en) Interface switching device and method for communication equipment
CN203084153U (en) Chip testing system
CN101769986A (en) Test device and test method thereof
CN110619923A (en) Test circuit and test jig for integrating USB2.0 and USB3.0 communication chips
CN203537553U (en) An Interface circuit realizing serial port and infrared multiplex functions
CN107192880A (en) The detection circuit and its detection method of mobile terminal
CN101446606B (en) Junction capacitance test method for bipolar transistor
CN107179441A (en) The detection circuit of mobile terminal and the module classification method based on detection circuit
CN106803776A (en) Radio frequency front-end test device and radio frequency front-end test method
CN203616454U (en) High-precision battery management system (BMS) unit voltage acquisition circuit
CN214540463U (en) Relay board for switching and detecting multiple paths of signals
CN101957402A (en) System and method for testing instantaneous current
US8466817B2 (en) Electronic device and method for driving an internal function block of a processor of the electronic device to operate in a linear region
CN115421026A (en) Aging test method, circuit and system for batch PD chips
CN117112330A (en) Memory bank detection circuit, system and method

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170922