[go: up one dir, main page]

CN108155623A - A kind of terminal USB interface guard method, terminal and external equipment - Google Patents

A kind of terminal USB interface guard method, terminal and external equipment Download PDF

Info

Publication number
CN108155623A
CN108155623A CN201810057931.3A CN201810057931A CN108155623A CN 108155623 A CN108155623 A CN 108155623A CN 201810057931 A CN201810057931 A CN 201810057931A CN 108155623 A CN108155623 A CN 108155623A
Authority
CN
China
Prior art keywords
usb interface
temperature
terminal
external equipment
overcurrent protection
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
CN201810057931.3A
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.)
Huaqin Telecom Technology Co Ltd
Original Assignee
Huaqin Telecom 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 Huaqin Telecom Technology Co Ltd filed Critical Huaqin Telecom Technology Co Ltd
Priority to CN201810057931.3A priority Critical patent/CN108155623A/en
Publication of CN108155623A publication Critical patent/CN108155623A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H5/00Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal non-electric working conditions with or without subsequent reconnection
    • H02H5/04Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal non-electric working conditions with or without subsequent reconnection responsive to abnormal temperature
    • H02H5/041Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal non-electric working conditions with or without subsequent reconnection responsive to abnormal temperature additionally responsive to excess current
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3027Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Power Sources (AREA)

Abstract

The present embodiments relate to a kind of electronic technology field more particularly to terminal USB interface guard method, terminal and external equipment, for avoiding the excessively high caused USB interface burnout problems of terminal USB interface temperature.Terminal obtains the temperature of USB interface in the case of the external external equipment of USB interface;Terminal sends overcurrent protection information in the case where the temperature for determining USB interface is more than temperature threshold, by the data signal line that USB interface connects to external equipment;Overcurrent protection information is used to indicate the bus power source Vbus lines that external equipment stops connecting to USB interface and powers.In this way, not only can be with effective protection USB interface, USB interface burnout problems caused by avoiding USB interface temperature excessively high;And relative to the protection mechanism that high-power MOS tube is used to carry out switch control in the prior art, it can realize and reduce metal-oxide-semiconductor occupied space and saving cost.

Description

A kind of terminal USB interface guard method, terminal and external equipment
Technical field
The present embodiments relate to electronic technology field more particularly to a kind of terminal USB interface guard method, terminals and outer Portion's equipment.
Background technology
At present, the charger of many mobile terminals is all using universal serial bus (Universal Serial Bus, abbreviation USB) interface is communicated with extraneous, and frequent use of USB interface also results in dramatically increasing for USB failure rates, for example, charging process Burn-back lip reflex caused by middle interface water inlet or device aging short circuit.
In the prior art, the temperature change of USB interface is monitored at the nearly USB interface of terminal, reaches setting value in temperature Short switch is just opened afterwards by bus power source (Vbus) shorted to earth, is disconnected so as to trigger charger high current protection mechanism Vbus achievees the purpose that USB interface is protected not to be burned out.The short switch of this protection mechanism, need using high-power metallic- Oxide-Semiconductor Field effect crystal (Metal-Oxide-Semiconductor Field-Effect Transistor, MOSFET) pipe carries out switch control, and when metal-oxide-semiconductor opens short switch, charging wire, USB interface etc. need to bear high current, hold Easily cause danger.
Invention content
The embodiment of the present invention provides a kind of terminal USB interface guard method, terminal and external equipment, effective to realize Terminal USB interface is protected, USB interface burnout problems caused by avoiding terminal USB interface temperature excessively high.
The embodiment of the present invention provides a kind of terminal USB interface guard method, including:
Terminal obtains the temperature of the USB interface in the case of the external external equipment of USB interface;
The terminal is connected in the case where the temperature for determining the USB interface is more than temperature threshold by the USB interface The data signal line connect sends overcurrent protection information to the external equipment;The overcurrent protection information is used to indicate the outside The bus power source Vbus lines that equipment stops connecting to the USB interface are powered.
Optionally, the data signal line includes data minus (Data Minus, abbreviation DM) signal wire and data just (Data Positive, abbreviation DP) signal wire;The overcurrent protection information includes default high level signal and the default low level letter Number;The terminal is connected in the case where the temperature for determining the USB interface is more than temperature threshold by the USB interface Data signal line sends overcurrent protection information to the external equipment, including:The terminal is in the temperature for determining the USB interface In the case of more than the temperature threshold, the default high level signal is inputted to the DM signal wires, and to the DP signals Line inputs the default low level signal.
Optionally, the temperature for obtaining the USB interface, including:The terminal obtains negative temperature coefficient NTC temperature-sensitives electricity The level of device is hindered, and analog-to-digital conversion is carried out to the level and obtains voltage value;The NTC themistor and the USB interface It is disposed adjacent;The terminal determines the temperature of the USB interface according to the voltage value and voltage temperature mapping relations.
The embodiment of the present invention provides a kind of terminal USB interface guard method, including:External equipment is connected by USB interface Data signal line in line receives the overcurrent protection information that terminal is sent;The USB interface connecting line and the USB of the terminal connect Mouth electrical connection;The external equipment stops the bus power source Vbus connected to the USB interface according to the overcurrent protection information Line is powered.
Optionally, the data signal line includes data minus DM signal wires and the positive DP signal wires of data;The overcurrent protection Information includes default high level signal and the default low level signal;The external equipment according to the overcurrent protection information, The bus power source Vbus lines for stopping connecting to the USB interface are powered, including:The external equipment is connect by the DM signal wires It receives the default high level signal and the default low level signal is received by the DP signals, stop to the USB The bus power source Vbus lines power supply of interface connection.
The embodiment of the present invention provides a kind of terminal, including USB interface, temperature monitoring module and processor;The processor It is connect respectively with the USB interface and the temperature monitoring module;The temperature monitoring module, for monitoring the USB interface Temperature;The processor, for obtaining the temperature of the USB interface in the case of the external external equipment of the USB interface, And in the case where the temperature of the USB interface is more than temperature threshold, by the data signal line of the connection of the USB interface to The external equipment sends overcurrent protection information;The overcurrent protection information is used to indicate the external equipment and stops to described The bus power source line Vbus lines power supply of USB interface connection.
Optionally, the temperature monitoring module includes detection circuit and mould containing negative temperature coefficient NTC themistor Number converter;The NTC themistor is disposed adjacent with the USB interface;The analog-digital converter, is used for:Described in acquisition The level of the NTC themistor in detection circuit, and analog-to-digital conversion is carried out to the level and obtains voltage value;The place Device is managed, is used for:According to the voltage value and voltage temperature mapping relations, the temperature of the USB interface is determined.
The embodiment of the present invention provides a kind of external equipment, including power supply adaptor and USB interface connecting line:The USB connects Mouth connecting line, signal is transmitted when being connect for the USB interface with terminal;The power supply adaptor, is used for:It is connect according to the USB The overcurrent protection information that data signal line in mouth connecting line receives, stops defeated to the bus power source line Vbus of the USB interface Enter.
The embodiment of the present invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage calculates Machine instructs, and the computer instruction is used to that computer to be made to perform the terminal USB interface guard method that any of the above-described embodiment provides.
The embodiment of the present invention provides a kind of electronic equipment, including:Memory, for storing program instruction;Processor is used for The program instruction stored in the memory is called, the terminal USB of any of the above-described embodiment offer is provided according to the program of acquisition Interface protection method.
In the embodiment of the present invention, terminal obtains the temperature of USB interface in the case of the external external equipment of USB interface;Eventually In the case where the temperature for determining USB interface is more than temperature threshold, the data signal line connected by USB interface is set to outside at end Preparation passes through stream protection information;Overcurrent protection information is used to indicate external equipment and stops the bus power source being connected to USB interface Vbus lines are powered.So, on the one hand, by external equipment send overcurrent protection information, can realize external equipment stop to The bus power source Vbus lines power supply of USB interface connection, and then ensure that the temperature of USB interface will not be excessively high, it can be with effective protection USB Interface, USB interface burnout problems caused by avoiding USB interface temperature excessively high;On the other hand, relative in the prior art using big Power MOS pipe carries out the protection mechanism of switch control, and USB interface protection scheme provided in an embodiment of the present invention, which can also be realized, to be subtracted Few metal-oxide-semiconductor occupied space and saving cost.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced.
Fig. 1 protects system architecture schematic diagram for a kind of terminal USB interface provided in an embodiment of the present invention;
Fig. 2 is the terminal USB interface guard method flow diagram that a kind of end side provided in an embodiment of the present invention performs;
Fig. 3 is that the terminal USB interface guard method flow that a kind of external equipment side provided in an embodiment of the present invention performs is shown It is intended to;
Fig. 4 is provided in an embodiment of the present invention in another terminal USB interface guard method flow diagram;
Fig. 5 is a kind of structure diagram of terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of structure diagram of external equipment provided in an embodiment of the present invention.
Specific embodiment
In order to which the purpose of the present invention, technical solution and advantageous effect is more clearly understood, below in conjunction with attached drawing and implementation Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used to explain this hair It is bright, it is not intended to limit the present invention.
Fig. 1 illustrates a kind of terminal USB interface protection system architecture schematic diagram that the embodiment of the present invention is applicable in, such as Shown in Fig. 1, which includes terminal 100 and external equipment 200.
Terminal 100 includes the processor 110, usb 1 20, temperature monitoring module 130 being located on mainboard.Temperature monitoring Module 130 is used to monitor the temperature of usb 1 20.Optionally, temperature monitoring module 130 includes detection circuit 131 and modulus turns Parallel operation 132, wherein, detection circuit 131 includes negative temperature coefficient (Negative Temperature Coefficient, abbreviation NTC) resistor 133 and divider resistance 134.
NTC resistors 133 are arranged on the position adjacent with USB interface, for monitoring the temperature of USB interface.NTC resistors 133 resistance value changes with the variation for the temperature for monitoring USB interface, such as the temperature raising of USB interface, NTC resistance The resistance value of device 133 reduces;The temperature of USB interface reduces, the resistance value raising of NTC resistors 133.
134 one end of divider resistance connects voltage source, other end connection NTC resistors 133, that is to say, that NTC resistors 133 and divider resistance 134 be connected on the circuit where voltage source.The external pin of analog-digital converter 132 is connected to NTC resistance On circuit between device 133 and divider resistance 134, the voltage of NTC resistors 133 can be obtained.Microprocessor according to voltage and The relationship of electric current and the voltage of NTC resistors 133 can obtain the resistance value of NTC resistors 133;Further according to resistance value and The correspondence of temperature can obtain the corresponding temperature of 133 resistance value of NTC resistors.
External equipment 200 includes power supply adaptor 210 and USB interface connecting line 220.Terminal 100 and external equipment 200 are logical USB interface connecting line 220 is crossed to be connected.Wherein, USB interface connecting line 220 includes data minus DM signal wires 221, the positive DP of data Signal wire 222 and bus power source Vbus lines 223.
Below to how to realize that terminal USB interface guard method describes in detail.
Based on system architecture shown in FIG. 1, Fig. 2 illustrates a kind of end side provided in an embodiment of the present invention and performs Terminal USB interface guard method flow diagram.
As shown in Fig. 2, a kind of terminal USB interface guard method provided in an embodiment of the present invention, includes the following steps:
Step 201:Terminal obtains the temperature of USB interface in the case of the external external equipment of USB interface;
Step 202:Terminal is connected in the case where the temperature for determining USB interface is more than temperature threshold by USB interface Data signal line sends overcurrent protection information to external equipment;Overcurrent protection information is used to indicate external equipment and stops connecing to USB The bus power source Vbus lines power supply of mouth connection.
In the embodiment of the present invention, terminal can be the electronics that the usable external equipments such as mobile phone, tablet computer charge Equipment;The equipment that it can be terminal charge that external equipment, which can be, such as charger, computer etc..
In the embodiment of the present invention, terminal obtains the temperature of USB interface in the case of the external external equipment of USB interface;Eventually In the case where the temperature for determining USB interface is more than temperature threshold, the data signal line connected by USB interface is set to outside at end Preparation passes through stream protection information;Overcurrent protection information is used to indicate external equipment and stops the bus power source being connected to USB interface Vbus lines are powered.So, on the one hand, by external equipment send overcurrent protection information, can realize external equipment stop to The bus power source Vbus lines power supply of USB interface connection, and then ensure that the temperature of USB interface will not be excessively high, it can be with effective protection USB Interface, USB interface burnout problems caused by avoiding USB interface temperature excessively high;On the other hand, relative in the prior art using big Power MOS pipe carries out the protection mechanism of switch control, and USB interface protection scheme provided in an embodiment of the present invention, which can also be realized, to be subtracted Few metal-oxide-semiconductor occupied space and saving cost.
Correspondingly, in terminal after external equipment sends overcurrent protection information, external equipment performs following terminal USB and connects Mouth guard method, as shown in figure 3, including the following steps:
Step 301:External equipment receives the overcurrent protection of terminal transmission by the data signal line in USB interface connecting line Information;Wherein, USB interface connecting line is electrically connected with the USB interface of terminal;
Step 302:According to overcurrent protection information, the bus power source Vbus lines for stopping connecting to USB interface supply external equipment Electricity.
In the embodiment of the present invention, the bus power source Vbus lines that external equipment stops connecting to USB interface are powered, in this way, one Aspect, it is ensured that the temperature of USB interface will not be excessively high, can avoid USB interface temperature is excessively high from leading with effective protection USB interface The USB interface burnout problems of cause;On the other hand, the protection that this bus power source Vbus lines for stopping connecting to USB interface are powered Mode can realize the effect for reducing metal-oxide-semiconductor occupied space and saving cost.
In a kind of mode of achievable step 201, the temperature for obtaining USB interface includes:Terminal obtains negative temperature coefficient NTC The level of thermal resistor, and analog-to-digital conversion is carried out to level and obtains voltage value;NTC themistor is adjacent with USB interface to be set It puts;Terminal determines the temperature of USB interface according to voltage value and voltage temperature mapping relations.
In the embodiment of the present invention, NTC themistor is arranged on USB interface close position, can monitor the temperature of USB interface Degree, and the resistance value of NTC themistor can change with the variation of ambient temperature, so obtaining NTC themistor Resistance value is assured that out the temperature of USB interface according to the correspondence of resistance value and temperature.It in this way, can in real time, accurately Determining USB interface temperature, in timely taking measures when the temperature is excessively high for USB interface, to avoid the temperature mistake of USB interface The problem of USB interface is burnt caused by height.
Below for how by sending overcurrent protection information to external equipment, it is detailed to realize that the protection of terminal USB interface carries out It describes in detail bright.
USB interface connecting line in above-described embodiment includes data signal line and Vbus lines.Wherein, data signal line includes Data minus DM signal wires and the positive DM signal wires of data.
When being charged due to terminal by USB interface connecting line, DM signals and DP signals meet QC2.0 agreements, therefore, can be with By controlling the voltage value of DM signal wires and DP signal wires, overcurrent protection information is sent to external equipment.
In a kind of optional embodiment, overcurrent protection information includes default high level signal and default low level signal. Terminal is in the case where the temperature for determining USB interface is more than temperature threshold, and the data signal line connected by USB interface is to outside Equipment sends overcurrent protection information, including:Terminal is believed in the case where the temperature for determining USB interface is more than temperature threshold to DM The default high level signal of number line input, and input default low level signal to DP signal wires.
Specifically, terminal loads on the DM/DP signal wires of USB interface voltage value adjusts the AD/AC's of itself Output voltage, correspondence are as shown in table 1 below:
Table 1 shows output voltage and the correspondence of on-load voltage value on DM/DP signal wires
State DP DM Output voltage (Output)
1 0.6V 0.6V 12V
2 3.3V 0.6V 9V
3 3.3V 3.3V 20V
4 0.6V GND 5V(default)
5 0.6V 3.3V Start overcurrent protection
As shown in table 1, the output voltage in state 1 to 4 to be supported in QC2.0 agreements is electric with being loaded on DM/DP signal wires The correspondence of pressure value, the bar state newly-increased for the present invention of state 5, voltage value is 0.6V on DP signal wires, on DM signal wires When voltage value is 3.3V, start overcurrent protection, i.e., terminal is when the temperature for determining USB interface is more than temperature threshold, in DP signals The voltage of the 0.6V of line loading simultaneously loads the voltage of 3.3V in DM signal wires, and overcurrent protection letter is sent to realize to external equipment Breath.Ensure that the temperature of USB interface will not be excessively high in this way, can realize, can USB interface temperature be avoided with effective protection USB interface USB interface burnout problems caused by excessively high;Relative to the protection machine that high-power MOS tube is used to carry out switch control in the prior art System, USB interface protection scheme provided in an embodiment of the present invention, which can also be realized, reduces metal-oxide-semiconductor occupied space and saving cost.
Correspondingly, external equipment, according to overcurrent protection information, the bus power source Vbus lines for stopping connecting to USB interface supply Electricity, including:External equipment receives default high level signal by DM signal wires and receives default low electricity by DP signal wires Ordinary mail number, the bus power source Vbus lines for stopping connecting to USB interface are powered.For example, for example external equipment determines DM signals Voltage on line is that the voltage on 3.3V and DP signal wires is 0.6V, then stops the bus power source Vbus lines connected to USB interface Power supply.In this way, can realize and then ensure that the temperature of USB interface will not be excessively high, USB can be avoided to connect with effective protection USB interface USB interface burnout problems caused by mouth temperature is excessively high;Moreover, relative to being switched in the prior art using high-power MOS tube The protection mechanism of control, USB interface protection scheme provided in an embodiment of the present invention can also realize reduce metal-oxide-semiconductor occupied space and Save cost.
Above method flow is introduced in order to clearer, the embodiment of the present invention provides the example below.
Fig. 4 illustrates another terminal USB interface guard method flow diagram provided in an embodiment of the present invention, Based on system architecture shown in FIG. 1, as shown in figure 4, this method includes the following steps:
Step 401:Terminal obtains negative temperature coefficient NTC themistor in the case of the external external equipment of USB interface Level, and to level carry out analog-to-digital conversion obtain voltage value;NTC themistor is disposed adjacent with USB interface;
Step 402:Terminal determines the temperature of USB interface according to voltage value and voltage temperature mapping relations;
Step 403:Terminal determines whether the temperature of USB interface is more than temperature threshold according to the temperature of USB interface;If so, Then perform step 404;If it is not, then perform step 407;
Step 404:Default high level signal is inputted, and default low level signal is inputted to DP signal wires to DM signal wires;
Step 405:Whether external equipment receives default high level signal by DM signal wires and is connect by DP signal wires Receive default low level signal;If so, perform step 406;If it is not, then perform step 407;
Step 406:The bus power source Vbus lines for stopping connecting to USB interface are powered;
Step 407:Without any operation.
It can be seen from the above:Terminal obtains the temperature of USB interface in the case of the external external equipment of USB interface Degree;Terminal the temperature for determining USB interface be more than temperature threshold in the case of, by USB interface connect data signal line to External equipment sends overcurrent protection information;Overcurrent protection information is used to indicate external equipment and stops the bus being connected to USB interface Power supply Vbus lines are powered.So, on the one hand, by sending overcurrent protection information to external equipment, can realize that external equipment stops It only powers to the bus power source Vbus lines that USB interface connects, and then ensures that the temperature of USB interface will not be excessively high, can effectively protect USB interface is protected, USB interface burnout problems caused by avoiding USB interface temperature excessively high;On the other hand, relative in the prior art The protection mechanism of switch control is carried out using high-power MOS tube, USB interface protection scheme provided in an embodiment of the present invention can be with It realizes and reduces metal-oxide-semiconductor occupied space and saving cost.
Based on same idea, a kind of terminal provided in an embodiment of the present invention, for performing the terminal that above-mentioned end side performs USB interface guard method flow.
Fig. 5 illustrates a kind of structure diagram of terminal provided in an embodiment of the present invention.As shown in figure 5, terminal 500 include processor 501, USB interface 502 and temperature monitoring module 503;The processor 501 respectively with the USB interface 502 and the temperature monitoring module 503 connect.Wherein:
The temperature monitoring module 503, for monitoring the temperature of the USB interface 502;
The processor 501, for obtaining the USB interface in the case of the 502 external external equipment of USB interface 502 temperature, and in the case where the temperature of the USB interface 502 is more than temperature threshold, pass through the company of the USB interface 502 The data signal line connect sends overcurrent protection information to the external equipment;The overcurrent protection information is used to indicate the outside The bus power source line Vbus lines that equipment stops connecting to the USB interface 502 are powered.
In the embodiment of the present invention, terminal obtains the temperature of USB interface in the case of the external external equipment of USB interface;Eventually In the case where the temperature for determining USB interface is more than temperature threshold, the data signal line connected by USB interface is set to outside at end Preparation passes through stream protection information;Overcurrent protection information is used to indicate external equipment and stops the bus power source being connected to USB interface Vbus lines are powered.So, on the one hand, by external equipment send overcurrent protection information, can realize external equipment stop to The bus power source Vbus lines power supply of USB interface connection, and then ensure that the temperature of USB interface will not be excessively high, it can be with effective protection USB Interface, USB interface burnout problems caused by avoiding USB interface temperature excessively high;On the other hand, relative in the prior art using big Power MOS pipe carries out the protection mechanism of switch control, and USB interface protection scheme provided in an embodiment of the present invention, which can also be realized, to be subtracted Few metal-oxide-semiconductor occupied space and saving cost.
Optionally, the temperature monitoring module 503 include the detection circuit containing negative temperature coefficient NTC themistor and Analog-digital converter;The NTC themistor is disposed adjacent with the USB interface 502;The analog-digital converter, is used for:It obtains The level of the NTC themistor in the detection circuit, and analog-to-digital conversion is carried out to the level and obtains voltage value;Institute Processor 501 is stated, is used for:According to the voltage value and voltage temperature mapping relations, the temperature of the USB interface 502 is determined.
Optionally, the data signal line includes data minus DM signal wires and the positive DP signal wires of data;The overcurrent protection Information includes default high level signal and the default low level signal;Processor 501, is used for:Determining the USB interface In the case that 502 temperature is more than the temperature threshold, the default high level signal is inputted to the DM signal wires, and to institute It states DP signal wires and inputs the default low level signal.
Based on same idea, a kind of external equipment provided in an embodiment of the present invention is held for performing said external equipment side Capable terminal USB interface guard method flow.
Fig. 6 illustrates a kind of structure diagram of external equipment provided in an embodiment of the present invention.As shown in fig. 6, External equipment 600 includes power supply adaptor 601 and USB interface connecting line 602.Wherein:
USB interface connecting line 602 transmits signal when being connect for the USB interface with terminal;
Power supply adaptor 601, is used for:The overcurrent protection letter that data signal line in USB interface connecting line 602 receives Breath stops the bus power source line Vbus inputs to USB interface.
In the embodiment of the present invention, the bus power source Vbus lines that external equipment stops connecting to USB interface are powered, in this way, one Aspect, it is ensured that the temperature of USB interface will not be excessively high, can avoid USB interface temperature is excessively high from leading with effective protection USB interface The USB interface burnout problems of cause;On the other hand, the protection that this bus power source Vbus lines for stopping connecting to USB interface are powered Mode can realize the effect for reducing metal-oxide-semiconductor occupied space and saving cost.
Optionally, data signal line includes data minus DM signal wires and the positive DP signal wires of data;Overcurrent protection information includes Default high level signal and default low level signal;Power supply adaptor 601, is used for:Default high electricity is received by DM signal wires Ordinary mail number and default low level signal is received by DP signal wires, the bus power source Vbus lines for stopping connecting to USB interface supply Electricity.
Based on same idea, the embodiment of the present invention provides a kind of electronic equipment, including memory and processor.Wherein:It deposits Reservoir, for storing program instruction;Processor, for calling the program instruction stored in the memory, according to the journey of acquisition Sequence performs the terminal USB interface guard method of above-mentioned end side execution or performs the terminal USB that said external equipment side performs and connects Mouth guard method.
Based on same idea, the embodiment of the present invention provides a kind of computer readable storage medium, described computer-readable to deposit Storage media stores computer instruction, and the terminal USB that the computer instruction is used to that computer to be made to perform above-mentioned end side execution connects Mouth guard method performs the terminal USB interface guard method that said external equipment side performs.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method or computer program product. Therefore, complete hardware embodiment, complete software embodiment or the embodiment in terms of combining software and hardware can be used in the present invention Form.It is deposited moreover, the present invention can be used to can be used in one or more computers for wherein including computer usable program code The shape of computer program product that storage media is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then additional changes and modifications may be made to these embodiments.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of terminal USB interface guard method, which is characterized in that including:
Terminal obtains the temperature of the USB interface in the case of the external external equipment of USB interface;
The terminal is connected in the case where the temperature for determining the USB interface is more than temperature threshold by the USB interface Data signal line sends overcurrent protection information to the external equipment;The overcurrent protection information is used to indicate the external equipment The bus power source Vbus lines for stopping connecting to the USB interface are powered.
2. the method as described in claim 1, which is characterized in that the data signal line includes data minus DM signal wires and data Positive DP signal wires;The overcurrent protection information includes default high level signal and the default low level signal;
The terminal is connected in the case where the temperature for determining the USB interface is more than temperature threshold by the USB interface Data signal line sends overcurrent protection information to the external equipment, including:
The terminal is defeated to the DM signal wires in the case where the temperature for determining the USB interface is more than the temperature threshold Enter the default high level signal, and the default low level signal is inputted to the DP signal wires.
3. the method as described in claim 1, which is characterized in that the temperature for obtaining the USB interface, including:
The terminal obtains the level of negative temperature coefficient NTC themistor, and carries out analog-to-digital conversion to the level and obtain electricity Pressure value;The NTC themistor is disposed adjacent with the USB interface;
The terminal determines the temperature of the USB interface according to the voltage value and voltage temperature mapping relations.
4. a kind of terminal USB interface guard method, which is characterized in that including:
External equipment receives the overcurrent protection information of terminal transmission by the data signal line in USB interface connecting line;The USB Interface connecting line is electrically connected with the USB interface of the terminal;
According to the overcurrent protection information, the bus power source Vbus lines for stopping connecting to the USB interface supply the external equipment Electricity.
5. method as claimed in claim 4, which is characterized in that the data signal line includes data minus DM signal wires and data Positive DP signal wires;The overcurrent protection information includes default high level signal and the default low level signal;
According to the overcurrent protection information, the bus power source Vbus lines for stopping connecting to the USB interface supply the external equipment Electricity, including:
The external equipment receives the default high level signal by the DM signal wires and is connect by the DP signal wires The default low level signal is received, the bus power source Vbus lines for stopping connecting to the USB interface are powered.
6. a kind of terminal, which is characterized in that including USB interface, temperature monitoring module and processor;The processor respectively with institute USB interface is stated to connect with the temperature monitoring module;
The temperature monitoring module, for monitoring the temperature of the USB interface;
The processor, for obtaining the temperature of the USB interface in the case of the external external equipment of the USB interface, and In the case where the temperature of the USB interface is more than temperature threshold, by the data signal line of the connection of the USB interface to institute It states external equipment and sends overcurrent protection information;The overcurrent protection information is used to indicate the external equipment and stops to the USB The bus power source line Vbus lines power supply of interface connection.
7. terminal as claimed in claim 6, which is characterized in that the temperature monitoring module includes containing negative temperature coefficient NTC The detection circuit and analog-digital converter of thermal resistor;
The NTC themistor is disposed adjacent with the USB interface;
The analog-digital converter, is used for:The level of the NTC themistor in the detection circuit is obtained, and to described Level carries out analog-to-digital conversion and obtains voltage value;
The processor, is used for:According to the voltage value and voltage temperature mapping relations, the temperature of the USB interface is determined.
8. a kind of external equipment, which is characterized in that including power supply adaptor and USB interface connecting line:
The USB interface connecting line, signal is transmitted when being connect for the USB interface with terminal;
The power supply adaptor, is used for:
The overcurrent protection information that data signal line in the USB interface connecting line receives, stops to the USB interface Bus power source line Vbus is inputted.
9. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage computer instruction, The computer instruction is used to that computer perform claim to be made to require the method described in 1~3 any claim or the calculating Machine instructs that the computer perform claim is made to require the method described in 4~5 any claims.
10. a kind of electronic equipment, which is characterized in that including:
Memory, for storing program instruction;
Processor, for calling the program instruction stored in the memory, according to acquisition program perform as claim 1 to The method of method or execution as described in any claim in claim 4 to 5 in 3 described in any claim.
CN201810057931.3A 2018-01-22 2018-01-22 A kind of terminal USB interface guard method, terminal and external equipment Pending CN108155623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810057931.3A CN108155623A (en) 2018-01-22 2018-01-22 A kind of terminal USB interface guard method, terminal and external equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810057931.3A CN108155623A (en) 2018-01-22 2018-01-22 A kind of terminal USB interface guard method, terminal and external equipment

Publications (1)

Publication Number Publication Date
CN108155623A true CN108155623A (en) 2018-06-12

Family

ID=62461803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810057931.3A Pending CN108155623A (en) 2018-01-22 2018-01-22 A kind of terminal USB interface guard method, terminal and external equipment

Country Status (1)

Country Link
CN (1) CN108155623A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825682A (en) * 2019-11-05 2020-02-21 维沃移动通信有限公司 USB control method and electronic equipment
CN111371940A (en) * 2019-09-24 2020-07-03 上海南芯半导体科技有限公司 Method for effectively detecting overheat burning of USB C port of mobile phone
CN112531839A (en) * 2020-12-02 2021-03-19 深圳慧能泰半导体科技有限公司 USB cable control device with temperature limitation and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203522138U (en) * 2013-09-18 2014-04-02 深圳Tcl新技术有限公司 USB current foldback circuit and USB power supply device
CN205265304U (en) * 2015-12-30 2016-05-25 施耐德电气工业公司 Interface protection device charges
CN107209539A (en) * 2015-01-26 2017-09-26 罗姆股份有限公司 Electric supply installation and its control circuit, current-collecting device and its control circuit, electronic equipment and charging adapter, method for detecting abnormality using it
CN107331910A (en) * 2017-06-30 2017-11-07 北京小米移动软件有限公司 Charging method and device
CN107482736A (en) * 2017-09-29 2017-12-15 维沃移动通信有限公司 A method and electronic equipment for preventing short-circuit burning of USB interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203522138U (en) * 2013-09-18 2014-04-02 深圳Tcl新技术有限公司 USB current foldback circuit and USB power supply device
CN107209539A (en) * 2015-01-26 2017-09-26 罗姆股份有限公司 Electric supply installation and its control circuit, current-collecting device and its control circuit, electronic equipment and charging adapter, method for detecting abnormality using it
CN205265304U (en) * 2015-12-30 2016-05-25 施耐德电气工业公司 Interface protection device charges
CN107331910A (en) * 2017-06-30 2017-11-07 北京小米移动软件有限公司 Charging method and device
CN107482736A (en) * 2017-09-29 2017-12-15 维沃移动通信有限公司 A method and electronic equipment for preventing short-circuit burning of USB interface

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371940A (en) * 2019-09-24 2020-07-03 上海南芯半导体科技有限公司 Method for effectively detecting overheat burning of USB C port of mobile phone
CN111371940B (en) * 2019-09-24 2021-10-01 上海南芯半导体科技有限公司 Method for effectively detecting overheat burning of USB C port of mobile phone
CN110825682A (en) * 2019-11-05 2020-02-21 维沃移动通信有限公司 USB control method and electronic equipment
CN110825682B (en) * 2019-11-05 2022-08-02 维沃移动通信有限公司 USB control method and electronic equipment
CN112531839A (en) * 2020-12-02 2021-03-19 深圳慧能泰半导体科技有限公司 USB cable control device with temperature limitation and method

Similar Documents

Publication Publication Date Title
US10778031B2 (en) Charger, terminal device, and charging system
US20200119568A1 (en) System and method for charging a battery pack
EP3093945B1 (en) Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device
US10658860B2 (en) Electronic device, charger within the electronic device, and detecting method for detecting abnormal status of connector of electronic device
CN105518967B (en) Apparatus and method for changing current limit
CN103545889B (en) USB charging system, charger, mobile terminal and charge control method
US20130080797A1 (en) Usb power supply method and device, and end device and system using the same
CN103299504B (en) Charging device
JP5005845B2 (en) Electronics
CN108347089B (en) Electric energy transmission controller, electric energy transmission system and electric energy transmission method
CN111463842A (en) Electronic equipment and communication method thereof
CN106164811A (en) USB cable
JP2009117317A (en) Mobile terminal, and charging system
CN109378877A (en) Charging circuit, charging method, electronic equipment and storage medium
CN101499670A (en) Control method of battery charging current and charging system
CN109245244A (en) Charging circuit, charging method, electronic equipment and storage medium
JP7401058B2 (en) Insulation resistance measurement circuit and diagnostic method
TW201526464A (en) Bi-directional charger
CN108155623A (en) A kind of terminal USB interface guard method, terminal and external equipment
CN109358548A (en) A kind of charging method of automotive diagnostic system, vehicle diagnosis and automotive diagnostic unit
CN105591356A (en) Overvoltage and undervoltage protection circuit
TWI492039B (en) Power management module and power supply apparatus
US8583946B2 (en) External device charging while notebook is off
CN109378868B (en) Electronic equipment power supply circuit and electronic equipment
CN102831920B (en) Power supply circuit and power supply 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180612