CN107482736B - A kind of method for preventing USB interface short circuit from burning and electronic equipment - Google Patents
A kind of method for preventing USB interface short circuit from burning and electronic equipment Download PDFInfo
- Publication number
- CN107482736B CN107482736B CN201710905153.4A CN201710905153A CN107482736B CN 107482736 B CN107482736 B CN 107482736B CN 201710905153 A CN201710905153 A CN 201710905153A CN 107482736 B CN107482736 B CN 107482736B
- Authority
- CN
- China
- Prior art keywords
- usb interface
- electronic equipment
- temperature
- power supply
- supply line
- 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
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
Abstract
The present invention provides a kind of method for preventing USB interface short circuit from burning and electronic equipment, this method comprises: during charging of the electronic device, whether the temperature for detecting the USB interface of the electronic equipment is higher than the first preset temperature;If detecting, the temperature of the USB interface is higher than first preset temperature, detects whether the received voltage signal of the electronic equipment is pulse voltage signal;If the voltage signal detected is the pulse voltage signal, the power supply line for controlling the USB interface is connected with ground terminal.In this way when short circuit occurs for USB interface, the power supply line by controlling USB interface is connected with ground terminal, the output power of charger can be effectively reduced, and then decline the heating efficiency of USB interface position, prevents USB interface short circuit from burning.
Description
Technical field
The present invention relates to fields of communication technology more particularly to a kind of method for preventing USB interface short circuit from burning and electronics to set
It is standby.
Background technique
USB (universal serial bus, Universal Serial Bus) interface of the electronic equipments such as mobile phone, application are very wide
It is general, it can not only be used to transmit data, can also be used to electron equipment charge.Common USB interface generally includes four lines,
Two are power supply lines, and two are data lines, and are followed successively by power supply line (Vbus), data line positive (D+), data line negative (D-) and ground
Line (GND).
Currently, the charging scheme for electronic equipments such as mobile phones is usually to be charged using the USB interface of electronic equipment.
However, since the USB interface of the electronic equipments such as mobile phone is chronically exposed in air, in use for some time, meeting in USB interface
Into impurity, such as conducting liquid, metal iron filings etc..In the charging process of electronic equipment, the conduction in USB interface is miscellaneous
Matter may be shorted the power supply line of USB interface and the metal-back of USB interface;And in the gold of the power supply line of USB interface and USB interface
Belong to during shell is shorted, charger can continuous output, USB interface can due to short circuit persistent fever, and then make electronics
The USB interface of equipment end is easy to burn.As it can be seen that there are short for the USB interface at electronic equipment end in the charging process of electronic equipment
The risk that road is burnt.
Summary of the invention
The embodiment of the present invention provides a kind of method for preventing USB interface short circuit from burning and electronic equipment, to solve in electronics
In the charging process of equipment, the USB interface at electronic equipment end has that easy short circuit is burnt.
In order to solve the above technical problems, the present invention is implemented as follows: a kind of method for preventing USB interface short circuit from burning,
Applied to electronic equipment, comprising:
During charging of the electronic device, whether the temperature for detecting the USB interface of the electronic equipment is higher than
One preset temperature;
If detecting, the temperature of the USB interface is higher than first preset temperature, detects the electronic equipment and receives
Voltage signal whether be pulse voltage signal;
If the voltage signal detected is the pulse voltage signal, control the power supply line of the USB interface with
Ground terminal conducting.
The embodiment of the invention also provides a kind of electronic equipment, comprising:
First detection module, for during charging of the electronic device, detecting the USB interface of the electronic equipment
Temperature whether be higher than the first preset temperature;
Second detection module, if being detected for detecting that the temperature of the USB interface is higher than first preset temperature
Whether the received voltage signal of electronic equipment is pulse voltage signal;
First control module, if the voltage signal for detecting is the pulse voltage signal, described in control
The power supply line of USB interface is connected with ground terminal.
The embodiment of the present invention also provides a kind of electronic equipment, including processor, memory and is stored on the memory
And the computer program that can be run on the processor, the computer program are realized above-mentioned anti-when being executed by the processor
The step of method that only USB interface short circuit is burnt.
The embodiment of the present invention also provides a kind of computer readable storage medium, stores on the computer readable storage medium
There is computer program, the computer program realizes the above-mentioned method for preventing USB interface short circuit from burning when being executed by processor
Step.
In embodiments of the present invention, by during charging of the electronic device, detecting the USB of the electronic equipment
Whether the temperature of interface is higher than the first preset temperature;If detecting, the temperature of the USB interface is higher than first preset temperature,
Then detect whether the received voltage signal of the electronic equipment is pulse voltage signal;If the voltage signal detected is institute
Pulse voltage signal is stated, then the power supply line for controlling the USB interface is connected with ground terminal.In this way when short circuit occurs for USB interface,
Power supply line by controlling USB interface is connected with ground terminal, the output power of charger can be effectively reduced, and then meet USB
The heating efficiency decline of mouth position, prevents USB interface short circuit from burning.
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 the flow chart for the method for preventing USB interface short circuit from burning that one embodiment of the invention provides;
Fig. 2 is the structure chart for the temperature sensing circuit that one embodiment of the invention provides;
Fig. 3 be another embodiment of the present invention provides the method for preventing USB interface short circuit from burning flow chart;
Fig. 4 be another embodiment of the present invention provides structural block diagram;
Fig. 5 is one of the structure chart of electronic equipment that one embodiment of the invention provides;
Fig. 6 is the two of the structure chart for the electronic equipment that one embodiment of the invention provides;
Fig. 7 is the three of the structure chart for the electronic equipment that one embodiment of the invention provides;
Fig. 8 be another embodiment of the present invention provides electronic equipment structure chart;
Fig. 9 is the structure chart for the electronic equipment that further embodiment of this invention provides.
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.
In the charging process of electronic equipment, when in USB interface there are when conducting liquid or metal iron filings, USB interface
Power supply line and the metal-back of USB interface short circuit phenomenon may occur, and then USB interface is caused to generate heat.
It is the flow chart for the method for preventing USB interface short circuit from burning that one embodiment of the invention provides referring to Fig. 1, Fig. 1, such as
Shown in Fig. 1, comprising the following steps:
Step 101, during charging of the electronic device, the temperature for detecting the USB interface of the electronic equipment is
It is no to be higher than the first preset temperature.
In the step, in the charging process of electronic equipment, can by be set to electronic equipment in temperature detecting module,
The temperature of USB interface is measured in real time.When the temperature for detecting USB interface is higher than the first preset temperature, illustrate that USB connects
Short circuit phenomenon has occurred in the power supply line of mouth and the metal-back of USB interface, and then causes the temperature of USB interface excessively high, and execute step
Rapid 102.Wherein, the first preset temperature can be configured according to the characteristic of electronic equipment and the hobby of user, for example, first is pre-
If temperature can be set to 70 DEG C.
Wherein, temperature detecting module can be a temperature sensing circuit for being equipped with thermistor, and thermistor is close to USB
The position of interface is arranged, so as to the temperature of real-time detection USB interface.Wherein, the design of temperature sensing circuit, specifically such as Fig. 2 institute
Show, the first resistor R1 and thermistor R2 being arranged in series, and and thermistor are equipped between power end VCC and ground terminal
The second resistance R3 that R2 is arranged in parallel.
If step 102 detects that the temperature of the USB interface is higher than first preset temperature, the electronics is detected
Whether the received voltage signal of equipment is pulse voltage signal.
It, can be by being set to electronic equipment when the temperature for detecting USB interface is higher than the first preset temperature in the step
Whether the interior voltage sample module detection received voltage signal of electronic equipment is pulse voltage signal.By detecting electronic equipment
Whether received voltage signal is that the purpose of pulse voltage signal is, determines whether is charger that electron equipment charges
For the charger with hiccup function, that is, there is the charger of under-voltage protection;Because working as the power supply line and USB interface of USB interface
Metal-back when short circuit phenomenon has occurred, have hiccup function charger can voltage pulse output signal, without hiccup
The charger of function then exports stable low-voltage signal.
Wherein, when detecting the received voltage signal of electronic equipment is pulse voltage signal, illustrate to give the electronic equipment
The charger of charging is the charger with hiccup function, and executes step 103.
If step 103, the voltage signal detected are the pulse voltage signal, the USB interface is controlled
Power supply line is connected with ground terminal.
In the step, when detecting the received voltage signal of electronic equipment is pulse voltage signal, USB interface is controlled
Power supply line is connected with ground terminal, to reduce the output power of charger, and then declines the heating efficiency of USB interface position, rises
To the effect of protection USB interface.
For example, can by the way that the switch of a low impedance value is arranged between the power supply line and ground terminal of USB interface, switch
The connection of the power supply line of input terminal and USB interface, the output end of switch are connect with ground terminal.Wherein, the impedance value of the switch is lower than
The impedance value of USB interface generation location of short circuit.By closure switch, realize that the power supply line of USB interface is connected with ground terminal, it can be with
The output power of charger is effectively reduced, and then declines the heating efficiency of USB interface position, to play protection USB interface
Effect.
It should be noted that the impedance difference of power supply line over the ground can be led when short circuit occurs for the power supply line of USB interface
Cause the duty ratio of the pulse voltage signal of the charger output with hiccup function different, short-circuit impedance value is lower, pulse electricity
When amplitude is smaller for the duty of pressure signal.
Protection philosophy of the invention is as follows: after trigger protection, the power supply line for controlling USB interface is connected with ground terminal, by
In the impedance value very little that the power supply line of USB interface is connected with ground terminal, and it is less than the impedance value that location of short circuit occurs for USB interface,
Therefore when amplitude can further decrease the duty of the pulse voltage signal of the charger output of hiccup function, to make charger
Output power reduce;And after the output power of charger reduces, the heating efficiency of USB interface position can be made to decline, from
And play the purpose of protection USB interface.
In the embodiment of the present invention, above-mentioned electronic equipment can be it is any have a USB interface, and USB interface can be used to carry out
The electronic equipment of charging;Wherein, electronic equipment can be mobile phone, tablet computer (Tablet Personal Computer), knee
Laptop (Laptop Computer), moves at personal digital assistant (personal digital assistant, abbreviation PDA)
Dynamic Internet device (Mobile Internet Device, MID) or wearable device (Wearable Device) etc..
The method for preventing USB interface short circuit from burning of the embodiment of the present invention, passes through the charging process in the electronic equipment
In, whether the temperature for detecting the USB interface of the electronic equipment is higher than the first preset temperature;If detecting the USB interface
Temperature is higher than first preset temperature, then detects whether the received voltage signal of the electronic equipment is pulse voltage signal;
If the voltage signal detected is the pulse voltage signal, the power supply line and ground terminal for controlling the USB interface are led
It is logical.In this way when short circuit occurs for USB interface, the power supply line by controlling USB interface is connected with ground terminal, can be effectively reduced and fills
The output power of electric appliance, and then decline the heating efficiency of USB interface position, prevent USB interface short circuit from burning.
Referring to Fig. 3, Fig. 3 be another embodiment of the present invention provides the method for preventing USB interface short circuit from burning flow chart,
As shown in Figure 3, comprising the following steps:
Step 301, during charging of the electronic device, the temperature for detecting the USB interface of the electronic equipment is
It is no to be higher than the first preset temperature.
In the step, in the charging process of electronic equipment, can by be set to electronic equipment in temperature detecting module,
The temperature of USB interface is measured in real time.When the temperature for detecting USB interface is higher than the first preset temperature, illustrate that USB connects
Short circuit phenomenon has occurred in the power supply line of mouth and the metal-back of USB interface, and then causes the temperature of USB interface excessively high, and execute step
Rapid 202.
If step 302 detects that the temperature of the USB interface is higher than first preset temperature, the electronics is detected
Whether the received voltage signal of equipment is pulse voltage signal.
It, can be by being set to electronic equipment when the temperature for detecting USB interface is higher than the first preset temperature in the step
Whether the interior voltage sample module detection received voltage signal of electronic equipment is pulse voltage signal.When detecting electronic equipment
When received voltage signal is pulse voltage signal, illustrate that the charger to charge to the electronic equipment is filling with hiccup function
Electric appliance, and execute step 203.
If step 303, the voltage signal detected are the pulse voltage signal, the USB interface is controlled
Power supply line is connected with ground terminal.
In the step, when detecting the received voltage signal of electronic equipment is pulse voltage signal, USB interface is controlled
Power supply line is connected with ground terminal, to reduce the output power of charger, and then declines the heating efficiency of USB interface position, rises
To the effect of protection USB interface.
For example, can be by the way that a metal-oxide-semiconductor be arranged between the power supply line and ground terminal of USB interface, wherein the metal-oxide-semiconductor
For P-channel metal-oxide-semiconductor.It is specific as shown in figure 4, the source electrode of the metal-oxide-semiconductor is connect with the ground terminal, the drain electrode of the metal-oxide-semiconductor and
The power supply line (Vbus) of the USB connects, and the grid of metal-oxide-semiconductor is connect with control module, and control module is also connected with temperature detection mould
Block and voltage sample module.
It should be noted that metal-oxide-semiconductor is metal (Metal)-oxide (Oxide)-semiconductor (Semiconductor)
Field effect transistor, including grid, source electrode and drain electrode, and the source electrode and drain electrode of metal-oxide-semiconductor can exchange.Common metal-oxide-semiconductor includes N
The power input of channel and P-channel, N-channel MOS pipe is drain electrode, and output end is source electrode;The power input of P-channel metal-oxide-semiconductor
For source electrode, output end is drain electrode;Wherein, N-channel is depletion type MOS tube, and P-channel is low pressure metal-oxide-semiconductor.In the present embodiment,
Metal-oxide-semiconductor is preferably P-channel metal-oxide-semiconductor.
Temperature detecting module, for detecting the temperature of USB interface;Voltage sample module is received for detecting electronic equipment
Voltage signal;Control module, for controlling the conducting and disconnection of metal-oxide-semiconductor.
It is in the conductive state by control MOS, since the impedance value of metal-oxide-semiconductor is lower than the resistance that location of short circuit occurs for USB interface
Anti- value, therefore when amplitude can further decrease the duty of the pulse voltage signal of the charger output for function of having the hiccups, to make
The output power of charger reduces;And after the output power of charger reduces, under the heating efficiency that USB interface position can be made
Drop, and then play the purpose of protection USB interface.
Whether step 304, the temperature of the detection USB interface are lower than the second preset temperature, wherein the described second default temperature
Degree is lower than first preset temperature.
In the step, the first preset temperature is higher than the second preset temperature, and in order to preferably distinguish that the short circuit of USB interface is
Generally the ratio of the first preset temperature and the second preset temperature is arranged at 1.15 times or more for no releasing.
Wherein, the second preset temperature can be configured according to the characteristic of electronic equipment and the hobby of user, for example, second
Preset temperature can be set to 60 DEG C.
If step 305, the temperature for detecting the USB interface control the USB and connect lower than second preset temperature
The power supply line and the ground terminal of mouth disconnect.
In the step, when detecting the temperature of USB interface lower than the second preset temperature, the short circuit of USB interface is illustrated
Through releasing, disconnected by the power supply line and the ground terminal that control USB interface, and enter normal charging condition.
Optionally, after the step of power supply line of the control USB interface and the ground terminal disconnect, the method
If further include: it detects in preset duration, is connected between the power supply line of the USB interface and the ground terminal and what is disconnected cuts
It changes frequency and is higher than default switching frequency, then control the electronic equipment and the charger disconnects.
In present embodiment, when detecting in preset duration, on and off is led between the power supply line and ground terminal of USB interface
When the switching frequency opened is higher than default switching frequency, illustrate that charging in abnormality, needs to control charger in this case
It is disconnected with electronic equipment, and terminates to charge, in order to avoid damage electronic equipment.
Wherein, preset duration and predeterminated frequency can be set according to the characteristic of electronic equipment and the hobby of user.Than
Such as, the number for the switching frequency for being connected and disconnecting within ten minutes, between the power supply line and ground terminal of USB interface is greater than 20
It is secondary, illustrate that charging in abnormality, at this point, control charger and electronic equipment disconnect, and terminates to charge.
The method for preventing USB interface short circuit from burning of the embodiment of the present invention, passes through the charging process in the electronic equipment
In, whether the temperature for detecting the USB interface of the electronic equipment is higher than the first preset temperature;If detecting the USB interface
Temperature is higher than first preset temperature, then detects whether the received voltage signal of the electronic equipment is pulse voltage signal;
If the voltage signal detected is the pulse voltage signal, the power supply line and ground terminal for controlling the USB interface are led
It is logical;Whether the temperature for detecting the USB interface is lower than the second preset temperature, wherein second preset temperature is lower than described the
One preset temperature;If detecting, the temperature of the USB interface lower than second preset temperature, controls the USB interface
Power supply line and the ground terminal disconnect.In this way when short circuit occurs for USB interface, by the power supply line and the ground connection that control USB interface
End conducting, can be effectively reduced the output power of charger, and then decline the heating efficiency of USB interface position, prevents USB from connecing
Mouth short circuit is burnt.
It is the structure chart for the electronic equipment that one embodiment of the invention provides referring to Fig. 5, Fig. 5, as shown in figure 5, electronic equipment
500 include first detection module 501, the second detection module 502 and the first control module 503, wherein first detection module 501
It is connect with the second detection module 502, the second detection module 502 is also connect with the first control module 503:
First detection module 501, for during charging of the electronic device, detecting the USB of the electronic equipment
Whether the temperature of interface is higher than the first preset temperature;
Second detection module 502, if for detecting that the temperature of the USB interface is higher than first preset temperature,
Detect whether the received voltage signal of the electronic equipment is pulse voltage signal;
First control module 503 controls institute if the voltage signal for detecting is the pulse voltage signal
The power supply line for stating USB interface is connected with ground terminal.
Optionally, as shown in fig. 6, the electronic equipment 500 further include:
Whether third detection module 504, the temperature for detecting the USB interface are lower than the second preset temperature;Wherein, institute
The second preset temperature is stated lower than first preset temperature;
Second control module 505, if for detecting that the temperature of the USB interface is lower than second preset temperature,
The power supply line and the ground terminal for controlling the USB interface disconnect.
Optionally, the ratio of first preset temperature and second preset temperature is greater than 1.15.
Optionally, first control module 503, specifically for control be set to the USB interface power supply line with it is described
Metal-oxide-semiconductor between ground terminal is in the conductive state;Wherein, the metal-oxide-semiconductor be P-channel metal-oxide-semiconductor, and the source electrode of the metal-oxide-semiconductor with
The ground terminal connection, the drain electrode of the metal-oxide-semiconductor are connect with the power supply line of the USB.
Optionally, as shown in fig. 7, the electronic equipment 500 further include:
Third control module 506, if the power supply line of the USB interface connects with described for detecting in preset duration
The switching frequency for being connected and disconnecting between ground terminal is higher than default switching frequency, then controls the electronic equipment and the charger is disconnected
It opens.
Electronic equipment 500 can be realized each process that electronic equipment is realized in the embodiment of the method for Fig. 1 to Fig. 4, to keep away
Exempt to repeat, which is not described herein again.
The electronic equipment 500 of the embodiment of the present invention, by during charging of the electronic device, detecting the electronics
Whether the temperature of the USB interface of equipment is higher than the first preset temperature;If detecting, the temperature of the USB interface is higher than described first
Preset temperature then detects whether the received voltage signal of the electronic equipment is pulse voltage signal;If the electricity detected
Pressure signal is the pulse voltage signal, then the power supply line for controlling the USB interface is connected with ground terminal.Work as USB interface in this way
When short circuit occurs, the power supply line by controlling USB interface is connected with ground terminal, and the output power of charger can be effectively reduced,
And then decline the heating efficiency of USB interface position, prevent USB interface short circuit from burning.
The embodiment of the present invention also provides a kind of electronic equipment, including processor, and memory is stored on the memory simultaneously
The computer program that can be run on the processor, the computer program realize above-mentioned prevent when being executed by the processor
The each process for the embodiment of the method that USB interface short circuit is burnt, and identical technical effect can be reached, to avoid repeating, here
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize the above-mentioned embodiment of the method for preventing USB interface short circuit from burning when being executed by processor
Each process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer can
Storage medium is read, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random
Access Memory, abbreviation RAM), magnetic or disk etc..
Fig. 8 is the structure chart of another electronic equipment for implementing to provide of the present invention, as shown in figure 8, electronic equipment 800 includes:
At least one processor 801, memory 802, at least one network interface 804 and user interface 803.In electronic equipment 800
Various components are coupled by bus system 805.It is understood that bus system 805 is for realizing the company between these components
Connect letter.Bus system 805 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But
It is that various buses are all designated as bus system 805 in fig. 8 for the sake of clear explanation.
Wherein, user interface 803 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synch Link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 802 of system and method described herein is intended to include but is not limited to these and arbitrarily its
It is suitble to the memory of type.
In some embodiments, memory 802 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 8021 and application program 8022.
Wherein, operating system 8021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 8022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 8022.
In embodiments of the present invention, electronic equipment 800 further include: be stored on memory 802 and can be on processor 801
The computer program of operation specifically can be the computer program in application program 8022, computer program is by processor
801 realize following steps when executing: during charging of the electronic device, detecting the USB interface of the electronic equipment
Whether temperature is higher than the first preset temperature;If detecting, the temperature of the USB interface is higher than first preset temperature, detects
Whether the received voltage signal of electronic equipment is pulse voltage signal;If the voltage signal detected is the pulse
Voltage signal, the then power supply line for controlling the USB interface are connected with ground terminal.
The method that the embodiments of the present invention disclose can be applied in processor 801, or be realized by processor 801.
Processor 801 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing
Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.This is computer-readable to deposit
Storage media is located at memory 802, and processor 801 reads the information in memory 802, and the step of the above method is completed in conjunction with its hardware
Suddenly.Specifically, computer program is stored on the computer readable storage medium, when computer program is executed by processor 801
Realize each step such as above-mentioned session information input method embodiment.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, the processor 801 is also used to: whether the temperature for detecting the USB interface is lower than the second preset temperature;
Wherein, second preset temperature is lower than first preset temperature;If detecting the temperature of the USB interface lower than described the
Two preset temperatures, the then power supply line and the ground terminal for controlling the USB interface disconnect.
Optionally, the ratio of first preset temperature and second preset temperature is greater than 1.15.
Optionally, the processor 801 is also used to: control be set to the USB interface power supply line and the ground terminal it
Between metal-oxide-semiconductor it is in the conductive state;Wherein, the metal-oxide-semiconductor is P-channel metal-oxide-semiconductor, and the source electrode of the metal-oxide-semiconductor and the ground connection
End connection, the drain electrode of the metal-oxide-semiconductor are connect with the power supply line of the USB.
Optionally, the processor 801 is also used to: if detecting in preset duration, the power supply line of the USB interface with
The switching frequency for being connected and disconnecting between the ground terminal is higher than default switching frequency, then controls the electronic equipment and fill with described
Electric appliance disconnects.
Electronic equipment 800 can be realized each process that electronic equipment is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The electronic equipment 800 of the embodiment of the present invention, by during charging of the electronic device, detecting the electronics
Whether the temperature of the USB interface of equipment is higher than the first preset temperature;If detecting, the temperature of the USB interface is higher than described first
Preset temperature then detects whether the received voltage signal of the electronic equipment is pulse voltage signal;If the electricity detected
Pressure signal is the pulse voltage signal, then the power supply line for controlling the USB interface is connected with ground terminal.Work as USB interface in this way
When short circuit occurs, the power supply line by controlling USB interface is connected with ground terminal, and the output power of charger can be effectively reduced,
And then decline the heating efficiency of USB interface position, prevent USB interface short circuit from burning.
Fig. 9 is the structural schematic diagram of the electronic equipment of further embodiment of this invention.Specifically, the electronic equipment 900 in Fig. 9
It can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer
Deng.
Electronic equipment 900 in Fig. 9 includes radio frequency (Radio Frequency, RF) circuit 910, memory 920, input
Unit 930, display unit 940, processor 950, voicefrequency circuit 960, communication module 970 and power supply 980.
Wherein, input unit 930 can be used for receiving the number or character information of user's input, and generation and electronic equipment
The related signal input of 900 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 931.Touch panel 931, 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 931 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 931 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 950 is given again, and can be received order that processor 950 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 931.In addition to touch panel 931, input unit
930 can also include other input equipments 932, other input equipments 932 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 940 can be used for showing information input by user or be supplied to the information and electronics of user
The various menu interfaces of equipment 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that touch panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 950 is sent to determine the type of touch event, is followed by subsequent processing device
950 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 950 is the control centre of electronic equipment 900, 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 921, and calling storage
Data in second memory 922 execute the various functions and processing data of electronic equipment 900, thus to electronic equipment 900
Carry out integral monitoring.Optionally, processor 950 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/
Or the data in the second memory 922, processor 950 are used for: during charging of the electronic device, detecting the electricity
Whether the temperature of the USB interface of sub- equipment is higher than the first preset temperature;If detecting, the temperature of the USB interface is higher than described the
One preset temperature then detects whether the received voltage signal of the electronic equipment is pulse voltage signal;If what is detected is described
Voltage signal is the pulse voltage signal, then the power supply line for controlling the USB interface is connected with ground terminal.
Optionally, the processor 950 is also used to: whether the temperature for detecting the USB interface is lower than the second preset temperature;
Wherein, second preset temperature is lower than first preset temperature;If detecting the temperature of the USB interface lower than described the
Two preset temperatures, the then power supply line and the ground terminal for controlling the USB interface disconnect.
Optionally, the ratio of first preset temperature and second preset temperature is greater than 1.15.
Optionally, the processor 950 is also used to: control be set to the USB interface power supply line and the ground terminal it
Between metal-oxide-semiconductor it is in the conductive state;Wherein, the metal-oxide-semiconductor is P-channel metal-oxide-semiconductor, and the source electrode of the metal-oxide-semiconductor and the ground connection
End connection, the drain electrode of the metal-oxide-semiconductor are connect with the power supply line of the USB.
Optionally, the processor 950 is also used to: if detecting in preset duration, the power supply line of the USB interface with
The switching frequency for being connected and disconnecting between the ground terminal is higher than default switching frequency, then controls the electronic equipment and fill with described
Electric appliance disconnects.
Electronic equipment 900 can be realized each process that electronic equipment is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The electronic equipment 900 of the embodiment of the present invention, by during charging of the electronic device, detecting the electronics
Whether the temperature of the USB interface of equipment is higher than the first preset temperature;If detecting, the temperature of the USB interface is higher than described first
Preset temperature then detects whether the received voltage signal of the electronic equipment is pulse voltage signal;If the electricity detected
Pressure signal is the pulse voltage signal, then the power supply line for controlling the USB interface is connected with ground terminal.Work as USB interface in this way
When short circuit occurs, the power supply line by controlling USB interface is connected with ground terminal, and the output power of charger can be effectively reduced,
And then decline the heating efficiency of USB interface position, prevent USB interface short circuit from burning.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs
Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (12)
1. a kind of method for preventing general-purpose serial bus USB interface short circuit from burning is applied to electronic equipment, which is characterized in that packet
It includes:
During charging of the electronic device, whether the temperature for detecting the USB interface of the electronic equipment is higher than first in advance
If temperature;
If detecting, the temperature of the USB interface is higher than first preset temperature, detects the received electricity of the electronic equipment
Press whether signal is pulse voltage signal, the voltage signal is the electric signal of the charger output with under-voltage protection;
If the voltage signal detected is the pulse voltage signal, power supply line and the ground connection of the USB interface are controlled
End conducting.
2. the method according to claim 1, wherein the power supply line and ground terminal of the control USB interface
After the step of conducting, the method also includes:
Whether the temperature for detecting the USB interface is lower than the second preset temperature;Wherein, second preset temperature is lower than described the
One preset temperature;
If detecting the temperature of the USB interface lower than second preset temperature, control the power supply line of the USB interface with
The ground terminal disconnects.
3. according to the method described in claim 2, it is characterized in that, first preset temperature and second preset temperature
Ratio is greater than 1.15.
4. according to the method in any one of claims 1 to 3, which is characterized in that the power supply of the control USB interface
The step of line is connected with ground terminal, comprising:
The metal-oxide-semiconductor that control is set between the power supply line and the ground terminal of the USB interface is in the conductive state;Wherein, described
Metal-oxide-semiconductor is P-channel metal-oxide-semiconductor, and the source electrode of the metal-oxide-semiconductor is connect with the ground terminal, the drain electrode of the metal-oxide-semiconductor and the USB
Power supply line connection.
5. according to the method in claim 2 or 3, which is characterized in that the power supply line of the control USB interface with it is described
After the step of ground terminal disconnects, the method also includes:
The switching for being connected and disconnecting if detecting in preset duration, between the power supply line of the USB interface and the ground terminal
Frequency is higher than default switching frequency, then controls the electronic equipment and the charger disconnects.
6. a kind of electronic equipment characterized by comprising
First detection module, for during charging of the electronic device, detecting the temperature of the USB interface of the electronic equipment
Whether degree is higher than the first preset temperature;
Second detection module, if for detect the USB interface temperature be higher than first preset temperature, detection described in
Whether the received voltage signal of electronic equipment is pulse voltage signal, and the voltage signal is that the charger with under-voltage protection is defeated
Electric signal out;
First control module controls the USB and connects if the voltage signal for detecting is the pulse voltage signal
The power supply line of mouth is connected with ground terminal.
7. electronic equipment according to claim 6, which is characterized in that the electronic equipment further include:
Whether third detection module, the temperature for detecting the USB interface are lower than the second preset temperature;Wherein, described second
Preset temperature is lower than first preset temperature;
Second control module, if for detecting the temperature of the USB interface lower than second preset temperature, described in control
The power supply line of USB interface and the ground terminal disconnect.
8. electronic equipment according to claim 7, which is characterized in that first preset temperature and the described second default temperature
The ratio of degree is greater than 1.15.
9. the electronic equipment according to any one of claim 6 to 8, which is characterized in that first control module, specifically
It is in the conductive state for controlling the metal-oxide-semiconductor being set between the power supply line and the ground terminal of the USB interface;Wherein, described
Metal-oxide-semiconductor is P-channel metal-oxide-semiconductor, and the source electrode of the metal-oxide-semiconductor is connect with the ground terminal, the drain electrode of the metal-oxide-semiconductor and the USB
Power supply line connection.
10. electronic equipment according to claim 7 or 8, which is characterized in that the electronic equipment further include:
Third control module, if for detecting in preset duration, between the power supply line of the USB interface and the ground terminal
Switching frequency between conducting and disconnection is higher than default switching frequency, then controls the electronic equipment and the charger disconnects.
11. a kind of electronic equipment, it is in feature, including processor, memory and is stored on the memory and can be
The computer program run on the processor realizes such as claim 1 when the computer program is executed by the processor
The step of to the method for preventing USB interface short circuit from burning described in any one of 5.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, realizing when the computer program is executed by processor prevents USB interface as described in any one of claims 1 to 5
The step of method that short circuit is burnt.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710905153.4A CN107482736B (en) | 2017-09-29 | 2017-09-29 | A kind of method for preventing USB interface short circuit from burning and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710905153.4A CN107482736B (en) | 2017-09-29 | 2017-09-29 | A kind of method for preventing USB interface short circuit from burning and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107482736A CN107482736A (en) | 2017-12-15 |
CN107482736B true CN107482736B (en) | 2019-04-09 |
Family
ID=60605574
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710905153.4A Active CN107482736B (en) | 2017-09-29 | 2017-09-29 | A kind of method for preventing USB interface short circuit from burning and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107482736B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108155623A (en) * | 2018-01-22 | 2018-06-12 | 华勤通讯技术有限公司 | A kind of terminal USB interface guard method, terminal and external equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104767260A (en) * | 2015-03-30 | 2015-07-08 | 华为技术有限公司 | Charger, terminal device and charging system |
CN104866451A (en) * | 2015-05-11 | 2015-08-26 | 联想(北京)有限公司 | Electronic device, information processing method and control circuit |
CN105471008A (en) * | 2014-09-03 | 2016-04-06 | 联想(北京)有限公司 | Information processing method, first electronic equipment and second electronic equipment |
CN106253373A (en) * | 2016-07-29 | 2016-12-21 | 维沃移动通信有限公司 | A kind of charging system and method |
CN106961137A (en) * | 2017-03-29 | 2017-07-18 | 维沃移动通信有限公司 | A kind of charging port structure and charging method |
-
2017
- 2017-09-29 CN CN201710905153.4A patent/CN107482736B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105471008A (en) * | 2014-09-03 | 2016-04-06 | 联想(北京)有限公司 | Information processing method, first electronic equipment and second electronic equipment |
CN104767260A (en) * | 2015-03-30 | 2015-07-08 | 华为技术有限公司 | Charger, terminal device and charging system |
CN104866451A (en) * | 2015-05-11 | 2015-08-26 | 联想(北京)有限公司 | Electronic device, information processing method and control circuit |
CN106253373A (en) * | 2016-07-29 | 2016-12-21 | 维沃移动通信有限公司 | A kind of charging system and method |
CN106961137A (en) * | 2017-03-29 | 2017-07-18 | 维沃移动通信有限公司 | A kind of charging port structure and charging method |
Also Published As
Publication number | Publication date |
---|---|
CN107482736A (en) | 2017-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106844265B (en) | A kind of control method and mobile terminal of general-purpose serial bus USB interface | |
CN108347068B (en) | A kind of method and mobile terminal of charging | |
CN105958588B (en) | A kind of charging method and mobile terminal | |
CN106648857B (en) | A kind of open method and mobile terminal of the OTG function of mobile terminal | |
CN108536055B (en) | A kind of mobile terminal and detection method | |
CN108268389A (en) | The insertion detection method and mobile terminal of a kind of equipment | |
CN108268388A (en) | A kind of Type-C interface protective circuits and method, mobile terminal | |
CN105930089B (en) | A kind of method and mobile terminal switching mobile terminal display interface | |
CN107071264A (en) | A kind of image resolution ratio method of adjustment and mobile terminal | |
CN107045295B (en) | A kind of control method and mobile terminal of mobile terminal | |
CN106981904A (en) | The method and charge-discharge control system of a kind of charge and discharge control | |
CN108268403A (en) | A kind of Type-C interface protective circuits and method, mobile terminal | |
CN105811543A (en) | Electric quantity display method of mobile power source, mobile terminal and mobile power source | |
CN106557136A (en) | Temperature-controlled process and mobile terminal during a kind of charging | |
CN107482736B (en) | A kind of method for preventing USB interface short circuit from burning and electronic equipment | |
CN107465234B (en) | A kind of charge control method, mobile terminal and adapter | |
CN106685016B (en) | A kind of charging unit and control method | |
CN108347070A (en) | A kind of method and mobile terminal, charging equipment of charging | |
CN108268402A (en) | Protection circuit, guard method and the mobile terminal of Type-C interfaces | |
CN108268405A (en) | Protection circuit, guard method and the mobile terminal of Type-C interfaces | |
CN108270253A (en) | A kind of charging method and mobile terminal | |
CN106684967B (en) | A kind of charging method and mobile terminal of mobile terminal | |
CN106878551A (en) | A kind of power switch method and mobile terminal | |
CN106992571B (en) | Half volt circuit guard method of one kind and mobile terminal | |
CN108268090A (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 |