CN105071473B - USB charging methods and device - Google Patents
USB charging methods and device Download PDFInfo
- Publication number
- CN105071473B CN105071473B CN201510490185.3A CN201510490185A CN105071473B CN 105071473 B CN105071473 B CN 105071473B CN 201510490185 A CN201510490185 A CN 201510490185A CN 105071473 B CN105071473 B CN 105071473B
- Authority
- CN
- China
- Prior art keywords
- terminal device
- charging
- current
- charging current
- usb
- 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.)
- Active
Links
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B40/00—Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The embodiment of the present disclosure discloses a kind of USB charging methods and device, and USB charger, which detects, to be communicated between terminal device, then sends charging current request message to terminal device, and request obtains the target charge current of terminal device;Then, charging circuit is controlled according to the charging current response message for receiving terminal device return, the charging current for making charging circuit output match with target charge current is charged to realize with the optimal charge electric current of terminal device.As shown in the above, USB charger communicates the target charge current for obtaining terminal device by being carried out between terminal device, a variety of different target charge currents of different terminal equipment can be distinguished, and terminal device is charged as according to target, best charging current is provided, in the case where not damaging terminal device hardware, quick charge is realized.If detecting can not communicate between terminal device, controls charging circuit output and preset minimum charge current as terminal device charging.
Description
Technical field
This disclosure relates to field of computer technology, more particularly to a kind of USB (Universal Serial Bus, it is general
Universal serial bus) charging method and device.
Background technology
As USB interface charging modes are promoted, terminal device charges usually using USB interface, for example, mobile phone, tablet are electric
Brain, PDA (Personal Digital Assistant, personal digital assistant) or vehicle-mounted computer etc..
In the related technology, the charging current type for commonly using USB charger is typically 500mA, 1A or the 2A preset, can not
Dynamic changes, and the optimal charge electric current of different terminal equipment is not fully unified.Terminal device is filled using the USB of miscellaneous equipment
It is long that electric appliance can be potentially encountered the charging current small charging time, alternatively, the problem of charging current big damage terminal device hardware.
Invention content
To overcome the problems in correlation technique, a kind of USB charging methods of disclosure offer and device.
In order to solve the above-mentioned technical problem, the embodiment of the present disclosure discloses following technical solution:
According to the first aspect of the embodiments of the present disclosure, a kind of USB charging methods are provided, including:
Whether detection can communicate between terminal device;
When detect can be communicated between terminal device when, to the terminal device send charging current request disappear
Breath;The charging current response message that the terminal device returns is received, the charging current response message carries the terminal and sets
Standby target charge current;Charging circuit output is controlled according to the target charge current with the target charge current to match
Charging current;
When detect can not be communicated between the terminal device when, control the default minimum charging of charging circuit output
Electric current charges for the terminal device.
In the USB charging methods that first aspect provides, when USB charger is that terminal device charges, by being set with terminal
The target charge current that communication obtains terminal device is carried out between standby, can distinguish a variety of different targets of different terminal equipment
Charging current, and terminal device is charged as according to target, best charging current is provided, in the feelings for not damaging terminal device hardware
Under condition, quick charge is realized.Moreover, if detecting can not communicate between terminal device, it is pre- to control charging circuit output
If minimum charge current charges for terminal device, terminal device is avoided to be impacted by big charging current.
According in a first aspect, in the first possible realization method of first aspect, the charging current request message
Meet USB communication protocol, WiFi (WIreless-Fidelity, Wireless Fidelity) communication protocol, Bluetooth communication protocol or short distance
Wireless communication protocol.
In the USB charging methods that the first possible realization method of first aspect provides, USB charger can pass through
The communications such as usb communication, WiFi communication, Bluetooth communication or NFC communication and terminal equipment in communication improve USB chargings
The flexibility communicated between device and terminal device.
According to the second aspect of the embodiment of the present disclosure, a kind of USB charging methods are provided, including:
Receive the charging current request message that general-purpose serial bus USB charger is sent;
According to the charging current request message, target charge current is obtained;
Charging current response message is returned to the USB charger, the charging current response message carries the target
Charging current, so that the charging current that USB charger control charging circuit output matches with the target charge current.
In the USB charging methods that second aspect provides, terminal device receives the charging current request of USB charger
Afterwards, target charge current is obtained, and returns to the charging current response message for carrying target charge current to USB charger, so that
USB charger exports the charging current to match with target charge current and charges for terminal device, moreover, USB charger passes through
Carry out communicating the target charge current for obtaining terminal device between terminal device, can distinguish different terminal equipment it is a variety of not
Same target charge current, the scope of application are wider.
It is described according to the charging current in the first possible realization method of second aspect according to second aspect
Request message obtains target charge current, including:
After receiving the charging current request message, the target charge current is obtained from usb interface module.
In the USB charging methods that the first possible realization method of second aspect provides, in terminal device shutdown feelings
Under condition, terminal device can also be communicated by USB interface with USB charger, and mesh can be read from usb interface module
Mark charging current is supplied to USB charger, and it is terminal to make the charging current that USB charger output matches with target charge current
Equipment charge realizes quick charge under the premise of not damaging terminal device hardware, and expands the applied field of quick charge
Scape.
According to the third aspect of the embodiment of the present disclosure, a kind of USB charging units are provided, including:
Detection module, for that whether can be communicated between detection and terminal device;
Sending module, for when the detection module is detected and can be communicated between terminal device, to terminal
Equipment sends charging current request message;
Receiving module, the charging current response message returned for receiving the terminal device, the charging current response
Message carries the applicable target charge current of the terminal device;
First control module, target charge current control charging circuit output for being obtained according to the receiving module and
The charging current that the target charge current matches;
Second control module, for when the detection module is detected and can not be communicated between the terminal device, controlling
It is that the terminal device charges to make the charging circuit output and preset minimum charge current.
According to the third aspect, in the first possible realization method of the third aspect, the charging current request message
Meet 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 the embodiment of the present disclosure, a kind of USB charging units are provided, including:
Receiving module, the charging current request message for receiving the transmission of general-purpose serial bus USB charger;
Acquisition module, the charging current request message for being received according to the receiving module obtain target charge current;
Sending module, for returning to charging current response message, the charging current response message to the USB charger
The target charge current is carried, so that USB charger control charging circuit output and the target charge current phase
The charging current matched.
It is stored in usb interface module in the first possible realization method of fourth aspect according to fourth aspect
The target charge current of terminal device;
The acquisition module, the target charge current for the reading terminal equipment from usb interface module.
According to a fifth aspect of the embodiments of the present disclosure, a kind of USB charger is provided, including:Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Whether detection can be communicated between terminal device;
When detect can be communicated between terminal device when, to terminal device send charging current request message;
The charging current response message that the terminal device returns is received, the charging current response message carries the end
The applicable target charge current of end equipment;
The charging electricity that charging circuit output matches with the target charge current is controlled according to the target charge current
Stream;
When detect can not be communicated between the terminal device when, control the default minimum charging of charging circuit output
Electric current is that the terminal device charges.
According to the 6th of the embodiment of the present disclosure the aspect, a kind of terminal device is provided, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Receive the charging current request message that general-purpose serial bus USB charger is sent;
According to the charging current request message, target charge current is obtained;
Charging current response message is returned to the USB charger, the charging current response message carries the target
Charging current, so that the charging current that USB charger control charging circuit output matches with the target charge current.
The technical scheme provided by this disclosed embodiment can include the following benefits:USB charger detects can
It is communicated between terminal device, then sends charging current request message to terminal device, request obtains the mesh of terminal device
Mark charging current;Then, charging circuit is controlled according to the charging current response message for receiving terminal device return, makes the charging
The charging current that circuit output matches with target charge current is filled to realize with the optimal charge electric current of terminal device
Electricity.As shown in the above, by carrying out communicating the target charge current for obtaining terminal device, Neng Gouqu between terminal device
Divide a variety of different target charge currents of different terminal equipment, and terminal device is charged as according to target, best charging is provided
Electric current realizes quick charge in the case where not damaging terminal device hardware.If detecting can not lead between terminal device
Letter then controls charging circuit output and presets minimum charge current as terminal device charging, avoids terminal device by big charging electricity
Stream impact.
It should be understood that above general description and following detailed description is merely exemplary, this can not be limited
It is open.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of USB charging methods shown according to an exemplary embodiment;
Fig. 2 is the flow chart of another USB charging methods shown according to an exemplary embodiment;
Fig. 3 is the flow chart of another USB charging methods shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of USB charging units shown according to an exemplary embodiment;
Fig. 5 is the block diagram of another USB charging units shown according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of USB charger shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of device for USB charging methods shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means, but is art technology by referring to specific embodiments
Personnel illustrate the concept of the disclosure.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of USB charging methods shown according to an exemplary embodiment, as shown in Figure 1, this implementation
The USB charging methods that example provides are applied in USB charger, may comprise steps of:
In S110, whether USB charger detection can communicate between terminal device;If can with terminal device into
Row communication, then execute S120;If can not be communicated between terminal device, S150 is executed.
Communication module is provided in USB charger, for example, it may be usb communication module, WiFi communication module, bluetooth
Communication module or NFC (Near Field Communication, short-range communication) communication module.
In an exemplary embodiment of the disclosure, after the USB jack of USB charger connects terminal device, detection
Whether can be communicated between terminal device, for example, USB charger sends communication request message to terminal device, if pre-
If receiving the communication response message of terminal device return in the period, it is determined that can be communicated between terminal device;If
The communication response message of terminal device return is not received within a preset period of time, it is determined that can not lead between terminal device
Letter, for example, situations such as communication module of terminal device shutdown, terminal device can not be communicated.
, can be after USB charger be terminal device charging a period of time in the other embodiments of the disclosure, then detect
Whether can be communicated between terminal device.
Wherein, communication request message meets communication protocol used in the communication module being arranged in USB charger, if
Usb communication module is provided in USB charger, then communication request message meets USB communication protocol.Certainly, USB charger utilizes
Usb communication most directly and most convenient, can utilize and be used for transmission two pins of D-, D+ and terminal device of data in USB interface
It is communicated, that is, transmit communication request message using D-, D+.
In S120, USB charger sends charging current request message to terminal device.
If USB charger determination can be communicated between terminal device, USB charger sends to terminal device and charges
Electric current request message, the size for asking target charge current used in acquisition terminal device.
In S130, the charging current response message that USB charger receiving terminal apparatus returns, charging current response message
The target charge current of carried terminal equipment.
The size for the target charge current that USB charger receiving terminal apparatus returns.Terminal device is returned to USB charger
Charging current response message, the charging current response message carry target charge current, the target in charging current response message
Charging current can utilize the character representations such as letter, number, character to be corresponded with target charge current, for example, " a " indicates mesh
Mark charging current is 500mA, and " b " indicates that target charge current is 1A, and " c " indicates that target charge current is 2A.For another example, binary system
Number " 0 " indicates that target charge current is 500mA, and binary number " 1 " indicates that target charge current is 1A, and binary number " 10 " indicates
Target charge current is 2A.
In S140, USB charger controls charging circuit output and target charge current phase according to target charge current
The charging current matched.
USB charger adjusts the charging current of charging circuit output, so that charging current is matched with target charge current, example
Such as, target charge current is 1A, then the charging current for controlling charging circuit output is 1A or so, charging current and target charging electricity
Difference between stream is within the scope of allowable error.To ensure that USB charger can be with the receptible maximum charge of terminal device
Electric current charges for terminal device.
In S150, USB charger controls charging circuit output and presets minimum charge current as terminal device charging.
If USB charger cannot be communicated with terminal device, the default minimum charging electricity of charging circuit output is controlled
Stream is that terminal device charges, and is charged for terminal device for example, charging circuit exports 500mA electric currents.
Whether USB charging methods provided in this embodiment, USB charger detection can communicate between terminal device, such as
Fruit, which detects, to be communicated between terminal device, then sends charging current request message to terminal device;And receive end
The charging current response message that end equipment returns, the target charge current of the charging current response message carried terminal equipment;Root
Charging circuit is controlled according to the charging current response message received, charging circuit output is made to match with target charge current
Charging current is charged to realize with the charging current that terminal device is applicable in.As shown in the above, USB charger
When charging for terminal device, the target charge current for obtaining terminal device is communicated by being carried out between terminal device, it can
A variety of different target charge currents of different terminal equipment are distinguished, and terminal device is charged as according to target, best fill is provided
Electric current realizes quick charge in the case where not damaging terminal device hardware.It can not between terminal device if detected
Communication then controls charging circuit output and presets minimum charge current as terminal device charging.
Fig. 2 is the flow chart of another USB charging methods shown according to an exemplary embodiment, and this method is applied to eventually
In end equipment (for example, mobile phone, tablet computer, PDA, vehicle-mounted computer, player etc.), as shown in Fig. 2, may include following step
Suddenly:
In S210, terminal device receives the charging current request message that USB charger is sent.
Communication module is provided in USB charger, for example, usb communication module, WiFi communication module, bluetooth communication
Or NFC communication module etc..USB charger between these communication modules and terminal device by being communicated.
Terminal device receives the charging current request message that USB charger is sent, and charging current request message is for obtaining
The target charge current of terminal device.
In S220, terminal device obtains target charge current according to charging current request message.
Terminal device obtains target charge current according to the charging current request message received, and target charge current is
The receptible maximum charging current of terminal device.Target charge current is prestored in storage region by terminal device, works as end
When end equipment receives charging current request message, target charge current is read from storage region.
In S230, terminal device returns to charging current response message to USB charger, and charging current response message carries
Target charge current, so that the charging current that USB charger control charging circuit output matches with target charge current.
After terminal device obtains target charge current, it is carried in charging current response message, and charging current is responded
Message returns to USB charger, so that USB charger is known the target charge current of terminal device, and according to target charge current
The charging current that the charging control circuit output of control USB charger matches with target charge current.
USB charging methods provided in this embodiment obtain after terminal device receives the charging current request of USB charger
Target charge current is taken, and returns to the charging current response message for carrying target charge current to USB charger.USB charger
After obtaining target charge current, the charging current of control charging control circuit output makes charging current and target charge current phase
Matching.To realize that the charging current that the target charge current of USB chargings output and terminal device matches is filled for terminal device
Electricity provides best charging current for terminal device, in the case where not damaging terminal device hardware, realizes quick charge.
Fig. 3 is the flow chart of another USB charging methods shown according to an exemplary embodiment, and this method is applied to packet
In system containing terminal device and USB charger.In the present embodiment, USB charger can carry out usb communication with terminal device,
As shown in figure 3, this method may comprise steps of:
In S310, after USB charger connects terminal device, communication is sent to terminal device by usb communication module and is asked
Seek message.Communication request message is for judging whether can communicate between terminal device.
In S320, after terminal device receives communication request message, to USB charger return communication response message.
In one exemplary embodiment, the usb interface module in terminal device could be provided as standalone module, that is, disobey
Rely in the power supply in terminal device, in this way, in the case where terminal device shuts down, after usb interface module is connect with USB charger
It can work normally, that is, can carry out usb communication with USB charger in the case where terminal device shuts down.
In S330, after USB charger receives communication response message, sent to terminal device by usb communication module
Charging current request message.Charging current request message is used to obtain the target charge current of terminal device.
In S340, after terminal device receives charging current request message, target charging electricity is read from storage region
Stream.
In one exemplary embodiment, mesh can be stored in the storage region in the usb interface module of terminal device
Mark charging current.
In S350, target charge current is carried in charging current response message by terminal device, and is sent to USB and is filled
Electric appliance.
In S360, USB charger control charging control circuit exports the charging current to match with target charge current.
USB charging methods provided in this embodiment, the usb interface module in terminal device are set as standalone module, terminal
Equipment receives the communication request message of USB charger transmission, to USB charger return communication response message, so that USB charges
Determination can be communicated between terminal device.Then, USB charger sends charging current request message, terminal to terminal device
Equipment reads target charge current from the storage region of usb interface module, and returns to USB charger.USB charger controls
The charging current of charging control circuit output so that the charging current matches with target charge current.It is provided in this embodiment
Charging method, terminal device also can carry out usb communication under power down condition with USB charger, and obtain target charge current
And USB charger is returned to, so that USB charger is utilized and is filled for terminal device with the charging current that target charge current matches
Electricity realizes quick charge, and expands the scope of application of quick charge.
Corresponding to above-mentioned USB charging method embodiments, the disclosure additionally provides USB charging unit embodiments.
Fig. 4 is a kind of block diagram of USB charging units shown according to an exemplary embodiment, the USB charging unit applications
In USB charger, as shown in figure 4, the USB charging units may include detection module 110, sending module 120, receiving module
130, the first control module 140 and the second control module 150.
Detection module 110 is configured as, and whether detection can be communicated between terminal device.
Communication module is provided in USB charger, for example, it may be usb communication module, WiFi (WIreless-
Fidelity, Wireless Fidelity) communication module, bluetooth communication or NFC (Near Field Communication, closely
Communication) communication module.
In one exemplary embodiment of the disclosure, detection module can send communication request message to terminal device, if
The communication response message of terminal device return is received within a preset period of time, it is determined that can be communicated between terminal device;
If not receiving the communication response message of terminal device return within a preset period of time, it is determined that can not between terminal device
Communication, for example, situations such as communication module of terminal device shutdown, terminal device can not be communicated.
Sending module 120 is configured as, when detection module 110, which detects, to be communicated between terminal device,
Charging current request message is sent to terminal device.
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.
Receiving module 130 is configured as, the charging current response message that receiving terminal apparatus returns, and charging current response disappears
Cease the applicable target charge current of carried terminal equipment.
After terminal device receives the charging current request message of USB charger transmission, is returned to USB charger and carry mesh
Mark the charging current response message of charging current.
First control module 140 is configured as, and charging circuit is controlled according to the target charge current that receiving module 130 obtains
The charging current that output matches with target charge current.
Second control module 150 is configured as, when detection module 110, which is detected, can not be communicated between terminal device,
It controls charging circuit output and presets minimum charge current as terminal device charging.
If detection module determines when can not be communicated between USB charger and terminal device, control charging circuit output is pre-
If minimum charge current charges for terminal device, for example, 500mA.
Whether USB charging units provided in this embodiment, detection device detection can communicate between terminal device, if
Charging current request message then can be sent from sending module to terminal device with terminal equipment in communication, be obtained eventually for asking
The charging current of end equipment.When the charging current response for the carrying target charge current that receiving module receiving terminal apparatus returns disappears
After breath, the charging current to match with target charge current is exported by the first control module control charging circuit.If detecting mould
Block determination can not be communicated with terminal device, then preset minimum charge current, profit by the control charging circuit output of the second control module
It is terminal device charging with default minimum charge current.It can realize that USB charger is terminal device using the USB charging units
Best charging current is provided, in the case where not damaging terminal device hardware, realizes quick charge.
Fig. 5 is the block diagram of another USB charging units shown according to an exemplary embodiment, which is applied to terminal
In equipment, as shown in figure 5, the device may include receiving module 210, acquisition module 220 and sending module 230.
Receiving module 210 is configured as, and receives the charging current request message that USB charger is sent.
Acquisition module 220 is configured as, and according to the charging current request message that receiving module 210 receives, is obtained target and is filled
Electric current.
In one exemplary embodiment of the disclosure, the usb interface module in terminal device could be provided as standalone module, i.e.,
Independent of the power supply in terminal device, in this way, in the case where terminal device shuts down, usb interface module connects with USB charger
It can be worked normally after connecing, that is, can carry out usb communication with USB charger in the case where terminal device shuts down.Such application
Under scene, acquisition module can directly from the storage region of usb interface module reading terminal equipment target charge current.
Sending module 230 is configured as, and charging current response message, charging current response message are returned to USB charger
Target charge current is carried, so that the charging current that USB charger control charging circuit output matches with target charge current.
USB charging units provided in this embodiment, after receiving module receives the charging current request of USB charger, by
Acquisition module obtains target charge current, and returns to the charging for carrying target charge current to USB charger by sending module
Current-responsive message.After USB charger obtains target charge current, the charging current of control charging control circuit output makes to fill
Electric current matches with target charge current.To realize that USB chargings output and the target charge current of terminal device match
Charging current be terminal device charging, best charging current is provided for terminal device, is not damaging terminal device hardware
In the case of, realize quick charge.
Fig. 6 is a kind of block diagram of USB charger shown according to an exemplary embodiment, which includes storage
Device 310, processor 320, charging circuit 330 and communication module 340.
Charging circuit 330 is connect with processor 320, for exporting charging current under the control action of processor 320, is
Terminal device charges.Wherein, processor 320 can be microprocessor.
Communication module 340 is connect with processor 320, for the communication between USB charger and terminal device.
Memory 310 is stored with executable instruction, when processor 320 executes the instruction in memory 310 so that
USB charger is able to carry out following methods:
Whether detection can be communicated between terminal device;
When detect can be communicated between terminal device when, to terminal device send charging current request message;
The charging current response message that receiving terminal apparatus returns, what charging current response message carried terminal equipment was applicable in
Target charge current;
The charging current that charging circuit output matches with target charge current is controlled according to target charge current;
When detect can not be communicated between terminal device when, control charging circuit output preset minimum charge current be eventually
End equipment charges.
USB charger provided in this embodiment, whether terminal device between can communicate, if detected if can detect
It can be communicated between terminal device, then send charging current request message to terminal device;And receiving terminal apparatus returns
The charging current response message returned, the target charge current of the charging current response message carried terminal equipment;According to receiving
Charging current response message control charging circuit, the charging electricity for making charging circuit output match with target charge current
Stream is charged to realize with the charging current that terminal device is applicable in.If detecting can not lead between terminal device
Letter then controls charging circuit output and presets minimum charge current as terminal device charging.As shown in the above, USB charger
When charging for terminal device, detect that the target for obtaining terminal device charges when can be communicated between terminal device
Electric current provides best charging current for terminal device, in the case where not damaging terminal device hardware, realizes quick charge.
Fig. 7 is a kind of block diagram of device 700 for USB charging methods shown according to an exemplary embodiment.For example,
Device 700 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, doctor
Treat equipment, body-building equipment, personal digital assistant etc..
As shown in fig. 7, device 700 may include following one or more components:Processing component 702, memory 704, electricity
Source component 706, multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor module 714, with
And communication component 716.
The integrated operation of 702 usual control device 700 of processing component, such as with display, call, data communication, phase
Machine operates and record operates associated operation.Processing component 702 may include that one or more processors 720 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more modules, just
Interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, it is more to facilitate
Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in device 700.These data are shown
Example includes instruction for any application program or method that are operated on device 700, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 706 provides electric power for the various assemblies of device 700.Power supply module 706 may include power management system
System, one or more power supplys and other generated with for device 700, management and the associated component of distribution electric power.
Multimedia component 708 is included in the screen of one output interface of offer between device 700 and user.In some realities
It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can
To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with
Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and
And also detection and touch or the relevant duration and pressure of slide.In some embodiments, multimedia component 708 includes
One front camera and/or rear camera.It is preceding when such as screening-mode or video mode when device 700 is in operation mode
External multi-medium data can be received by setting camera and/or rear camera.Each front camera and rear camera can
Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike
Wind (MIC), when device 700 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The received audio signal can be further stored in memory 704 or via communication set
Part 716 is sent.In some embodiments, audio component 710 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 712 provide interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented
Estimate.For example, sensor module 714 can detect the state that opens/closes of device 700, the relative positioning of component, such as component
For the display and keypad of device 700, sensor module 714 can be with the position of 700 1 components of detection device 700 or device
Set change, the existence or non-existence that user contacts with device 700, the temperature of 700 orientation of device or acceleration/deceleration and device 700
Variation.Sensor module 714 may include proximity sensor, be configured to detect without any physical contact near
The presence of object.Sensor module 714 can also include optical sensor, such as CMOS or ccd image sensor, for being answered in imaging
With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic
Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device
700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation
In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, communication component 716 further includes near-field communication (NFC) module, to promote short range communication.For example,
It can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, bluetooth in NFC module
(BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application application-specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of
Such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of device 700 to complete the above method.For example,
Non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light
Data storage device etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is held by the processor of mobile terminal
When row so that terminal device is able to carry out a kind of USB charging methods, and method includes:
Receive the charging current request message that general-purpose serial bus USB charger is sent;
According to charging current request message, target charge current is obtained;
Charging current response message is returned to USB charger, charging current response message carries target charge current, so that
The charging current that USB charger control charging circuit output matches with target charge current.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (3)
1. a kind of USB charging methods, which is characterized in that including:
Whether detection can communicate between terminal device;
When detect can be communicated between terminal device when, to the terminal device send charging current request message;
The charging current response message that the terminal device returns is received, the charging current response message carries the terminal and sets
Standby target charge current;
The charging current that charging circuit output matches with the target charge current is controlled according to the target charge current;
When detect can not be communicated between the terminal device when, control charging circuit output and preset minimum charge current
It charges for the terminal device;
The 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.
2. a kind of USB charging units, which is characterized in that including:
Detection module, for that whether can be communicated between detection and terminal device;
Sending module, for when the detection module is detected and can be communicated between terminal device, to terminal device
Send charging current request message;
Receiving module, the charging current response message returned for receiving the terminal device, the charging current response message
Carry the applicable target charge current of the terminal device;
First control module, the target charge current control charging circuit for being obtained according to the receiving module export with it is described
The charging current that target charge current matches;
Second control module, for when the detection module is detected and can not be communicated between the terminal device, controlling institute
It is that the terminal device charges to state charging circuit output and preset minimum charge current;
The 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 kind of USB charger, which is characterized in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Whether detection can be communicated between terminal device;
When detect can be communicated between terminal device when, to terminal device send charging current request message;
The charging current response message that the terminal device returns is received, the charging current response message carries the terminal and sets
Standby applicable target charge current;
The charging current that charging circuit output matches with the target charge current is controlled according to the target charge current;
When detect can not be communicated between the terminal device when, control charging circuit output and preset minimum charge current
It charges for the terminal device.
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 CN105071473A (en) | 2015-11-18 |
CN105071473B true 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) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105449764B (en) * | 2015-12-17 | 2018-07-27 | 小米科技有限责任公司 | Charging method, apparatus and system |
CN105490332B (en) * | 2015-12-17 | 2018-07-27 | 小米科技有限责任公司 | Charging method, apparatus and system |
CN109478176B (en) * | 2016-04-12 | 2020-12-08 | 华为技术有限公司 | Method, device and system for identifying opposite terminal equipment by USB Type-C port equipment |
CN105922945B (en) * | 2016-04-27 | 2018-12-21 | 重庆长安汽车股份有限公司 | The method of car-mounted terminal USB port support mobile phone quick charge |
CN107370196B (en) * | 2016-05-12 | 2021-12-03 | 阿尔派株式会社 | Charging device and charging method |
CN105977563A (en) * | 2016-06-28 | 2016-09-28 | 努比亚技术有限公司 | Charging method, charging equipment and terminal |
CN106451670B (en) * | 2016-11-28 | 2019-03-22 | 深圳天珑无线科技有限公司 | A kind of charge control method, device and terminal device |
CN107425570B (en) * | 2017-08-02 | 2020-06-19 | 闻泰通讯股份有限公司 | Charging method, system and device of terminal equipment |
CN113098099A (en) * | 2021-04-13 | 2021-07-09 | 北京雷石天地电子技术有限公司 | Microphone, charging unit and charging method thereof |
Citations (7)
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 |
-
2015
- 2015-08-11 CN CN201510490185.3A patent/CN105071473B/en active Active
Patent Citations (7)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105071473A (en) | 2015-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105071473B (en) | USB charging methods and device | |
EP2940523B1 (en) | Method and device for configuring photographing parameters | |
CN105373464A (en) | Charging warning method and device of wearable equipment | |
CN104281432A (en) | Method and device for regulating sound effect | |
CN104318741A (en) | Bluetooth device control method and device | |
CN104219388A (en) | Voice control method and device | |
CN105138319B (en) | Event-prompting method and device | |
CN104598093A (en) | Method and device for prompting message during screen locking | |
CN104298547A (en) | Terminal setting method and device | |
CN109818432A (en) | Wireless charging system and charging alignment method, device, storage medium | |
CN106067571A (en) | Method and electronic equipment for battery charging | |
CN104468971A (en) | Method and device for connecting playing source | |
CN104837154A (en) | Wireless access point control method and device | |
CN104010072A (en) | Electric quantity prompt method and device | |
US10852798B2 (en) | Power supply control method and apparatus for power strip, and storage medium | |
CN106325575A (en) | Touch response method and apparatus | |
CN105491518A (en) | Method and device for social reminding based on wearable devices | |
CN105357386A (en) | Short message sequencing method and device | |
CN106027361B (en) | Information display method and device | |
CN104881342A (en) | Terminal testing method and device | |
CN106877451B (en) | Charging port short-circuit protection method and device | |
CN105573471A (en) | Information processing method and device | |
CN106856339A (en) | Charging method, device and electronic equipment | |
CN105846223B (en) | USB interface plug, control method and device | |
CN104281431A (en) | Method and device for audio playing |
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 |