CN102684236B - Mobile phone, electric-quantity transferring system and method - Google Patents
Mobile phone, electric-quantity transferring system and method Download PDFInfo
- Publication number
- CN102684236B CN102684236B CN201110057746.2A CN201110057746A CN102684236B CN 102684236 B CN102684236 B CN 102684236B CN 201110057746 A CN201110057746 A CN 201110057746A CN 102684236 B CN102684236 B CN 102684236B
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- battery
- usb interface
- chip
- switch chip
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000007599 discharging Methods 0.000 claims abstract description 21
- 230000005611 electricity Effects 0.000 claims description 46
- 238000012546 transfer Methods 0.000 claims description 37
- 238000001514 detection method Methods 0.000 claims description 10
- 101001128814 Pandinus imperator Pandinin-1 Proteins 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 8
- 238000003780 insertion Methods 0.000 description 4
- 230000037431 insertion Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 230000001681 protective effect Effects 0.000 description 2
- 101001024685 Pandinus imperator Pandinin-2 Proteins 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a mobile phone, comprising a discharging circuit, a switching circuit and a USB (Universal Serial Bus) interface, wherein the switching circuit comprises an XOR chip and a Switch chip; when the enabling end of the Switch chip is pulled to a high level and the input end of the Switch chip is pulled to the high level, the USB interface is communicated with the discharging circuit, so that the current discharged by a battery of the mobile phone is discharged and is used for charging another mobile phone by a USB line through the USB interface; when the enabling end of the Switch chip is pulled to the high level and the input end of the Switch chip is pulled to a low level, the USB interface is communicated with a charging circuit, so that the current discharged by the another mobile phone is discharged and is used for charging the battery of the mobile phone. The invention also provides an electric-quantity transferring system and an electric-quantity transferring method. By utilization of the invention, the electric quantity is transferred between the batteries of the two mobile phones so as to realize charging of the mobile phone to another mobile phone.
Description
Technical field
The present invention relates to a kind of mobile phone and electricity transfer system thereof and method, the electricity transfer system particularly between a kind of mobile phone and mobile phone and method.
Background technology
Along with the development of science and technology and the raising of people's living standard, the use of mobile phone becomes more and more general.But because cell phone battery capacity is limited, when user carries out important call or waits for important incoming call, mobile phone cannot may use because electricity is not enough.In order to emergent, user generally can use charger or USB (Universal Serial BUS, USB) line charges to mobile phone, but this is only applicable to the situation that user has the power supply for charging at one's side, and mobile phone or battery must stay fixing place, and user cannot carry with.If user does not provide the place of power supply at bus, train etc., then cannot charge to mobile phone at once.Although user can pass through SIM (the Subscriber Identity Module in mobile phone, user identification module) other have maintenance communication in the mobile phone of electricity unimpeded to block insertion, but this can cause the SIM card in other mobile phones to use, therefore also convenient not.
Summary of the invention
In view of above content, be necessary to provide a kind of mobile phone, electricity can be made to shift between the battery of two this kind of mobile phones, to realize the charging of mobile phone to mobile phone.
There is a need to the electricity transfer system that a kind of mobile phone is provided, electricity can be made to shift between the battery of two mobile phones, to realize the charging of mobile phone to mobile phone.
There is a need to the electricity transfer method that a kind of mobile phone is provided, electricity can be made to shift between the battery of two mobile phones, to realize the charging of mobile phone to mobile phone.
Described mobile phone, comprises the mini type USB interface of discharge circuit, commutation circuit and a 10Pin pin, wherein: described discharge circuit connects the battery of this mobile phone; Described commutation circuit comprises an XOR chip and a Switch chip; Described XOR chip comprises two inputs and an output; Described Switch chip comprises an Enable Pin and an input, when this Enable Pin is high level, and Switch chip enable, when this Enable Pin is low level, Switch chip is closed; The second input that the CPU of this mobile phone connects the first input end of this XOR chip, the input of this Switch chip and the Pin8 of this USB interface, XOR chip respectively connects the Pin7 of USB interface, and the output of XOR chip connects the Enable Pin of Switch chip; Described CPU controls the first input end of the XOR chip connected, the input of Switch chip and the Pin8 of USB interface and is all high level or is all low level; When the Enable Pin of Switch chip is pulled to high level, and when the input of Switch chip is pulled to high level, make USB interface connect described discharge circuit, make the battery discharge of this mobile phone and by a USB line, another mobile phone charged through this USB interface; When the Enable Pin of Switch chip is pulled to high level, and when the input of Switch chip is pulled to low level, make USB interface connect the charging circuit of this mobile phone, another mobile phone institute discharge stream is charged to the battery of this mobile phone through USB line.
Whether the electricity transfer system of described mobile phone, comprising: detection module, have USB line to insert this USB interface for detecting; Receiver module, for when having detected that USB line inserts this USB interface, when this mobile phone is connected with another mobile phone, has received the voltage of this battery of mobile phone, and reception is using the selection of this mobile phone as charge mobile phone side or mobile phone side of discharging; Judge module, for judge this mobile phone voltage whether meet this mobile phone as charge mobile phone side or electric discharge mobile phone side requirement; Control module, for when select this mobile phone as electric discharge mobile phone side and this mobile phone of the voltage conforms of this battery of mobile phone as electric discharge mobile phone side requirement time, the first input end of connected XOR chip and the input of Switch chip are pulled to high level by control CPU, and the Pin8 of USB interface is pulled to high level, then the Enable Pin of Switch chip is high level, make USB interface connect discharge circuit, make the battery discharge of this mobile phone and by this USB line, another mobile phone charged through this USB interface; Described control module, also for when select this mobile phone as charge mobile phone side and the requirement of this mobile phone of the voltage conforms of this battery of mobile phone as charge mobile phone side time, the first input end of connected XOR chip and the input of Switch chip are pulled to low level by control CPU, and the Pin8 of USB interface is pulled to low level, then the Enable Pin of Switch chip is high level, make USB interface connect charging circuit, make another mobile phone institute discharge stream through this USB line to this charging mobile phone battery.
The electricity transfer method of described mobile phone, comprises the following steps: this mobile phone is connected with another mobile phone by the USB interface of the 10Pin pin of mobile phone and USB line by (a); If b () selects this mobile phone as electric discharge mobile phone side, another mobile phone is as charge mobile phone side, and this mobile phone of the voltage conforms of this battery of mobile phone as electric discharge mobile phone side requirement time, then enter step (c), if select this mobile phone as charge mobile phone side, another mobile phone is as electric discharge mobile phone side, and this mobile phone of the voltage conforms of this battery of mobile phone is as the requirement of charge mobile phone side, then enter step (e); C the first input end of connected XOR chip, the input of Switch chip and the Pin8 of this USB interface are pulled to high level by () control CPU, then the Enable Pin of Switch chip is high level; D () Switch chip makes this USB interface connect discharge circuit, make the battery discharge of this mobile phone and be filled with in the battery of this another mobile phone through USB line; E the first input end of connected XOR chip, the input of Switch chip and the Pin8 of this USB interface are pulled to low level by () control CPU, then the Enable Pin of Switch chip is high level; F () Switch chip makes this USB interface connect charging circuit, the battery of another mobile phone institute discharge stream is filled with in the battery of this mobile phone through USB line.
Compared to prior art, the present invention makes electricity shift between the battery of two mobile phones, can when mobile phone electricity is not enough, and the mobile phone to friend at one's side " borrows electricity ", realizes the charging of mobile phone to mobile phone.
Accompanying drawing explanation
Fig. 1 is the hardware structure figure of mobile phone preferred embodiment of the present invention.
Fig. 2 is the connection diagram of mobile phone 1 and mobile phone 4.
Fig. 3 is the Pin pin schematic diagram of USB interface 2.
Fig. 4 is the electrical schematic diagram that commutation circuit 14 is connected with USB interface 2 and CPU13.
Fig. 5 is the functional block diagram of the electricity transfer system preferred embodiment of mobile phone of the present invention.
Fig. 6 is the flow chart of the electricity transfer method preferred embodiment of mobile phone of the present invention.
Main element symbol description
Mobile phone | 1,4 |
USB interface | 2,5 |
USB line | 3 |
Electricity transfer system | 10 |
Voltage detecting circuit | 11 |
Battery | 12 |
CPU | 13 |
Commutation circuit | 14 |
Discharge circuit | 15 |
Charging circuit | 16 |
XOR chip | 151 |
Switch chip | 152 |
Detection module | 101 |
Receiver module | 102 |
Judge module | 103 |
Control module | 104 |
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
Consulting shown in Fig. 1, is the hardware structure figure of mobile phone preferred embodiment of the present invention.In the present embodiment, mobile phone 1 comprises electricity transfer system 10, voltage detecting circuit 11, battery 12, CPU13, commutation circuit 14, discharge circuit 15 and charging circuit 16.In addition, mobile phone 1 is also with a USB interface 2, and this USB interface 2 can be the mini type interface of 10Pin pin.By this USB interface 2, mobile phone 1 can connect with other mobile phone with identical USB interface.
As shown in Figure 2, be mobile phone 1 and the connection diagram of mobile phone 4.Described mobile phone 4 has the configuration identical with mobile phone 1, namely also comprises electricity transfer system, voltage detecting circuit, battery, CPU, commutation circuit, discharge circuit and charging circuit in mobile phone 4, and with the USB interface 5 identical with USB interface 2 on mobile phone 4.The two ends plug of USB line 3 inserts USB interface 2 and USB interface 5 respectively, and mobile phone 1 is connected with mobile phone 4.After mobile phone 1 is connected with mobile phone 4, can be charged to mobile phone 4 as power supply by the battery 12 of mobile phone 1, also can be charged to mobile phone 1 as power supply by the battery of mobile phone 4.
Consulting shown in Fig. 3, is the Pin pin schematic diagram of USB interface 2.USB interface 2 comprises 10 Pin pin, is respectively Pin1, Pin2......Pin10.Wherein, Pin6 is that ADC (Analog to digit converter, analog-to-digital conversion) detects pin, and whether insert USB interface 2 for detecting USB line 3, when USB line 3 inserts USB interface 2, Pin6 will send and insert signal accordingly.Pin1 is the current output terminal of mobile phone 1 when charging to mobile phone 4, and Pin9 is current input terminal when charging to mobile phone 1.
Consult again shown in Fig. 1, the signal that electricity transfer system 10 sends for the Pin6 detecting USB interface 2, thus whether detection USB line 3 inserts USB interface 2.Described voltage detecting circuit 11 connects battery 12, for detecting the voltage of battery 12.When electricity transfer system 10 detects that this Pin6 sends described insertion signal, namely detect that USB line 3 inserts USB interface 2, after mobile phone 1 is connected with mobile phone 4, electricity transfer system 10 is by the voltage of the battery 12 detected by reception voltage detecting circuit 11, and this voltage is shown on the screen of mobile phone 1, be convenient to the voltage that user understands present battery 12.
When electricity transfer system 10 detects that USB line 3 inserts USB interface 2, user can select mobile phone 1 as main frame side or from machine side.If mobile phone 1 is as main frame side, then charged to connected mobile phone 4 as power supply by mobile phone 1, if mobile phone 1 is as from machine side, then charged to mobile phone 1 as power supply by this mobile phone 4.
Electricity transfer system 10 for when user select using mobile phone 1 as main frame side or from machine side time, judge the voltage of present battery 12 whether meet user selection using mobile phone 1 as main frame side or the requirement from machine side.All be configured with protective circuit in the battery that general mobile phone uses, and be provided with final discharging voltage and charging deboost.Battery meet put, charge condition, namely voltage reach final discharging voltage or charging deboost time, this protective circuit can cut off the charge and discharge loop in battery, to prevent because overdischarge or overcharge cause damage to battery.Such as, the final discharging voltage that some battery is arranged is 3.6V, and charging deboost is 4.2V, and namely when the voltage of battery is less than or equal to 3.6V, battery cannot discharge again, and when the voltage of battery is greater than or equal to 4.2V, battery cannot recharge.
Therefore, mobile phone 1 as the requirement of main frame side be the voltage of battery 12 higher than final discharging voltage, simultaneously not higher than charging deboost.Mobile phone 1 as the requirement from machine side be battery 12 voltage lower than charging deboost, be not less than final discharging voltage simultaneously.
Described discharge circuit 15 connects battery 12, connects this discharge circuit 15 and battery 12 can be made to discharge.Described charging circuit 16 also connects battery 12, and connecting this charging circuit 16 can charge to battery 12.If the voltage conforms mobile phone 1 of battery 12 is as main frame side or the requirement from machine side, then electricity transfer system 10 will control commutation circuit 14 switching channel by CPU13, thus discharge circuit 15 is connected, battery 12 discharges or charging circuit 16 is connected, and battery 12 charges.Illustrate electricity transfer system 10 controlled discharge circuit 15 below in conjunction with Fig. 4 to connect, or control the method for charging circuit 16 connection.
Consulting shown in Fig. 4, is the electrical schematic diagram that commutation circuit 14 is connected with USB interface 2 and CPU13.This commutation circuit 14 comprises an XOR chip 151 and a Switch chip 152.This XOR chip 151 comprises two inputs and an output.This Switch chip 152 comprises an Enable Pin and an input.One of them input of XOR chip 151 is connected with the Pin7 of USB interface 2, and another input is connected with CPU13.In addition, CPU13 is also connected to the input of Switch chip 152 and the Pin8 of USB interface 2, and the output of XOR chip 151 is connected to the Enable Pin of Switch chip 152.
XOR chip 151 is for performing XOR.The logic level of two inputs of XOR chip 151 is different, and namely these two inputs are respectively high level and low level, are pulled to high level by making the output of XOR chip 151.The logic level of two inputs of XOR chip 151 is identical, and namely these two inputs are all high level or are all low level, are pulled to low level by making the output of XOR chip 151.
The Enable Pin of Switch chip 152 is that high level is effective.When the output of XOR chip 151 is high level, this Enable Pin is pulled to high level; When the output of XOR chip 151 is low level, this Enable Pin is just pulled to low level.When this Enable Pin is pulled to high level, Switch chip 152 starts.The logic level of Switch chip 152 input can determine passage bridge direction.This Switch chip 152 can be set to: when the input of Switch chip 152 is high level, Switch chip 152 switching channel makes discharge circuit 15 connect, when the input of Switch chip 152 is low level, Switch chip 152 switching channel makes charging circuit 16 connect.When this Enable Pin is pulled to low level, Switch chip 152 is closed, and discharge circuit 15 and charging circuit 16 all cannot be connected.
In addition, by USB line 3, " be connected, the Pin8 of USB interface 2 " is connected with the Pin7 of USB interface 5 Pin7 of the USB interface 2 and Pin8 of USB interface 5.
When electricity transfer system 10 judges the requirement of the voltage conforms mobile phone 1 of battery 12 as main frame side, an input of connected XOR chip 151 and the input of Switch chip 152 are pulled to high level by control CPU13, and the Pin8 of USB interface 2 is also pulled to high level." be connected, so this Pin7 " also will be pulled to high level due to Pin8 and the Pin7 of USB interface 5.
When electricity transfer system 10 judges that the voltage conforms mobile phone 1 of battery 12 is as during from the requirement of machine side, an input of connected XOR chip 151 and the input of Switch chip 152 are pulled to low level by control CPU13, and the Pin8 of USB interface 2 is also pulled to low level." be connected, so this Pin7 " also will be pulled to low level due to Pin8 and the Pin7 of USB interface 5.
When making mobile phone 1 as main frame side, and mobile phone 4 is as from machine side, and when namely utilizing mobile phone 1 pair of mobile phone 4 to charge, the input be connected with CPU13 in the XOR chip 151 of mobile phone 1 is pulled to high level by CPU13, and the Pin8 of the USB interface 5 of mobile phone 4 " is pulled to low level.And the Pin7 of USB interface 2 and this Pin8 " is connected, so this Pin7 also will be pulled to low level, thus makes the input be connected with this Pin7 in XOR chip 151 be pulled to low level.Because two input logic levels of XOR chip 151 are different, thus make the output of XOR chip 151 be pulled to high level, and make the Enable Pin of the Switch chip 152 be connected with this output be high level, Switch chip 152 starts.The input of Switch chip 152 is pulled to high level by CPU13, and Switch chip 152 switching channel makes discharge circuit 15 connect.
When making mobile phone 1 as from machine side, and mobile phone 4 is as main frame side, and when namely utilizing mobile phone 4 pairs of mobile phones 1 to charge, the input be connected with CPU13 in the XOR chip 151 of mobile phone 1 is pulled to low level by CPU13, and the Pin8 of the USB interface 5 of mobile phone 4 " is pulled to high level.And the Pin7 of USB interface 2 and this Pin8 " is connected, so this Pin7 also will be pulled to high level, thus makes the input be connected with Pin7 in XOR chip 151 be pulled to high level.Because two input logic levels of XOR chip 151 are different, thus make the output of XOR chip 151 be pulled to high level, and make the Enable Pin of the Switch chip 152 be connected with this output be high level, Switch chip 152 starts.The input of Switch chip 152 is pulled to low level by CPU13, and Switch chip 152 switching channel makes charging circuit 16 connect.
If user error ground selects mobile phone 1 and mobile phone 4 to be all main frame side or to be all from machine side, then make two of XOR chip 151 input logic levels identical, the output of XOR chip 151 is pulled to low level, thus make the Enable Pin of the Switch chip 152 be connected with this output be low level, Switch chip 152 is closed, discharge circuit 15 and charging circuit 16 all cannot be connected, and cannot carry out electricity transfer between mobile phone 1 and mobile phone 4.
Consult shown in Fig. 1, described discharge circuit 15 comprises booster circuit and current amplifier again.After commutation circuit 14 switching channel makes discharge circuit 15 connect, battery 12 will discharge, and institute's discharge stream, after booster circuit and current amplifier effect, can reach standard output voltage and standard output electric current, such as standard output voltage is 5V, and standard output electric current is 300mA.After battery 12 discharge stream reach standard output voltage and standard output electric current, the Pin1 via commutation circuit 14 and USB interface 2 flows out, and is filled with in the battery of mobile phone 4 through USB line 3.
After commutation circuit 14 switching channel makes charging circuit 16 connect, the battery institute discharge stream of mobile phone 4 flows into the Pin9 of USB interface 2 through USB line 3, the effect via commutation circuit 14 and charging circuit 16 is filled with battery 12.
Electricity transfer system 10 is also in mobile phone 1 pair of mobile phone 4 charging process, judge whether the voltage of battery 12 reaches final discharging voltage, if the voltage of battery 12 reaches final discharging voltage, then the input of connected XOR chip 151 is pulled to low level by control CPU13 by electricity transfer system 10, thus making two of XOR chip 151 input logic levels identical, the output of XOR chip 151 is pulled to low level.The Enable Pin of the Switch chip 152 be connected with the output of XOR chip 151 will be pulled to low level, and Switch chip 152 is closed, and discharge circuit 15 is disconnected, and battery 12 stops electric discharge.
Electricity transfer system 10 is also in mobile phone 4 pairs of mobile phone 1 charging processes, judge whether the voltage of battery 12 reaches charging deboost, if the voltage of battery 12 reaches charging deboost, then the input of connected XOR chip 151 is pulled to high level by control CPU13 by electricity transfer system 10, thus making two of XOR chip 151 input logic levels identical, the output of XOR chip 151 is pulled to low level.The Enable Pin of the Switch chip 152 be connected with the output of XOR chip 151 will be pulled to low level, and Switch chip 152 is closed, and charging circuit 16 is disconnected, and battery 12 stops charging.
Consulting shown in Fig. 5, is the functional block diagram of the electricity transfer system preferred embodiment of mobile phone of the present invention.This electricity transfer system 10 comprises detection module 101, receiver module 102, judge module 103 and control module 104.
When USB line 3 inserts USB interface 2, the Pin6 of USB interface 2 will send and insert signal accordingly.The signal that detection module 101 sends for detecting this Pin6, thus whether detection USB line 3 inserts USB interface 2.
For working as, receiver module 102 detects that this Pin6 sends this insertion signal, namely detect that USB line 3 inserts USB interface 2, after mobile phone 1 is connected with mobile phone 4, the voltage of the battery 12 that reception voltage detecting circuit 11 detects, and this voltage is shown on the screen of mobile phone 1.
Receiver module 102, also for when detecting that USB line 3 inserts USB interface 2, receiving user to using the selection of mobile phone 1 as electric discharge mobile phone side (main frame side) or charge mobile phone side (from machine side), and triggering judge module 103.
Judge module 103 is for judging whether the voltage of detected battery 12 meets mobile phone 1 as main frame side or the requirement from machine side.Mobile phone 1 as the requirement of main frame side be the voltage of battery 12 higher than final discharging voltage, simultaneously not higher than charging deboost.Mobile phone 1 as the requirement from machine side be battery 12 voltage lower than charging deboost, be not less than final discharging voltage simultaneously.
Control module 104 is for selecting mobile phone 1 as main frame side as user, and judge module 103 is when judging the requirement of the voltage conforms mobile phone 1 of battery 12 as main frame side, an input of connected XOR chip 151 and the input of Switch chip 152 are pulled to high level by control CPU13, and the Pin8 of USB interface 2 is also pulled to high level.
If user selects mobile phone 4 as from machine side, then the Pin7 of USB interface 2 is pulled to low level, through the effect of XOR chip 151 and Switch chip 152, discharge circuit 15 is connected, battery 12 is discharged, institute's discharge stream reaches after standard output voltage and standard output electric current through booster circuit and current amplifier effect, and the Pin1 via commutation circuit 14 and U SB interface 2 flows out, and is filled with in the battery of mobile phone 4 through USB line 3.
Judge module 103 also in the process of charging to mobile phone 4 at mobile phone 1, judges whether the voltage of battery 12 reaches final discharging voltage.
Control module 104 is also for when judge module 103 judges that the voltage of battery 12 reaches final discharging voltage, and the input of connected XOR chip 151 is pulled to low level by control CPU13, and discharge circuit 15 is disconnected, and battery 12 stops electric discharge.
If user selects using mobile phone 4 also as main frame side, then discharge circuit 15 cannot be connected, and battery 12 does not discharge, and electricity transfer can not occur between mobile phone 1 and mobile phone 4.
Control module 104 is also for selecting mobile phone 1 as from machine side as user, and judge module 103 judges that the voltage conforms mobile phone 1 of battery 12 is as during from the requirement of machine side, the input of connected Switch chip 152 and the input of XOR chip 151 are pulled to low level by control CPU13, and the Pin8 of USB interface 2 is also pulled to low level.
If user selects mobile phone 4 as main frame side, then the Pin7 of USB interface 2 is pulled to high level, by the effect of XOR chip 151 and Switch chip 152, charging circuit 16 is connected, the battery institute discharge stream of mobile phone 4 flows into the Pin9 of USB interface 2 through USB line 3, the effect via commutation circuit 14 and charging circuit 16 is filled with battery 12.
Judge module 103 also in the process of charging to mobile phone 1 at mobile phone 4, judges whether the voltage of battery 12 reaches charging deboost.
When control module 104 is also for judging that when judge module 103 voltage of battery 12 reaches charging deboost, the input of connected XOR chip 151 is pulled to high level by control CPU13, and charging circuit 16 is disconnected, and battery 12 stops electric discharge.
If user selects using mobile phone 4 also as from machine side, then charging circuit 16 cannot be connected, and electricity can not occur between mobile phone 1 and mobile phone 4 and shift.
Consulting shown in Fig. 6, is the flow chart of the electricity transfer method preferred embodiment of mobile phone of the present invention.When USB line 3 inserts USB interface 2, the Pin6 of USB interface will send and insert signal accordingly.
Step S10, detection module 101 detects the signal that this Pin6 sends, thus whether detection USB line 3 inserts USB interface 2.
Step S11, when detection module 101 detects that this Pin6 sends described insertion signal, namely detect that USB line 3 inserts USB interface 2, after mobile phone 1 is connected with mobile phone 4, the voltage of the battery 12 that receiver module 102 receiver voltage testing circuit 11 detects, and this voltage is shown on the screen of mobile phone 1.
Step S12, receiver module 102 receives the selection of mobile phone 1 as main frame side still from machine side, if using mobile phone 1 as main frame side, then enter step S13, if using mobile phone 1 as from machine side, then enter step S18.
Step S13, judge module 103 judges whether the voltage of detected battery 12 meets the requirement of mobile phone 1 as main frame side.Mobile phone 1 as the requirement of main frame side be the voltage of battery 12 higher than final discharging voltage, simultaneously not higher than charging deboost.If the voltage conforms mobile phone 1 of battery 12 is as the requirement of main frame side, then enter step S14, if the voltage of battery 12 does not meet the requirement of mobile phone 1 as main frame side, then process ends.
Step S14, an input of connected XOR chip 151 and the input of Switch chip 152 are pulled to high level by control module 104 control CPU13, and the Pin8 of USB interface 2 is also pulled to high level, now another input of XOR chip 151 is low level, then the output of XOR chip 151 is high level, the Enable Pin of the Switch chip 152 be connected with this output is high level, so just makes Switch chip 152 start.
Step S15, Switch chip 152 switching channel makes discharge circuit 15 connect, and enters step S16.If user is misoperation in step s 12, select using mobile phone 4 also simultaneously as main frame side, then discharge circuit 15 cannot be connected, process ends.
Step S16, battery 12 discharges, and institute's discharge stream reaches after standard output voltage and standard output electric current through booster circuit and current amplifier effect, and the Pin1 via commutation circuit 14 and USB interface 2 flows out, and is filled with in the battery of mobile phone 4 through USB line 3.
Step S17, when judge module 103 judges that the voltage of battery 12 reaches final discharging voltage, an input of connected XOR chip 151 is pulled to low level by control module 104 control CPU13, now, the output of this XOR chip 151 is pulled to low level, and the Enable Pin of the Switch chip 152 be connected with this output is low level, this Switch chip 152 is closed, discharge circuit 15 is disconnected, and battery 12 stops electric discharge, process ends.
Step S18, judge module 103 judges whether the voltage of detected battery 12 meets mobile phone 1 as the requirement from machine side.Mobile phone 1 as the requirement from machine side be battery 12 voltage lower than charging deboost, be not less than final discharging voltage simultaneously.If the voltage conforms mobile phone 1 of battery 12 is as the requirement from machine side, then enter step S19, if the voltage of battery 12 does not meet mobile phone 1 as the requirement from machine side, then process ends.
Step S19, an input of connected XOR chip 151 and the input of Switch chip 152 are pulled to low level by control module 104 control CPU13, and the Pin8 of USB interface 2 is also pulled to low level, now another input of XOR chip 151 is high level, then the output of XOR chip 151 is high level, the Enable Pin of the Switch chip 152 be connected with this output is high level, so just makes Switch chip 152 start.
Step S20, Switch chip 152 switching channel makes charging circuit 16 connect, and enters step S21.If user is misoperation in step s 12, select using mobile phone 4 also simultaneously as from machine side, then charging circuit 16 cannot be connected, process ends.
Step S21, the battery institute discharge stream of mobile phone 4 flows into the Pin9 of USB interface 2 through USB line 3, the effect via commutation circuit 14 and charging circuit 16 is filled with battery 12.
Step S22, when judge module 103 judges that the voltage of battery 12 reaches charging deboost, the input of connected XOR chip 151 is pulled to high level by control CPU13, and charging circuit 16 is disconnected, and battery 12 stops charging, process ends.
Above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.
Claims (10)
1. a mobile phone, is characterized in that, this mobile phone comprises the mini type USB interface of discharge circuit, commutation circuit and a 10Pin pin, wherein:
Described discharge circuit connects the battery of this mobile phone;
Described commutation circuit comprises an XOR chip and a Switch chip;
Described XOR chip comprises two inputs and an output;
Described Switch chip comprises an Enable Pin and an input, when this Enable Pin is high level, and Switch chip enable, when this Enable Pin is low level, Switch chip is closed;
The second input that the CPU of this mobile phone connects the first input end of this XOR chip, the input of this Switch chip and the Pin8 of this USB interface, XOR chip respectively connects the Pin7 of USB interface, and the output of XOR chip connects the Enable Pin of Switch chip;
Described CPU controls the first input end of the XOR chip connected, the input of Switch chip and the Pin8 of USB interface and is all high level or is all low level;
When the Enable Pin of Switch chip is pulled to high level, and when the input of Switch chip is pulled to high level, make USB interface connect described discharge circuit, make the battery discharge of this mobile phone and by a USB line, another mobile phone charged through this USB interface;
When the Enable Pin of Switch chip is pulled to high level, and when the input of Switch chip is pulled to low level, make USB interface connect the charging circuit of this mobile phone, another mobile phone institute discharge stream is charged to the battery of this mobile phone through USB line.
2. mobile phone as claimed in claim 1, it is characterized in that, described discharge circuit comprises booster circuit and current amplifier, reaches standard output voltage and standard output electric current for making this battery institute discharge stream.
3. mobile phone as claimed in claim 1, is characterized in that, whether the Pin6 of this USB interface is that ADC detects pin, have another mobile phone to connect this mobile phone by the USB line inserting this USB interface for detecting;
The Pin1 of this USB interface is the current output terminal of this mobile phone when charging to another mobile phone, and Pin9 is current input terminal when charging to this mobile phone.
4. mobile phone as claimed in claim 1, it is characterized in that, this mobile phone also comprises the voltage detecting circuit that is connected to battery of mobile phone, for detecting the voltage of this battery.
5. be applied to an electricity transfer system for mobile phone described in claim 1, it is characterized in that, this electricity transfer system comprises:
Whether detection module, have USB line to insert this USB interface for detecting;
Receiver module, for when having detected that USB line inserts this USB interface, when this mobile phone is connected with another mobile phone, has received the voltage of this battery of mobile phone, and reception is using the selection of this mobile phone as charge mobile phone side or mobile phone side of discharging;
Judge module, for judge this mobile phone voltage whether meet this mobile phone as charge mobile phone side or electric discharge mobile phone side requirement;
Control module, for when select this mobile phone as electric discharge mobile phone side and this mobile phone of the voltage conforms of this battery of mobile phone as electric discharge mobile phone side requirement time, the first input end of connected XOR chip and the input of Switch chip are pulled to high level by control CPU, and the Pin8 of USB interface is pulled to high level, then the Enable Pin of Switch chip is high level, make USB interface connect discharge circuit, make the battery discharge of this mobile phone and by this USB line, another mobile phone charged through this USB interface;
Described control module, also for when select this mobile phone as charge mobile phone side and the requirement of this mobile phone of the voltage conforms of this battery of mobile phone as charge mobile phone side time, the first input end of connected XOR chip and the input of Switch chip are pulled to low level by control CPU, and the Pin8 of USB interface is pulled to low level, then the Enable Pin of Switch chip is high level, make USB interface connect charging circuit, make another mobile phone institute discharge stream through this USB line to this charging mobile phone battery.
6. electricity transfer system as claimed in claim 5, is characterized in that, described judge module, also in the process of charging to another mobile phone at this mobile phone, judges whether the voltage of this battery of mobile phone reaches final discharging voltage;
Described control module, also for when the voltage of this battery of mobile phone reaches final discharging voltage, the first input end of connected XOR chip is pulled to low level by control CPU, and discharge circuit is disconnected, and this battery stops electric discharge.
7. electricity transfer system as claimed in claim 5, is characterized in that, described judge module, also in the process of charging to this mobile phone, judges whether the voltage of this battery of mobile phone reaches charging deboost;
Described control module, time also for reaching charging deboost when the voltage of this battery of mobile phone, control this CPU and the first input end of connected XOR chip is pulled to high level, charging circuit is disconnected, this battery stops charging.
8. utilize mobile phone as claimed in claim 1 to carry out a method for electricity transfer, it is characterized in that, the method comprises the following steps:
A this mobile phone is connected with another mobile phone by the USB interface of the 10Pin pin of mobile phone and USB line by ();
If b () selects this mobile phone as electric discharge mobile phone side, another mobile phone is as charge mobile phone side, and this mobile phone of the voltage conforms of this battery of mobile phone as electric discharge mobile phone side requirement time, then enter step (c), if select this mobile phone as charge mobile phone side, another mobile phone is as electric discharge mobile phone side, and this mobile phone of the voltage conforms of this battery of mobile phone is as the requirement of charge mobile phone side, then enter step (e);
C the first input end of connected XOR chip, the input of Switch chip and the Pin8 of this USB interface are pulled to high level by () control CPU, then the Enable Pin of Switch chip is high level;
D () Switch chip makes this USB interface connect discharge circuit, make the battery discharge of this mobile phone and be filled with in the battery of this another mobile phone through USB line;
E the first input end of connected XOR chip, the input of Switch chip and the Pin8 of this USB interface are pulled to low level by () control CPU, then the Enable Pin of Switch chip is high level;
F () Switch chip makes this USB interface connect charging circuit, the battery of another mobile phone institute discharge stream is filled with in the battery of this mobile phone through USB line.
9. the method for electricity transfer as claimed in claim 8, it is characterized in that, described step (d) also comprises:
When the voltage of this battery of mobile phone reaches final discharging voltage, the first input end of connected XOR chip is pulled to low level by control CPU, and discharge circuit is disconnected, and this battery stops electric discharge.
10. the method for electricity transfer as claimed in claim 8, it is characterized in that, described step (f) also comprises:
When the voltage of this battery of mobile phone reaches charging deboost, the first input end of connected XOR chip is pulled to high level by control CPU, and charging circuit is disconnected, and this battery stops charging.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110057746.2A CN102684236B (en) | 2011-03-10 | 2011-03-10 | Mobile phone, electric-quantity transferring system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110057746.2A CN102684236B (en) | 2011-03-10 | 2011-03-10 | Mobile phone, electric-quantity transferring system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102684236A CN102684236A (en) | 2012-09-19 |
CN102684236B true CN102684236B (en) | 2015-04-29 |
Family
ID=46815775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110057746.2A Expired - Fee Related CN102684236B (en) | 2011-03-10 | 2011-03-10 | Mobile phone, electric-quantity transferring system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102684236B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103138344A (en) * | 2013-02-08 | 2013-06-05 | 四川东林科技有限公司 | Method and device of interactive type wireless electric energy transmission |
CN103149983B (en) * | 2013-03-27 | 2016-11-02 | 苏州朗昇通信科技有限公司 | A kind of expanding peripherals fitting method and expanding peripherals |
CN104953631A (en) * | 2014-03-26 | 2015-09-30 | 中兴通讯股份有限公司 | Current control method and terminal device |
CN104577235B (en) * | 2015-01-30 | 2018-02-13 | 小米科技有限责任公司 | For the method for portable set charging, the method, apparatus and system of control charging |
CN106445856B (en) | 2015-08-07 | 2019-05-14 | 小米科技有限责任公司 | Interface circuit, state switching method and device |
CN106160100A (en) * | 2016-07-28 | 2016-11-23 | 广东欧珀移动通信有限公司 | Charging device for mobile terminal and mobile terminal |
CN106486716B (en) * | 2016-12-02 | 2021-01-08 | 惠州Tcl移动通信有限公司 | Method and system for avoiding abnormal electric quantity display of mobile terminal |
CN111817360A (en) * | 2019-04-10 | 2020-10-23 | 天津大学 | A device that implements a mobile phone as a power supply |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7679317B2 (en) * | 2005-02-15 | 2010-03-16 | Research In Motion Limited | Systems and methods for charging a chargeable USB device |
CN101728859A (en) * | 2009-12-17 | 2010-06-09 | 中兴通讯股份有限公司 | Mobile terminals and system and method for sharing batteries between same |
US7768150B2 (en) * | 2007-05-07 | 2010-08-03 | Stmicroelectronics S.R.L. | Power management unit for battery-operated devices |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7333328B2 (en) * | 2003-01-08 | 2008-02-19 | Sony Corporation | Hard disk system having a hard disk unit and a conversion unit for connection to a host device |
JP2007095417A (en) * | 2005-09-28 | 2007-04-12 | Sony Corp | Battery pack |
-
2011
- 2011-03-10 CN CN201110057746.2A patent/CN102684236B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7679317B2 (en) * | 2005-02-15 | 2010-03-16 | Research In Motion Limited | Systems and methods for charging a chargeable USB device |
US7768150B2 (en) * | 2007-05-07 | 2010-08-03 | Stmicroelectronics S.R.L. | Power management unit for battery-operated devices |
CN101728859A (en) * | 2009-12-17 | 2010-06-09 | 中兴通讯股份有限公司 | Mobile terminals and system and method for sharing batteries between same |
Also Published As
Publication number | Publication date |
---|---|
CN102684236A (en) | 2012-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102684236B (en) | Mobile phone, electric-quantity transferring system and method | |
TWI486771B (en) | Mobile phone and system and method for transferring power | |
US8339100B2 (en) | Systems and methods for cell balancing | |
US7821230B2 (en) | Method and system for cell equalization with switched charging sources | |
CN102097848A (en) | Wireless charging method among mobile equipment, wireless charging mobile equipment and mobile equipment wireless charging system | |
CN114498803A (en) | Charging and discharging circuit and electronic equipment | |
US9030152B2 (en) | Charging system and charging method | |
CN101938154B (en) | Terminal charging method, device and system | |
CN106585399A (en) | Electricity supplying vehicle and charging and discharging control circuit thereof | |
CN102842739A (en) | Battery charging method, apparatus, and system | |
CN101931247B (en) | Charging system and battery power management method | |
EP4331075A1 (en) | Battery pack charger including a settable power level | |
CN104993534A (en) | Mobile terminal and charge control method thereof | |
EP3771057B1 (en) | Cell protection circuit and electronic device | |
CN102231769A (en) | Method for turning on mobile phone with over-discharged cell and mobile phone | |
CN211830247U (en) | Multi-battery charging and discharging control device and system | |
CN105226754A (en) | Battery charge/discharge control circuit and control method thereof | |
CN113991773B (en) | Charging method and related equipment | |
CN101599658A (en) | Lithium battery pack charge capacity equilibrium control method and protective device thereof | |
CN203596855U (en) | Mobile terminal | |
CN101834459A (en) | Device and method for intelligently charging and discharging storage battery | |
CN106451646B (en) | Fast wear mobile device power supply | |
JP4108339B2 (en) | Lithium ion secondary battery charging method and apparatus | |
CN102130486A (en) | Charging device and method thereof | |
CN217848994U (en) | Hot plug type battery equalization system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150429 Termination date: 20200310 |