CN105071473A - USB charging method and device - Google Patents

USB charging method and device Download PDF

Info

Publication number
CN105071473A
CN105071473A CN201510490185.3A CN201510490185A CN105071473A CN 105071473 A CN105071473 A CN 105071473A CN 201510490185 A CN201510490185 A CN 201510490185A CN 105071473 A CN105071473 A CN 105071473A
Authority
CN
China
Prior art keywords
terminal equipment
charging
charging current
target charge
charge current
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
Application number
CN201510490185.3A
Other languages
Chinese (zh)
Other versions
CN105071473B (en
Inventor
余明阳
张晓丹
马百鸣
王巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510490185.3A priority Critical patent/CN105071473B/en
Publication of CN105071473A publication Critical patent/CN105071473A/en
Application granted granted Critical
Publication of CN105071473B publication Critical patent/CN105071473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

An embodiment of the invention discloses a USB charging method and device. The method is characterized by, when detecting that communication can be carried out between a USB charger and a terminal device, sending a charging current request message to the terminal device to request for obtaining a target charging current of the terminal device; and then, controlling a charging circuit according to a received charging current response message returned by the terminal device to enable the charging circuit to output a charging current matched with the target charging current, and thus the terminal device is charged with the optimum charging current. According to the method above, the USB charger obtains the target charging current of the terminal device by carrying out communication with the terminal device, can differentiate various different target charging currents of the different terminal devices, and then, provides the optimum charging currents for the terminal devices respectively according to the target charging currents, so that quick charge is realized under the condition of not damaging hardware of the terminal devices. If detecting that communication cannot be carried out between the USB charger and the terminal device, the charging circuit is controlled to output a preset minimum charging current for charging the terminal device.

Description

USB charging method and device
Technical field
The disclosure relates to field of computer technology, particularly relates to a kind of USB (UniversalSerialBus, USB) charging method and device.
Background technology
Along with USB interface charging modes is promoted, terminal equipment uses USB interface to charge usually, such as, and mobile phone, panel computer, PDA (PersonalDigitalAssistant, personal digital assistant) or vehicle-mounted computer etc.
In correlation technique, 500mA, 1A or 2A that the charging current kind commonly using USB charger normally presets, cannot dynamically change, and the optimal charge electric current of different terminal equipment is not completely unified.It is long that terminal equipment uses the USB charger of miscellaneous equipment may run into the charging current little charging interval, or, the problem of the large damage terminal device hardware of charging current.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of USB charging method and device.
In order to solve the problems of the technologies described above, disclosure embodiment discloses following technical scheme:
According to the first aspect of disclosure embodiment, a kind of USB charging method is provided, comprises:
Detect and whether can communicate with between terminal equipment;
With when communicating between terminal equipment, charging current request message can be sent to described terminal equipment when detecting; Receive the charging current response message that described terminal equipment returns, described charging current response message carries the target charge current of described terminal equipment; Control charging circuit according to described target charge current and export the charging current matched with described target charge current;
When detect cannot communicate between described terminal equipment time, control described charging circuit export preset minimum charge current be described terminal equipment charging.
In the USB charging method that first aspect provides, when USB charger is terminal equipment charging, by obtaining the target charge current of terminal equipment with carrying out between terminal equipment communicating, the multiple different target charge current of different terminal equipment can be distinguished, and be charged as according to target the charging current that terminal equipment provides the best, when not damaging terminal device hardware, realize quick charge.And, cannot to communicate between terminal equipment if detected, then control charging circuit and export that to preset minimum charge current is terminal equipment charging, avoid terminal equipment to impact by large charging current.
According to first aspect, in the first possible implementation of first aspect, described charging current request message meets usb communication agreement, WiFi (WIreless-Fidelity, Wireless Fidelity) communication protocol, Bluetooth communication protocol or wireless near field communication agreement.
In the USB charging method that the first possible implementation of first aspect provides, USB charger can pass through communication and the terminal equipment in communication such as usb communication, WiFi communication, Bluetooth communication or NFC communication, improves the flexibility communicated between USB charger with terminal equipment.
According to the second aspect of disclosure embodiment, a kind of USB charging method is provided, comprises:
Receive the charging current request message that general-purpose serial bus USB charger sends;
According to described charging current request message, obtain target charge current;
Return charging current response message to described USB charger, described charging current response message carries described target charge current, controls charging circuit export the charging current matched with described target charge current to make described USB charger.
In the USB charging method that second aspect provides, after terminal equipment receives the charging current request of USB charger, obtain target charge current, and the charging current response message carrying target charge current is returned to USB charger, exporting the charging current that matches with target charge current to make USB charger for terminal equipment charges, and, USB charger is by obtaining the target charge current of terminal equipment with carrying out between terminal equipment communicating, can distinguish the multiple different target charge current of different terminal equipment, the scope of application is wider.
According to second aspect, in the first possible implementation of second aspect, described according to described charging current request message, obtain target charge current, comprising:
After receiving described charging current request message, from usb interface module, obtain described target charge current.
In the USB charging method that the first possible implementation of second aspect provides, under terminal equipment power down condition, terminal equipment also can be communicated with USB charger by USB interface, and target charge current can be read from usb interface module and be supplied to USB charger, making USB charger export the charging current matched with target charge current is that terminal equipment charges, under the prerequisite not damaging terminal device hardware, realize quick charge, and expand the application scenarios of quick charge.
According to the third aspect of disclosure embodiment, a kind of USB charging device is provided, comprises:
Whether detection module, can communicate with between terminal equipment for detecting;
Sending module, with when communicating between terminal equipment, can send charging current request message to terminal equipment for detecting when described detection module;
Receiver module, for receiving the charging current response message that described terminal equipment returns, described charging current response message carries the target charge current that described terminal equipment is suitable for;
First control module, the target charge current for obtaining according to described receiver module controls charging circuit and exports the charging current matched with described target charge current;
Second control module, when cannot communicate between described terminal equipment for detecting when described detection module, controlling the default minimum charge current of described charging circuit output is that described terminal equipment charges.
According to the third aspect, in the first possible implementation of the third aspect, described charging current request message meets general-purpose serial bus USB communication protocol, Wireless Fidelity WiFi communication agreement, Bluetooth communication protocol or wireless near field communication agreement.
According to the fourth aspect of disclosure embodiment, a kind of USB charging device is provided, comprises:
Receiver module, for receiving the charging current request message that general-purpose serial bus USB charger sends;
Acquisition module, for the charging current request message received according to described receiver module, obtains target charge current;
Sending module, for returning charging current response message to described USB charger, described charging current response message carries described target charge current, controls charging circuit export the charging current matched with described target charge current to make described USB charger.
According to fourth aspect, in the first possible implementation of fourth aspect, in usb interface module, store the target charge current of terminal equipment;
Described acquisition module, for the target charge current of reading terminal equipment from usb interface module.
According to the 5th aspect of disclosure embodiment, a kind of USB charger is provided, comprises: processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Detect and whether can communicate with between terminal equipment;
With when communicating between terminal equipment, charging current request message can be sent to terminal equipment when detecting;
Receive the charging current response message that described terminal equipment returns, described charging current response message carries the target charge current that described terminal equipment is suitable for;
Control charging circuit according to described target charge current and export the charging current matched with described target charge current;
When detect cannot communicate between described terminal equipment time, control described charging circuit export preset minimum charge current be that described terminal equipment charges.
According to the 6th aspect of disclosure embodiment, a kind of terminal equipment is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the charging current request message that general-purpose serial bus USB charger sends;
According to described charging current request message, obtain target charge current;
Return charging current response message to described USB charger, described charging current response message carries described target charge current, controls charging circuit export the charging current matched with described target charge current to make described USB charger.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: USB charger detects and can communicate with between terminal equipment, then send charging current request message to terminal equipment, and request obtains the target charge current of terminal equipment; Then, controlling charging circuit according to receiving the charging current response message that terminal equipment returns, making this charging circuit export the charging current matched with target charge current, thus realizing charging with the optimal charge electric current of terminal equipment.As shown in the above, by obtaining the target charge current of terminal equipment with carrying out between terminal equipment communicating, the multiple different target charge current of different terminal equipment can be distinguished, and be charged as according to target the charging current that terminal equipment provides the best, when not damaging terminal device hardware, realize quick charge.Cannot to communicate between terminal equipment if detected, then control charging circuit and export that to preset minimum charge current is terminal equipment charging, avoid terminal equipment to impact by large charging current.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the flow chart of a kind of USB charging method according to an exemplary embodiment;
Fig. 2 is the flow chart of the another kind of USB charging method according to an exemplary embodiment;
Fig. 3 is the flow chart of the another kind of USB charging method according to an exemplary embodiment;
Fig. 4 is the block diagram of a kind of USB charging device according to an exemplary embodiment;
Fig. 5 is the block diagram of the another kind of USB charging device according to an exemplary embodiment;
Fig. 6 is the block diagram of a kind of USB charger according to an exemplary embodiment;
Fig. 7 is the block diagram of a kind of device for USB charging method according to an exemplary embodiment.
By above-mentioned accompanying drawing, illustrate the embodiment that the disclosure is clear and definite more detailed description will be had hereinafter.These accompanying drawings be not in order to limited by any mode the disclosure design scope, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the flow chart of a kind of USB charging method according to an exemplary embodiment, and as shown in Figure 1, the USB charging method that the present embodiment provides is applied in USB charger, can comprise the following steps:
In S110, whether USB charger detects and can communicate with between terminal equipment; If can communicate with terminal equipment, then perform S120; If cannot communicate with between terminal equipment, then perform S150.
In USB charger, be provided with communication module, such as, can be usb communication module, WiFi communication module, bluetooth communication or NFC (NearFieldCommunication, short-range communication) communication module.
In an exemplary embodiment of the present disclosure, after the USB of USB charger connects terminal equipment, detect and whether can communicate with between terminal equipment, such as, USB charger sends communication request message to terminal equipment, if receive the communication response message that terminal equipment returns in preset time period, then determine can communicate between terminal equipment; If do not receive the communication response message that terminal equipment returns in preset time period, then determine cannot communicate between terminal equipment, such as, the communication module of terminal equipment shutdown, terminal equipment cannot carry out the situation of communicating etc.
In other embodiment of the present disclosure, can be that terminal equipment charges after a period of time in USB charger, then detect and whether can communicate with between terminal equipment.
Wherein, the communication protocol that the communication module that communication request message meets setting in USB charger uses, if be provided with usb communication module in USB charger, then communication request message meets usb communication agreement.Certainly, USB charger utilizes usb communication the most directly and most convenient, can utilize in USB interface and communicate with terminal equipment for D-, D+ two pins transmitting data, that is, utilize D-, D+ transport communication request message.
In S120, USB charger sends charging current request message to terminal equipment.
If USB charger is determined can communicate between terminal equipment, then USB charger sends charging current request message to terminal equipment, for asking the size obtaining the target charge current that terminal equipment uses.
In S130, the charging current response message that USB charger receiving terminal apparatus returns, the target charge current of charging current response message carried terminal equipment.
The size of the target charge current that USB charger receiving terminal apparatus returns.Terminal equipment returns charging current response message to USB charger, this charging current response message carries target charge current, target charge current in charging current response message can utilize the character representation such as letter, numeral, character and target charge current one_to_one corresponding, such as, " a " represents that target charge current is 500mA, and " b " represents that target charge current is 1A, and " c " represents that target charge current is 2A.And for example, binary number " 0 " represents that target charge current is 500mA, and binary number " 1 " represents that target charge current is 1A, and binary number " 10 " represents that target charge current is 2A.
In S140, USB charger controls charging circuit according to target charge current and exports the charging current matched with target charge current.
The charging current that USB charger regulates charging circuit to export, charging current and target charge current are matched, and such as, target charge current is 1A, the charging current then controlling charging circuit output is about 1A, and the difference between charging current and target charge current is within the scope of permissible error.Thus ensure that USB charger can with the receptible maximum charging current of terminal equipment for terminal equipment charges.
In S150, it is terminal equipment charging that USB charger controls the default minimum charge current of charging circuit output.
If USB charger can not communicate with terminal equipment, then controlling the default minimum charge current of charging circuit output is terminal equipment charging, and such as, it is terminal equipment charging that charging circuit exports 500mA electric current.
The USB charging method that the present embodiment provides, whether USB charger detects and can communicate with between terminal equipment, can communicate if detected with between terminal equipment, then send charging current request message to terminal equipment; And the charging current response message that receiving terminal apparatus returns, the target charge current of this charging current response message carried terminal equipment; Control charging circuit according to the charging current response message that receives, make this charging circuit export the charging current matched with target charge current, thus realize with terminal equipment the charging current that is suitable for charge.As shown in the above, USB charger is when charging for terminal equipment, by obtaining the target charge current of terminal equipment with carrying out between terminal equipment communicating, the multiple different target charge current of different terminal equipment can be distinguished, and be charged as according to target the charging current that terminal equipment provides the best, when not damaging terminal device hardware, realize quick charge.Cannot to communicate between terminal equipment if detected, then control charging circuit and export that to preset minimum charge current is terminal equipment charging.
Fig. 2 is the flow chart of the another kind of USB charging method according to an exemplary embodiment, the method is applied to terminal equipment (such as, mobile phone, panel computer, PDA, vehicle-mounted computer, player etc.) in, as shown in Figure 2, can comprise the following steps:
In S210, terminal equipment receives the charging current request message that USB charger sends.
Communication module is provided with in USB charger, such as, usb communication module, WiFi communication module, bluetooth communication or NFC communication module etc.USB charger is by communicating between these communication module with terminal equipments.
Terminal equipment receives the charging current request message that USB charger sends, and charging current request message is for obtaining the target charge current of terminal equipment.
In S220, terminal equipment, according to charging current request message, obtains target charge current.
Terminal equipment, according to the charging current request message received, obtains target charge current, target charge current and the receptible maximum charging current of terminal equipment.Target charge current is prestored in storage area by terminal equipment, when terminal equipment receives charging current request message, from storage area, reads target charge current.
In S230, terminal equipment returns charging current response message to USB charger, and charging current response message carries target charge current, controls charging circuit export the charging current matched with target charge current to make USB charger.
After terminal equipment obtains target charge current, be carried in charging current response message, and charging current response message is returned to USB charger, make USB charger know the target charge current of terminal equipment, and control the charging current that charging control circuit exports and target charge current matches of USB charger according to target charge current.
The USB charging method that the present embodiment provides, after terminal equipment receives the charging current request of USB charger, obtains target charge current, and returns the charging current response message carrying target charge current to USB charger.After USB charger obtains target charge current, control the charging current that charging control circuit exports, charging current and target charge current are matched.Thus the charging current that the target charge current realizing USB charging output and terminal equipment matches is that terminal equipment charges, for terminal equipment provides best charging current, when not damaging terminal device hardware, realize quick charge.
Fig. 3 is the flow chart of the another kind of USB charging method according to an exemplary embodiment, and the method is applied in the system comprising terminal equipment and USB charger.In the present embodiment, USB charger and terminal equipment can carry out usb communication, and as shown in Figure 3, the method can comprise the following steps:
In S310, USB charger sends communication request message by usb communication module to terminal equipment after connecting terminal equipment.Communication request message is used for judging whether can communicate with between terminal equipment.
In S320, after terminal equipment receives communication request message, return communication response message to USB charger.
In one exemplary embodiment, usb interface module in terminal equipment can be set to standalone module, namely the power supply in terminal equipment is not relied on, like this, when terminal equipment shuts down, normally can work after usb interface module is connected with USB charger, that is, usb communication can be carried out with USB charger when terminal equipment shuts down.
In S330, after USB charger receives communication response message, send charging current request message by usb communication module to terminal equipment.Charging current request message is for obtaining the target charge current of terminal equipment.
In S340, terminal equipment reads target charge current after receiving charging current request message from storage area.
In one exemplary embodiment, target charge current can be stored in the storage area in the usb interface module of terminal equipment.
In S350, target charge current is carried in charging current response message by terminal equipment, and sends to USB charger.
In S360, USB charger controls charging control circuit and exports the charging current matched with target charge current.
The USB charging method that the present embodiment provides, usb interface module in terminal equipment is set to standalone module, terminal equipment receives the communication request message that USB charger sends, and returns communication response message to USB charger, charges determine can communicate between terminal equipment to make USB.Then, USB charger sends charging current request message to terminal equipment, and terminal equipment reads target charge current from the storage area of usb interface module, and returns to USB charger.USB charger controls the charging current that charging control circuit exports, and this charging current and target charge current are matched.The charging method that the present embodiment provides, terminal equipment also can carry out usb communication with USB charger under power down condition, and obtain target charge current and return to USB charger, charging current USB charger being utilized match with target charge current is charged for terminal equipment, realize quick charge, and expand the scope of application of quick charge.
Corresponding to above-mentioned USB charging method embodiment, the disclosure additionally provides USB charging device embodiment.
Fig. 4 is the block diagram of a kind of USB charging device according to an exemplary embodiment, this USB charging device is applied in USB charger, as shown in Figure 4, this USB charging device can comprise detection module 110, sending module 120, receiver module 130, first control module 140 and the second control module 150.
Whether detection module 110 is configured to, detect and can communicate with between terminal equipment.
Communication module is provided with in USB charger, such as, can be usb communication module, WiFi (WIreless-Fidelity, Wireless Fidelity) communication module, bluetooth communication or NFC (NearFieldCommunication, short-range communication) communication module.
In the disclosure one exemplary embodiment, detection module can send communication request message to terminal equipment, if receive the communication response message that terminal equipment returns in preset time period, then determines can communicate between terminal equipment; If do not receive the communication response message that terminal equipment returns in preset time period, then determine cannot communicate between terminal equipment, such as, the communication module of terminal equipment shutdown, terminal equipment cannot carry out the situation of communicating etc.
Sending module 120 is configured to, and with when communicating between terminal equipment, can send charging current request message to terminal equipment when detection module 110 detects.
Charging current request message meets general-purpose serial bus USB communication protocol, Wireless Fidelity WiFi communication agreement, Bluetooth communication protocol or wireless near field communication agreement.
Receiver module 130 is configured to, the charging current response message that receiving terminal apparatus returns, the target charge current that charging current response message carried terminal equipment is suitable for.
Terminal equipment returns the charging current response message carrying target charge current after receiving the charging current request message of USB charger transmission to USB charger.
First control module 140 is configured to, and controls according to the target charge current that receiver module 130 obtains the charging current that charging circuit exports and target charge current matches.
Second control module 150 is configured to, when detection module 110 detect cannot communicate between terminal equipment time, control charging circuit export preset minimum charge current be terminal equipment charging.
If detection module determination USB charger is with when cannot communicate between terminal equipment, controlling the default minimum charge current of charging circuit output is terminal equipment charging, such as, and 500mA.
The USB charging device that the present embodiment provides, whether checkout equipment detects and can communicate with between terminal equipment, if can with terminal equipment in communication, then send charging current request message by sending module to terminal equipment, for asking the charging current obtaining terminal equipment.When receiver module receiving terminal apparatus return carry the charging current response message of target charge current after, control charging circuit by the first control module and export the charging current matched with target charge current.If detection module is determined cannot communicate with terminal equipment, then control charging circuit by the second control module and export and preset minimum charge current, utilize and preset minimum charge current and charge for terminal equipment.Utilizing this USB charging device can realize USB charger and provide best charging current for terminal equipment, when not damaging terminal device hardware, realizing quick charge.
Fig. 5 is the block diagram of the another kind of USB charging device according to an exemplary embodiment, and this application of installation is in terminal equipment, and as shown in Figure 5, this device can comprise receiver module 210, acquisition module 220 and sending module 230.
Receiver module 210 is configured to, and receives the charging current request message that USB charger sends.
Acquisition module 220 is configured to, and according to the charging current request message that receiver module 210 receives, obtains target charge current.
In the disclosure one exemplary embodiment, usb interface module in terminal equipment can be set to standalone module, namely the power supply in terminal equipment is not relied on, like this, when terminal equipment shuts down, normally can work after usb interface module is connected with USB charger, that is, usb communication can be carried out with USB charger when terminal equipment shuts down.Under this kind of application scenarios, acquisition module can the direct target charge current of reading terminal equipment from the storage area of usb interface module.
Sending module 230 is configured to, and returns charging current response message to USB charger, and charging current response message carries target charge current, controls charging circuit export the charging current matched with target charge current to make USB charger.
The USB charging device that the present embodiment provides, receiver module obtains target charge current by acquisition module after receiving the charging current request of USB charger, and is returned the charging current response message carrying target charge current to USB charger by sending module.After USB charger obtains target charge current, control the charging current that charging control circuit exports, charging current and target charge current are matched.Thus the charging current that the target charge current realizing USB charging output and terminal equipment matches is that terminal equipment charges, for terminal equipment provides best charging current, when not damaging terminal device hardware, realize quick charge.
Fig. 6 is the block diagram of a kind of USB charger according to an exemplary embodiment, and this USB charger comprises memory 310, processor 320, charging circuit 330 and communication module 340.
Charging circuit 330 is connected with processor 320, for exporting charging current under the control action of processor 320, is terminal equipment charging.Wherein, processor 320 can be microprocessor.
Communication module 340 is connected with processor 320, for the communication between USB charger and terminal equipment.
Memory 310 stores executable instruction, when instruction in processor 320 execute store 310, makes USB charger to perform following methods:
Detect and whether can communicate with between terminal equipment;
With when communicating between terminal equipment, charging current request message can be sent to terminal equipment when detecting;
The charging current response message that receiving terminal apparatus returns, the target charge current that charging current response message carried terminal equipment is suitable for;
Control charging circuit according to target charge current and export the charging current matched with target charge current;
When detect cannot communicate between terminal equipment time, control charging circuit export preset minimum charge current be that terminal equipment charges.
Whether the USB charger that the present embodiment provides, can detect and can communicate between terminal equipment, can communicate if detected with between terminal equipment, then send charging current request message to terminal equipment; And the charging current response message that receiving terminal apparatus returns, the target charge current of this charging current response message carried terminal equipment; Control charging circuit according to the charging current response message that receives, make this charging circuit export the charging current matched with target charge current, thus realize with terminal equipment the charging current that is suitable for charge.Cannot to communicate between terminal equipment if detected, then control charging circuit and export that to preset minimum charge current is terminal equipment charging.As shown in the above, USB charger is when charging for terminal equipment, and detecting can with when communicating between terminal equipment, obtain the target charge current of terminal equipment, for terminal equipment provides best charging current, when not damaging terminal device hardware, realize quick charge.
Fig. 7 is the block diagram of a kind of device 700 for USB charging method according to an exemplary embodiment.Such as, device 700 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
As shown in Figure 7, device 700 can comprise following one or more assembly: processing components 702, memory 704, power supply module 706, multimedia groupware 708, audio-frequency assembly 710, the interface 712 of I/O (I/O), sensor cluster 714, and communications component 716.
The integrated operation of the usual control device 700 of processing components 702, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 702 can comprise one or more processor 720 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 702 can comprise one or more module, and what be convenient between processing components 702 and other assemblies is mutual.Such as, processing components 702 can comprise multi-media module, mutual with what facilitate between multimedia groupware 708 and processing components 702.
Memory 704 is configured to store various types of data to be supported in the operation of device 700.The example of these data comprises for any application program of operation on device 700 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 704 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 706 is device 700 provide electric power.Power supply module 706 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 700 and be associated.
Multimedia groupware 708 is included in the screen providing an output interface between device 700 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 708 comprises a front-facing camera and/or post-positioned pick-up head.When device 700 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 710 is configured to export and/or input audio signal.Such as, audio-frequency assembly 710 comprises a microphone (MIC), and when device 700 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 704 further or be sent via communications component 716.In certain embodiments, audio-frequency assembly 710 also comprises a loud speaker, for output audio signal.
I/O interface 712 is for providing interface between processing components 702 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 714 comprises one or more transducer, for providing the state estimation of various aspects for device 700.Such as, sensor cluster 714 can detect the opening/closing state of device 700, the relative positioning of assembly, such as assembly is display and the keypad of device 700, the position of all right checkout gear 700 of sensor cluster 714 or device 700 1 assemblies changes, the presence or absence that user contacts with device 700, the variations in temperature of device 700 orientation or acceleration/deceleration and device 700.Sensor cluster 714 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 714 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 714 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 716 is configured to the communication being convenient to wired or wireless mode between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 716 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, communications component 716 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 700 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 704 of instruction, above-mentioned instruction can perform said method by the processor 720 of device 700.Such as, non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is performed by the processor of mobile terminal, make terminal equipment can perform a kind of USB charging method, method comprises:
Receive the charging current request message that general-purpose serial bus USB charger sends;
According to charging current request message, obtain target charge current;
Return charging current response message to USB charger, charging current response message carries target charge current, controls charging circuit export the charging current matched with target charge current to make USB charger.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (10)

1. a USB charging method, is characterized in that, comprising:
Detect and whether can communicate with between terminal equipment;
With when communicating between terminal equipment, charging current request message can be sent to described terminal equipment when detecting;
Receive the charging current response message that described terminal equipment returns, described charging current response message carries the target charge current of described terminal equipment;
Control charging circuit according to described target charge current and export the charging current matched with described target charge current;
When detect cannot communicate between described terminal equipment time, control described charging circuit export preset minimum charge current be described terminal equipment charging.
2. method according to claim 1, is characterized in that:
Described charging current request message meets general-purpose serial bus USB communication protocol, Wireless Fidelity WiFi communication agreement, Bluetooth communication protocol or wireless near field communication agreement.
3. a USB charging method, is characterized in that, comprising:
Receive the charging current request message that general-purpose serial bus USB charger sends;
According to described charging current request message, obtain target charge current;
Return charging current response message to described USB charger, described charging current response message carries described target charge current, controls charging circuit export the charging current matched with described target charge current to make described USB charger.
4. method according to claim 3, is characterized in that, described according to described charging current request message, obtains target charge current, comprising:
After receiving described charging current request message, from usb interface module, obtain described target charge current.
5. a USB charging device, is characterized in that, comprising:
Whether detection module, can communicate with between terminal equipment for detecting;
Sending module, with when communicating between terminal equipment, can send charging current request message to terminal equipment for detecting when described detection module;
Receiver module, for receiving the charging current response message that described terminal equipment returns, described charging current response message carries the target charge current that described terminal equipment is suitable for;
First control module, the target charge current for obtaining according to described receiver module controls charging circuit and exports the charging current matched with described target charge current;
Second control module, when cannot communicate between described terminal equipment for detecting when described detection module, controlling the default minimum charge current of described charging circuit output is that described terminal equipment charges.
6. device according to claim 5, is characterized in that, described charging current request message meets general-purpose serial bus USB communication protocol, Wireless Fidelity WiFi communication agreement, Bluetooth communication protocol or wireless near field communication agreement.
7. a USB charging device, is characterized in that, comprising:
Receiver module, for receiving the charging current request message that general-purpose serial bus USB charger sends;
Acquisition module, for the charging current request message received according to described receiver module, obtains target charge current;
Sending module, for returning charging current response message to described USB charger, described charging current response message carries described target charge current, controls charging circuit export the charging current matched with described target charge current to make described USB charger.
8. device according to claim 7, is characterized in that, stores the target charge current of terminal equipment in usb interface module;
Described acquisition module, for the target charge current of reading terminal equipment from usb interface module.
9. a USB charger, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Detect and whether can communicate with between terminal equipment;
With when communicating between terminal equipment, charging current request message can be sent to terminal equipment when detecting;
Receive the charging current response message that described terminal equipment returns, described charging current response message carries the target charge current that described terminal equipment is suitable for;
Control charging circuit according to described target charge current and export the charging current matched with described target charge current;
When detect cannot communicate between described terminal equipment time, control described charging circuit export preset minimum charge current be that described terminal equipment charges.
10. a terminal equipment, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the charging current request message that general-purpose serial bus USB charger sends;
According to described charging current request message, obtain target charge current;
Return charging current response message to described USB charger, described charging current response message carries described target charge current, controls charging circuit export the charging current matched with described target charge current to make described USB charger.
CN201510490185.3A 2015-08-11 2015-08-11 USB charging methods and device Active CN105071473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510490185.3A CN105071473B (en) 2015-08-11 2015-08-11 USB charging methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510490185.3A CN105071473B (en) 2015-08-11 2015-08-11 USB charging methods and device

Publications (2)

Publication Number Publication Date
CN105071473A true CN105071473A (en) 2015-11-18
CN105071473B CN105071473B (en) 2018-07-24

Family

ID=54500784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510490185.3A Active CN105071473B (en) 2015-08-11 2015-08-11 USB charging methods and device

Country Status (1)

Country Link
CN (1) CN105071473B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105449764A (en) * 2015-12-17 2016-03-30 小米科技有限责任公司 Charging method, charging apparatus and charging system
CN105490332A (en) * 2015-12-17 2016-04-13 小米科技有限责任公司 Charging method, device and system
CN105922945A (en) * 2016-04-27 2016-09-07 重庆长安汽车股份有限公司 Method for supporting mobile phone quick charge on vehicle terminal USB port
CN105977563A (en) * 2016-06-28 2016-09-28 努比亚技术有限公司 Charging method, charging equipment and terminal
CN106451670A (en) * 2016-11-28 2017-02-22 深圳天珑无线科技有限公司 Charge control method, device and terminal equipment
CN107370196A (en) * 2016-05-12 2017-11-21 阿尔派株式会社 Charging device and charging method
CN107425570A (en) * 2017-08-02 2017-12-01 闻泰通讯股份有限公司 Charging method, system and the device of terminal device
CN109478176A (en) * 2016-04-12 2019-03-15 华为技术有限公司 A kind of methods, devices and systems of USB Type-C port device identification opposite equip.
CN113098099A (en) * 2021-04-13 2021-07-09 北京雷石天地电子技术有限公司 Microphone, charging unit and charging method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103236568A (en) * 2013-05-03 2013-08-07 深圳市中兴移动通信有限公司 Charging method and charging system
CN104065144A (en) * 2014-07-10 2014-09-24 上海斐讯数据通信技术有限公司 System and method for dynamically adjusting output voltage and output current of USB charger through VBUS signal
CN104135057A (en) * 2014-08-13 2014-11-05 宇龙计算机通信科技(深圳)有限公司 Terminal, charger and charging method
CN104253456A (en) * 2013-06-27 2014-12-31 华为终端有限公司 Charging apparatus, power supply method, terminal device and charging method
CN104393627A (en) * 2014-08-29 2015-03-04 展讯通信(上海)有限公司 USB charger, mobile terminal and charging control method
CN104577235A (en) * 2015-01-30 2015-04-29 小米科技有限责任公司 Method for charging portable device and charging control method, device and system
CN104810879A (en) * 2014-01-28 2015-07-29 广东欧珀移动通信有限公司 Quick charge method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103236568A (en) * 2013-05-03 2013-08-07 深圳市中兴移动通信有限公司 Charging method and charging system
CN104253456A (en) * 2013-06-27 2014-12-31 华为终端有限公司 Charging apparatus, power supply method, terminal device and charging method
CN104810879A (en) * 2014-01-28 2015-07-29 广东欧珀移动通信有限公司 Quick charge method and system
CN104065144A (en) * 2014-07-10 2014-09-24 上海斐讯数据通信技术有限公司 System and method for dynamically adjusting output voltage and output current of USB charger through VBUS signal
CN104135057A (en) * 2014-08-13 2014-11-05 宇龙计算机通信科技(深圳)有限公司 Terminal, charger and charging method
CN104393627A (en) * 2014-08-29 2015-03-04 展讯通信(上海)有限公司 USB charger, mobile terminal and charging control method
CN104577235A (en) * 2015-01-30 2015-04-29 小米科技有限责任公司 Method for charging portable device and charging control method, device and system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105490332A (en) * 2015-12-17 2016-04-13 小米科技有限责任公司 Charging method, device and system
CN105449764A (en) * 2015-12-17 2016-03-30 小米科技有限责任公司 Charging method, charging apparatus and charging system
CN105490332B (en) * 2015-12-17 2018-07-27 小米科技有限责任公司 Charging method, apparatus and system
CN105449764B (en) * 2015-12-17 2018-07-27 小米科技有限责任公司 Charging method, apparatus and system
CN109478176A (en) * 2016-04-12 2019-03-15 华为技术有限公司 A kind of methods, devices and systems of USB Type-C port device identification opposite equip.
CN109478176B (en) * 2016-04-12 2020-12-08 华为技术有限公司 Method, device and system for identifying opposite terminal equipment by USB Type-C port equipment
CN105922945A (en) * 2016-04-27 2016-09-07 重庆长安汽车股份有限公司 Method for supporting mobile phone quick charge on vehicle terminal USB port
CN107370196B (en) * 2016-05-12 2021-12-03 阿尔派株式会社 Charging device and charging method
CN107370196A (en) * 2016-05-12 2017-11-21 阿尔派株式会社 Charging device and charging method
CN105977563A (en) * 2016-06-28 2016-09-28 努比亚技术有限公司 Charging method, charging equipment and terminal
CN106451670A (en) * 2016-11-28 2017-02-22 深圳天珑无线科技有限公司 Charge control method, device and terminal equipment
CN107425570B (en) * 2017-08-02 2020-06-19 闻泰通讯股份有限公司 Charging method, system and device of terminal equipment
CN107425570A (en) * 2017-08-02 2017-12-01 闻泰通讯股份有限公司 Charging method, system and the device of terminal device
CN113098099A (en) * 2021-04-13 2021-07-09 北京雷石天地电子技术有限公司 Microphone, charging unit and charging method thereof

Also Published As

Publication number Publication date
CN105071473B (en) 2018-07-24

Similar Documents

Publication Publication Date Title
CN105071473A (en) USB charging method and device
CN104105169B (en) From method and the device of the WLAN (wireless local area network) that is dynamically connected
CN104318741A (en) Bluetooth device control method and device
CN104703295A (en) Network access method and network access device
CN104714414A (en) Smart home equipment control method and device and electronic equipment
CN104038263A (en) Method and device for establishing Bluetooth connection
CN104703252A (en) Terminal device accessing into wireless network method and device
CN105472771A (en) Wireless connection method and device
CN105068958A (en) Switching control method and device
CN105373464A (en) Charging warning method and device of wearable equipment
CN105530372A (en) Message display method and apparatus and terminal device
CN105095345A (en) Method and device for prompting push message
CN104468971A (en) Method and device for connecting playing source
CN104378501A (en) Phone number naming method and device
CN104486451A (en) Application program recommendation method and device
CN105406828A (en) Sound equipment adjustment method and device
CN105224494A (en) Method for handover control and device
CN104219038A (en) Method and device for synchronizing data
CN105282446A (en) Camera management method and device
CN104837154A (en) Wireless access point control method and device
CN103986999A (en) Method, device and terminal equipment for detecting earphone impedance
CN105472706A (en) Method and device for connection establishment
CN104010072A (en) Electric quantity prompt method and device
CN104779420A (en) Battery charging method and device
CN105100484A (en) Method, device and system for ending voice call

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant