CN108536055B - A kind of mobile terminal and detection method - Google Patents
A kind of mobile terminal and detection method Download PDFInfo
- Publication number
- CN108536055B CN108536055B CN201810233916.XA CN201810233916A CN108536055B CN 108536055 B CN108536055 B CN 108536055B CN 201810233916 A CN201810233916 A CN 201810233916A CN 108536055 B CN108536055 B CN 108536055B
- Authority
- CN
- China
- Prior art keywords
- switch
- pins
- detection module
- value
- charging
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R27/00—Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
- G01R27/02—Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
- G01R27/14—Measuring resistance by measuring current or voltage obtained from a reference source
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/21—Pc I-O input output
- G05B2219/21119—Circuit for signal adaption, voltage level shift, filter noise
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Telephone Function (AREA)
Abstract
It includes: CC logic detection module, Type-c interface, impedance detection module and first switch that the present invention, which provides a kind of mobile terminal and detection method, mobile terminal,;The Type-c interface includes live pins, charging pins and data transmission pin;The impedance detection module is used to measure the first resistor value between the live pins and the charging pins, and for measuring the second resistance value between the live pins and data transmission pin;The first end of the first switch is electrically connected with the CC logic detection module, and the second end of the first switch is electrically connected with the live pins, and the first control terminal of the first switch is electrically connected with the impedance detection module.Mobile terminal in the embodiment of the present invention can delay continuing for Type-c interface corrosion process, enhance the resistance to corrosion of the Type-c interface of mobile terminal accordingly.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of mobile terminal and detection methods.
Background technique
With the rapid development of mobile terminal, mobile terminal has become essential a kind of tool in people's life,
And the various aspects for user's life are brought great convenience.It is typically provided on mobile terminal for being interacted with data line
Interface, and the convenient and stability in order to use more and more uses C type Type- in the prior art on mobile terminal
C interface, but in practice, in the case where Type-c interface is in live line work state, if there is corrosive liquid to enter Type-c
In interface, then Type-c interface is easy to cause to be corroded, so that Type-c interface is damaged.
Summary of the invention
The embodiment of the present invention provides a kind of mobile terminal and detection method, to solve to be in live line work in Type-c interface
Under state, if there is corrosive liquid to enter in Type-c interface, Type-c interface is easy to cause to be corroded, so that Type-c
The impaired problem of interface.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, the embodiment of the invention provides a kind of mobile terminals, comprising: CC logic detection module, C type
Type-c interface, impedance detection module and first switch;
The Type-c interface includes live pins, charging pins and data transmission pin;
The impedance detection module is used to measure the first resistor value between the live pins and the charging pins, and
For measuring the second resistance value between the live pins and data transmission pin;
The first end of the first switch is electrically connected with the CC logic detection module, the second end of the first switch with
The live pins electrical connection, the first control terminal of the first switch are electrically connected with the impedance detection module;
Wherein, when the impedance detection module detects at least one of the first resistor value and the second resistance value
Less than or equal to preset value, the impedance detection module exports first control signal to first control terminal, described in controlling
The second end of the first end of first switch and the first switch disconnects;When the impedance detection module detects first electricity
Resistance value and the second resistance value are all larger than the preset value, and the impedance detection module exports second control signal to described the
One control terminal is closed with the second end of the first end and the first switch that control the first switch.
Second aspect, the embodiment of the present invention also provide a kind of detection method, are applied to mobile terminal, the mobile terminal packet
Include: CC logic detection module, Type-c interface, impedance detection module and first switch, the Type-c interface include that electrification is drawn
Foot, charging pins and data transmit pin, and the first end of the first switch is electrically connected with the CC logic detection module, described
The second end of first switch is electrically connected with the live pins, the first control terminal of the first switch and the impedance detection mould
Block electrical connection;
The described method includes:
First resistor value described in the impedance detection module real-time detection between live pins and the charging pins, with
And the second resistance value between the live pins and data transmission pin;
The impedance detection module judges whether the first resistor value and the second resistance value are greater than preset value;
If at least one of the first resistor value and the second resistance value are less than or equal to preset value, the impedance inspection
Module output first control signal is surveyed to first control terminal, is opened with controlling the first end of the first switch with described first
The second end of pass disconnects;
If the first resistor value and the second resistance value are all larger than the preset value, the impedance detection module output
Second control signal is to first control terminal, to control the first end of the first switch and the second end of the first switch
Closure.
In the embodiment of the present invention, mobile terminal includes: CC logic detection module, C type Type-c interface, impedance detection mould
Block and first switch;Impedance detection module is used to measure the first resistor value between live pins and charging pins, and for surveying
Measure the second resistance value between live pins and data transmission pin.In this way, when impedance detection module detects first resistor value
It is less than or equal to preset value at least one of second resistance value, impedance detection module exports first control signal to the first control
End is disconnected with the second end of the first end and first switch that control first switch, so that live pins stop electrification, to reduce
Leakage current between leakage current and live pins between live pins and charging pins and data transmission pin, delays
Continuing for Type-c interface corrosion process, enhances the resistance to corrosion of the Type-c interface of mobile terminal accordingly.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention
Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention,
For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 2 is a kind of one of the application scenario diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 3 is the two of the application scenario diagram of a kind of mobile terminal provided in an embodiment of the present invention;
Fig. 4 is the structure chart of the Type-c interface in a kind of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of flow chart of detection method provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It is a kind of structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 1-4, Fig. 1, mobile terminal 100 wraps
It includes: CC logic detection module 1, Type-c interface 2, impedance detection module 3 and first switch 4;
The Type-c interface 2 includes that live pins 201, charging pins 202 and data transmit pin 203;
The impedance detection module 3 is used to measure the first electricity between the live pins 201 and the charging pins 202
Resistance value, and for measuring the second resistance value between the live pins 201 and data transmission pin 203;
The first end of the first switch 4 is electrically connected with the CC logic detection module 1, and the second of the first switch 4
End is electrically connected with the live pins 201, and the first control terminal of the first switch 4 is electrically connected with the impedance detection module 3;
Wherein, when the impedance detection module 3 detects at least one in the first resistor value and the second resistance value
Item is less than or equal to preset value, and the impedance detection module 3 exports first control signal to first control terminal, to control
The second end of the first end and the first switch 4 of stating first switch 4 disconnects;Described in being detected when the impedance detection module 3
First resistor value and the second resistance value are all larger than the preset value, and the impedance detection module 3 exports second control signal
To first control terminal, it is closed with the second end of the first end and the first switch 4 that control the first switch 4.
Wherein, the working principle of the embodiment of the present invention are as follows: when impedance detection module 3 detects first resistor value and the second electricity
At least one of resistance value is less than or equal to preset value, indicates live pins 201 and charging pins under the action of corrosive liquid
Between 202 or live pins 201 and data transmission pin 203 between at least one of resistance value already less than or be equal to
The preset value for indicating resistance value warning line, illustrates that the corrosion condition of Type-c interface 2 is more serious.Impedance detection module 3 is defeated at this time
First control signal is disconnected with the second end of the first end and first switch 4 that control first switch 4 to the first control terminal out, with
Live pins 201 are made to stop electrification, to reduce the leakage current between live pins 201 and charging pins 202, and electrification
Leakage current between pin 201 and data transmission pin 203, prevents continuing for 2 corrosion process of Type-c interface, accordingly
The Type-c interface 2 for enhancing mobile terminal 100 resistance to corrosion.
In addition, the first end of live pins 201 is electrically connected with the second end of first switch 4, and the second of live pins 201
End can connect different components, such as: it can connect through the phases such as data line and computer, charging plug or mobile power source
Even.Therefore, when impedance detection module 3 detects that first resistor value and second resistance value are all larger than preset value, expression live pins
Between 201 and charging pins 202 or live pins 201 and data transmission pin 203 between extent of corrosion it is not serious or
It is not corroded, then impedance detection module 3 exports second control signal to the first control terminal, to control the first end of first switch 4
It is closed with the second end of first switch 4, so that live pins 201 continue to charge, and the pulse that CC logic detection module 1 emits
Signal can return after encountering the component connected in live pins 201 through first switch 4 and live pins 201 this line transmissions
It is back in CC logic detection module 1, the component which encounters is different, and situation of change is not also identical, CC logic detection mould
Block 1 can carry out charge or discharge according to the specific situation of change control charging pins 202 of pulse signal.
Wherein, optionally, the live pins 201 are CC1 pin or CC2 pin, and the charging pins 202 are VBUS
Pin, the data transmission pin 203 is D+ pin.Certainly, live pins 201, charging pins 202 and data transmit pin
203 are not specially defined in above-mentioned pin.Such as: if in the design, the function of CC1 pin is replaced using N1 pin, then this
When live pins 201 or N1 pin.Charging pins 202 and data transmission pin 203 are similarly.
Wherein, preset value can indicate resistance value or live pins between live pins 201 and charging pins 202
The warning line of resistance value between 201 and data transmission pin 203, when being less than or equal to the preset value, the then function of Type-c interface 2
It is larger to there is a possibility that abnormal.It is limited it should be noted that the specific value of preset value is not specific herein, such as: when
Resistance between resistance value or live pins 201 between live pins 201 and charging pins 202 and data transmission pin 203
When value is 5 ohm, the function of Type-c interface 2 will appear exception, then preset value can be set to 7 ohm, herein not
Specifically limit resistance value of the numerical value of preset value as the appearance of the function of Type-c interface 2 when abnormal.
In the embodiment of the present invention, above-mentioned mobile terminal can be mobile phone, tablet computer (Tablet Personal
Computer), laptop computer (Laptop Computer), personal digital assistant (Personal Digital
Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device
(Wearable Device) etc..
In the embodiment of the present invention, mobile terminal includes: CC logic detection module, C type Type-c interface, impedance detection mould
Block and first switch;Impedance detection module is used to measure the first resistor value between live pins and charging pins, and for surveying
Measure the second resistance value between live pins and data transmission pin.In this way, when impedance detection module detects first resistor value
It is less than or equal to preset value at least one of second resistance value, impedance detection module exports first control signal to the first control
End is disconnected with the second end of the first end and first switch that control first switch, so that live pins stop electrification, to reduce
Leakage current between leakage current and live pins between live pins and charging pins and data transmission pin, delays
Continuing for Type-c interface corrosion process, enhances the resistance to corrosion of the Type-c interface of mobile terminal accordingly.
Optionally, the mobile terminal 100 further includes second switch 5, current-limiting resistance 6 and power supply 7;The second switch 5
First end be electrically connected with the CC logic detection module 1, the of the second end of the second switch 5 and the current-limiting resistance 6
One end electrical connection, the second control terminal of the second switch 5 are electrically connected with the impedance detection module 3, the current-limiting resistance 6
Second end is electrically connected with the power supply 7;
Wherein, when the impedance detection module 3 detects at least one in the first resistor value and the second resistance value
Item is less than or equal to the preset value, and the impedance detection module 3 exports third and controls signal to second control terminal, with control
The second end of the first end and the second switch 5 of making the second switch 5 is closed;When the impedance detection module 3 detects
The first resistor value and the second resistance value are all larger than the preset value, the 4th control of the output of impedance detection module 3
Signal is to second control terminal, to control the first end of the second switch 5 and the second end disconnection of the second switch 5.
Wherein, the working principle of the present embodiment are as follows: referring to fig. 2, when impedance detection module 3 detects first resistor value and
At least one of two resistance values are less than or equal to preset value, and impedance detection module 3 exports first control signal to the first control terminal,
It is disconnected with the second end of the first end and first switch 4 that control first switch 4, and impedance detection module 3 exports third control letter
Number to the second control terminal, it is closed with controlling first end and the second end of second switch 5 of second switch 5.I.e. when first resistor value
It is less than or equal to preset value at least one of second resistance value, control first switch 4 disconnects, and second switch 5 is closed.CC at this time
The pulse signal that logic detection module 1 emits is high level signal, and first switch 4 disconnects at this time, this branch is obstructed, height electricity
Ordinary mail number can only be through returning in CC logic detection module 1 after second switch 5, current-limiting resistance 6 and power supply 7, and the high level is believed
Number variation is still high level signal, then CC logic detection module 1 can control charging pins 202 and charge at this time less.
In addition, impedance detection module 3, which detects in first resistor value and second resistance value, is all larger than preset value referring to Fig. 3,
Impedance detection module 3 exports second control signal to the first control terminal, to control the first end and first switch 4 of first switch 4
Second end closure, and the 4th control signal of the output of impedance detection module 3 is to the second control terminal, to control the of second switch 5
The second end of one end and second switch 5 disconnects.In this way, in the case where the closure of first switch 4, second switch 5 disconnect, CC logic
The high level signal that detection module 1 emits to connecting component and can be back to CC logic through first switch 4 and live pins 201
It is still high level signal if the variation of the level signal is little, then CC logic detection module 1, which can control, fills in detection module 1
Electric pin 202 charges;If the level signal changes greatly, varied is low level signal, then CC logic detection mould
Block 1 can control charging pins 202 and discharge.Such as: if 201 other end of live pins connects charging cable, impulse generator
101 issue high level signal, transmit through first switch 4, live pins 201 and charging cable, then the level signal is along charging
Line, live pins 201 and first switch 4 are back in level detector 102, are still high level signal, then CC logic detection
Module 1 can control the charging of charging pins 202;If 201 other end of live pins connects current consuming apparatus, equally, impulse generator
101 issue high level signal, and through first switch 4, live pins 201 and current consuming apparatus, then the level signal is set along power consumption
Standby, live pins 201 and first switch 4 are back in level detector 102, are detected as low level signal, then CC logic detection
Module 1 can control the electric discharge of charging pins 202.
In the embodiment of the present invention, detecting that it is default that at least one of first resistor value and second resistance value are less than or equal to
When value, first switch is disconnected, so that mobile terminal still can be carried out by charging pins in the state that live pins are not charged
Charging, had not only delayed continuing for the corrosion process of the Type-c interface of mobile terminal, but also mobile terminal can continue to
Realize charge function.
Optionally, the mobile terminal includes charge integrated circuit (Integrated Circuit, IC) 8, the charging
The first end of IC8 is electrically connected with the charging pins 202,1 electricity of second end and the CC logic detection module of the charging IC8
Connection;The CC logic detection module 1 includes processor 103, impulse generator 101 and level detector 102, the pulse hair
Raw device 101 and the level detector 102 are electrically connected with the first end of the first switch 4;
Wherein, if the processor 103 receives the expression that the level detector 102 is sent and detects disappearing for high level
Breath, the processor 103 send the first message to charge for controlling the charging pins 202 to the charging IC8;
If the processor 103 receives the expression that the level detector 102 is sent and detects low level message, institute
It states processor 103 and sends the second message discharged for controlling the charging pins 202 to the charging IC8.
In addition, processor 103 is electrically connected with level detector 102 and impulse generator 101 respectively, and processor 103 can
With with state charging IC8 between be electrically connected.
In the embodiment of the present invention, mobile terminal includes charging IC, and CC logic detection module includes processor, pulse generation
Device and level detector, for impulse generator for emitting pulse signal, level detector is used for return pulse signal, and detects arteries and veins
Rush the situation of change of signal.Processor sends first message or second to charging IC according to the different situation of change of pulse signal
Message.In this way, by above-mentioned setting, so that mobile terminal is more intelligent to the control of the charge or discharge of charging pins,
And make control effect more preferable.
Optionally, the impedance detection module 3 includes electric resistance partial pressure detection unit 301 and switch control unit 302;
Wherein, when the electric resistance partial pressure detection unit 301 detects in the first resistor value and the second resistance value
At least one is less than or equal to the preset value, and the switch control unit 302 exports first control signal to first control
End processed is disconnected with the second end of the first end and the first switch 4 that control the first switch 4;When the electric resistance partial pressure is examined
It surveys unit 301 and detects that the first resistor value and the second resistance value are all larger than the preset value, the switch control list
Member 302 exports second control signal to first control terminal, is opened with controlling the first end of the first switch 4 with described first
Close 4 second end closure.
In the embodiment of the present invention, impedance detection module includes electric resistance partial pressure detection unit and switch control unit, resistance point
Pressure detection unit is used for for detecting first resistor value and second resistance value, switch control unit according to electric resistance partial pressure detection unit
Testing result output first control signal or second control signal, to realize the control to first switch and the second switch
System.In this way, making the division of labor of all parts in impedance detection module definitely, so that the function of impedance detection module
It realizes more efficient.
It optionally, include voltage detecting subelement and divider resistance, the voltage in the electric resistance partial pressure detection unit 301
Detection sub-unit and divider resistance electrical connection.
Wherein it is possible to the first detection circuit be arranged between live pins 201 and charging pins 202, in live pins 201
Second detection circuit is set between data transmission pin 203, and is loaded in divider resistance and the first detection circuit, and load
Voltage on divider resistance and the second detection circuit be it is constant, voltage detecting subelement can directly detect the first detection
Voltage on circuit and the second detection circuit, and then obtain first resistor value and second resistance value;Certainly, voltage detecting subelement
Also it can detecte the voltage on divider resistance, if the voltage on divider resistance is bigger, it was demonstrated that the first detection circuit and the second detection
Voltage on circuit is smaller, then the resistance in the first detection circuit and the second detection circuit is also just smaller, i.e. first resistor and the
Two resistance are also just smaller.Directly the electric pin that connects of divider resistance is accessed in live pins in addition, measurement method may also is that
Between 201 and charging pins 202 or between live pins 201 and data transmission pin 203, then by voltage detecting subelement
Load is at the both ends of divider resistance, to complete the measurement to first resistor value and second resistance value.
It include voltage detecting subelement and divider resistance in electric resistance partial pressure detection unit, and pass through in the embodiment of the present invention
Voltage detecting subelement and divider resistance detect first resistor value and second resistance value, so as to first resistor value and
The detection of two resistance values is more accurate.
It optionally, include voltage detecting subelement and continuous current source, the electricity in the electric resistance partial pressure detection unit 301
It is electrically connected between pressure detection sub-unit and the continuous current source.
Wherein, in the embodiment of the present invention, the first inspection can be equally set between live pins 201 and charging pins 202
The second detection circuit, the electricity that continuous current source issues is arranged between live pins 201 and data transmission pin 203 in slowdown monitoring circuit
Stream be it is constant, voltage detecting subelement is by the voltage of detection the first detection circuit and the second detection circuit, available the
One resistance value and second resistance value.Alternatively, directly by voltage detecting subelement connect the load of electric pin live pins 201 with fill
Between electric pin 202 or between live pins 201 and data transmission pin 203.To complete to first resistor value and second
The measurement of resistance value.
It include voltage detecting subelement and continuous current source in electric resistance partial pressure detection unit, and lead in the embodiment of the present invention
First resistor value and second resistance value are detected in Zenith tracking subelement and continuous current source, so as to first resistor value
It is more accurate with the detection of second resistance value.
Optionally, the Type-c interface 2 further includes interface matrix (not marking in figure), and the live pins 201 include
First live pins and the second live pins, the charging pins 202 include the first charging pins and the second charging pins, described
It includes that first data transmission pin and the second data transmit pin that data, which transmit pin 203,;First live pins, described
One charging pins and the first data transmission pin are all set in the first side of the interface matrix, and first electrification is drawn
Foot is set between first charging pins and the first data transmission pin;Second live pins, described second
Charging pins and second data transmission pin are all set in second side of the interface matrix, and second live pins
It is set between second charging pins and second data transmission pin, first side and described second side are opposite
Two sides;
Wherein, resistance value of the first resistor value between first live pins and first charging pins,
Or the resistance value between second live pins and second charging pins;The second resistance value is the first band
Resistance value or second live pins and second data between electric pin and the first data transmission pin pass
Resistance value between defeated pin.
Wherein, Type-c interface 2 include interface matrix, the first live pins, the second live pins, the first charging pins,
Second charging pins, first data transmission pin and the second data transmit pin, and the first live pins, the second live pins,
First charging pins, the second charging pins, first data transmission pin and the second data transmission pin can be vertically installed in
On interface matrix.Such as: as shown in figure 4, A1, A2 in Fig. 4 are until A12, B1, B2 are until the labels such as B12 can be used
In the location label for indicating each pin on interface matrix, Type-c interface includes interface matrix, and the first live pins can be with
For the CC1 pin of the position A5 in figure, the second live pins can be the CC2 pin of the position B5 in figure, the first charging pins
It can be the VBUS pin of the position A4 in figure, the second charging pins can be the VBUS pin of the position B4 in figure, and the first data pass
Defeated pin can be the D+ pin of the position A6 in figure, and the second data, which transmit pin, to be the D+ pin of the position B6 in figure.First
The side that side can indicate for positions such as A5 and A6 in figure, and one that second side can then indicate for positions such as B5 and B6 in figure
Side.First resistor value can be the resistance value between the CC1 pin of the position A5 and the VBUS pin of the position A4, or B5
Resistance value between the CC2 pin set and the VBUS pin of the position B4;Second resistance value can be the CC1 pin and A6 of the position A5
Resistance value between the D+ pin of position, or the resistance value between the CC2 pin of the position B5 and the D+ pin of the position B6.
Certainly, Type-c interface can also include other pins, such as the GND pin of the position A1, the TX1+ pin of the position A2, A3 in figure
The D- pin of the TX1- pin, the position A7 set, the SBU1 pin of the position A8, the VBUS pin of the position A9, the position A10 RX2- draw
Foot, the RX2+ pin of the position A11, the GND pin of the position A12, the GND pin of the position B1, the TX2+ pin of the position B2, the position B3
TX2- pin, the D- pin of the position B7, the SBU2 pin of the position B8, the VBUS pin of the position B9, the position B10 RX1- draw
The GND pin of foot, the RX1+ pin of the position B11 and the position B12, wherein GND pin is for being grounded.
In the embodiment of the present invention, Type-c interface includes interface matrix, the first live pins, the second live pins, first
Charging pins, the second charging pins, first data transmission pin and the second data transmit pin, and the first live pins, first
Charging pins and first data transmission pin are all set in the first side of interface matrix, the second live pins, the second charging pins
Second side of interface matrix is all set in the second data transmission pin, in this manner it is ensured that data line is accessed to shifting by user
When in the Type-c interface in dynamic terminal, without the front and back sides of data discrimination line access, the access of data line can be completed, thus
So that the access of data line is more convenient.
Referring to Fig. 5, Fig. 5 is the structure chart of another mobile terminal provided in an embodiment of the present invention.
As shown in figure 5, mobile terminal 500 include radio frequency (Radio Frequency, RF) circuit 510, it is memory 520, defeated
Enter unit 530, display unit 540, processor 550, voicefrequency circuit 560, communication module 570, power supply 580, CC logic detection mould
Block, Type-c interface, impedance detection module and first switch;
The Type-c interface includes live pins, charging pins and data transmission pin;
The impedance detection module is used to measure the first resistor value between the live pins and the charging pins, and
For measuring the second resistance value between the live pins and data transmission pin;
The first end of the first switch is electrically connected with the CC logic detection module, the second end of the first switch with
The live pins electrical connection, the first control terminal of the first switch are electrically connected with the impedance detection module;
Wherein, when the impedance detection module detects at least one of the first resistor value and the second resistance value
Less than or equal to preset value, the impedance detection module exports first control signal to first control terminal, described in controlling
The second end of the first end of first switch and the first switch disconnects;When the impedance detection module detects first electricity
Resistance value and the second resistance value are all larger than the preset value, and the impedance detection module exports second control signal to described the
One control terminal is closed with the second end of the first end and the first switch that control the first switch.
Optionally, the mobile terminal 500 further includes second switch, current-limiting resistance and power supply;The of the second switch
One end is electrically connected with the CC logic detection module, and the second end of the second switch and the first end of the current-limiting resistance are electrically connected
It connects, the second control terminal of the second switch is electrically connected with the impedance detection module, the second end of the current-limiting resistance and institute
State power electric connection;
Wherein, when the impedance detection module detects at least one of the first resistor value and the second resistance value
Less than or equal to the preset value, the impedance detection module output third controls signal to second control terminal, with control
The first end of the second switch and the second end of the second switch are closed;When the impedance detection module detects described
One resistance value and the second resistance value are all larger than the preset value, the 4th control signal of impedance detection module output to institute
The second control terminal is stated, to control the first end of the second switch and the second end disconnection of the second switch.
Optionally, the mobile terminal 500 includes charge integrated circuit IC, and the charging IC is electrically connected with the charging pins
It connects;The CC logic detection module includes processor, impulse generator and level detector, the impulse generator and the electricity
Flat detector is electrically connected with the first end of the first switch;
Wherein, if the processor receives the message that the expression that the level detector is sent detects high level, institute
It states processor and sends the first message to charge for controlling the charging pins to the charging IC;
If the processor receives the expression that the level detector is sent and detects low level message, the processing
Device sends the second message discharged for controlling the charging pins to the charging IC.
Optionally, the impedance detection module includes electric resistance partial pressure detection unit and switch control unit;
Wherein, when the electric resistance partial pressure detection unit detects in the first resistor value and the second resistance value at least
One is less than or equal to the preset value, and the switch control unit exports first control signal to first control terminal, with
The second end of the first end and the first switch that control the first switch disconnects;When the electric resistance partial pressure detection unit detects
The preset value, second control of switch control unit output are all larger than to the first resistor value and the second resistance value
Signal is closed to first control terminal with the second end of the first end and the first switch that control the first switch.
It optionally, include voltage detecting subelement and divider resistance, the voltage inspection in the electric resistance partial pressure detection unit
Survey subelement and divider resistance electrical connection.
It optionally, include voltage detecting subelement and continuous current source, the voltage in the electric resistance partial pressure detection unit
It is electrically connected between detection sub-unit and the continuous current source.
Optionally, the Type-c interface further includes interface matrix, and the live pins include the first live pins and the
Two live pins, the charging pins include the first charging pins and the second charging pins, and data transmission pin includes the
One data transmit pin and the second data transmit pin;First live pins, first charging pins and described first
Data transmission pin is all set in the first side of the interface matrix, and first live pins are set to first charging
Between pin and the first data transmission pin;Second live pins, second charging pins and second number
Second side of the interface matrix is all set according to transmission pin, and second live pins are set to second charging and draw
Between foot and second data transmission pin, first side and described second side are opposite two sides;
Wherein, resistance value of the first resistor value between first live pins and first charging pins,
Or the resistance value between second live pins and second charging pins;The second resistance value is the first band
Resistance value or second live pins and second data between electric pin and the first data transmission pin pass
Resistance value between defeated pin.
Optionally, the live pins are CC1 pin or CC2 pin, and the charging pins are VBUS pin, the number
It is D+ pin according to transmission pin.
Mobile terminal in the embodiment of the present invention had both delayed the continuation of the corrosion process of the Type-c interface of mobile terminal
It carries out, and mobile terminal is made to can continue to realize charge function.
Wherein, input unit 530 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 500 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 531.Touch panel 531, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 531 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 531 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 550 is given again, and can be received order that processor 550 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 531.In addition to touch panel 531, input unit
530 can also include other input equipments 532, other input equipments 532 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 540 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 500.Display unit 540 may include display panel 541, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 541.
It should be noted that touch panel 531 can cover display panel 541, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 550 is sent to determine the type of touch event, is followed by subsequent processing device
550 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 550 is the control centre of mobile terminal 500, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 521, and calling storage
Data in second memory 522 execute the various functions and processing data of mobile terminal 500, thus to mobile terminal 500
Carry out integral monitoring.Optionally, processor 550 may include one or more processing units.
Mobile terminal may include: mobile phone, tablet computer, E-book reader, MP3 player, MP4 player, number
Camera, pocket computer on knee, vehicle-mounted computer, desktop computer, set-top box, intelligent TV set, in wearable device extremely
One item missing.
It is a kind of flow chart of detection method provided in an embodiment of the present invention referring to Fig. 6, Fig. 6.The above method is applied to move
Dynamic terminal, the mobile terminal include: CC logic detection module, Type-c interface, impedance detection module and first switch, described
Type-c interface includes that live pins, charging pins and data transmission pin, the first end of the first switch are patrolled with the CC
Detection module electrical connection is collected, the second end of the first switch is electrically connected with the live pins, and the first of the first switch
Control terminal is electrically connected with the impedance detection module;
As shown in fig. 6, the above method the following steps are included:
Described in step 601, the impedance detection module real-time detection between live pins and the charging pins first
Second resistance value between resistance value and the live pins and the data transmission pin.
Wherein, impedance detection module real-time detection first resistor value and second resistance value, such as: impedance detection module is real-time
Detection can be primary every one section of regular time detection, and one section of regular time can be 1 second, 2 seconds or 5 seconds etc., tool
Body is it is not limited here.
It is pre- that step 602, the impedance detection module judge whether the first resistor value and the second resistance value are greater than
If value.
Wherein, the description of preset value may refer to the description in mobile terminal embodiment, and details are not described herein.
Optionally, the mobile terminal further includes second switch, current-limiting resistance and power supply, the first end of the second switch
It is electrically connected with the CC logic detection module, the second end of the second switch is electrically connected with the first end of current-limiting resistance, described
Second control terminal of second switch is electrically connected with the impedance detection module, and second end and the power supply of the current-limiting resistance are electrically connected
It connects;
After step 602, the method can also include the following steps:
If at least one of the first resistor value and the second resistance value are less than or equal to the preset value, the resistance
Anti- detection module output third controls signal to second control terminal, to control the first end and described the of the second switch
The second end closure of two switches;
If the first resistor value and the second resistance value are all larger than the preset value, the impedance detection module output
4th control signal is to second control terminal, to control the first end of the second switch and the second end of the second switch
It disconnects.
Wherein, when at least one of first resistor value and second resistance value are less than or equal to preset value, control first switch
It disconnects, and controls second switch closure, indicate that Type-c interface corrosion condition is more serious at this time, the transmitting of CC logic detection module
High level signal can only be through returning in CC logic detection module after second switch, current-limiting resistance and power supply, and the high level is believed
Number variation is still high level signal, then CC logic detection module can control charging pins and charge at this time less.
In present embodiment, when Type-c interface corrosion condition is more serious, control first switch is disconnected, and second switch closes
It closes, had not only prevented continuing for the corrosion process of the Type-c interface of mobile terminal, but also mobile terminal is made to can continue to reality
Existing charge function.
If at least one of step 603, the first resistor value and described second resistance value are less than or equal to preset value, institute
Impedance detection module output first control signal is stated to first control terminal, to control first end and the institute of the first switch
The second end for stating first switch disconnects.
Wherein, when the first end and second end of first switch disconnects, the high level exported in CC logic detection module is believed
It number is returned directly in CC logic detection module, what CC logic detection module obtained at this time is also high level signal, can control and fills
Electric pin charges.In this way, not only delayed continuing for Type-c interface corrosion process, but enable mobile terminal after
It is continuous to realize charge function.
If step 604, the first resistor value and the second resistance value are all larger than the preset value, the impedance detection
Module exports second control signal to first control terminal, to control the first end and the first switch of the first switch
Second end closure.
Wherein, first resistor value and second resistance value are all larger than preset value, indicate between live pins and charging pins, or
Extent of corrosion between person's live pins and data transmission pin is not serious or is not corroded, can be closed first at this time and open
It closes, the pulse signal of CC logic detection module transmitting can be encountered electrification and be drawn with first switch and live pins this line transmissions
It is back to after the component connected on foot in CC logic detection module, and CC logic detection module can be specific according to pulse signal
Situation of change controls charging pins and carries out charge or discharge.
In the embodiment of the present invention, impedance detection module detects that at least one of first resistor value and second resistance value are less than
When preset value, control first switch disconnect, make live pins stop electrification, thus delayed Type-c interface corrosion process after
It is continuous to carry out;When impedance detection module detects that first resistor value and second resistance value are all larger than preset value, control first switch is closed
It closes, indicates that the extent of corrosion between live pins and charging pins or between live pins and data transmission pin is not serious
Perhaps it is not corroded so that the charging pins that mobile terminal can continue through in Type-c interface are charged or put
Electricity.So that mobile terminal is more intelligent.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (8)
1. a kind of mobile terminal characterized by comprising CC logic detection module, C type Type-c interface, impedance detection mould
Block and first switch;
The Type-c interface includes live pins, charging pins and data transmission pin;
The impedance detection module is used to measure the first resistor value between the live pins and the charging pins, and is used for
Measure the second resistance value between the live pins and data transmission pin;
The first end of the first switch is electrically connected with the CC logic detection module, the second end of the first switch with it is described
Live pins electrical connection, the first control terminal of the first switch are electrically connected with the impedance detection module;
Wherein, when the impedance detection module detects that at least one of the first resistor value and the second resistance value are less than
Or it is equal to preset value, the impedance detection module output first control signal is to first control terminal, to control described first
The second end of the first end of switch and the first switch disconnects;When the impedance detection module detects the first resistor value
It is all larger than the preset value with the second resistance value, the impedance detection module exports second control signal to first control
End processed is closed with the second end of the first end and the first switch that control the first switch;
The mobile terminal further includes second switch, current-limiting resistance and power supply;The first end of the second switch is patrolled with the CC
Detection module electrical connection is collected, the second end of the second switch is electrically connected with the first end of the current-limiting resistance, and described second opens
The second control terminal closed is electrically connected with the impedance detection module, the second end of the current-limiting resistance and the power electric connection;
Wherein, when the impedance detection module detects that at least one of the first resistor value and the second resistance value are less than
Or it is equal to the preset value, the impedance detection module output third controls signal to second control terminal, described in controlling
The first end of second switch and the second end of the second switch are closed;When the impedance detection module detects first electricity
Resistance value and the second resistance value are all larger than the preset value, the 4th control signal of impedance detection module output to described the
Two control terminals, to control the first end of the second switch and the second end disconnection of the second switch.
2. mobile terminal as described in claim 1, which is characterized in that the mobile terminal includes charging IC, the charging IC
First end be electrically connected with the charging pins, it is described charging IC second end be electrically connected with the CC logic detection module;Institute
Stating CC logic detection module includes processor, impulse generator and level detector, and the impulse generator and the level are examined
Device is surveyed to be electrically connected with the first end of the first switch;
Wherein, if the processor receives the message that the expression that the level detector is sent detects high level, the place
Reason device sends the first message to charge for controlling the charging pins to the charging IC;
If the processor receives the expression that the level detector is sent and detects low level message, the processor to
The charging IC sends the second message discharged for controlling the charging pins.
3. mobile terminal as described in claim 1, which is characterized in that the impedance detection module includes that electric resistance partial pressure detection is single
Member and switch control unit;
Wherein, when the electric resistance partial pressure detection unit detects at least one of the first resistor value and the second resistance value
Less than or equal to the preset value, the switch control unit exports first control signal to first control terminal, with control
The second end of the first end of the first switch and the first switch disconnects;When the electric resistance partial pressure detection unit detects institute
It states first resistor value and the second resistance value is all larger than the preset value, the switch control unit exports second control signal
To first control terminal, it is closed with the second end of the first end and the first switch that control the first switch.
4. mobile terminal as claimed in claim 3, which is characterized in that include voltage detecting in the electric resistance partial pressure detection unit
Subelement and divider resistance, the voltage detecting subelement and divider resistance electrical connection.
5. mobile terminal as claimed in claim 3, which is characterized in that include voltage detecting in the electric resistance partial pressure detection unit
Subelement and continuous current source are electrically connected between the voltage detecting subelement and the continuous current source.
6. the mobile terminal as described in any one of claims 1 to 5, which is characterized in that the Type-c interface further includes connecing
Mouth matrix, the live pins include the first live pins and the second live pins, and the charging pins include that the first charging is drawn
Foot and the second charging pins, the data transmission pin include first data transmission pin and the second data transmission pin;It is described
First live pins, first charging pins and the first data transmission pin are all set in the first of the interface matrix
Side, and first live pins are set between first charging pins and the first data transmission pin;Described
Two live pins, second charging pins and second data transmission pin are all set in the second of the interface matrix
Side, and second live pins are set between second charging pins and second data transmission pin, described the
Side and described second side are opposite two sides;
Wherein, resistance value of the first resistor value between first live pins and first charging pins, or
Resistance value between second live pins and second charging pins;The second resistance value is that first electrification is drawn
Resistance value or second live pins between foot and the first data transmission pin are drawn with second data transmission
Resistance value between foot.
7. the mobile terminal as described in any one of claims 1 to 5, which is characterized in that the live pins be CC1 pin or
Person's CC2 pin, the charging pins are VBUS pin, and the data transmission pin is D+ pin.
8. a kind of detection method, which is characterized in that be applied to mobile terminal, the mobile terminal include: CC logic detection module,
Type-c interface, impedance detection module and first switch, the Type-c interface include that live pins, charging pins and data pass
Defeated pin, the first end of the first switch are electrically connected with the CC logic detection module, the second end of the first switch with
The live pins electrical connection, the first control terminal of the first switch are electrically connected with the impedance detection module;The movement
Terminal further includes second switch, current-limiting resistance and power supply, and the first end of the second switch and the CC logic detection module are electric
Connection, the second end of the second switch be electrically connected with the first end of current-limiting resistance, the second control terminal of the second switch and
The impedance detection module electrical connection, the second end of the current-limiting resistance are electrically connected to a power source;
The described method includes:
First resistor value described in the impedance detection module real-time detection between live pins and the charging pins, Yi Jisuo
State the second resistance value between live pins and data transmission pin;
The impedance detection module judges whether the first resistor value and the second resistance value are greater than preset value;
If at least one of the first resistor value and the second resistance value are less than or equal to preset value, the impedance detection mould
Block exports first control signal to first control terminal, to control the first end and the first switch of the first switch
Second end disconnects;
If the first resistor value and the second resistance value are all larger than the preset value, the impedance detection module output second
Signal is controlled to first control terminal, is closed with controlling the second end of first end and the first switch of the first switch
It closes;
If at least one of the first resistor value and the second resistance value are less than or equal to the preset value, the impedance inspection
Module output third control signal is surveyed to second control terminal, is opened with controlling the first end of the second switch with described second
The second end of pass is closed;
If the first resistor value and the second resistance value are all larger than the preset value, the impedance detection module output the 4th
Signal is controlled to second control terminal, with control the second switch first end and the second switch second end it is disconnected
It opens.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810233916.XA CN108536055B (en) | 2018-03-21 | 2018-03-21 | A kind of mobile terminal and detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810233916.XA CN108536055B (en) | 2018-03-21 | 2018-03-21 | A kind of mobile terminal and detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108536055A CN108536055A (en) | 2018-09-14 |
CN108536055B true CN108536055B (en) | 2019-10-15 |
Family
ID=63484541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810233916.XA Active CN108536055B (en) | 2018-03-21 | 2018-03-21 | A kind of mobile terminal and detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108536055B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109245244B (en) * | 2018-11-13 | 2021-03-02 | Oppo(重庆)智能科技有限公司 | Charging circuit, charging processing method, electronic device, and storage medium |
CN109378877B (en) * | 2018-11-13 | 2022-02-01 | Oppo(重庆)智能科技有限公司 | Charging circuit, charging processing method, electronic device, and storage medium |
CN111381118B (en) * | 2018-12-28 | 2022-12-27 | 北京小米移动软件有限公司 | Water inflow detection module, water inflow detection method and terminal |
CN110554240A (en) * | 2019-09-09 | 2019-12-10 | Oppo(重庆)智能科技有限公司 | Impedance detection circuit and method for charging interface and terminal equipment |
CN114264423B (en) * | 2022-03-03 | 2022-07-05 | 荣耀终端有限公司 | Liquid inlet detection control method and electronic equipment |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10468893B2 (en) * | 2015-08-19 | 2019-11-05 | Delta Electronics, Inc. | USB charging method having protection function |
CN205610274U (en) * | 2016-04-29 | 2016-09-28 | 维沃移动通信有限公司 | Short -circuit protection circuit and electronic equipment charge |
CN106199731A (en) * | 2016-08-18 | 2016-12-07 | 乐视控股(北京)有限公司 | A kind of detection method, device and charger |
CN106874233B (en) * | 2017-02-16 | 2018-10-19 | 维沃移动通信有限公司 | A kind of Type-C interface control circuits, control method and mobile terminal |
CN207124472U (en) * | 2017-08-15 | 2018-03-20 | 维沃移动通信有限公司 | A kind of charging port detecting system |
CN107565637A (en) * | 2017-09-11 | 2018-01-09 | 深圳天珑无线科技有限公司 | A kind of charge protection device and charging system |
-
2018
- 2018-03-21 CN CN201810233916.XA patent/CN108536055B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108536055A (en) | 2018-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108536055B (en) | A kind of mobile terminal and detection method | |
CN207541159U (en) | Detection device | |
CN108988421A (en) | A kind of charging method of battery, charging circuit and terminal | |
CN111239617B (en) | Control method and device for charge and discharge test, storage medium and system | |
CN106208206B (en) | A kind of wireless charging method and mobile terminal | |
CN108268389A (en) | The insertion detection method and mobile terminal of a kind of equipment | |
CN109189617A (en) | A kind of universal serial bus c-type interface detection method and terminal | |
CN106527802A (en) | Detection method and mobile terminal | |
CN108268403A (en) | A kind of Type-C interface protective circuits and method, mobile terminal | |
CN109088961A (en) | sensor control circuit and electronic device | |
CN104035553A (en) | Systems and methods for indicating that an interface is being touched | |
CN105260077A (en) | Electronic device and detection method for capacitive touch screen of electronic device | |
CN106646085B (en) | Leakage tests method, apparatus and equipment | |
CN109617009A (en) | Method for controlling power supply, device and the storage medium of display screen | |
CN107069844B (en) | Charging method, device and terminal | |
CN108184015A (en) | Irregular shaped region display methods and Related product | |
CN108268405A (en) | Protection circuit, guard method and the mobile terminal of Type-C interfaces | |
CN108268402A (en) | Protection circuit, guard method and the mobile terminal of Type-C interfaces | |
CN108270253A (en) | A kind of charging method and mobile terminal | |
CN109991507A (en) | A kind of smart card contact detection circuit, method and apparatus | |
CN106684967B (en) | A kind of charging method and mobile terminal of mobile terminal | |
CN107465234B (en) | A kind of charge control method, mobile terminal and adapter | |
CN110113484A (en) | A kind of control method of screen power supplies, device, storage medium and electronic equipment | |
CN109856456A (en) | A kind of method, electronic equipment, power supply adaptor and system measuring impedance | |
CN108268089A (en) | A kind of interface protector, mobile terminal 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |