Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawingExemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth hereIt is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present inventionIt is fully disclosed to those skilled in the art.
After the embodiment of the present invention sends stopping charging instruction to charging adapter for mobile terminal, short time period cannotAgain the problem of charging to mobile terminal, the embodiment of the invention provides a kind of charging equipments, and controller can be made currentOperating voltage be promptly reduced to the controller standard operating voltage hereinafter, so that user can in a short time againIt is charged using the charging equipment to mobile terminal.
The embodiment of the invention provides a kind of charging equipment, which is used to charge for mobile terminal, such as Fig. 1 instituteShow, which includes:
Charging circuit 1 is provided with first switch mould group 11 on the charging circuit 1;
Discharge line 2 is connect with the charging circuit 1, and second switch mould group 21 is provided on the discharge line 2,And the first switch mould group 11 is closed, when the charging circuit 1 is charging work state, the second switch mould group 21 is inOff-state;
Controller 3, the controller 3 are connect with the first switch mould group 11 and the second switch mould group 21 respectively;
Wherein, when the controller 3 receives the stopping charging instruction of mobile terminal transmission, Xiang Suoshu first switch mould group11 outputs control the first control signal that the first switch mould group 11 disconnects, and export and control to the second switch mould group 21The second control signal that the second switch mould group 21 is closed.
Specifically, controller 3 detects that charging equipment is disconnected with input power, and receive mobile terminal transmissionWhen stopping charging instruction, the output of Xiang Suoshu first switch mould group 11 controls the first control letter that the first switch mould group 11 disconnectsNumber, and the second control signal that the second switch mould group 21 is closed is controlled to the second switch mould group 21 output, so that controlThe current control voltage of device processed quickly fall to standard operating voltage in a very short period of time hereinafter, charging equipment again with inputWhen power supply connects, it can charge again to mobile terminal.
In the embodiment of the present invention, above-mentioned charging circuit 1 includes input terminal and output end, and first switch mould group 11 is set to defeatedEnter between end and output end, input terminal is connect with input power, output end and power receiving equipment (mobile terminal is connect).
Above-mentioned stopping charging instruction is that mobile terminal is sent when detecting preset failure information to charging equipment, the stoppingCharging instruction is used to indicate charging equipment and stops to mobile terminal output voltage.The preset failure information may particularly include mobile wholeThe charging port over-voltage at end, overcurrent or temperature are excessively high.
The charging equipment of the embodiment of the present invention, when controller 3 receives the stopping charging instruction of mobile terminal transmission, to instituteIt states the output of first switch mould group 11 and controls the first control signal that the first switch mould group 11 disconnects, charging equipment stops to shiftingDynamic terminal charges, and controls the second control that the second switch mould group 21 is closed to the second switch mould group 21 outputSignal, at this point, discharge line is connected, discharge line discharges to controller, so that the current control voltage of controller is in poleStandard operating voltage is quickly fallen in the short time hereinafter, the i.e. complete power down of controller, allows users to reuse thisCharging equipment charges to mobile terminal.
Above-mentioned first switch mould group 11 and second switch mould group 21 can be specially metal oxide semiconductor field effect transistorMOSFET pipe.
Further, the discharge line 2 in the embodiment of the present invention includes: the first incoming end and the second incoming end, and describedOne incoming end is connect with the output end of the charging circuit 1, and the second incoming end ground connection, the second switch mould group 21 is arrangedBetween first incoming end and second incoming end.
When first switch mould group 11 is closed, and charging circuit 1 is charging work state, second switch mould group 21, which is in, to be disconnectedState does not influence charging equipment and charges to mobile terminal, controls second switch mould according to charging instruction is stopped in controller 3Group 21 closure when, discharge line 2 be connected, due to the discharge line 2 respectively with controller 3 and connect, in a short timeThe current operating voltage of controller 3 can be quickly fallen to standard operating voltage or less in a very short period of time.
It referring to fig. 2, is the another structural schematic diagram of the charging equipment of the embodiment of the present invention, structural schematic diagram shown in Fig. 2Difference with structural schematic diagram shown in FIG. 1 is that the second incoming end of discharge line 2 and the ground resistance 31 of controller 3 connectIt connects.
Here, it is realized by the way that the second incoming end to be connect with the ground resistance 31 of controller 3 and is grounded the second incoming endPurpose.
As depicted in figs. 1 and 2, in the charging equipment of the embodiment of the present invention, the discharge line 2 further include:
With the concatenated load 22 of the second switch mould group 21.
The load 22 is specially the ohmic load in fictitious load, and the size of 22 resistance value of load is directly proportional to discharge time,One timing of voltage difference, load resistance value is smaller, and electric current is bigger, discharges faster.
As depicted in figs. 1 and 2, in the charging equipment of the embodiment of the present invention, the discharge line 2 further include:
With the concatenated diode 23 of the second switch mould group 21.
The anode of specific diode is connect, the cathode of diode and the second incoming end with the first incoming end (load 22)(second switch mould group 21) connection, the electricity that the second input terminal can be effectively prevent by the way that diode 23 is arranged in discharge line 2Pressure is higher than the voltage of first input end.
Further, the controller includes the first control terminal and the second control terminal;First control terminal and described theThe connection of one switching molding group, second control terminal are connect with the second switch mould group.Controller can be specially IC chip, such as assistDiscuss IC chip.
When controller is IC chip, above-mentioned first control terminal can be specially general I/O port GPIO0, and above-mentioned theTwo control terminals can be specially GPIO1, and the second input terminal is connect by GPIO2 with ground resistance.
The charging equipment of the embodiment of the present invention, when IC chip receives the stopping charging instruction of mobile terminal transmission, to instituteIt states the output of first switch mould group and controls the first control signal that the first switch mould group disconnects, and to the second switch mould groupOutput controls the second control signal of the second switch mould group closure, so that discharge line is connected, the current work of IC chipVoltage can promptly be reduced to the standard operating voltage of the agreement IC chip hereinafter, enabling a user in a short timeThe charging equipment is reused to charge to mobile terminal.
The embodiments of the present invention also provide a kind of voltage control methods, are applied to charging equipment as described above, such as Fig. 3Shown, which includes:
Step 301: detecting whether to receive the stopping charging instruction of mobile terminal transmission.
The stopping charging instruction is that mobile terminal is sent when detecting preset failure information to charging equipment, which fillsElectricity instruction is used to indicate charging equipment and stops to mobile terminal output voltage.The preset failure information may particularly include mobile terminalCharging port over-voltage, overcurrent or temperature it is excessively high.
Step 302: if receiving the stopping charging instruction, exporting and control to the first switch mould group of the charging equipmentThe first control signal that the first switch mould group disconnects is made, and exports control institute to the second switch mould group of the charging equipmentState the second control signal of second switch mould group closure.
Specifically, when controller 3 receives the stopping charging instruction of mobile terminal transmission, Xiang Suoshu first switch mould group 11Output controls the first control signal that the first switch mould group 11 disconnects, and charging equipment stopping charges to mobile terminal,And the second control signal that the second switch mould group 21 is closed is controlled to the second switch mould group 21 output, at this point, electric dischargeLine conduction, discharge line discharge to controller, so that the current control voltage of controller is rapid in a very short period of timeDrop to standard operating voltage hereinafter, the i.e. complete power down of controller, allows users to reuse the charging in a short timeEquipment charges to mobile terminal.
Further, above-mentioned steps 302 include:
If receiving the stopping charging instruction, and the charging equipment is disconnected with input power, then filled to describedThe first switch mould group output of electric equipment controls the first control signal that the first switch mould group disconnects, and sets to the chargingStandby second switch mould group output controls the second control signal of the second switch mould group closure.
Further, after above-mentioned steps 302, further includes:
If receiving the charging instruction of mobile terminal transmission, and the charging equipment is connect with input power, then Xiang SuoshuThe third that the first switch mould group output of charging equipment controls first switch mould group closure controls signal, and to the chargingThe second switch mould group output of equipment controls the 4th control signal that the second switch mould group disconnects.
In the voltage control method of the embodiment of the present invention, the charging instruction of mobile terminal transmission, and charging equipment are receivedWhen connecting again with input power, control charging equipment charges to mobile terminal, and controls discharge circuit and stop electric discharge, makesUser can reuse the charging equipment in a short time and charge to mobile terminal, improve user uses bodyIt tests.
It is as follows to a concrete application process description of the embodiment of the present invention below.
As shown in figure 4, the application flow includes:
Step 401: whether detection charging equipment disconnects with input power.
Step 402: if the charging equipment is disconnected with input power, judging whether to receive mobile terminal transmissionStopping charging instruction.
Step 403: if receiving the stopping charging instruction of mobile terminal transmission, star t-up discharge route makes IC chipVoltage drops to the standard operating voltage of IC chip or less within a preset time.
Specifically, receive mobile terminal transmission stopping charging instruction after, can delay scheduled time, such as 2ms, restartDischarge line makes the voltage of IC chip drop to the standard operating voltage of IC chip or less (in 2ms) within a preset time.
Step 404: if not receiving the stopping charging instruction of mobile terminal transmission, being not turned on discharge line.
If not receiving the stopping charging instruction of mobile terminal transmission, it is determined that be normal power down process, do not lead at this timeLogical discharge line discharges.
In the embodiment of the present invention, detection charging equipment disconnected with input power, and receive stopping charging instruction after,Output voltage is dropped to the standard operating voltage of IC chip in 2ms hereinafter, connecting charging equipment with input power againWhen connecing, charging equipment can normally charge to mobile terminal, and the excessive time is waited without user, improves user'sUsage experience.
Further, the power receiving equipment of the embodiment of the present invention, i.e. mobile terminal, when detecting preset failure information, toCharging equipment, which is sent, stops charging instruction, and carries out failure prompting.Specifically, when mobile terminal detects preset failure information,Failure prompting is carried out by text or voice, allows users to know to charging equipment and has sent stopping charging instruction.
In a specific embodiment of the present invention, as shown in figure 5, the process that mobile terminal carries out failure prompting can be wrapped specificallyIt includes:
Step 501: whether detection mobile terminal occurs preset failure.
Here preset failure can include: the excessively high failure of charging port over-voltage, overcurrent or the temperature of mobile terminal.
Step 502: if preset failure occurs for mobile terminal, postponing the first predetermined amount of time, detect mobile terminal againWhether preset failure is occurred.
First preset time period can be specially 3ms.
Step 503: if detecting that preset failure occurs again, carrying out failure prompting, and send and stop to charging equipmentCharging instruction.
Such as reminded in the display screen of mobile terminal by text, alternatively, prompted by voice, alternatively,It is prompted simultaneously by voice and text, so that mobile terminal user is known the fault message, enhance the sensory experience of user.
The mobile terminal of the embodiment of the present invention carries out fault detection twice, effectively prevents due to caused by error detection accidentallyProtection, and carry out failure prompting by text or voice, allows users to know to charging equipment and has sent stopping charging instruction,Enhance the sensory experience of mobile terminal user.
The voltage control method and charging equipment of the embodiment of the present invention, the stopping that controller receives mobile terminal transmission are filledWhen electricity instruction, the output of Xiang Suoshu first switch mould group controls the first control signal that the first switch mould group disconnects, and to instituteThe second control signal that the output of second switch mould group controls the second switch mould group closure is stated, so that discharge line is connected, controlThe current operating voltage of device processed can promptly be reduced to the controller standard operating voltage hereinafter, enabling a user toThe charging equipment is reused in short time to charge to mobile terminal.
The embodiments of the present invention also provide a kind of charging equipments, comprising: memory, processor and storage are on a memoryAnd the voltage control routine that can be run on a processor, the voltage control routine realize above-mentioned electricity when being executed by the processorEach process in voltage-controlled embodiment of the method processed, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
The embodiments of the present invention also provide a kind of computer readable storage medium, on the computer readable storage mediumIt is stored with voltage control routine, the voltage control routine is realized when being executed by processor in above-mentioned voltage control method embodimentEach process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer canStorage medium is read, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (RandomAccess Memory, abbreviation RAM), magnetic or disk etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the inventionWithin mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are withThe difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows basesThis creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted asIncluding preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to byOne entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operationBetween there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaningCovering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrapThose elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, articleOr the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limitedElement, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.