CN106650512A - Method for protecting electronic equipment, and electronic equipment - Google Patents
Method for protecting electronic equipment, and electronic equipment Download PDFInfo
- Publication number
- CN106650512A CN106650512A CN201510459827.3A CN201510459827A CN106650512A CN 106650512 A CN106650512 A CN 106650512A CN 201510459827 A CN201510459827 A CN 201510459827A CN 106650512 A CN106650512 A CN 106650512A
- Authority
- CN
- China
- Prior art keywords
- pin
- electronic equipment
- usb interface
- usb
- voltage
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/81—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer by operating on the power supply, e.g. enabling or disabling power-on, sleep or resume operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/82—Protecting input, output or interconnection devices
- G06F21/85—Protecting input, output or interconnection devices interconnection devices, e.g. bus-connected or in-line devices
Abstract
The embodiment of the invention discloses a piece of electronic equipment which comprises a shell body, a USB interface and a control chip, wherein the USB interface is formed in the shell body; the control chip is disposed in the shell body and connected to an equipment identification pin in the USB interface; the control chip is used to detect a pin voltage of the equipment identification pin when the electronic equipment is connected to a USB power adapter via the USB interface; when the pin voltage satisfies a preset condition, electric connection between the USB interface and the USB power adapter will be cut off, so the electronic equipment could be protected. The embodiment of the invention also discloses a method for protecting the electronic equipment.
Description
Technical field
The present invention relates to electronic apparatus application field, more particularly to a kind of method and electronics of protection electronic equipment
Equipment.
Background technology
With the development of science and technology, increasing electronic equipment enters the life of people, such as, and intelligent hand
Machine, panel computer, notebook computer etc., the life that these electronic equipments give people is provided a great convenience.
At present, in existing USB (USB, Universal Serial Bus) power supply adaptor, USB
Equipment identification pin (ID Pin) is provided with interface, is completed by obtaining the magnitude of voltage of the ID Pin
Access identification between power supply adaptor and equipment.But, because long-time is using entering can USB interface
Dust, causes the impedance variations of interface internal pin, or even causes pin short circuit, so, may result in USB
The output voltage of interface is unstable or drastically raises, burning apparatus.
The content of the invention
In view of this, the embodiment of the present invention expects a kind of method and electronic equipment for providing protection electronic equipment,
To protect electronic equipment, Consumer's Experience is lifted.
To reach above-mentioned purpose, the technical scheme is that what is be achieved in that:
In a first aspect, the embodiment of the present invention provides a kind of electronic equipment, including:Housing;USB
USB interface, opens up on the housing;Control chip, is arranged in the housing, with the USB
Equipment identification pin connection in interface;Wherein, the control chip, for passing through when the electronic equipment
When the USB interface is connected with a USB Power Adapter, the pin electricity of the equipment identification pin is detected
Pressure, after it is determined that pin voltage satisfaction one is pre-conditioned, disconnects the USB interface and the USB
Power supply adaptor is electrically connected, protecting the electronic equipment.
Second aspect, the embodiment of the present invention also provides a kind of method of protection electronic equipment, is applied to an electronics
Equipment, the electronic equipment has a general-purpose serial bus USB interface;Methods described includes:When the electricity
When sub- equipment is connected by the USB interface with USB Power Adapter, detects and set in the USB interface
The pin voltage of standby identification pin;After it is determined that pin voltage satisfaction one is pre-conditioned, the USB is disconnected
Interface is electrically connected with the USB Power Adapter, to protect the electronic equipment.
Embodiments provide the method and electronic equipment of a kind of protection electronic equipment, the electronic equipment tool
There is a USB interface;So, when electronic equipment is connected by USB interface with USB Power Adapter,
First, the pin voltage of equipment identification pin in USB interface is detected, it is determined that pin voltage satisfaction one is pre-
If after condition, disconnection USB interface is electrically connected with USB Power Adapter, to protect electronic equipment.
That is, electronic equipment with USB Power Adapter by USB interface when being connected, according to identification pipe
Whether supervisor's voltage is taught normally judging electronic equipment with the presence or absence of the risk damaged, if so, then from dynamic circuit breaker
Being electrically connected between USB interface and USB Power Adapter is opened, thus, avoiding the defeated of USB interface
Go out voltage instability or drastically raise and damage electronic equipment, realize the protection to electronic equipment, there is provided good
Consumer's Experience.
Description of the drawings
Fig. 1 is the electronic devices structure schematic diagram in the embodiment of the present invention one, three, four and seven;
Fig. 2 is the method flow schematic diagram of the protection electronic equipment in the embodiment of the present invention one;
Fig. 3 is the electronic devices structure schematic diagram in the embodiment of the present invention two and five;
Fig. 4 is the method flow schematic diagram of the protection electronic equipment in the embodiment of the present invention two;
Fig. 5 is the annexation journey schematic diagram of the RC circuits in the embodiment of the present invention two and five and ID PIN;
Fig. 6 is the schematic diagram of the ID PIN pin voltages in the embodiment of the present invention two and five;
Fig. 7 is the method flow schematic diagram of the protection electronic equipment in the embodiment of the present invention three;
Fig. 8 is the structural representation of the electronic equipment in the embodiment of the present invention four;
Fig. 9 is the method flow schematic diagram of the protection electronic equipment in the embodiment of the present invention four;
Figure 10 is the method flow schematic diagram of the protection electronic equipment in the embodiment of the present invention five;
Figure 11 is the electronic devices structure schematic diagram in the embodiment of the present invention six.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, it is fully described by.
Embodiment one:
The present embodiment provides a kind of electronic equipment, can be smart mobile phone, panel computer, portable power source, number
The equipment that code-phase machine etc. can be charged by USB Power Adapter.So, it is shown in Figure 1, should
Electronic equipment includes:Housing 1;USB interface 2, is opened on housing 1, and the interface can pass through USB
Data wire is connected with the USB interface on USB Power Adapter, with electron equipment charge;Control chip
3, it is arranged in housing 1, it is connected with the ID PIN4 of USB interface 2;
Here, USB interface 2 can be the interface with 5 pins (PIN), or have
The interface of 8 PINs, certainly, the PIN number of the USB interface 2 can also be other, and the present invention is not
It is specifically limited.In a word, no matter USB interface 2 for several PINs interface, all with ID PIN4,
Control chip 3 is just connected with ID PIN4.In actual applications, ID PIN4 are used to recognize that electronic equipment is main
Equipment is still from equipment.
With reference to the embodiment of the present invention, above-mentioned control chip 3, for when electronic equipment by USB interface 2 with
When one USB Power Adapter connects, the pin voltage of ID PIN4 is detected, it is determined that pin voltage meets one
After pre-conditioned, disconnection USB interface 2 is electrically connected with USB Power Adapter, to protect electronics to set
It is standby.
With reference to above-mentioned electronic equipment, a kind of method of the protection electronic equipment provided the present embodiment is carried out
Describe in detail.
Shown in Figure 2, the method includes:
S201:When electronic equipment is connected by USB interface with USB Power Adapter, detection USB connects
Equipment recognizes the pin voltage of pin in mouthful;
Here, USB interface, other end insertion USB power source adaptation are inserted in USB data line one end by user
Device, so, electronic equipment is just connected by USB interface with USB Power Adapter, and connection here refers to
Be physical connection and be electrically connected.Now, control chip detects the pin voltage of ID PIN.
S202:After it is determined that pin voltage satisfaction one is pre-conditioned, disconnects USB interface and fit with USB power source
Orchestration is electrically connected, protecting electronic equipment.
Here, if USB interface normal work, the pin voltage of ID PIN be unsatisfactory for it is pre-conditioned,
Pin voltage such as ID PIN is preset value, that is to say, that or ID PIN ground connection, or vacantly, with
Master/slave arrangement is represented, and if USB interface non-normal working, the pin voltage of ID PIN meets pre-
If condition, such as the pin voltage of ID PIN may be other values.So, it is determined that pin voltage meets pre-
If condition, that is, pin voltage is determined not for after above-mentioned preset value, control chip controls USB interface power down,
Disconnection USB interface is electrically connected with USB Power Adapter, to protect electronic equipment.
Certainly, when USB interface non-normal working, except the pin voltage of ID PIN is not preset for above-mentioned
Outside value, it is also possible to other situations occur, the present invention is not specifically limited.
Thus, electronic equipment just can be according to the pin voltage of ID PIN, it is determined that whether current USB interface
Normal work, if it is not, being electrically connected between USB interface and USB Power Adapter is then disconnected automatically,
Avoid the output voltage shakiness of USB interface or drastically raise and damage electronic equipment, realization sets to electronics
Standby protection, there is provided good Consumer's Experience.
Embodiment two:
The present embodiment provides a kind of electronic equipment, can be smart mobile phone, panel computer, portable power source, number
The equipment that code-phase machine etc. can be charged by USB Power Adapter.So, it is shown in Figure 3, should
Electronic equipment includes:Housing 1;USB interface 2, is opened on housing 1, and the interface can pass through USB
Data wire is connected with the USB interface on USB Power Adapter, with electron equipment charge;Control chip
3, it is arranged in housing 1, it is connected with the ID PIN4 of USB interface 2;Phase shift RC circuits 5, a termination
Ground, the other end is connected with ID PIN4;
Here, USB interface 2 can be the interface with 5 pins (PIN), or have
The interface of 8 PINs, certainly, the PIN number of the USB interface 2 can also be other, and the present invention is not
It is specifically limited.In a word, no matter USB interface 2 for several PINs interface, all with ID PIN4,
Control chip 3 is just connected with ID PIN4.In actual applications, ID PIN4 are used to recognize that electronic equipment is main
Equipment is still from equipment.
With reference to the embodiment of the present invention, above-mentioned control chip 3, for when electronic equipment by USB interface 2 with
When one USB Power Adapter connects, the pin voltage of ID PIN4 is detected;By the change slope of pin voltage
It is compared with default change slope;When the change slope of pin voltage is different from default change slope, really
Determine pin voltage and meet pre-conditioned, now, disconnect the electricity of USB interface 2 and USB Power Adapter
Connection, to protect electronic equipment.
With reference to above-mentioned electronic equipment, a kind of method of the protection electronic equipment provided the present embodiment is carried out
Describe in detail.
Shown in Figure 4, the method includes:
S401:When electronic equipment is connected by USB interface with USB Power Adapter, detect and RC
The pin voltage of the ID PIN of circuit connection;
Here, USB interface, other end insertion USB power source adaptation are inserted in USB data line one end by user
Device, so, electronic equipment is just connected by USB interface with USB Power Adapter, and connection here refers to
Be physical connection and be electrically connected.Now, control chip detects the pin voltage of ID PIN.
Shown in Figure 5, RC circuits include resistance and electric capacity in parallel, wherein, resistance is ID PIN's
Identification resistance.RC circuit on one side is connected with ID PIN, other end ground connection.When USB interface normal work,
It is shown in solid in the voltage of ID PIN such as Fig. 6.
S402:The change slope of pin voltage is compared with default change slope;
Here, shown in Figure 5, RC circuits are connected with one end of ID PIN, other end ground connection.Work as USB
It is shown in solid in the pin voltage such as Fig. 6 of ID PIN during interface normal work.Control chip passes through S401
After the pin voltage of detection ID PIN, by its actual change slope and default change slope, that is, scheme
Slope shown in solid is compared in 6.
S403:When the change slope of pin voltage is different from default change slope, determine that pin voltage meets
It is pre-conditioned;
Here, pin voltage can be as shown in the dotted line in Fig. 6, and changing slope can be oblique more than default change
Rate, it is also possible to less than default change slope., whereas if the change slope of pin voltage and default slope phase
Together, then USB interface normal work is illustrated.
S202:It is determined that pin voltage meet it is pre-conditioned after, disconnect USB interface be adapted to USB power source
Device is electrically connected, protecting electronic equipment.
Here, control chip control USB interface power down, disconnects USB interface with USB Power Adapter
It is electrically connected, protects electronic equipment.
Thus, by connecting a simple RC parallel circuit on ID PIN, electronic equipment just being capable of root
According to the change slope of the pin voltage of ID PIN, determine USB interface whether normal work, if it is not, then from
Dynamic circuit breaker opens being electrically connected between USB interface and USB Power Adapter, it is to avoid the output of USB interface
Voltage instability is drastically raised and damages electronic equipment, realizes the protection to electronic equipment, there is provided good
Consumer's Experience.
Embodiment three:
The present embodiment provides a kind of electronic equipment, can be smart mobile phone, panel computer, portable power source, number
The equipment that code-phase machine etc. can be charged by USB Power Adapter.So, it is shown in Figure 1, should
Electronic equipment includes:Housing 1;USB interface 2, is opened on housing 1, and the interface can pass through USB
Data wire is connected with the USB interface on USB Power Adapter, with electron equipment charge;Control chip
3, it is arranged in housing 1, it is connected with the ID PIN4 of USB interface 2;
Here, USB interface 2 can be the interface with 5 pins (PIN), or have
The interface of 8 PINs, certainly, the PIN number of the USB interface 2 can also be other, and the present invention is not
It is specifically limited.In a word, no matter USB interface 2 for several PINs interface, all with ID PIN4,
Control chip 3 is just connected with ID PIN4.In actual applications, ID PIN4 are used to recognize that electronic equipment is main
Equipment is still from equipment.
With reference to the embodiment of the present invention, above-mentioned control chip 3, for when electronic equipment by USB interface 2 with
When one USB Power Adapter connects, the pin voltage of ID PIN4 is detected;When it is determined that pin voltage is beyond pre-
If during voltage range, determining that pin voltage meets pre-conditioned, disconnect USB interface 2 and fit with USB power source
Orchestration is electrically connected, protecting electronic equipment.
With reference to above-mentioned electronic equipment, a kind of method of the protection electronic equipment provided the present embodiment is carried out
Describe in detail.
Shown in Figure 7, the method includes:
S201:When electronic equipment is connected by USB interface with USB Power Adapter, detection USB connects
Equipment recognizes the pin voltage of pin in mouthful;
Here, USB interface, other end insertion USB power source adaptation are inserted in USB data line one end by user
Device, so, electronic equipment is just connected by USB interface with USB Power Adapter, and connection here refers to
Be physical connection and be electrically connected.Now, control chip detects the pin voltage of ID PIN.
S701:When it is determined that pin voltage exceeds predetermined voltage range, determine that pin voltage meets pre-conditioned;
Here, before dispatching from the factory, manufacturer or technical staff can be according to the parameters of USB interface for electronic equipment
Determine the safe voltage scope of USB interface.In the range of safe voltage, electronic equipment does not have damage wind
Danger.So, after electronic equipment detects the pin voltage of ID PIN by S201, the magnitude of voltage is judged
Whether predetermined voltage range, i.e. safe voltage scope are exceeded, if, it is determined that the pin voltage of ID PIN expires
Foot is pre-conditioned, otherwise, it is determined that the pin voltage of ID PIN is unsatisfactory for pre-conditioned.
S202:After it is determined that pin voltage satisfaction one is pre-conditioned, disconnects USB interface and fit with USB power source
Orchestration is electrically connected, protecting electronic equipment.
Here, if USB interface normal work, the pin voltage of ID PIN be unsatisfactory for it is pre-conditioned,
Pin voltage such as ID PIN is preset value, that is to say, that or ID PIN ground connection, or vacantly, with
Master/slave arrangement is represented, and if USB interface non-normal working, the pin voltage of ID PIN meets pre-
If condition, such as the pin voltage of ID PIN may be other values.So, it is determined that pin voltage meets pre-
If condition, that is, pin voltage is determined not for after above-mentioned preset value, control chip controls USB interface power down,
Disconnection USB interface is electrically connected with USB Power Adapter, to protect electronic equipment.
Certainly, when USB interface non-normal working, except the pin voltage of ID PIN is not preset for above-mentioned
Outside value, it is also possible to other situations occur, the present invention is not specifically limited.
Thus, electronic equipment just can be according to the pin voltage of ID PIN, it is determined that whether current USB interface
Normal work, if it is not, being electrically connected between USB interface and USB Power Adapter is then disconnected automatically,
Avoid the output voltage shakiness of USB interface or drastically raise and damage electronic equipment, realization sets to electronics
Standby protection, there is provided good Consumer's Experience
Example IV:
The present embodiment provides a kind of electronic equipment, can be smart mobile phone, panel computer, portable power source, number
The equipment that code-phase machine etc. can be charged by USB Power Adapter.So, it is shown in Figure 8, should
Electronic equipment includes:Housing 1;USB interface 2, is opened on housing 1, and the interface can pass through USB
Data wire is connected with the USB interface on USB Power Adapter, with electron equipment charge;Control chip
3, it is arranged in housing 1, it is connected with the ID PIN4 of USB interface 2;Output precision 6, such as display screen,
Indicator lamp, loudspeaker etc., for exporting prompting message, to point out user;
Here, USB interface 2 can be the interface with 5 pins (PIN), or have
The interface of 8 PINs, certainly, the PIN number of the USB interface 2 can also be other, and the present invention is not
It is specifically limited.In a word, no matter USB interface 2 for several PINs interface, all with ID PIN4,
Control chip 3 is just connected with ID PIN4.In actual applications, ID PIN4 are used to recognize that electronic equipment is main
Equipment is still from equipment.
With reference to the embodiment of the present invention, above-mentioned control chip 3, for when electronic equipment by USB interface 2 with
When one USB Power Adapter connects, the pin voltage of ID PIN4 is detected, it is determined that pin voltage meets one
After pre-conditioned, disconnection USB interface 2 is electrically connected with USB Power Adapter, to protect electronics to set
It is standby, meanwhile, when USB interface 2 and USB Power Adapter disconnect to be electrically connected, transmit prompting message
To output precision 6;Above-mentioned output precision 6, for exporting prompting message, to point out user.
With reference to above-mentioned electronic equipment, a kind of method of the protection electronic equipment provided the present embodiment is carried out
Describe in detail.
Shown in Figure 9, the method includes:
S201:When electronic equipment is connected by USB interface with USB Power Adapter, detection USB connects
Equipment recognizes the pin voltage of pin in mouthful;
Here, USB interface, other end insertion USB power source adaptation are inserted in USB data line one end by user
Device, so, electronic equipment is just connected by USB interface with USB Power Adapter, and connection here refers to
Be physical connection and be electrically connected.Now, control chip detects the pin voltage of ID PIN.
S202:After it is determined that pin voltage satisfaction one is pre-conditioned, disconnects USB interface and fit with USB power source
Orchestration is electrically connected, protecting electronic equipment;
Here, if USB interface normal work, the pin voltage of ID PIN be unsatisfactory for it is pre-conditioned,
Pin voltage such as ID PIN is preset value, that is to say, that or ID PIN ground connection, or vacantly, with
Master/slave arrangement is represented, and if USB interface non-normal working, the pin voltage of ID PIN meets pre-
If condition, such as the pin voltage of ID PIN may be other values.So, it is determined that pin voltage meets pre-
If condition, that is, pin voltage is determined not for after above-mentioned preset value, control chip controls USB interface power down,
Disconnection USB interface is electrically connected with USB Power Adapter, to protect electronic equipment.
Certainly, when USB interface non-normal working, except the pin voltage of ID PIN is not preset for above-mentioned
Outside value, it is also possible to other situations occur, the present invention is not specifically limited.
S901:When USB interface and USB Power Adapter disconnect to be electrically connected, a prompting message is exported,
To point out user.
Here, when control chip controls USB interface power down, disconnect and connecting with the electricity of USB Power Adapter
When connecing, control chip can be with controlled output component, and e.g., control display screen shows a prompting page, or,
Control warning light flicker etc..In this way, it is possible to point out user's USB interface abnormal at present so that Yong Hu
After seeing the prompting, can understand that USB port is currently abnormal, adjust so as to being capable of normal work.
In actual applications, S202 and S901 can be performed simultaneously, it is also possible to first carried out S202, then performed
S901, the present invention is not especially limited.
Thus, electronic equipment just can be according to the pin voltage of ID PIN, it is determined that whether current USB interface
Normal work, if it is not, being electrically connected between USB interface and USB Power Adapter is then disconnected automatically,
Avoid the output voltage shakiness of USB interface or drastically raise and damage electronic equipment, realization sets to electronics
Standby protection, there is provided good Consumer's Experience.
Embodiment five:
The present embodiment provides a kind of electronic equipment, can be smart mobile phone, panel computer, portable power source, number
The equipment that code-phase machine etc. can be charged by USB Power Adapter.So, it is shown in Figure 3, should
Electronic equipment includes:Housing 1;USB interface 2, is opened on housing 1, and the interface can pass through USB
Data wire is connected with the USB interface on USB Power Adapter, with electron equipment charge;Control chip
3, it is arranged in housing 1, it is connected with the ID PIN4 of USB interface 2;Phase shift RC circuits 5, a termination
Ground, the other end is connected with ID PIN4;
Here, USB interface 2 can be the interface with 5 pins (PIN), or have
The interface of 8 PINs, certainly, the PIN number of the USB interface 2 can also be other, and the present invention is not
It is specifically limited.In a word, no matter USB interface 2 for several PINs interface, all with ID PIN4,
Control chip 3 is just connected with ID PIN4.In actual applications, ID PIN4 are used to recognize that electronic equipment is main
Equipment is still from equipment.
With reference to the embodiment of the present invention, above-mentioned control chip 3, for when electronic equipment by USB interface 2 with
When one USB Power Adapter connects, the pin voltage of ID PIN4 is detected;By the change slope of pin voltage
It is compared with default change slope;When the change slope of pin voltage is different from default change slope, really
Determine pin voltage and meet pre-conditioned, now, disconnect the electricity of USB interface 2 and USB Power Adapter
Connection, to protect electronic equipment.
With reference to above-mentioned electronic equipment, a kind of method of the protection electronic equipment provided the present embodiment is carried out
Describe in detail.
Shown in Figure 10, the method includes:
S401:When electronic equipment is connected by USB interface with USB Power Adapter, detect and RC
The pin voltage of the ID PIN of circuit connection;
Here, USB interface, other end insertion USB power source adaptation are inserted in USB data line one end by user
Device, so, electronic equipment is just connected by USB interface with USB Power Adapter, and connection here refers to
Be physical connection and be electrically connected.Now, control chip detects the pin voltage of ID PIN.
Shown in Figure 5, RC circuits include resistance and electric capacity in parallel, wherein, resistance is ID PIN's
Identification resistance.RC circuit on one side is connected with ID PIN, other end ground connection.When USB interface normal work,
It is shown in solid in the voltage of ID PIN such as Fig. 6.
S402:The change slope of pin voltage is compared with default change slope;
Here, shown in Figure 5, RC circuits are connected with one end of ID PIN, other end ground connection.Work as USB
It is shown in solid in the pin voltage such as Fig. 6 of ID PIN during interface normal work.Control chip passes through S401
After the pin voltage of detection ID PIN, by its actual change slope and default change slope, that is, scheme
Slope shown in solid is compared in 6.
S403:When the change slope of pin voltage is different from default change slope, determine that pin voltage meets
It is pre-conditioned;
Here, pin voltage can be as shown in the dotted line in Fig. 6, and changing slope can be oblique more than default change
Rate, it is also possible to less than default change slope., whereas if the change slope of pin voltage and default slope phase
Together, then USB interface normal work is illustrated.
S202:It is determined that pin voltage meet it is pre-conditioned after, disconnect USB interface be adapted to USB power source
Device is electrically connected, protecting electronic equipment;
Here, control chip control USB interface power down, disconnects USB interface with USB Power Adapter
It is electrically connected, protects electronic equipment.
S1001:When USB interface and USB Power Adapter disconnect to be electrically connected, a prompting message is exported,
To point out user.
Here, when control chip controls USB interface power down, disconnect and connecting with the electricity of USB Power Adapter
When connecing, control chip can be with controlled output component, and e.g., control display screen shows a prompting page, or,
Control warning light flicker etc..In this way, it is possible to point out user's USB interface abnormal at present so that Yong Hu
After seeing the prompting, can understand that USB port is currently abnormal, adjust so as to being capable of normal work.
In actual applications, S202 and S1001 can be performed simultaneously, it is also possible to first carried out S202, then held
Row S1001, the present invention is not especially limited.
Thus, by connecting a simple RC parallel circuit on ID PIN, electronic equipment just being capable of root
According to the change slope of the pin voltage of ID PIN, determine USB interface whether normal work, if it is not, then from
Dynamic circuit breaker opens being electrically connected between USB interface and USB Power Adapter, it is to avoid the output of USB interface
Voltage instability is drastically raised and damages electronic equipment, realizes the protection to electronic equipment, there is provided good
Consumer's Experience.
Embodiment six:
Based on aforesaid embodiment of the method, the embodiment of the present invention provides a kind of electronic equipment, in the electronic equipment
Detector unit and control unit can be realized by the processor in terminal, certainly also can by tool
The logic circuit of body is realized;During specific embodiment, processor can for central processing unit (CPU),
Microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA) etc..
Shown in Figure 11, the electronic equipment includes:Detector unit 111 and control unit 112;Wherein,
Detector unit 111, for when the electronic equipment belonging to itself is by USB interface and a USB Power Adapter
During connection, the pin voltage of ID PIN is detected;Control unit 112, for it is determined that pin voltage meets one
After pre-conditioned, disconnection USB interface is electrically connected with USB Power Adapter, to protect electronic equipment.
In such scheme, electronic equipment also includes a phase shift RC circuits, and RC circuit on one side ground connection is another
End is connected with ID PIN;Correspondingly, detector unit 111, the pin voltage specifically for detecting ID PIN;
The change slope of pin voltage is compared with default change slope;When pin voltage change slope with it is pre-
If change slope is different, determine that pin voltage meets pre-conditioned.
In such scheme, detector unit 111 is additionally operable to when determination pin voltage exceeds predetermined voltage range
When, determine that pin voltage meets pre-conditioned.
In such scheme, control unit 112 is additionally operable to when USB interface breaks with USB Power Adapter
Open when being electrically connected, controlled output prompting message, to point out user.
It is to be herein pointed out the description of above electronic equipment embodiment, with retouching for said method embodiment
It is similar to state, and with the similar beneficial effect of same embodiment of the method, therefore is not repeated.For the present invention
The ins and outs not disclosed in device embodiment, refer to the description of the inventive method embodiment and understand, be
Length is saved, therefore is repeated no more.
Embodiment seven:
Based on aforesaid embodiment, the present embodiment provides a kind of electronic equipment, shown in Figure 1, the electronics
Equipment includes:Housing 1;USB interface 2, is opened on housing 1;Control chip 3, is arranged on housing 1
It is interior, it is connected with the ID PIN4 in USB interface 2;Wherein, control chip 3, for leading to when electronic equipment
When crossing USB interface 2 and being connected with a USB Power Adapter, the pin voltage of ID PIN4 is detected, true
Determine pin voltage meet one it is pre-conditioned after, the electricity for disconnecting USB interface 2 and USB Power Adapter connects
Connect, to protect electronic equipment.
In such scheme, electronic equipment also includes a phase shift RC circuits, and RC circuit on one side ground connection is another
End is connected with ID PIN4;Control chip 3, the pin voltage specifically for detecting ID PIN4;By pin electricity
The change slope of pressure is compared with default change slope;When the change slope of pin voltage changes oblique with default
When rate is different, determine that pin voltage meets pre-conditioned.
In such scheme, RC circuits include:Resistance and electric capacity, resistance is the identification resistance of ID PIN4.
In such scheme, control chip 3 is additionally operable to when it is determined that pin voltage exceeds predetermined voltage range,
Determine that pin voltage meets pre-conditioned.
In such scheme, electronic equipment is also included with an output precision;Control chip 3, for working as USB
Interface 2 disconnects when being electrically connected with USB Power Adapter, and transmission prompting message is to output precision;Output group
Part, for exporting prompting message, to point out user.
It is to be herein pointed out above electronic equipment implements the description of item, it is class with said method description
As, with same embodiment of the method identical beneficial effect, therefore do not repeat.For electronics of the present invention sets
The ins and outs not disclosed in standby embodiment, those skilled in the art refer to the inventive method embodiment
Describe and understand, be to save length, repeat no more here.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can using hardware embodiment, software implementation or with reference to software and
The form of the embodiment of hardware aspect.And, the present invention can be adopted and wherein include calculating at one or more
Computer-usable storage medium (including but not limited to magnetic disc store and the optical storage of machine usable program code
Device etc.) on implement computer program form.
The present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program
Flow chart and/or block diagram describing.It should be understood that can be by computer program instructions flowchart and/or side
The knot of each flow process and/or square frame and flow chart and/or the flow process in block diagram and/or square frame in block diagram
Close.Can provide these computer program instructions to all-purpose computer, special-purpose computer, Embedded Processor or
The processor of other programmable data processing devices is producing a machine so that by computer or other can
The instruction of the computing device of programming data processing equipment is produced for realizing in one flow process or multiple of flow chart
The device of the function of specifying in one square frame of flow process and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices
In the computer-readable memory for working in a specific way so that in being stored in the computer-readable memory
Instruction produces the manufacture for including command device, and the command device is realized in one flow process of flow chart or multiple streams
The function of specifying in one square frame of journey and/or block diagram or multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing devices, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of specifying in flow process or one square frame of multiple flow processs and/or block diagram or multiple square frames.
The above, only presently preferred embodiments of the present invention is not intended to limit the protection model of the present invention
Enclose.
Claims (10)
1. a kind of electronic equipment, including:
Housing;
General-purpose serial bus USB interface, opens up on the housing;
Control chip, is arranged in the housing, is connected with the equipment identification pin in the USB interface;
Wherein, the control chip, for when the electronic equipment is by the USB interface and a USB
When power supply adaptor connects, detect that the equipment recognizes the pin voltage of pin, it is determined that the pin voltage
Meet one it is pre-conditioned after, disconnect being electrically connected for the USB interface and the USB Power Adapter,
To protect the electronic equipment.
2. electronic equipment according to claim 1, it is characterised in that the electronic equipment also includes
Phase shift RC circuits, the RC circuit on one side ground connection, the other end is connected with equipment identification pin;
The control chip, specifically for detecting that the equipment recognizes the pin voltage of pin;By the pin
The change slope of voltage is compared with default change slope;When the pin voltage change slope with it is described
During default change slope difference, determine that the pin voltage meets described pre-conditioned.
3. electronic equipment according to claim 2, it is characterised in that the RC circuits include:Electricity
Resistance and electric capacity, the resistance is the identification resistance that the equipment recognizes pin.
4. electronic equipment according to claim 1, it is characterised in that the control chip, is additionally operable to
When it is determined that the pin voltage exceeds predetermined voltage range, determine that the pin voltage meets the default bar
Part.
5. electronic equipment according to claim 1, it is characterised in that the electronic equipment also include with
One output precision;
The control chip, for connecting when the USB interface and the USB Power Adapter disconnect electricity
When connecing, transmission prompting message gives the output precision;
The output precision, for exporting the prompting message, to point out user.
6. a kind of method of protection electronic equipment, is applied to an electronic equipment, and the electronic equipment is logical with one
Use serial bus USB interface;Methods described includes:
When the electronic equipment is connected by the USB interface with USB Power Adapter, detection is described
Equipment recognizes the pin voltage of pin in USB interface;
After it is determined that pin voltage satisfaction one is pre-conditioned, the USB interface and the USB are disconnected
Power supply adaptor is electrically connected, protecting the electronic equipment.
7. method according to claim 6, it is characterised in that in the detection USB interface
Equipment recognizes the pin voltage of pin, including:
The equipment that detection is connected with a phase shift RC circuits recognizes the pin voltage of pin.
8. method according to claim 6, it is characterised in that the determination pin voltage meets
One is pre-conditioned, including:
The change slope of the pin voltage is compared with default change slope;
When the change slope of the pin voltage is different from the default change slope, pin electricity is determined
Pressure meets described pre-conditioned.
9. method according to claim 6, it is characterised in that the determination pin voltage meets
One is pre-conditioned, including:
When it is determined that the pin voltage exceeds predetermined voltage range, determine that the pin voltage meets described pre-
If condition.
10. method according to claim 6, it is characterised in that methods described also includes:
When the USB interface and the USB Power Adapter disconnect to be electrically connected, the prompting of output one disappears
Breath, to point out user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510459827.3A CN106650512B (en) | 2015-07-30 | 2015-07-30 | A kind of method and electronic equipment for protecting electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510459827.3A CN106650512B (en) | 2015-07-30 | 2015-07-30 | A kind of method and electronic equipment for protecting electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106650512A true CN106650512A (en) | 2017-05-10 |
CN106650512B CN106650512B (en) | 2019-09-24 |
Family
ID=58815606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510459827.3A Active CN106650512B (en) | 2015-07-30 | 2015-07-30 | A kind of method and electronic equipment for protecting electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106650512B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112558741A (en) * | 2020-12-15 | 2021-03-26 | 维沃移动通信有限公司 | Protection method, protection device, electronic apparatus, readable storage medium, and chip |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102087639A (en) * | 2010-11-30 | 2011-06-08 | 中兴通讯股份有限公司 | Method for starting USB (Universal Serial Bus) state machine as well as terminal |
CN102202117A (en) * | 2011-04-22 | 2011-09-28 | 中兴通讯股份有限公司 | Electronic device with USB (universal serial bus) interface and USB communication starting method thereof |
CN102223439A (en) * | 2011-04-29 | 2011-10-19 | 中兴通讯股份有限公司 | Electronic equipment with USB interface and USB communication starting method thereof |
CN102640076A (en) * | 2009-12-01 | 2012-08-15 | 苹果公司 | Power converter with reduced power consumption when toggling between sleep and normal modes during device charging |
-
2015
- 2015-07-30 CN CN201510459827.3A patent/CN106650512B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102640076A (en) * | 2009-12-01 | 2012-08-15 | 苹果公司 | Power converter with reduced power consumption when toggling between sleep and normal modes during device charging |
CN102087639A (en) * | 2010-11-30 | 2011-06-08 | 中兴通讯股份有限公司 | Method for starting USB (Universal Serial Bus) state machine as well as terminal |
CN102202117A (en) * | 2011-04-22 | 2011-09-28 | 中兴通讯股份有限公司 | Electronic device with USB (universal serial bus) interface and USB communication starting method thereof |
CN102223439A (en) * | 2011-04-29 | 2011-10-19 | 中兴通讯股份有限公司 | Electronic equipment with USB interface and USB communication starting method thereof |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112558741A (en) * | 2020-12-15 | 2021-03-26 | 维沃移动通信有限公司 | Protection method, protection device, electronic apparatus, readable storage medium, and chip |
WO2022127659A1 (en) * | 2020-12-15 | 2022-06-23 | 维沃移动通信有限公司 | Protection method, protection apparatus, electronic device, readable storage medium, and chip |
Also Published As
Publication number | Publication date |
---|---|
CN106650512B (en) | 2019-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5388484B2 (en) | Apparatus and method for detecting power supply | |
CN103064489B (en) | A kind of method and terminal of carrying out internal circuit selection according to USB interface state | |
JP6391700B2 (en) | Method for processing impedance abnormality of power adapter, terminal and charging circuit | |
CN105518967B (en) | Apparatus and method for changing current limit | |
US20150171647A1 (en) | Method and apparatus for high current charging of smart terminals | |
CN104810909B (en) | Control method for quickly charging and system | |
US10720778B2 (en) | Method for identifying type of cable, power adapter and cable | |
CN103545880B (en) | Wireless charging position calibration method and electronic equipment | |
WO2016183802A1 (en) | Charging method, charging device and terminal | |
CN106463996A (en) | Power adapter, terminal, and method for processing exception of charging loop | |
EP3185348B1 (en) | A battery information detection and control method, smart battery,terminal and computer storage medium | |
CN203871616U (en) | USB data line | |
CN106936115A (en) | The method of motor protective circuit and controlled motor protection circuit | |
CN106130124A (en) | A kind of method, system and terminal realizing multiple fast charge protocol compatibility | |
CN107065654A (en) | A kind of chip protection circuit, guard method and terminal | |
US11411423B2 (en) | Charging control method, related device, and computer storage medium | |
KR20190005643A (en) | Electronic device supporting usb power delivery standard and a method of charging the electronic device | |
CN106451628A (en) | OTG charging control circuit and charging control method | |
CN106797414B (en) | A kind of leakage current detection circuit and terminal of terminal | |
CN106650512A (en) | Method for protecting electronic equipment, and electronic equipment | |
CN107706977B (en) | Charging current detection method and charging device | |
CN106300252A (en) | A kind of electrical leakage detecting method, device and terminal unit | |
JP2014102693A (en) | Portable terminal apparatus and power supply method | |
JP2015207155A (en) | Electronic apparatus | |
CN106887832A (en) | A kind of circuit of protection terminal chip USB interface |
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 |