[go: up one dir, main page]

CN109962507A - Charge port short-circuit protection method and device - Google Patents

Charge port short-circuit protection method and device Download PDF

Info

Publication number
CN109962507A
CN109962507A CN201711407622.6A CN201711407622A CN109962507A CN 109962507 A CN109962507 A CN 109962507A CN 201711407622 A CN201711407622 A CN 201711407622A CN 109962507 A CN109962507 A CN 109962507A
Authority
CN
China
Prior art keywords
electronic equipment
charging
equipment
charge port
data pin
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.)
Withdrawn
Application number
CN201711407622.6A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711407622.6A priority Critical patent/CN109962507A/en
Publication of CN109962507A publication Critical patent/CN109962507A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/00304Overcurrent protection

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The disclosure is directed to a kind of charge port short-circuit protection method and devices, belong to electronic technology field.The described method includes: detecting between the pressure-wire and ground wire of the electronic equipment being carried out in charging process using charging equipment to the electronic equipment with the presence or absence of electric current;If determining that short circuit occurs for the charge port of the electronic equipment there are electric current between the pressure-wire and ground wire of the electronic equipment;Predetermined level is set by the data pin of the electronic equipment, the predetermined level is used to indicate charging of the charging equipment stopping to the electronic equipment.The embodiment of the present disclosure passes through the VBUS pin to electronic equipment and the current detecting between GND pin, to detect whether the charge port of electronic equipment occurs short circuit, so as to when short circuit occurs, stop charging of the charging equipment to electronic equipment in time, safety is substantially increased, the loss of property is avoided.

Description

Charge port short-circuit protection method and device
Technical field
This disclosure relates to electronic technology field more particularly to a kind of charge port short-circuit protection method and device.
Background technique
With the development of electronic technology, quick charge has become generally needing for masses.However, what quick charge needed Charging current is larger, and this biggish charging current also brings some problems.For example, being moved presently, there are such some cases USB (Universal Serial Bus, universal serial bus) charge port of dynamic equipment has foreign matter and enters or may be More used in moist environment.If in these cases, the pollution of foreign matter or the environment of humidity will cause charge port Short circuit, charging current can form current loop between charger and charge port, and when electric current is larger, the charge port of short circuit can be big Amount fever, if user has found not in time, gently if burn out mobile phone, it is heavy then cause to catch fire.Such case leverages movement and sets Standby safety.It would therefore be highly desirable to propose a kind of short-circuit protection scheme of charge port.
Summary of the invention
The disclosure provides a kind of method and device, electronic equipment, to solve deficiency in the related technology.
According to the first aspect of the embodiments of the present disclosure, a kind of charge port short-circuit protection method is provided, electronic equipment is applied to, The described method includes:
Using charging equipment to the electronic equipment carry out charging process in, detect the electronic equipment pressure-wire and It whether there is electric current between ground wire;
If there are electric currents between the pressure-wire and ground wire of the electronic equipment, the charge port hair of the electronic equipment is determined Raw short circuit;
Predetermined level is set by the data pin of the electronic equipment, the predetermined level is used to indicate the charging and sets The standby charging stopped to the electronic equipment.
The embodiment of the present disclosure is by the VBUS pin to electronic equipment and the current detecting between GND pin, to detect electricity Whether the charge port of sub- equipment occurs short circuit, so as to when short circuit occurs, stop charging equipment in time to electronic equipment Charging, substantially increases safety, avoids the loss of property.Further, it is set by using by the level of data pin The situation to notify charging equipment charging circuit short circuit is set, timeliness is stronger, and not will increase actual hardware, need to only locate Reason device level can be judged according to detected level conditions, reduce actual cost.
In a kind of possible implementation, the charging equipment is charger.
In a kind of possible implementation, the data pin by the electronic equipment is set as predetermined level and includes:
The first level is set by the anode of the data pin, sets the second electricity for the cathode of the data pin It is flat.
In a kind of possible implementation, first level is 3.3 volts, and the second electrical level is 0.6 volt.
According to the second aspect of an embodiment of the present disclosure, a kind of charge port short-circuit protection method is provided, charging equipment is applied to, The described method includes:
The electronic equipment is being carried out in charging process using charging equipment, the data for detecting the electronic equipment are drawn Foot;
If the data pin variation for detecting the electronic equipment is predetermined level, stop to the electronic equipment Charging.
The embodiment of the present disclosure is by the VBUS pin to electronic equipment and the current detecting between GND pin, to detect electricity Whether the charge port of sub- equipment occurs short circuit, so as to when short circuit occurs, stop charging equipment in time to electronic equipment Charging, substantially increases safety, avoids the loss of property.Further, it is set by using by the level of data pin The situation to notify charging equipment charging circuit short circuit is set, timeliness is stronger, and not will increase actual hardware, need to only locate Reason device level can be judged according to detected level conditions, reduce actual cost.
According to the third aspect of an embodiment of the present disclosure, a kind of charge port short-circuit protection is provided, electronic equipment is applied to, Described device includes:
Detection module, for carrying out detecting the electronics in charging process to the electronic equipment using charging equipment It whether there is electric current between the pressure-wire and ground wire of equipment;
Determining module, if determining the electronics for there are electric currents between the pressure-wire and ground wire of the electronic equipment Short circuit occurs for the charge port of equipment;
Setup module, for setting predetermined level for the data pin of the electronic equipment, the predetermined level is used for Indicate that the charging equipment stops the charging to the electronic equipment.
The embodiment of the present disclosure is by the VBUS pin to electronic equipment and the current detecting between GND pin, to detect electricity Whether the charge port of sub- equipment occurs short circuit, so as to when short circuit occurs, stop charging equipment in time to electronic equipment Charging, substantially increases safety, avoids the loss of property.Further, it is set by using by the level of data pin The situation to notify charging equipment charging circuit short circuit is set, timeliness is stronger, and not will increase actual hardware, need to only locate Reason device level can be judged according to detected level conditions, reduce actual cost.
In a kind of possible implementation, the charging equipment is charger.
In a kind of possible implementation, the setup module is used to set the anode of the data pin to the first electricity It is flat, second electrical level is set by the cathode of the data pin.
In a kind of possible implementation, first level is 3.3 volts, and the second electrical level is 0.6 volt.
According to a fourth aspect of embodiments of the present disclosure, a kind of charge port short-circuit protection is provided, charging equipment is applied to, Described device includes:
Detection module, for carrying out detecting the electronics in charging process to the electronic equipment using charging equipment The data pin of equipment;
Processing module, if being predetermined level, stopping pair for detecting that the data pin of the electronic equipment changes The charging of the electronic equipment.
The embodiment of the present disclosure is by the VBUS pin to electronic equipment and the current detecting between GND pin, to detect electricity Whether the charge port of sub- equipment occurs short circuit, so as to when short circuit occurs, stop charging equipment in time to electronic equipment Charging, substantially increases safety, avoids the loss of property.Further, it is set by using by the level of data pin The situation to notify charging equipment charging circuit short circuit is set, timeliness is stronger, and not will increase actual hardware, need to only locate Reason device level can be judged according to detected level conditions, reduce actual cost.
According to a fifth aspect of the embodiments of the present disclosure, a kind of charge port short-circuit protection is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Using charging equipment to the electronic equipment carry out charging process in, detect the electronic equipment pressure-wire and It whether there is electric current between ground wire;
If there are electric currents between the pressure-wire and ground wire of the electronic equipment, the charge port hair of the electronic equipment is determined Raw short circuit;
Predetermined level is set by the data pin of the electronic equipment, the predetermined level is used to indicate the charging and sets The standby charging stopped to the electronic equipment.
The embodiment of the present disclosure is by the VBUS pin to electronic equipment and the current detecting between GND pin, to detect electricity Whether the charge port of sub- equipment occurs short circuit, so as to when short circuit occurs, stop charging equipment in time to electronic equipment Charging, substantially increases safety, avoids the loss of property.Further, it is set by using by the level of data pin The situation to notify charging equipment charging circuit short circuit is set, timeliness is stronger, and not will increase actual hardware, need to only locate Reason device level can be judged according to detected level conditions, reduce actual cost.
In a kind of possible implementation, the charging equipment is charger.
In a kind of possible implementation, the data pin by the electronic equipment is set as predetermined level and includes:
The first level is set by the anode of the data pin, sets the second electricity for the cathode of the data pin It is flat.
In a kind of possible implementation, first level is 3.3 volts, and the second electrical level is 0.6 volt.
According to a sixth aspect of an embodiment of the present disclosure, a kind of charge port short-circuit protection is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The electronic equipment is being carried out in charging process using charging equipment, the data for detecting the electronic equipment are drawn Foot;
If the data pin variation for detecting the electronic equipment is predetermined level, stop to the electronic equipment Charging.
The embodiment of the present disclosure is by the VBUS pin to electronic equipment and the current detecting between GND pin, to detect electricity Whether the charge port of sub- equipment occurs short circuit, so as to when short circuit occurs, stop charging equipment in time to electronic equipment Charging, substantially increases safety, avoids the loss of property.Further, it is set by using by the level of data pin The situation to notify charging equipment charging circuit short circuit is set, timeliness is stronger, and not will increase actual hardware, need to only locate Reason device level can be judged according to detected level conditions, reduce actual cost.
According to the 7th of the embodiment of the present disclosure the aspect, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine instruction, which is characterized in that the step in embodiment in terms of realizing the such as the above-mentioned 5th when the instruction is executed by processor.
According to the eighth aspect of the embodiment of the present disclosure, a kind of computer readable storage medium is provided, is stored thereon with calculating Machine instruction, which is characterized in that the step in embodiment in terms of realizing the such as the above-mentioned 6th when the instruction is executed by processor.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of charge port short-circuit protection method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of another charge port short-circuit protection method shown according to an exemplary embodiment.
Fig. 3 is the flow chart of another charge port short-circuit protection method shown according to an exemplary embodiment.
Fig. 4 is a kind of schematic diagram of charge current loop shown according to an exemplary embodiment.
Fig. 5 is the schematic diagram of another charge current loop shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of charge port short-circuit protection shown in an exemplary embodiment.
Fig. 7 is the block diagram of another charge port short-circuit protection shown in an exemplary embodiment.
Fig. 8 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Fig. 1 is a kind of flow chart of charge port short-circuit protection method shown according to an exemplary embodiment, such as Fig. 1 institute Show, this method is for including the following steps in electronic equipment.
In a step 101, the electronic equipment detect the electronics in charging process and set using charging equipment It whether there is electric current between standby pressure-wire and ground wire.
In a step 102, if there are electric current between the pressure-wire and ground wire of the electronic equipment, determine that the electronics is set Short circuit occurs for standby charge port.
In step 103, predetermined level is set by the data pin of the electronic equipment, the predetermined level is for referring to Show that the charging equipment stops the charging to the electronic equipment.
In a kind of possible implementation, the charging equipment is charger.
In a kind of possible implementation, the data pin by the electronic equipment is set as predetermined level and includes: The first level is set by the anode of the data pin, sets second electrical level for the cathode of the data pin.
In a kind of possible implementation, first level is 3.3 volts, and the second electrical level is 0.6 volt.
The embodiment of the present disclosure is by the VBUS pin to electronic equipment and the current detecting between GND pin, to detect electricity Whether the charge port of sub- equipment occurs short circuit, so as to when short circuit occurs, stop charging equipment in time to electronic equipment Charging, substantially increases safety, avoids the loss of property.
Fig. 2 is a kind of flow chart of charge port short-circuit protection method shown according to an exemplary embodiment, applied to filling Electric equipment, which comprises
In step 201, the electronic equipment detect the electronics in charging process and set using charging equipment Standby data pin;
In step 202, if the data pin variation for detecting the electronic equipment is predetermined level, stop to institute State the charging of electronic equipment.
The embodiment of the present disclosure is by the VBUS pin to electronic equipment and the current detecting between GND pin, to detect electricity Whether the charge port of sub- equipment occurs short circuit, so as to when short circuit occurs, stop charging equipment in time to electronic equipment Charging, substantially increases safety, avoids the loss of property.
Fig. 3 is a kind of flow chart of charge port short-circuit protection method shown according to an exemplary embodiment, such as Fig. 3 institute Show, this method is for including the following steps in the charging process of electronic equipment and charging equipment.
In step 301, charging equipment and electronic equipment are attached, start charging process.
Charging equipment can be used to electronic equipment and provide the equipment of power supply, such as charger or portable mobile power supply There is USB interface Deng, this kind of charging equipment, can be attached by USB data line with electronic equipment, to be connect by USB Mouth and USB data line, provide charging current for electronic equipment.
It referring to fig. 4, can connection just like Fig. 4 when charging equipment and electronic equipment are attached by USB data line Relationship, the pressure-wire VBUS pin in the USB interface of charging equipment pass through in the USB interface of USB data line and electronic equipment Pressure-wire VBUS pin connects, and ground wire GND pin passes through the USB of USB data line and electronic equipment in the USB interface of charging equipment Ground wire GND pin connection in interface.
In step 302, the electronic equipment is being carried out in charging process using charging equipment, electronic equipment detects the electricity It whether there is electric current between the pressure-wire and ground wire of sub- equipment, if so, 303 are thened follow the steps, if it is not, then continuing to execute step Rapid 302 detection process.
It was recognized by the inventor that the electric current in charging process is from charging in the case where electronic equipment does not have any exception Pressure-wire VBUS pin in the USB interface of equipment flows to the pressure-wire in the USB interface of electronic equipment by USB data line VBUS pin, and connect by the ground wire GND pin in the USB interface of electronic equipment by the USB that USB data line flows to charging equipment Ground wire GND pin in mouthful forms current loop.Once and charge port short circuit occurs for electronic equipment, then is likely to result in such as Fig. 5 Situation that is to say that there is also electric currents between the pressure-wire VBUS pin and ground wire GND pin of electronic equipment side, therefore, can be with By detecting with the presence or absence of electric current between the pressure-wire of the electronic equipment and ground wire, to determine whether to have occurred charge port short circuit.
And if there are electric currents between the pressure-wire and ground wire of the electronic equipment, it may be a part of electricity of charging equipment Stream has flowed to ground wire by pressure-wire without flowing into electronic equipment, then at this point it is possible to be an actually-received according to electronic equipment Charging current current value and the current value of charging current that should export of charging equipment between difference set to detect electronics It whether there is electric current between standby pressure-wire and ground wire, for example, electronic equipment can detect reality by built-in galvanometer The current value of the charging current received, and judge between the current value of the charging current and the pre-set current value of charging equipment Whether difference is greater than preset threshold, if it is greater, then confirmly detect between the pressure-wire of electronic equipment and ground wire there are electric current, And electric current is not present if it is not greater, then determining.
It should be noted that in view of transmit and by that may occur when other electronic building bricks by data line Therefore certain current loss can set a preset threshold to be measured, once rather than the predetermined current of charging equipment Value is greater than the current value for the charging current that electronic equipment is an actually-received, it is assumed that there are electric currents between pressure-wire and ground wire. Certainly, the detection between the pressure-wire and ground wire with the presence or absence of electric current can also have other detection modes, and the embodiment of the present disclosure is not It is specifically limited.
It should be noted that the detection can be real-time detection, it is also possible to the detection carried out every predetermined period, this public affairs It opens embodiment and this is not construed as limiting.
In step 303, if there are electric current between the pressure-wire and ground wire of the electronic equipment, electronic equipment determines charging Short circuit occurs for mouth, sets the first level for the anode of the data pin, sets second for the cathode of the data pin Level.
In the embodiments of the present disclosure, electronic equipment and charger can support that the preset level about data pin is assisted View so that electronic equipment determine charge port occur short circuit when, can be according to the preset level agreement, to draw to the data of itself Foot carries out corresponding level setting, to notifying the situation of the short circuit to charger.It that is to say, above-mentioned steps 303 are actually It is the process for setting the data pin of the electronic equipment to predetermined level, the predetermined level is used to indicate the charging and sets The standby charging stopped to the electronic equipment.
For example, first level can be 3 to 3.5 volts, and second electrical level can be 0.5 to 0.7 volt, optionally, First level can be 3.3 volts, and second electrical level can be 0.6 volt.
In step 304, if charging equipment detects that the data pin variation of the electronic equipment is predetermined level, Stop the charging to the electronic equipment.
Charging equipment carries out in charging process to electronic equipment, can continue the data pin for detecting electronic equipment, work as inspection When to measure data pin variation be predetermined level, it is determined that it is short-circuit that charge port occurs for the electronic equipment, therefore can stop Only to the charging of electronic equipment.For example, when charging equipment detects the anode variation of the data pin of electronic equipment for the first electricity Flat, the cathode variation of the data pin is second electrical level, then stops the charging to electronic equipment.
The embodiment of the present disclosure is by the VBUS pin to electronic equipment and the current detecting between GND pin, to detect electricity Whether the charge port of sub- equipment occurs short circuit, so as to when short circuit occurs, stop charging equipment in time to electronic equipment Charging, substantially increases safety, avoids the loss of property.Further, it is set by using by the level of data pin The situation to notify charging equipment charging circuit short circuit is set, timeliness is stronger, and not will increase actual hardware, need to only locate Reason device level can be judged according to detected level conditions, reduce actual cost.
Fig. 6 is a kind of block diagram of charge port short-circuit protection shown in an exemplary embodiment.The device is applied to electricity Sub- equipment, described device include:
Detection module 601, for carrying out detecting the electricity in charging process to the electronic equipment using charging equipment It whether there is electric current between the pressure-wire and ground wire of sub- equipment;
Determining module 602, if determining the electricity for there are electric currents between the pressure-wire and ground wire of the electronic equipment Short circuit occurs for the charge port of sub- equipment;
Setup module 603, for setting predetermined level for the data pin of the electronic equipment, the predetermined level is used Stop the charging to the electronic equipment in the instruction charging equipment.
Wherein, the charging equipment is charger.
In a kind of possible implementation, the setup module is used to set the anode of the data pin to the first electricity It is flat, second electrical level is set by the cathode of the data pin.
In a kind of possible implementation, first level is 3 to 3.5 volts, and the second electrical level is 0.5 to 0.7 Volt.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 7 is a kind of block diagram of charge port short-circuit protection shown in an exemplary embodiment.The device is applied to fill Electric equipment, described device include:
Detection module 701, for carrying out detecting the electricity in charging process to the electronic equipment using charging equipment The data pin of sub- equipment;
Processing module 702 stops if being predetermined level for detecting that the data pin of the electronic equipment changes Charging to the electronic equipment.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 8 is the block diagram of a kind of electronic equipment 800 shown according to an exemplary embodiment.For example, electronic equipment 800 can To be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices are good for Body equipment, personal digital assistant etc..
Referring to Fig. 8, electronic equipment 800 may include following one or more components: processing component 802, memory 804, Power supply module 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, And communication component 816.
The integrated operation of the usual controlling electronic devices 800 of processing component 802, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing element 802 may include one or more processors 820 to hold Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more moulds Block, convenient for the interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, with Facilitate the interaction between multimedia component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown Example includes the instruction of any application or method for operating on electronic equipment 800, contact data, telephone directory number According to, message, picture, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or they Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, quick flashing Memory, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of electronic equipment 800.Electric power assembly 806 may include power supply pipe Reason system, one or more power supplys and other with for electronic equipment 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between the electronic equipment 800 and user. In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, Multimedia component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when electronic equipment 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone It is configured as receiving external audio signal.The received audio signal can be further stored in memory 804 or via logical Believe that component 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, for providing the state of various aspects for electronic equipment 800 Assessment.For example, sensor module 814 can detecte the state that opens/closes of equipment 800, the relative positioning of component, such as institute The display and keypad that component is electronic equipment 800 are stated, sensor module 814 can also detect electronic equipment 800 or electronics The position change of 800 1 components of equipment, the existence or non-existence that user contacts with electronic equipment 800,800 orientation of electronic equipment Or the temperature change of acceleration/deceleration and electronic equipment 800.Sensor module 814 may include proximity sensor, be configured to It detects the presence of nearby objects without any physical contact.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which can be with Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between electronic equipment 800 and other equipment. Electronic equipment 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.Show at one In example property embodiment, communication component 816 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, short to promote Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 800 can be by one or more application specific integrated circuit (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned charge port short-circuit protection Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of electronic equipment 800 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium is additionally provided, when the storage is situated between When instruction in matter is executed by the processor of electronic equipment, so that electronic equipment is able to carry out a kind of charge port short-circuit protection side Method.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (14)

1. a kind of charge port short-circuit protection method, which is characterized in that be applied to electronic equipment, which comprises
The electronic equipment is being carried out using charging equipment to detect the pressure-wire and ground wire of the electronic equipment in charging process Between whether there is electric current;
If it is short to determine that the charge port of the electronic equipment occurs there are electric current between the pressure-wire and ground wire of the electronic equipment Road;
Predetermined level is set by the data pin of the electronic equipment, the predetermined level is used to indicate the charging equipment and stops Only to the charging of the electronic equipment.
2. the method according to claim 1, wherein the charging equipment is charger.
3. the method according to claim 1, wherein the data pin by the electronic equipment is set as pre- If level includes:
The first level is set by the anode of the data pin, sets second electrical level for the cathode of the data pin.
4. described second is electric the method according to claim 1, wherein first level is 3 to 3.5 volts Put down is 0.5 to 0.7 volt.
5. a kind of charge port short-circuit protection method, which is characterized in that be applied to charging equipment, which comprises
The electronic equipment is being carried out using charging equipment to detect the data pin of the electronic equipment in charging process;
If the data pin variation for detecting the electronic equipment is predetermined level, the electronic equipment is filled in stopping Electricity.
6. a kind of charge port short-circuit protection, which is characterized in that be applied to electronic equipment, described device includes:
Detection module, for carrying out detecting the electronic equipment in charging process to the electronic equipment using charging equipment Pressure-wire and ground wire between whether there is electric current;
Determining module, if determining the electronic equipment for there are electric currents between the pressure-wire and ground wire of the electronic equipment Charge port occur short circuit;
Setup module, for setting predetermined level for the data pin of the electronic equipment, the predetermined level is used to indicate The charging equipment stops the charging to the electronic equipment.
7. device according to claim 6, which is characterized in that the charging equipment is charger.
8. device according to claim 6, which is characterized in that the setup module is used for the anode of the data pin It is set as the first level, sets second electrical level for the cathode of the data pin.
9. device according to claim 6, which is characterized in that first level is 3 to 3.5 volts, second electricity Put down is 0.5 to 0.7 volt.
10. a kind of charge port short-circuit protection, which is characterized in that be applied to charging equipment, described device includes:
Detection module, for carrying out detecting the electronic equipment in charging process to the electronic equipment using charging equipment Data pin;
Processing module stops if being predetermined level for detecting that the data pin of the electronic equipment changes to described The charging of electronic equipment.
11. a kind of charge port short-circuit protection characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to realizing such as method of any of claims 1-4.
12. a kind of charge port short-circuit protection characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to realizing method as claimed in claim 5.
13. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor It is realized when execution such as the step of any one of claim 1-4 the method.
14. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of method as claimed in claim 5 is realized when execution.
CN201711407622.6A 2017-12-22 2017-12-22 Charge port short-circuit protection method and device Withdrawn CN109962507A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711407622.6A CN109962507A (en) 2017-12-22 2017-12-22 Charge port short-circuit protection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711407622.6A CN109962507A (en) 2017-12-22 2017-12-22 Charge port short-circuit protection method and device

Publications (1)

Publication Number Publication Date
CN109962507A true CN109962507A (en) 2019-07-02

Family

ID=67019751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711407622.6A Withdrawn CN109962507A (en) 2017-12-22 2017-12-22 Charge port short-circuit protection method and device

Country Status (1)

Country Link
CN (1) CN109962507A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112798988A (en) * 2019-10-24 2021-05-14 北京小米移动软件有限公司 Detection circuit, detection method and device, and electronic equipment
CN112929485A (en) * 2019-12-06 2021-06-08 北京小米移动软件有限公司 Electronic device, interface module protection method, protection device and storage medium
CN113113960A (en) * 2020-01-09 2021-07-13 广东小天才科技有限公司 Short-circuit protection method in charging process and charger

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112798988A (en) * 2019-10-24 2021-05-14 北京小米移动软件有限公司 Detection circuit, detection method and device, and electronic equipment
CN112929485A (en) * 2019-12-06 2021-06-08 北京小米移动软件有限公司 Electronic device, interface module protection method, protection device and storage medium
CN112929485B (en) * 2019-12-06 2022-07-22 北京小米移动软件有限公司 Electronic device, interface module protection method, protection device and storage medium
CN113113960A (en) * 2020-01-09 2021-07-13 广东小天才科技有限公司 Short-circuit protection method in charging process and charger

Similar Documents

Publication Publication Date Title
CN105068958B (en) Method for handover control and device
CN104832446A (en) Method and device for controlling fan
CN106095636B (en) A kind of prompting continues the method, apparatus and mobile device of charging
CN106329635A (en) Terminal charging method and device
CN105554255B (en) Method of controlling operation thereof and device for terminal device
CN105162193A (en) Charging method and charging apparatus for terminal, and terminal
CN107681727B (en) Control method and device of electronic equipment
CN105530384A (en) Method and device for power reminding based on alarm clock
CN105068632A (en) Terminal charging method and device and terminal
CN105353901A (en) Method and apparatus for determining validity of touch operation
CN106230066A (en) Charge prompting method and apparatus
CN104243829A (en) Self-shooting method and self-shooting device
CN109962507A (en) Charge port short-circuit protection method and device
CN106654737B (en) The electrifying method and device of socket
CN106610476B (en) Test method, device and the terminal of charge and discharge process
CN105630655B (en) A kind of method and apparatus of prompt charging connection
CN105975038A (en) Prompt method and device of charging port detection result
CN106325575A (en) Touch response method and apparatus
CN105183309B (en) Method for handover control and device
EP3173912A1 (en) Method and apparatus for processing point-reporting of touchscreen
CN105204713A (en) Incoming call responding method and device
EP3614523A2 (en) Charging processing method and terminal device
CN106877451B (en) Charging port short-circuit protection method and device
CN109769191A (en) Audio output detection method and device, electronic equipment
CN104202470B (en) Terminal supplying power control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190702