The leakage current detection circuit and terminal of a kind of terminal
Technical field
The present invention relates to electronic technology field, the leakage current detection circuit and terminal of more particularly to a kind of terminal.
Background technology
Terminal leakage current is a major criterion for examining end product (such as mobile phone, tablet personal computer) whether qualified.Common end product structure is as shown in figure 1, including core system 101, battery 102, USB (Universal Serial Bus, USB) interface 103, charging chip 104, battery protecting circuit 105 at present, wherein:
Core system 101, terminal realizes the core of various functions;
Battery 102, for providing working power for core system 101;
Usb 1 03, for connecting terminal charger;The Vbus terminal input charging voltages that terminal charger passes through usb 1 03;
Charging chip 104, the charging voltage that terminal charger is inputted by the Vbus terminals of usb 1 03 exported after voltage transformation;
Battery protecting circuit 105, battery 102 is connected by battery protecting circuit 105 with the feeder ear of core system 101, the output end of charging chip 104;Specifically; battery protecting circuit 105 mainly includes charge switch, discharge switch and battery protection ic (Integrated Circuit; integrated circuit); battery protection ic can control the on off operating mode of charge switch and discharge switch; and then the charging and discharging state of battery 102 is controlled, battery 102 is protected.
In the prior art, the leakage current test of terminal can only be carried out when terminal does not install battery.However, current many terminals are the non-removable structure designs of battery, i.e., it can not carry out the leakage current test of terminal.
The content of the invention
The embodiment of the present invention provides the leakage current detection circuit and terminal of a kind of terminal, can not dismantle storage
The detection of terminal leakage current is realized during battery.
First aspect there is provided a kind of leakage current detection circuit of terminal, including control chip, power-supply device and detection device, wherein:
The control chip, for connecting the power-supply device, the connection between the core system of the voltage output that the power-supply device is inputted to the terminal, and the core system of the control terminal and the battery of the terminal disconnects;
The power-supply device, for being that the core system is powered by the control chip;
The detection device, when for controlling the connection between the core system and the battery to disconnect in the control chip, by the power-supply device by the control chip being that the core system is powered and the terminal is designated state, the output current of the power-supply device is detected, it is leakage current of the terminal under the designated state to detect the obtained output current.
With reference in a first aspect, in the first possible implementation, the power-supply device is specially programmable power supply.
With reference in a first aspect, or first aspect the first possible implementation, in second of possible implementation, the control chip controls the connection between the core system of the terminal and the battery of the terminal to disconnect, and is realized especially by following manner:
The control chip controls charge switch and discharge switch in the battery protecting circuit of the terminal to be off.
With reference in a first aspect, the first possible implementation of first aspect, or first aspect second of possible implementation, in the third possible implementation, the designated state is off-mode or holding state.
There is provided a kind of terminal, including control chip for second aspect;When detecting the leakage current of the terminal under prescribed conditions, the control chip connects power-supply device, the voltage output that the control chip inputs the power-supply device to the terminal core system, powered for the core system, and control the connection between the battery of the core system and the terminal to disconnect;Wherein, the output current of the power-supply device is leakage current of the terminal under the designated state.
With reference to second aspect, in the first possible implementation, the control chip is especially by institute
State the ID terminals connection power-supply device of the general-purpose serial bus USB interface of terminal.
With reference to the first possible implementation of second aspect, or second aspect, in second of possible implementation, the power-supply device is specially programmable power supply.
With reference to second aspect, the possible implementation of the first of second aspect, or second of possible implementation of second aspect, in the third possible implementation, the control chip controls the connection between the battery of the core system and the terminal to disconnect, and is realized especially by following manner:
The control chip controls charge switch and discharge switch in the battery protecting circuit of the terminal to be off.
With reference to second aspect, the third possible implementation of the possible implementation of the first of second aspect, second of possible implementation of second aspect, or second aspect, in the 4th kind of possible implementation, the designated state is off-mode or holding state.
The leakage current detection circuit of the terminal provided according to first aspect, the terminal that second aspect is provided, the connection between the core system and battery of control chip control terminal is set to disconnect, powered merely with power-supply device by control chip for core system, the output current of power-supply device is detected when terminal is designated state, detects that obtained output current is leakage current of the terminal under the designated state;Obviously, using terminal provided in an embodiment of the present invention, without the lower battery of dismounting, the detection of leakage current can just be realized.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, is used to explain the present invention together with the embodiment of the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is terminal structure schematic diagram common at present;
Fig. 2 is the schematic diagram of the leakage current detection circuit for the terminal that the embodiment of the present invention 1 is provided;
Fig. 3 is the structural representation for the terminal that the embodiment of the present invention 2 is provided;
Fig. 4 is the detailed construction schematic diagram for the terminal that the embodiment of the present invention 2 is provided;
Fig. 5 is the schematic diagram of the detection process of the shutdown leakage current for the terminal that the embodiment of the present invention 2 is provided.
Embodiment
In order to provide without the lower battery of dismounting, just the implementation of terminal leakage current test can be carried out, the embodiments of the invention provide a kind of leakage current detection circuit of terminal and terminal, the preferred embodiments of the present invention are illustrated below in conjunction with Figure of description, it should be understood that, preferred embodiment described herein is merely to illustrate and explain the present invention, and is not intended to limit the present invention.And in the case where not conflicting, the feature in embodiment and embodiment in the application can be mutually combined.
Embodiment 1:
The embodiment of the present invention 1 provides a kind of leakage current detection circuit of terminal, as shown in Fig. 2 including control chip 201, power-supply device 202 and detection device 203, wherein:
Control chip 201, for connecting power-supply device 202, the connection between the core system 101 of the voltage output that power-supply device 202 is inputted to terminal, and the core system 101 of control terminal and the battery 102 of terminal disconnects;
Power-supply device 202, for being that core system 101 is powered by control chip 201;
Detection device 203, disconnected for the connection between the control core system 101 of control chip 201 and battery 102, when by control chip 201 being that core system 101 is powered and terminal is designated state by power-supply device 202, the output current of power-supply device 203 is detected, it is the leakage current of terminal under prescribed conditions to detect obtained output current.
Leakage current detection circuit provided in an embodiment of the present invention can be applied to the various terminals such as mobile phone, tablet personal computer, music player.
Leakage current detection circuit i.e. provided in an embodiment of the present invention, under connection off-state between the core system 101 and battery 102 of terminal, it is that core system 101 is powered merely with power-supply device 202, the output current of power-supply device 202 is the leakage current of terminal under prescribed conditions, therefore, without the lower battery of dismounting, the detection of leakage current just can be realized.
Above-mentioned designated state is specifically as follows off-mode, or holding state.No matter terminal i.e. provided in an embodiment of the present invention detects shutdown leakage current, or detection standby leakage current, without the lower battery of dismounting.
Under connection off-state between the core system 101 and battery 102 of terminal, when being powered merely with power-supply device 202 for core system 101, if power-supply device 202 is powered by the charging chip 104 of terminal for core system 101, the voltage transformation process of charging chip 104 can consume certain power consumption, lead to not the leakage current for being accurately detected terminal, therefore, in leakage current detection circuit provided in an embodiment of the present invention, power-supply device 202 is that core system 101 is powered by control chip 201, control chip 201 only carries out voltage forwarding, without voltage transformation, so as to ensure the accuracy of detection of leakage current.
Wherein, the connection between the core system 101 of control chip 201 and terminal, can specifically be realized using various ways.For example, control chip 201 can connect core system 101 by existing interfaces such as USB interface, COBBAIF, SIM (Subscriber Identity Module, client identification module) neck, memory card slots;The connection between control chip 201 and the core system 101 of terminal can also be realized in the newly-increased interface of terminal.
Further, the connection between the core system 101 of the control terminal of control chip 201 and the battery 102 of terminal is disconnected, and can be accomplished in several ways, and the present invention is not limited this.For example, in one particular embodiment of the present invention, control chip 201 can be off with the charge switch in the battery protecting circuit 105 of control terminal and discharge switch, so as to realize that the connection between core system 101 and battery 102 disconnects;In other specific embodiments of the present invention, the connection that control chip 201 can also otherwise between control core system 101 and battery 102 disconnects.
When control chip 201 realizes the connection disconnection between core system 101 and battery 102 by the battery protecting circuit 105 of control terminal; connection between control chip 201 and battery protecting circuit 105; it can also specifically be realized using various ways; no longer illustrate herein; during actual implementation, concrete implementation scheme can be determined according to practical application scene.
Preferably, above-mentioned power-supply device 202 is specifically as follows programmable power supply, security, reliability are higher.
Further, above-mentioned detection device 203 is specifically as follows existing various current detecting instruments.
When leakage current detection circuit provided in an embodiment of the present invention is used to detect the shutdown leakage current of terminal, detection device 203, disconnected specifically for the connection between the control core system 101 of control chip 201 and battery 102, when by control chip 201 being that core system 101 is powered and terminal is off-mode by power-supply device 202, the output current of power-supply device 203 is detected, it is terminal to detect obtained output current
Leakage current in the power-offstate.When leakage current detection circuit provided in an embodiment of the present invention is used to detect the standby leakage current of terminal, detection device 203, disconnected specifically for the connection between the control core system 101 of control chip 201 and battery 102, when by control chip 201 being that core system 101 is powered and terminal is holding state by power-supply device 202, the output current of power-supply device 203 is detected, it is the leakage current of terminal in the standby state to detect obtained output current.
Embodiment 2:
Based on same inventive concept, the embodiment of the present invention 2 provides a kind of terminal, as shown in figure 3, including control chip 300;When detecting the leakage current of terminal under prescribed conditions, control chip 300 connects power-supply device, the voltage output that control chip 300 inputs power-supply device, to the core system 101 of terminal, is that core system 101 is powered, and the connection between the battery 102 of control core system 101 and terminal disconnects;Wherein, the output current of power-supply device is the leakage current of terminal under prescribed conditions.
Terminal provided in an embodiment of the present invention is specifically as follows the various terminals such as mobile phone, tablet personal computer, music player.
Above-mentioned designated state is specifically as follows off-mode, or holding state.No matter terminal i.e. provided in an embodiment of the present invention detects shutdown leakage current, or detection standby leakage current, without the lower battery of dismounting, just can realize detection.
Further, the connection between control chip 300 and power-supply device, can be accomplished in several ways.For example, control chip 300 can connect power-supply device by the usb 1 03 of terminal;When usb 1 03 is specially mini USB interfaces, mini USB interfaces include VBUS terminals, D+ terminals, D- terminals, GND terminal and ID terminals, wherein, ID terminals are generally only just used in OTG (On-The-Go) function, therefore, control chip 300 specifically can connect power-supply device by the ID terminals of usb 1 03;Control chip 300 can also be connected using other manner with power-supply device, no longer be illustrated herein.During actual implementation, concrete implementation scheme can be determined according to practical application scene.
Preferably, above-mentioned power-supply device is specifically as follows programmable power supply, security, reliability are higher.
Further, the connection between the control core system 101 of control chip 300 and battery 102 is disconnected, and can also be accomplished in several ways, and the present invention is not limited this.For example, in the tool of the present invention
In body embodiment, control chip 300 can be off with the charge switch in the battery protecting circuit 105 of control terminal and discharge switch, so as to realize that the connection between core system 101 and battery 102 disconnects;In other specific embodiments of the present invention, the connection that control chip 300 can also otherwise between control core system 101 and battery 102 disconnects.
During actual implementation, when carrying out leakage current test, control chip 300 can first connect PC (Personal Computer by terminal usb 1 03, personal computer), send instructions under from PC to control chip 300, the connection between the control core system 101 of trigger control chip 300 and battery 102 disconnects.
Below in conjunction with the accompanying drawings, by taking the detection for the leakage current that shuts down as an example, the leakage current test process of terminal provided in an embodiment of the present invention in the power-offstate is described.
In following specific embodiments; the battery protecting circuit 105 that terminal is used is specific as shown in Figure 3; mainly include S-82XX series batteries protection IC, charge switch SW1 and discharge switch SW2; wherein; the control end CTL of battery protection ic is charge switch SW1 and discharge switch SW2 control terminal; therefore control chip 300 can control the on off operating mode being connected between charge switch SW1 and discharge switch SW2 on off operating mode, and then control core system 101 and battery 102 by control end CTL.The power-supply device of use is specially programmable power supply.
The shutdown leakage current test process of terminal is as shown in figure 5, specifically include:
Step 501, terminal connection PC, PC indicate that the connection between the control core system 101 of control chip 300 and battery 102 disconnects to sending instructions under the control chip 300 of terminal.
Step 502, control chip 300 are received after the instruction of PC transmissions, and the connection between control core system 101 and battery 102 disconnects.
Specifically, the control end CTL output preset signals of the battery protection ic into battery protecting circuit 105 of control chip 300;The control end CTL of battery protection ic is when inputting preset signals; charge switch SW1 is controlled to disconnect by charge switch control terminal CO output control signals; discharge switch SW2 is controlled to disconnect by discharge switch control terminal DO output control signals, that is, the connection realized between control core system 101 and battery 102 disconnects.
The connection of step 503, disconnected end and PC, control chip 300 connects programmable power supply, the voltage output that programmable power supply is inputted to core system 101 by the ID terminals of usb 1 03.
During actual implementation, it can realize that control chip 300 connects programmable power supply by the ID terminals of usb 1 03 by programmable power supply control panel.
Now, core system 101 is only powered by programmable power supply, and programmable power supply can export relevant voltage according to the power demands of core system 101.
Step 504, the output current using detection device detection programmable power supply, the electric current is the shutdown leakage current of terminal.
The standby leakage current detection process of terminal provided in an embodiment of the present invention is similar with shutdown leakage current test process, and no longer citing is described in detail herein.
It can be seen that, using terminal provided in an embodiment of the present invention, the connection between the core system and battery of control chip control terminal is set to disconnect, powered merely with power-supply device for core system, the output current of power-supply device is detected when terminal is designated state, detects that obtained output current is leakage current of the terminal under the designated state;Obviously, using terminal provided in an embodiment of the present invention, without the lower battery of dismounting, the detection of leakage current just can be realized, and then ensure that the reliability of end product, and scheme is easily achieved, and cost is relatively low.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creative concept, then other change and modification can be made to these embodiments.So, appended claims are intended to be construed to include preferred embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the spirit and scope of various changes and modification without departing from the embodiment of the present invention to the embodiment of the present invention.So, if these modifications and variations of the embodiment of the present invention belong within the scope of the claims in the present invention and its equivalent technologies, then the present invention is also intended to comprising including these changes and modification.