WO2021143322A1 - 充电方法、装置和充电设备 - Google Patents

充电方法、装置和充电设备 Download PDF

Info

Publication number
WO2021143322A1
WO2021143322A1 PCT/CN2020/128062 CN2020128062W WO2021143322A1 WO 2021143322 A1 WO2021143322 A1 WO 2021143322A1 CN 2020128062 W CN2020128062 W CN 2020128062W WO 2021143322 A1 WO2021143322 A1 WO 2021143322A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging
power
charging device
port
adapter
Prior art date
Application number
PCT/CN2020/128062
Other languages
English (en)
French (fr)
Inventor
马立强
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20914162.1A priority Critical patent/EP4068558A4/en
Publication of WO2021143322A1 publication Critical patent/WO2021143322A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/441Methods for charging or discharging for several batteries or cells simultaneously or sequentially
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/34Parallel operation in networks using both storage and other dc sources, e.g. providing buffering
    • H02J7/342The other DC source being a battery actively interacting with the first one, i.e. battery to battery charging
    • 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

Definitions

  • This application relates to the field of artificial intelligence technology, and in particular to a charging method, device and charging equipment.
  • Wired external charging is through the USB-type A charging port (hereinafter referred to as: A port) or USB-
  • the Type C charging port (hereinafter referred to as: C port) charges electronic devices, and the C port also supports the charging of the device itself. How to effectively allocate power in various charging scenarios and bring users a better charging experience is very important.
  • the output power is generally distributed according to a fixed rule.
  • the A port and the C port are charging externally at the same time, the A port and the C port are both pre-defined The power is externally charged, and the externally output power cannot be maximized, and the charging efficiency is poor.
  • This application provides a charging method, a device, and a charging device.
  • This application also provides a computer-readable storage medium to adjust the charging power of each charging port of the charging device to maximize the external power output of the charging device.
  • this application provides a charging method, including:
  • the in-position state of the adapter of the charging device and the use state of the above-mentioned charging device are acquired; in this embodiment, the above-mentioned charging device may be a device with a charging function, such as a power bank.
  • the in-position status of the adapter of the charging device may include: the adapter of the charging device is in place or the adapter of the charging device is not in place; the adapter of the charging device is in place means that the adapter of the charging device is connected to the power supply, and the charging The device uses the above-mentioned adapter to charge itself; the absence of the adapter of the above-mentioned charging device means that the adapter of the above-mentioned charging device is not connected to the power source;
  • the maximum output power of the charging device is determined according to the in-position state of the adapter, and the reserved power of the charging device is determined according to the usage state of the charging device; in this embodiment, the reserved power of the charging device is the reserved power of the charging device.
  • the power used by itself for example: accompanying WiFi
  • the reserved power of the charging device may be determined according to the use state of the charging device, and the use state of the charging device may include the power-on state or the standby state of the charging device;
  • the available charging power of the charging device may be the maximum output power of the charging device and the reserved power of the charging device
  • P RMNG P MAX- P RSVD ; where P RMNG is the available charging power of the above-mentioned charging device, and P RSVD is the reserved power of the above-mentioned charging device;
  • the electronic device includes devices that use the charging device for charging, such as smart phones, smart watches, tablets, smart wearable devices, or smart screens; specifically, Ground, acquiring the connection status of the charging port of the charging device and the electronic device can be understood as acquiring whether the charging port of the charging device is connected to the electronic device;
  • the available charging power of the charging device is allocated between the charging port of the charging device connected to the electronic device;
  • the charging device can determine the maximum output power of the charging device according to the in-position state of the adapter, and according to the use state of the charging device Determine the reserved power of the charging device; then determine the available charging power of the charging device according to the maximum output power of the charging device and the reserved power of the charging device; next, obtain the connection status of the charging port of the charging device and the electronic device According to the priority of the charging port of the charging device connected to the electronic device, the available charging power of the charging device is allocated between the charging port of the charging device connected to the electronic device, and finally the charging port of the charging device connected to the electronic device is controlled , According to the allocated power to charge the connected electronic device, so that the charging power of each charging port can be adjusted according to the priority of each charging port in the charging device, so that the external charging efficiency of the charging device can be maximized, and the charging device's performance can be improved. Charging efficiency.
  • determining the maximum output power of the charging device according to the in-position state of the adapter includes:
  • allocating the available charging power of the charging device between the charging port of the charging device connected to the electronic device includes:
  • allocating the first charging power in the first power range to the highest priority charging port can be understood as: in the first power range, based on the highest priority charging port, the charging device and the electronic device perform charging power Negotiate, take the mutually supported maximum charging gear, and assign the negotiated power as the first charging power to the above-mentioned highest priority charging port.
  • the method further includes:
  • the minimum power required by the charging port of the second highest priority charging port of the charging device connected to the electronic device the available charging power of the charging device, the first charging power and the charging port with priority lower than the second highest priority
  • the second charging power in the second power range is allocated to the charging port with the second highest priority.
  • allocating the second charging power in the second power range to the second-highest priority charging port can be understood as: in the second power range, based on the second-highest priority charging port, the charging device and the electronic device perform In charging power negotiation, the mutually supported maximum charging gear is taken, and the negotiated power is allocated as the second charging power to the charging port with the second highest priority.
  • the method further includes:
  • Determining the third power range according to the minimum power required by the charging port of the lowest priority charging port of the charging device connected to the electronic device, the available charging power of the charging device, the first charging power and the second charging power;
  • the third charging power in the third power range is allocated to the charging port with the lowest priority.
  • allocating the third charging power in the third power range to the lowest priority charging port can be understood as: in the third power range, based on the lowest priority charging port, the charging device and the electronic device perform charging power Negotiate, take the mutually supported maximum charging gear, and allocate the negotiated power as the third charging power to the above-mentioned lowest priority charging port.
  • the method further includes:
  • the charging device is controlled to stop charging the connected electronic device; wherein the abnormal event includes one or a combination of the following: the adapter of the charging device is not in place and the power of the charging device is lower than a predetermined The power threshold of the charging device, the switch of the charging device, the state transition of the adapter of the charging device, and the state transition of the electronic device connected to the charging device between connected and disconnected; wherein, the predetermined power threshold may be It is set by itself during specific implementation, and this embodiment does not limit the size of the foregoing predetermined power threshold.
  • an embodiment of the present application provides a charging device, which is provided in a charging device, and the above-mentioned charging device includes:
  • An acquisition module used to acquire the in-position status of the adapter of the above-mentioned charging device and the use status of the above-mentioned charging device;
  • the determining module is used to determine the maximum output power of the charging device according to the in-position state of the adapter, and determine the reserved power of the charging device according to the use state of the charging device; according to the maximum output power of the charging device and the power of the charging device Reserve power and determine the available charging power of the above-mentioned charging equipment;
  • the above-mentioned obtaining module is also used to obtain the connection state between the charging port of the above-mentioned charging device and the electronic device;
  • the allocation module is used to allocate the available charging power of the charging device between the charging ports of the electronic device connected to the charging device according to the priority of the charging port of the electronic device connected to the charging device;
  • the control module is used to control the charging port where the charging device is connected to the electronic device, and charge the connected electronic device according to the allocated power.
  • the above determining module is specifically used to determine that the maximum output power of the charging device is the sum of the input power of the adapter and the power provided by the charging device itself when the adapter is in place; When the adapter is not in place, it is determined that the maximum output power of the charging device is the power provided by the charging device itself.
  • the above allocation module includes:
  • the power range determination sub-module is used for the minimum power required by the highest priority charging port among the charging ports of the above-mentioned charging device connected to the electronic device, the available charging power of the above-mentioned charging device, and the charging port with a priority lower than the above-mentioned highest priority
  • the minimum power of determine the first power range
  • the power allocation sub-module is used to allocate the first charging power in the first power range to the highest priority charging port.
  • the power range determining submodule is further configured to allocate the first charging power in the first power range to the highest priority charging port by the power distribution submodule, and then perform charging according to the charging
  • the minimum power required by the charging port of the second-highest priority among the charging ports of the device connected to the electronic device, the available charging power of the above-mentioned charging device, the above-mentioned first charging power, and the minimum power required by the charging port with a priority lower than the above-mentioned second-highest priority Determine the second power range;
  • the power distribution sub-module is further configured to distribute the second charging power in the second power range to the charging port with the second highest priority.
  • the power range determining submodule is further configured to allocate the second charging power in the second power range to the second-highest priority charging port according to the foregoing power allocation submodule.
  • the minimum power required by the charging port of the lowest priority among the charging ports of the charging device connected to the electronic device, the available charging power of the charging device, the first charging power and the second charging power determine the third power range;
  • the power allocation sub-module is further configured to allocate the third charging power in the third power range to the lowest priority charging port.
  • control module is further configured to control the charging device to stop charging the connected electronic device after an abnormal event occurs in the charging device after the acquisition module acquires the use status of the charging device ;
  • the abnormal event includes one or a combination of the following: the adapter of the charging device is not in place and the power of the charging device is lower than a predetermined power threshold, the power of the charging device is switched on and off, and the adapter of the charging device is in place or not in place The state transition of and the state transition of connected and disconnected electronic devices connected to the above-mentioned charging device.
  • an embodiment of the present application provides a charging device, including:
  • the available charging power of the charging device is allocated between the charging port of the charging device connected to the electronic device;
  • causing the above-mentioned device to execute the above-mentioned step of determining the maximum output power of the above-mentioned charging device according to the in-position state of the above-mentioned adapter includes:
  • the adapter When the adapter is in place, determining that the maximum output power of the charging device is the sum of the input power of the adapter and the power provided by the charging device itself;
  • the maximum output power of the charging device is the power provided by the charging device itself.
  • the above-mentioned device when executed by the above-mentioned device, the above-mentioned device is caused to execute the above-mentioned according to the priority of the charging port of the above-mentioned charging device connected to the electronic device, and the available charging power of the above-mentioned charging device is set in the above-mentioned charging device.
  • the steps to allocate between charging ports connected to electronic devices include:
  • the minimum power required by the charging port of the second highest priority charging port of the charging device connected to the electronic device the available charging power of the charging device, the first charging power and the charging port with priority lower than the second highest priority
  • the second charging power in the second power range is allocated to the charging port with the second highest priority.
  • Determining the third power range according to the minimum power required by the charging port of the lowest priority charging port of the charging device connected to the electronic device, the available charging power of the charging device, the first charging power and the second charging power;
  • the third charging power in the third power range is allocated to the charging port with the lowest priority.
  • the charging device is controlled to stop charging the connected electronic device; wherein the abnormal event includes one or a combination of the following: the adapter of the charging device is not in place and the power of the charging device is lower than a predetermined The power threshold of the charging device, the switch of the charging device, the state transition of the charging device's adapter, and the state transition of connecting and disconnecting the electronic device connected to the charging device.
  • the present application provides a computer-readable storage medium in which a computer program is stored, which when running on a computer, causes the computer to execute the method as described in the first aspect.
  • this application provides a computer program, which is used to execute the method described in the first aspect when the computer program is executed by a computer.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium that is packaged with the processor, or may be stored in part or in a memory that is not packaged with the processor.
  • FIG. 1 is a flowchart of an embodiment of the charging method of this application
  • FIG. 2 is a flowchart of another embodiment of the charging method of this application.
  • FIG. 3 is a flowchart of another embodiment of the charging method of this application.
  • Fig. 4 is a schematic structural diagram of an embodiment of a charging device according to the present application.
  • Fig. 5 is a schematic structural diagram of another embodiment of a charging device according to the present application.
  • Fig. 6 is a schematic structural diagram of an embodiment of a charging device according to this application.
  • the output power is generally distributed according to a fixed rule.
  • the charging device such as: power bank
  • the output power is generally distributed according to a fixed rule. For example, when USB-type A and USB-Type C are powered at the same time, A Both port and C port charge externally according to the pre-defined power, the external output power cannot be maximized, and the charging efficiency is poor.
  • the above-mentioned charging device is a device with a charging function.
  • this application proposes a charging method, which can adjust the charging power of each charging port according to the priority of each charging port in the above-mentioned charging device, so as to maximize the external power output of the charging device.
  • Fig. 1 is a flowchart of an embodiment of a charging method according to the present application. As shown in Fig. 1, the foregoing charging method may include:
  • Step 101 Obtain the in-position status of the adapter of the charging device and the usage status of the above-mentioned charging device.
  • the aforementioned charging device may be a device with a charging function, such as a power bank.
  • the in-position status of the adapter of the charging device may include: the adapter of the charging device is in place or the adapter of the charging device is not in place; the adapter of the charging device is in place means that the adapter of the charging device is connected to the power supply, and the charging The device uses the above-mentioned adapter to charge itself; the absence of the adapter of the above-mentioned charging device means that the adapter of the above-mentioned charging device is not connected to the power source.
  • Step 102 Determine the maximum output power of the charging device according to the in-position state of the adapter, and determine the reserved power of the charging device according to the use state of the charging device.
  • determining the maximum output power of the charging device according to the in-position state of the adapter can be understood as:
  • P MAX is the maximum output power of the above-mentioned charging device
  • P BAT is the power provided by the above-mentioned charging device itself.
  • the reserved power of the charging device is the power reserved by the charging device for use by itself (for example: accompanying WiFi).
  • the reserved power of the charging device can be determined according to the usage status of the charging device.
  • the state may include the power-on state or the standby state of the above-mentioned charging device.
  • Step 103 Determine the available charging power of the charging device according to the maximum output power of the charging device and the reserved power of the charging device.
  • Step 104 Obtain the connection status between the charging port of the above-mentioned charging device and the electronic device.
  • the above-mentioned electronic devices include devices that use the above-mentioned charging devices for charging, such as devices such as smart phones, smart watches, tablet computers, smart wearable devices, or smart screens.
  • acquiring the connection status between the charging port of the charging device and the electronic device can be understood as acquiring whether the charging port of the charging device is connected to the electronic device.
  • Step 105 According to the priority of the charging port of the charging device connected to the electronic device, the available charging power of the charging device is allocated among the charging ports of the charging device connected to the electronic device.
  • Step 106 Control the charging port of the above-mentioned charging device connected to the electronic device, and charge the connected electronic device according to the allocated power.
  • the charging device can determine the maximum output power of the charging device according to the in-position state of the adapter, and according to the use state of the charging device Determine the reserved power of the charging device; then determine the available charging power of the charging device according to the maximum output power of the charging device and the reserved power of the charging device; next, obtain the connection status of the charging port of the charging device and the electronic device According to the priority of the charging port of the charging device connected to the electronic device, the available charging power of the charging device is allocated between the charging port of the charging device connected to the electronic device, and finally the charging port of the charging device connected to the electronic device is controlled , According to the allocated power to charge the connected electronic device, so that the charging power of each charging port can be adjusted according to the priority of each charging port in the charging device, so that the external charging efficiency of the charging device can be maximized, and the efficiency of the charging device can be improved. Charging efficiency.
  • FIG. 2 is a flowchart of another embodiment of the charging method of this application. As shown in FIG. 2, in the embodiment shown in FIG. 1 of this application, step 105 may include:
  • Step 201 Determine according to the minimum power required by the highest priority charging port among the charging ports of the above-mentioned charging device connected to the electronic device, the available charging power of the above-mentioned charging device, and the minimum power required by the charging port with a priority lower than the above-mentioned highest priority.
  • the first power range The first power range.
  • Step 202 Allocate the first charging power within the first power range to the highest priority charging port.
  • allocating the first charging power in the first power range to the highest priority charging port can be understood as: in the first power range, based on the highest priority charging port, the charging device and the electronic device perform charging power Negotiate, take the mutually supported maximum charging gear, and assign the negotiated power as the first charging power to the above-mentioned highest priority charging port.
  • step 202 it may further include:
  • Step 203 According to the minimum power required by the second-highest priority charging port of the charging port where the charging device is connected to the electronic device, the available charging power of the charging device, the first charging power, and the charging with priority lower than the second-highest priority The minimum power required by the port determines the second power range.
  • Step 204 Allocate the second charging power in the second power range to the charging port with the second highest priority.
  • allocating the second charging power in the second power range to the charging port with the second highest priority can be understood as: in the second power range, the charging device and the above electronic device are charged based on the charging port with the second highest priority. In power negotiation, the mutually supported maximum charging gear is taken, and the negotiated power is allocated as the second charging power to the charging port with the second highest priority.
  • step 204 it may further include:
  • Step 205 Determine a third power range according to the minimum power required by the charging port of the charging device with the lowest priority among the charging ports of the electronic device, the available charging power of the charging device, the first charging power and the second charging power.
  • Step 206 Allocate the third charging power in the third power range to the lowest priority charging port.
  • allocating the third charging power in the third power range to the lowest priority charging port can be understood as: in the third power range, based on the lowest priority charging port, the charging device and the electronic device perform charging power negotiation , Take the mutually supported maximum charging gear, and assign the successfully negotiated power as the third charging power to the above-mentioned lowest priority charging port.
  • the charging device may include three charging ports: port A, port C, and wireless charging port.
  • the priority of the above three charging ports can be set according to the order in which the charging ports are connected to the electronic device, for example: assuming port A The electronic device is connected first, that is, if the electronic device is connected to port A first, then the priority of port A can be set as the highest; or, the priority of the above 3 charging ports can be preset, for example: The priority of port C is set to be the highest, port A is the second, and the wireless charging port has the lowest priority; this embodiment does not limit the priority setting rules of the charging port of the charging device, and the priority of the charging port is preset below Take an example for illustration.
  • the charging device uses port C to charge itself, and the remaining port A and wireless charging port can be used for external charging.
  • the input power of the adapter is not sufficient for external charging
  • the required maximum power is firstly taken from the battery of the charging device for external charging.
  • the maximum output power of the charging device P MAX adapter input power + P BAT , the maximum output power of the charging device is minus the external charging required
  • the A port is the highest priority charging port, and the wireless charging port is the second highest priority charging port.
  • the available charging power of the charging device can be distributed among the charging ports of the charging device as follows:
  • Port A Take the maximum charging power supported by port A in the range of [P AMIN ,(P RMNG -P WMIN )];
  • Wireless charging port Take the maximum charging power supported by the wireless charging port within the range of [P WMIN ,(P RMNG -P ADST )];
  • P AMIN is the minimum power required by port A
  • P RMNG is the available charging power of the above-mentioned charging equipment
  • P WMIN is the minimum power required by the wireless charging port
  • [P AMIN ,(P RMNG -P WMIN )] is the first A charging range
  • P ADST is the maximum charging power that is finally allocated when the A port is externally charged, that is, the first charging power
  • [P WMIN , (P RMNG -P ADST )] is the second charging range, and the wireless charging port is charging externally When, the maximum charging power finally allocated is the second charging power.
  • the effective power output by the charging device is 32.5W, and after the power distribution is performed according to the method provided in this application, the effective power output by the charging device is 37.5W, thus It is realized that the charging power of each charging port is adjusted according to the priority of each charging port in the charging device, so that the external charging efficiency of the charging device is maximized, and the charging efficiency of the charging device is improved.
  • the external charging ports of the charging device include: port A, port C and wireless charging port.
  • port C is the highest priority charging port
  • port A is the second highest priority charging port.
  • the wireless charging port is the lowest priority charging port
  • the A port and the wireless charging port are the charging ports with the priority lower than the highest priority
  • the wireless charging port is the charging port with the priority lower than the second highest priority.
  • Port C Take the maximum charging power supported by Port C in the range of [P CMIN ,(P RMNG -P WMIN -P AMIN )];
  • Port A Take the maximum charging power supported by port A within the range of [P AMIN ,(P RMNG -P CDST -P WMIN )];
  • Wireless charging port within the range of [P WMIN ,(P RMNG -P CDST -P ADST )], take the largest charging gear supported by the wireless charging port;
  • P CMIN is the minimum power required by port C
  • P AMIN is the minimum power required by port A
  • P WMIN is the minimum power required by the wireless charging port
  • P RMNG is the available charging power of the above-mentioned charging equipment
  • [P CMIN ,(P RMNG -P WMIN -P AMIN )] is the first charging range
  • P CDST is the maximum charging power that is finally allocated when the C port is externally charged, that is, the first charging power
  • P AMIN ,(P RMNG -P CDST -P WMIN )] is the second charging range
  • P ADST is the maximum charging power that is finally allocated when the A port is externally charged, that is, the second charging power
  • [P WMIN ,(P RMNG -P CDST -P ADST )] is the first Three charging range, when the wireless charging port is charging externally, the maximum charging power finally allocated is the third charging power.
  • the C port and the A port are charged at the same time.
  • the specific power distribution method can be shown in Table 2.
  • the effective power that the charging device can output is 28W, but if the electronic device connected to the C port does not support fast charging, then after the power distribution is performed according to the existing predetermined rules, the charging device The actual output effective power is 20W, and after the power distribution is performed according to the method provided in this application, the effective power output by the charging device can still reach 28W, so as to realize the adjustment of the charging port according to the priority of each charging port in the charging device.
  • the charging power maximizes the external charging efficiency of the charging device and improves the charging efficiency of the charging device.
  • FIG. 3 is a flowchart of another embodiment of the charging method of this application. As shown in FIG. 3, in the embodiment shown in FIG. 1 of this application, after step 101, it may further include:
  • Step 301 After an abnormal event occurs in the charging device, control the charging device to stop charging the connected electronic device; wherein the abnormal event includes one or a combination of the following: the adapter of the charging device is not in place and the power of the charging device Below a predetermined power threshold, the charging device is switched on and off, the adapter of the charging device undergoes a state transition between in place and not in place, and the electronic device connected to the charging device undergoes a state transition between connected and disconnected.
  • the abnormal event includes one or a combination of the following: the adapter of the charging device is not in place and the power of the charging device Below a predetermined power threshold, the charging device is switched on and off, the adapter of the charging device undergoes a state transition between in place and not in place, and the electronic device connected to the charging device undergoes a state transition between connected and disconnected.
  • the foregoing predetermined power threshold can be set by itself during specific implementation, and this embodiment does not limit the size of the foregoing predetermined power threshold.
  • FIG. 4 is a schematic structural diagram of an embodiment of a charging device according to the application.
  • the charging device 40 may be provided in a charging device, and the charging device 40 may include: an acquisition module 41, a determination module 42, a distribution module 43, and Control module 44; it should be understood that the charging device 40 can be provided in the charging device 900 shown in FIG. 6.
  • the functions of the acquisition module 41, the determination module 42, the allocation module 43, and the control module 44 may be implemented by the processor 910 in the charging device 900 shown in FIG. 6.
  • the obtaining module 41 is used to obtain the in-position state of the adapter of the above-mentioned charging device and the use state of the above-mentioned charging device;
  • the determining module 42 is configured to determine the maximum output power of the charging device according to the in-position state of the adapter, and determine the reserved power of the charging device according to the use state of the charging device; according to the maximum output power of the charging device and the charging device To determine the available charging power of the above-mentioned charging equipment;
  • the obtaining module 41 is also used to obtain the connection status between the charging port of the above-mentioned charging device and the electronic device;
  • the allocation module 43 is configured to allocate the available charging power of the charging device between the charging ports of the electronic device connected to the charging device according to the priority of the charging port of the electronic device connected to the charging device;
  • the control module 44 is configured to control the charging port of the above-mentioned charging device connected to the electronic device, and charge the connected electronic device according to the allocated power.
  • the determining module 42 is specifically configured to determine that the maximum output power of the charging device is the sum of the input power of the adapter and the power provided by the charging device itself when the adapter is in place; When the adapter is not in place, it is determined that the maximum output power of the charging device is the power provided by the charging device itself.
  • the charging device provided in the embodiment shown in FIG. 4 can be used to implement the technical solution of the method embodiment shown in FIG. 1 of the present application. For its implementation principles and technical effects, further reference may be made to the relevant description in the method embodiment.
  • FIG. 5 is a schematic structural diagram of another embodiment of the charging device of this application. Compared with the charging device 40 shown in FIG. 4, the difference is that in the charging device 50 shown in FIG. 5, the distribution module 43 may include: power range Determine the sub-module 431 and the power distribution sub-module 432;
  • the power range determination sub-module 431 is used to determine the minimum power required by the charging port with the highest priority among the charging ports of the above-mentioned charging device connected to the electronic device, the available charging power of the above-mentioned charging device, and the charging port with a priority lower than the highest priority.
  • the minimum power of determine the first power range
  • the power allocation sub-module 432 is configured to allocate the first charging power in the first power range to the above-mentioned highest priority charging port.
  • the power range determining submodule 431 is further configured to allocate the first charging power in the first power range to the above-mentioned highest priority charging port by the power distribution submodule 432, according to the above-mentioned charging device Determination of the minimum power required by the next-highest priority charging port among the charging ports connected to the electronic device, the available charging power of the above-mentioned charging device, the above-mentioned first charging power, and the minimum power required by the charging port with a priority lower than the above-mentioned second-highest priority Second power range;
  • the power allocation sub-module 432 is further configured to allocate the second charging power in the second power range to the second-highest priority charging port.
  • the power range determining submodule 431 is also used for after the power allocation submodule 432 allocates the second charging power in the second power range to the second-highest priority charging port, according to the above charging device
  • the minimum power required by the lowest priority charging port among the charging ports connected to the electronic device, the available charging power of the charging device, the first charging power and the second charging power determine the third power range
  • the power allocation sub-module 432 is also used to allocate the third charging power in the third power range to the lowest priority charging port.
  • control module 44 is further configured to control the charging device to stop charging the connected electronic device after an abnormal event occurs in the charging device after the obtaining module 41 obtains the usage status of the charging device.
  • the abnormal event includes one or a combination of the following: the adapter of the charging device is not in place and the power of the charging device is lower than a predetermined power threshold, the power of the charging device is switched on and off, and the adapter of the charging device is in place or not in place The state transition of and the state transition of connected and disconnected electronic devices connected to the above-mentioned charging device.
  • the charging device 50 may be provided in the charging device 900 shown in FIG. 6.
  • the functions of the acquisition module 41, the determination module 42, the allocation module 43, and the control module 44 may be implemented by the processor 910 in the charging device 900 shown in FIG. 6.
  • the charging device 50 provided in the embodiment shown in FIG. 5 can be used to implement the technical solutions of the method embodiments shown in FIGS. 1 to 3 of the present application. For its implementation principles and technical effects, further reference may be made to related descriptions in the method embodiments.
  • each step of the above method or each of the above modules can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as ASIC), or, one or more micro-processing Digital Processor (Digital Singnal Processor; hereinafter referred to as DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as FPGA), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Singnal Processor
  • FPGA Field Programmable Gate Array
  • these modules can be integrated together and implemented in the form of System-On-a-Chip (hereinafter referred to as SOC).
  • Fig. 6 is a schematic structural diagram of an embodiment of a charging device according to the present application.
  • the charging device may include: one or more processors; a memory; multiple application programs; and one or more computer programs, wherein the above-mentioned one or more computer programs Stored in the aforementioned memory, the aforementioned one or more computer programs include instructions, and when the aforementioned instructions are executed by the aforementioned device, the aforementioned device executes the following steps:
  • the available charging power of the charging device is allocated between the charging port of the charging device connected to the electronic device;
  • causing the above-mentioned device to execute the above-mentioned step of determining the maximum output power of the above-mentioned charging device according to the in-position state of the above-mentioned adapter includes:
  • the adapter When the adapter is in place, determining that the maximum output power of the charging device is the sum of the input power of the adapter and the power provided by the charging device itself;
  • the maximum output power of the charging device is the power provided by the charging device itself.
  • the above-mentioned device when executed by the above-mentioned device, the above-mentioned device is caused to execute the above according to the priority of the charging port of the above-mentioned charging device connected to the electronic device, and the available charging power of the charging device is set in the
  • the steps of distributing between charging devices connected to the charging ports of electronic devices include:
  • the minimum power required by the charging port of the second highest priority charging port of the charging device connected to the electronic device the available charging power of the charging device, the first charging power and the charging port with priority lower than the second highest priority
  • the second charging power in the second power range is allocated to the charging port with the second highest priority.
  • Determining the third power range according to the minimum power required by the charging port of the lowest priority charging port of the charging device connected to the electronic device, the available charging power of the charging device, the first charging power and the second charging power;
  • the third charging power in the third power range is allocated to the charging port with the lowest priority.
  • the charging device is controlled to stop charging the connected electronic device; wherein the abnormal event includes one or a combination of the following: the adapter of the charging device is not in place and the power of the charging device is lower than a predetermined The power threshold of the charging device, the switch of the charging device, the state transition of the charging device's adapter, and the state transition of connecting and disconnecting the electronic device connected to the charging device.
  • the charging device shown in FIG. 6 may be a terminal device or a circuit device built in the aforementioned terminal device.
  • the device can be used to execute the functions/steps in the methods provided in the embodiments shown in FIGS. 1 to 3 of this application.
  • the charging device 900 includes a processor 910 and a transceiver 920.
  • the charging device 900 may further include a memory 930.
  • the processor 910, the transceiver 920, and the memory 930 can communicate with each other through an internal connection path to transfer control and/or data signals.
  • the memory 930 is used to store computer programs, and the processor 910 is used to download from the memory 930. Call and run the computer program.
  • the above-mentioned processor 910 and the memory 930 may be integrated into a processing device, and more commonly, are components independent of each other.
  • the processor 910 is configured to execute the program code stored in the memory 930 to implement the above-mentioned functions.
  • the memory 930 may also be integrated in the processor 910, or independent of the processor 910.
  • the charging device 900 may further include one or more of the input unit 960 and the display unit 970.
  • the display unit 970 may include a display screen.
  • the aforementioned charging device 900 may further include a battery 950.
  • the charging device 900 shown in FIG. 6 can implement various processes of the methods provided in the embodiments shown in FIGS. 1 to 3.
  • the operations and/or functions of the various modules in the charging device 900 are respectively intended to implement the corresponding processes in the foregoing method embodiments.
  • processor 910 in the charging device 900 shown in FIG. 6 may be a system-on-chip SOC, and the processor 910 may include a central processing unit (Central Processing Unit; hereinafter referred to as: CPU), and may further include other types of Processor, for example: Graphics Processing Unit (hereinafter referred to as GPU), etc.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • each part of the processor or processing unit inside the processor 910 can cooperate to implement the previous method flow, and the corresponding software program of each part of the processor or processing unit can be stored in the memory 930.
  • the aforementioned memory 930 may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), or other types that can store information and instructions.
  • the type of dynamic storage device can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical disk storage, CD-ROM Storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures And any other media that can be accessed by the computer.
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM compact disc read-only memory
  • CD-ROM Storage including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.
  • magnetic disk storage media or other magnetic storage devices or can be used to carry or store desired program codes in the
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when it runs on a computer, the computer executes the functions provided by the embodiments shown in Figs. 1 to 3 of the present application. method.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product includes a computer program that, when running on a computer, causes the computer to execute the method provided in the embodiments shown in FIGS. 1 to 3 of the present application.
  • At least one refers to one or more
  • multiple refers to two or more.
  • And/or describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural.
  • the character “/” generally indicates that the associated objects before and after are in an “or” relationship.
  • the following at least one item” and similar expressions refer to any combination of these items, including any combination of single items or plural items.
  • At least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single, or There can be more than one.
  • any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as ROM), random access memory (Random Access Memory; hereinafter referred to as RAM), magnetic disks or optical disks, etc.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disks or optical disks etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

本申请实施例提供一种充电方法、装置和充电设备,上述充电方法中,充电设备可以根据充电设备的适配器的在位状态确定充电设备的最大输出功率,以及根据上述充电设备的使用状态确定上述充电设备的保留功率;然后根据最大输出功率和保留功率,确定上述充电设备的可用充电功率;接下来,根据上述充电设备连接电子设备的充电口的优先级,将上述充电设备的可用充电功率,在上述充电设备连接电子设备的充电口之间进行分配,最后控制上述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电,从而可以实现根据充电设备中各充电口的优先级,调整各充电口的充电功率,使得充电设备的对外充电效率达到最大,提升充电设备的充电效率。

Description

充电方法、装置和充电设备
本申请要求于2020年1月15日提交中国专利局、申请号为202010042304.X、发明名称为“充电方法、装置和充电设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及人工智能技术领域,特别涉及一种充电方法、装置和充电设备。
背景技术
当前市场上比较强大的具有充电功能的设备,例如:充电宝,一般都会同时支持有线对外充电和无线对外充电,有线对外充电即通过USB-type A充电口(以下简称:A口)或USB-Type C充电口(以下简称:C口)对电子设备进行充电,其中,C口同时支持设备自身的充电。在各种充电场景下如何有效的进行功率分配,给用户带来更好的充电体验,显得非常重要。
现有相关技术中,当充电宝存在多路输出并发时,输出功率一般是按照固定的规则分配的,例如:当A口和C口同时对外充电时,A口和C口都按照预先定义的功率进行对外充电,对外输出的功率无法最大化,充电效率较差。
发明内容
本申请提供了一种充电方法、装置和充电设备,本申请还提供一种计算机可读存储介质,以实现调整充电设备的各充电口的充电功率,使得充电设备对外输出的功率最大化。
第一方面,本申请提供了一种充电方法,包括:
获取充电设备的适配器的在位状态和上述充电设备的使用状态;本实施例中,上述充电设备可以为具有充电功能的设备,例如:充电宝等。其中,上述充电设备的适配器的在位状态可以包括:上述充电设备的适配器在位或者上述充电设备的适配器不在位;上述充电设备的适配器在位是指上述充电设备的适配器与电源连接,上述充电设备利用上述适配器给自身充电;上述充电设备的适配器不在位是指上述充电设备的适配器未与电源连接;
根据上述适配器的在位状态确定上述充电设备的最大输出功率,以及根据上述充电设备的使用状态确定上述充电设备的保留功率;本实施例中,上述充电设备的保留功率即为上述充电设备保留给自身(例如:随行WiFi)使用的功率,上述充电设备的保留功率可以根据上述充电设备的使用状态确定,上述充电设备的使用状态可以包括上述充电设备的开机状态或待机状态;
根据上述充电设备的最大输出功率和上述充电设备的保留功率,确定上述充电设备的可用充电功率;具体地,上述充电设备的可用充电功率可以为上述充电设备 的最大输出功率与上述充电设备的保留功率之差,即P RMNG=P MAX-P RSVD;其中,P RMNG为上述充电设备的可用充电功率,P RSVD为上述充电设备的保留功率;
获取上述充电设备的充电口与电子设备的连接状态;其中,上述电子设备包括使用上述充电设备进行充电的设备,例如:智能手机、智能手表、平板电脑、智能穿戴设备或智慧屏等设备;具体地,获取上述充电设备的充电口与电子设备的连接状态可以理解为获取上述充电设备的充电口是否与电子设备连接;
根据上述充电设备连接电子设备的充电口的优先级,将上述充电设备的可用充电功率,在上述充电设备连接电子设备的充电口之间进行分配;
控制上述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电。
上述充电方法中,获取充电设备的适配器的在位状态和上述充电设备的使用状态之后,充电设备可以根据上述适配器的在位状态确定上述充电设备的最大输出功率,以及根据上述充电设备的使用状态确定上述充电设备的保留功率;然后根据上述充电设备的最大输出功率和上述充电设备的保留功率,确定上述充电设备的可用充电功率;接下来,获取上述充电设备的充电口与电子设备的连接状态,根据上述充电设备连接电子设备的充电口的优先级,将上述充电设备的可用充电功率,在上述充电设备连接电子设备的充电口之间进行分配,最后控制上述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电,从而可以实现根据充电设备中各充电口的优先级,调整各充电口的充电功率,使得充电设备的对外充电效率达到最大,提升充电设备的充电效率。
其中一种可能的实现方式中,根据上述适配器的在位状态确定上述充电设备的最大输出功率包括:
当上述适配器在位时,确定上述充电设备的最大输出功率为上述适配器的输入功率和上述充电设备自身提供的功率之和,即P MAX=适配器输入功率+P BAT
当上述适配器不在位时,确定上述充电设备的最大输出功率为上述充电设备自身提供的功率,即P MAX=P BAT
其中一种可能的实现方式中,根据上述充电设备连接电子设备的充电口的优先级,将上述充电设备的可用充电功率,在上述充电设备连接电子设备的充电口之间进行分配包括:
根据上述充电设备连接电子设备的充电口中最高优先级充电口所需的最小功率、上述充电设备的可用充电功率和优先级低于上述最高优先级的充电口所需的最小功率,确定第一功率范围;
将上述第一功率范围内的第一充电功率分配给上述最高优先级充电口。
具体地,将上述第一功率范围内的第一充电功率分配给上述最高优先级充电口可以理解为:在第一功率范围内,基于最高优先级充电口,充电设备和上述电子设备进行充电功率协商,取相互支持的最大充电档位,将协商成功的功率作为第一充电功率分配给上述最高优先级充电口。
其中一种可能的实现方式中,上述将上述第一功率范围内的第一充电功率分配给上述最高优先级充电口之后,还包括:
根据上述充电设备连接电子设备的充电口中次高优先级充电口所需的最小功率、上述充电设备的可用充电功率、上述第一充电功率和优先级低于上述次高优先级的充电口所需的最小功率确定第二功率范围;
将上述第二功率范围内的第二充电功率分配给上述次高优先级充电口。
具体地,将上述第二功率范围内的第二充电功率分配给上述次高优先级充电口可以理解为:在第二功率范围内,基于次高优先级充电口,充电设备和上述电子设备进行充电功率协商,取相互支持的最大充电档位,将协商成功的功率作为第二充电功率分配给上述次高优先级充电口。
其中一种可能的实现方式中,上述将上述第二功率范围内的第二充电功率分配给上述次高优先级充电口之后,还包括:
根据上述充电设备连接电子设备的充电口中最低优先级充电口所需的最小功率、上述充电设备的可用充电功率、上述第一充电功率和上述第二充电功率确定第三功率范围;
将上述第三功率范围内的第三充电功率分配给上述最低优先级充电口。
具体地,将上述第三功率范围内的第三充电功率分配给上述最低优先级充电口可以理解为:在第三功率范围内,基于最低优先级充电口,充电设备和上述电子设备进行充电功率协商,取相互支持的最大充电档位,将协商成功的功率作为第三充电功率分配给上述最低优先级充电口。
其中一种可能的实现方式中,上述获取上述充电设备的使用状态之后,还包括:
在上述充电设备发生异常事件之后,控制上述充电设备停止对所连接的电子设备充电;其中,上述异常事件包括以下之一或组合:上述充电设备的适配器不在位并且上述充电设备的电量低于预定的电量阈值、上述充电设备开关机、上述充电设备的适配器发生在位与不在位的状态转换和上述充电设备连接的电子设备发生连接与不连接的状态转换;其中,上述预定的电量阈值可以在具体实现时自行设定,本实施例对上述预定的电量阈值的大小不作限定。
第二方面,本申请实施例提供一种充电装置,设置在充电设备中,上述充电装置包括:
获取模块,用于获取上述充电设备的适配器的在位状态和上述充电设备的使用状态;
确定模块,用于根据上述适配器的在位状态确定上述充电设备的最大输出功率,以及根据上述充电设备的使用状态确定上述充电设备的保留功率;根据上述充电设备的最大输出功率和上述充电设备的保留功率,确定上述充电设备的可用充电功率;
上述获取模块,还用于获取上述充电设备的充电口与电子设备的连接状态;
分配模块,用于根据上述充电设备连接电子设备的充电口的优先级,将上述充电设备的可用充电功率,在上述充电设备连接电子设备的充电口之间进行分配;
控制模块,用于控制上述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电。
其中一种可能的实现方式中,上述确定模块,具体用于当上述适配器在位时,确定上述充电设备的最大输出功率为上述适配器的输入功率和上述充电设备自身提 供的功率之和;当上述适配器不在位时,确定上述充电设备的最大输出功率为上述充电设备自身提供的功率。
其中一种可能的实现方式中,上述分配模块包括:
功率范围确定子模块,用于根据上述充电设备连接电子设备的充电口中最高优先级充电口所需的最小功率、上述充电设备的可用充电功率和优先级低于上述最高优先级的充电口所需的最小功率,确定第一功率范围;
功率分配子模块,用于将上述第一功率范围内的第一充电功率分配给上述最高优先级充电口。
其中一种可能的实现方式中,上述功率范围确定子模块,还用于在上述功率分配子模块将上述第一功率范围内的第一充电功率分配给上述最高优先级充电口之后,根据上述充电设备连接电子设备的充电口中次高优先级充电口所需的最小功率、上述充电设备的可用充电功率、上述第一充电功率和优先级低于上述次高优先级的充电口所需的最小功率确定第二功率范围;
上述功率分配子模块,还用于将上述第二功率范围内的第二充电功率分配给上述次高优先级充电口。
其中一种可能的实现方式中,上述功率范围确定子模块,还用于在上述功率分配子模块将上述第二功率范围内的第二充电功率分配给上述次高优先级充电口之后,根据上述充电设备连接电子设备的充电口中最低优先级充电口所需的最小功率、上述充电设备的可用充电功率、上述第一充电功率和上述第二充电功率确定第三功率范围;
上述功率分配子模块,还用于将上述第三功率范围内的第三充电功率分配给上述最低优先级充电口。
其中一种可能的实现方式中,上述控制模块,还用于在上述获取模块获取上述充电设备的使用状态之后,在上述充电设备发生异常事件之后,控制上述充电设备停止对所连接的电子设备充电;其中,上述异常事件包括以下之一或组合:上述充电设备的适配器不在位并且上述充电设备的电量低于预定的电量阈值、上述充电设备开关机、上述充电设备的适配器发生在位与不在位的状态转换和上述充电设备连接的电子设备发生连接与不连接的状态转换。
第三方面,本申请实施例提供一种充电设备,包括:
一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述设备执行时,使得上述设备执行以下步骤:
获取充电设备的适配器的在位状态和上述充电设备的使用状态;
根据上述适配器的在位状态确定上述充电设备的最大输出功率,以及根据上述充电设备的使用状态确定上述充电设备的保留功率;
根据上述充电设备的最大输出功率和上述充电设备的保留功率,确定上述充电设备的可用充电功率;
获取上述充电设备的充电口与电子设备的连接状态;
根据上述充电设备连接电子设备的充电口的优先级,将上述充电设备的可用充 电功率,在上述充电设备连接电子设备的充电口之间进行分配;
控制上述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电。
其中一种可能的实现方式中,当上述指令被上述设备执行时,使得上述设备执行上述根据上述适配器的在位状态确定上述充电设备的最大输出功率的步骤包括:
当上述适配器在位时,确定上述充电设备的最大输出功率为上述适配器的输入功率和上述充电设备自身提供的功率之和;
当上述适配器不在位时,确定上述充电设备的最大输出功率为上述充电设备自身提供的功率。
其中一种可能的实现方式中,当上述指令被上述设备执行时,使得上述设备执行上述根据上述充电设备连接电子设备的充电口的优先级,将上述充电设备的可用充电功率,在上述充电设备连接电子设备的充电口之间进行分配的步骤包括:
根据上述充电设备连接电子设备的充电口中最高优先级充电口所需的最小功率、上述充电设备的可用充电功率和优先级低于上述最高优先级的充电口所需的最小功率,确定第一功率范围;
将上述第一功率范围内的第一充电功率分配给上述最高优先级充电口。
其中一种可能的实现方式中,当上述指令被上述设备执行时,使得上述设备执行上述将上述第一功率范围内的第一充电功率分配给上述最高优先级充电口的步骤之后,还执行以下步骤:
根据上述充电设备连接电子设备的充电口中次高优先级充电口所需的最小功率、上述充电设备的可用充电功率、上述第一充电功率和优先级低于上述次高优先级的充电口所需的最小功率确定第二功率范围;
将上述第二功率范围内的第二充电功率分配给上述次高优先级充电口。
其中一种可能的实现方式中,当上述指令被上述设备执行时,使得上述设备执行上述将上述第二功率范围内的第二充电功率分配给上述次高优先级充电口的步骤之后,还执行以下步骤:
根据上述充电设备连接电子设备的充电口中最低优先级充电口所需的最小功率、上述充电设备的可用充电功率、上述第一充电功率和上述第二充电功率确定第三功率范围;
将上述第三功率范围内的第三充电功率分配给上述最低优先级充电口。
其中一种可能的实现方式中,当上述指令被上述设备执行时,使得上述设备执行上述获取上述充电设备的使用状态的步骤之后,还执行以下步骤:
在上述充电设备发生异常事件之后,控制上述充电设备停止对所连接的电子设备充电;其中,上述异常事件包括以下之一或组合:上述充电设备的适配器不在位并且上述充电设备的电量低于预定的电量阈值、上述充电设备开关机、上述充电设备的适配器发生在位与不在位的状态转换和上述充电设备连接的电子设备发生连接与不连接的状态转换。
应当理解的是,本申请的第二至三方面与本申请的第一方面的技术方案一致,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。
第四方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。
第五方面,本申请提供一种计算机程序,当所述计算机程序被计算机执行时,用于执行第一方面所述的方法。
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
图1为本申请充电方法一个实施例的流程图;
图2为本申请充电方法另一个实施例的流程图;
图3为本申请充电方法再一个实施例的流程图;
图4为本申请充电装置一个实施例的结构示意图;
图5为本申请充电装置另一个实施例的结构示意图;
图6为本申请充电设备一个实施例的结构示意图。
具体实施方式
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。
现有相关技术中,当充电设备(例如:充电宝)存在多路输出并发时,输出功率一般是按照固定的规则分配的,例如:当USB-type A和USB-Type C同时供电时,A口和C口都按照预先定义的功率进行对外充电,对外输出的功率无法最大化,充电效率较差。
其中,上述充电设备即为具有充电功能的设备。
为此,本申请提出一种充电方法,可以根据上述充电设备中各充电口的优先级,调整各充电口的充电功率,使得充电设备对外输出的功率最大化。
图1为本申请充电方法一个实施例的流程图,如图1所示,上述充电方法可以包括:
步骤101,获取充电设备的适配器的在位状态和上述充电设备的使用状态。
本实施例中,上述充电设备可以为具有充电功能的设备,例如:充电宝等。其中,上述充电设备的适配器的在位状态可以包括:上述充电设备的适配器在位或者上述充电设备的适配器不在位;上述充电设备的适配器在位是指上述充电设备的适配器与电源连接,上述充电设备利用上述适配器给自身充电;上述充电设备的适配器不在位是指上述充电设备的适配器未与电源连接。
步骤102,根据上述适配器的在位状态确定上述充电设备的最大输出功率,以及根据上述充电设备的使用状态确定上述充电设备的保留功率。
具体地,根据上述适配器的在位状态确定上述充电设备的最大输出功率可以理解为:
当上述适配器在位时,确定上述充电设备的最大输出功率为上述适配器的输入 功率和上述充电设备自身提供的功率之和,即P MAX=适配器输入功率+P BAT
当上述适配器不在位时,确定上述充电设备的最大输出功率为上述充电设备自身提供的功率,即P MAX=P BAT
其中,P MAX为上述充电设备的最大输出功率,P BAT为上述充电设备自身提供的功率。
本实施例中,上述充电设备的保留功率即为上述充电设备保留给自身(例如:随行WiFi)使用的功率,上述充电设备的保留功率可以根据上述充电设备的使用状态确定,上述充电设备的使用状态可以包括上述充电设备的开机状态或待机状态。
步骤103,根据上述充电设备的最大输出功率和上述充电设备的保留功率,确定上述充电设备的可用充电功率。
具体地,上述充电设备的可用充电功率可以为上述充电设备的最大输出功率与上述充电设备的保留功率之差,即P RMNG=P MAX-P RSVD;其中,P RMNG为上述充电设备的可用充电功率,P RSVD为上述充电设备的保留功率。
步骤104,获取上述充电设备的充电口与电子设备的连接状态。
其中,上述电子设备包括使用上述充电设备进行充电的设备,例如:智能手机、智能手表、平板电脑、智能穿戴设备或智慧屏等设备。
具体地,获取上述充电设备的充电口与电子设备的连接状态可以理解为获取上述充电设备的充电口是否与电子设备连接。
步骤105,根据上述充电设备连接电子设备的充电口的优先级,将上述充电设备的可用充电功率,在上述充电设备连接电子设备的充电口之间进行分配。
步骤106,控制上述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电。
上述充电方法中,获取充电设备的适配器的在位状态和上述充电设备的使用状态之后,充电设备可以根据上述适配器的在位状态确定上述充电设备的最大输出功率,以及根据上述充电设备的使用状态确定上述充电设备的保留功率;然后根据上述充电设备的最大输出功率和上述充电设备的保留功率,确定上述充电设备的可用充电功率;接下来,获取上述充电设备的充电口与电子设备的连接状态,根据上述充电设备连接电子设备的充电口的优先级,将上述充电设备的可用充电功率,在上述充电设备连接电子设备的充电口之间进行分配,最后控制上述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电,从而可以实现根据充电设备中各充电口的优先级,调整各充电口的充电功率,使得充电设备的对外充电效率达到最大,提升充电设备的充电效率。
图2为本申请充电方法另一个实施例的流程图,如图2所示,本申请图1所示实施例中,步骤105可以包括:
步骤201,根据上述充电设备连接电子设备的充电口中最高优先级充电口所需的最小功率、上述充电设备的可用充电功率和优先级低于上述最高优先级的充电口所需的最小功率,确定第一功率范围。
步骤202,将上述第一功率范围内的第一充电功率分配给上述最高优先级充电口。
具体地,将上述第一功率范围内的第一充电功率分配给上述最高优先级充电口可以理解为:在第一功率范围内,基于最高优先级充电口,充电设备和上述电子设备进行充电功率协商,取相互支持的最大充电档位,将协商成功的功率作为第一充电功率分配给上述最高优先级充电口。
进一步地,步骤202之后,还可以包括:
步骤203,根据上述充电设备连接电子设备的充电口中次高优先级充电口所需的最小功率、上述充电设备的可用充电功率、上述第一充电功率和优先级低于上述次高优先级的充电口所需的最小功率确定第二功率范围。
步骤204,将第二功率范围内的第二充电功率分配给上述次高优先级充电口。
具体地,将第二功率范围内的第二充电功率分配给上述次高优先级充电口可以理解为:在第二功率范围内,基于次高优先级充电口,充电设备和上述电子设备进行充电功率协商,取相互支持的最大充电档位,将协商成功的功率作为第二充电功率分配给上述次高优先级充电口。
进一步地,步骤204之后,还可以包括:
步骤205,根据上述充电设备连接电子设备的充电口中最低优先级充电口所需的最小功率、上述充电设备的可用充电功率、上述第一充电功率和上述第二充电功率确定第三功率范围。
步骤206,将上述第三功率范围内的第三充电功率分配给最低优先级充电口。
具体地,将上述第三功率范围内的第三充电功率分配给最低优先级充电口可以理解为:在第三功率范围内,基于最低优先级充电口,充电设备和上述电子设备进行充电功率协商,取相互支持的最大充电档位,将协商成功的功率作为第三充电功率分配给上述最低优先级充电口。
本实施例中,充电设备可以包括A口、C口和无线充电端口这3个充电口,上述3个充电口的优先级可以按照充电口连接电子设备的先后顺序设定,例如:假设A口最先连接电子设备,也就是说,A口最先有电子设备接入,那么可以设定A口的优先级最高;或者,上述3个充电口的优先级可以预先设定,例如:可以预先设定C口的优先级最高,A口次之,无线充电端口优先级最低;本实施例对充电设备的充电口的优先级的设定规则不作限定,下面以充电口的优先级预先设定为例进行说明。
(1)适配器在位时,充电设备利用C口为自身进行充电,剩下A口和无线充电端口可以进行对外充电,这时为了保证充电设备的对外充电效率,如果适配器输入功率不满足对外充电所需的最大功率,则优先从充电设备的电池取电进行对外充电,这时充电设备的最大输出功率P MAX=适配器输入功率+P BAT,充电设备的最大输出功率在减去对外充电所需的最大功率之后,如果还有剩余功率,则利用上述剩余功率给充电设备的电池进行充电;适配器在位时,A口为最高优先级充电口,无线充电端口为次高优先级充电口,也是优先级低于最高优先级的充电口,上述充电设备的可用充电功率在上述充电设备的充电口之间的分配方式可以如下:
A口:在[P AMIN,(P RMNG-P WMIN)]范围内取A口支持的最大的充电功率;
无线充电端口:在[P WMIN,(P RMNG-P ADST)]范围内取无线充电端口支持的最大的充电功率;
其中,P AMIN为A口所需的最小功率,P RMNG为上述充电设备的可用充电功率,P WMIN为无线充电端口所需的最小功率,[P AMIN,(P RMNG-P WMIN)]为第一充电范围,P ADST为A口对外充电时,最终分配的最大充电功率,即第一充电功率;而[P WMIN,(P RMNG-P ADST)]为第二充电范围,无线充电端口对外充电时,最终分配的最大充电功率为第二充电功率。
举例来说,适配器在位时,A口和无线充电端口同时对外充电,P BAT=30.4W,在A口和无线充电端口之间进行功率分配时,为了兼容5V/1A的适配器,具体的功率分配方式可以如表1所示。
表1
Figure PCTCN2020128062-appb-000001
从表1可以看出,按照现有的预定规则进行功率分配,充电设备输出的有效功率为32.5W,而按照本申请提供的方法进行功率分配之后,充电设备输出的有效功率为37.5W,从而实现了根据充电设备中各充电口的优先级,调整各充电口的充电功率,使得充电设备的对外充电效率达到最大,提升了充电设备的充电效率。
(2)适配器不在位时,充电设备的对外充电端口包括:A口、C口和无线充电端口,适配器不在位时,C口为最高优先级充电口,A口为次高优先级充电口,无线充电端口为最低优先级充电口,A口和无线充电端口为优先级低于最高优先级的充电口,无线充电端口为优先级低于次高优先级的充电口,上述充电设备的可用充电功率在上述充电设备的充电口之间的分配方式可以如下:
C口:在[P CMIN,(P RMNG-P WMIN-P AMIN)]范围内取C口支持的最大的充电功率;
A口:在[P AMIN,(P RMNG-P CDST-P WMIN)]范围内取A口支持的最大的充电功率;
无线充电端口:在[P WMIN,(P RMNG-P CDST-P ADST)]范围内取无线充电端口支持的最大的充电档位;
其中,P CMIN为C口所需的最小功率,P AMIN为A口所需的最小功率,P WMIN为无线充电端口所需的最小功率,P RMNG为上述充电设备的可用充电功率,[P CMIN,(P RMNG-P WMIN-P AMIN)]为第一充电范围,P CDST为C口对外充电时,最终分配的最大充电功率,即第一充电功率;[P AMIN,(P RMNG-P CDST-P WMIN)]为第二充电范围,P ADST为A口对外充电时,最终分配的最大充电功率,即第二充电功率;[P WMIN,(P RMNG-P CDST-P ADST)]为第三充电范围,无线充电端口对外充电时,最终分配的最大充电功率为第三充电功率。
举例来说,适配器不在位时,C口和A口同时对外充电,为了兼容市面上5V/1A的适配器,具体的功率分配方式可以如表2所示。
表2
Figure PCTCN2020128062-appb-000002
从表2可以看出,按照现有的预定规则,充电设备可输出的有效功率28W,但如果C口连接的电子设备不支持快充,那么按照现有的预定规则进行功率分配之后,充电设备实际输出的有效功率为20W,而按照本申请提供的方法进行功率分配之后,充电设备输出的有效功率仍可达到28W,从而实现了根据充电设备中各充电口的优先级,调整各充电口的充电功率,使得充电设备的对外充电效率达到最大,提升了充电设备的充电效率。
图3为本申请充电方法再一个实施例的流程图,如图3所示,本申请图1所示实施例中,步骤101之后,还可以包括:
步骤301,在上述充电设备发生异常事件之后,控制上述充电设备停止对所连接的电子设备充电;其中,上述异常事件包括以下之一或组合:上述充电设备的适配器不在位并且上述充电设备的电量低于预定的电量阈值、上述充电设备开关机、上述充电设备的适配器发生在位与不在位的状态转换和上述充电设备连接的电子设备发生连接与不连接的状态转换。
其中,上述预定的电量阈值可以在具体实现时自行设定,本实施例对上述预定的电量阈值的大小不作限定。
可以理解的是,上述实施例中的部分或全部步骤骤或操作仅是示例,本申请实施例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照上述实施例呈现的不同的顺序来执行,并且有可能并非要执行上述实施例中的全部操作。
图4为本申请充电装置一个实施例的结构示意图,如图4所示,上述充电装置40可以设置在充电设备中,上述充电装置40可以包括:获取模块41、确定模块42、分配模块43和控制模块44;应当理解的是,充电装置40可以设置在图6所示的充电设备900中。其中,获取模块41、确定模块42、分配模块43和控制模块44的功能可以由图6所示充电设备900中的处理器910实现。
其中,获取模块41,用于获取上述充电设备的适配器的在位状态和上述充电设备的使用状态;
确定模块42,用于根据上述适配器的在位状态确定上述充电设备的最大输出功率,以及根据上述充电设备的使用状态确定上述充电设备的保留功率;根据上述充电设备的最大输出功率和上述充电设备的保留功率,确定上述充电设备的可用充电功率;
获取模块41,还用于获取上述充电设备的充电口与电子设备的连接状态;
分配模块43,用于根据上述充电设备连接电子设备的充电口的优先级,将上述充电设备的可用充电功率,在上述充电设备连接电子设备的充电口之间进行分配;
控制模块44,用于控制上述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电。
其中一种可能的实现方式中,确定模块42,具体用于当上述适配器在位时,确定上述充电设备的最大输出功率为上述适配器的输入功率和上述充电设备自身提供的功率之和;当上述适配器不在位时,确定上述充电设备的最大输出功率为上述充 电设备自身提供的功率。
图4所示实施例提供的充电装置可用于执行本申请图1所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
图5为本申请充电装置另一个实施例的结构示意图,与图4所示的充电装置40相比,不同之处在于,图5所示的充电装置50中,分配模块43可以包括:功率范围确定子模块431和功率分配子模块432;
功率范围确定子模块431,用于根据上述充电设备连接电子设备的充电口中最高优先级充电口所需的最小功率、上述充电设备的可用充电功率和优先级低于最高优先级的充电口所需的最小功率,确定第一功率范围;
功率分配子模块432,用于将第一功率范围内的第一充电功率分配给上述最高优先级充电口。
其中一种可能的实现方式中,功率范围确定子模块431,还用于在功率分配子模块432将第一功率范围内的第一充电功率分配给上述最高优先级充电口之后,根据上述充电设备连接电子设备的充电口中次高优先级充电口所需的最小功率、上述充电设备的可用充电功率、上述第一充电功率和优先级低于上述次高优先级的充电口所需的最小功率确定第二功率范围;
功率分配子模块432,还用于将上述第二功率范围内的第二充电功率分配给上述次高优先级充电口。
其中一种可能的实现方式中,功率范围确定子模块431,还用于在功率分配子模块432将第二功率范围内的第二充电功率分配给次高优先级充电口之后,根据上述充电设备连接电子设备的充电口中最低优先级充电口所需的最小功率、上述充电设备的可用充电功率、第一充电功率和第二充电功率确定第三功率范围;
功率分配子模块432,还用于将第三功率范围内的第三充电功率分配给最低优先级充电口。
其中一种可能的实现方式中,控制模块44,还用于在获取模块41获取上述充电设备的使用状态之后,在上述充电设备发生异常事件之后,控制上述充电设备停止对所连接的电子设备充电;其中,上述异常事件包括以下之一或组合:上述充电设备的适配器不在位并且上述充电设备的电量低于预定的电量阈值、上述充电设备开关机、上述充电设备的适配器发生在位与不在位的状态转换和上述充电设备连接的电子设备发生连接与不连接的状态转换。
应当理解的是,充电装置50可以设置在图6所示的充电设备900中。其中,获取模块41、确定模块42、分配模块43和控制模块44的功能可以由图6所示充电设备900中的处理器910实现。
图5所示实施例提供的充电装置50可用于执行本申请图1~图3所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。
应理解以上图4~图5所示的充电装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式 实现;还可以部分模块以软件通过处理元件调用的形式实现,部分模块通过硬件的形式实现。例如,分配模块可以为单独设立的处理元件,也可以集成在充电设备,例如充电宝的某一个芯片中实现。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Singnal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些模块可以集成在一起,以片上系统(System-On-a-Chip;以下简称:SOC)的形式实现。
图6为本申请充电设备一个实施例的结构示意图,上述充电设备可以包括:一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述设备执行时,使得上述设备执行以下步骤:
获取充电设备的适配器的在位状态和上述充电设备的使用状态;
根据上述适配器的在位状态确定上述充电设备的最大输出功率,以及根据上述充电设备的使用状态确定上述充电设备的保留功率;
根据上述充电设备的最大输出功率和上述充电设备的保留功率,确定上述充电设备的可用充电功率;
获取上述充电设备的充电口与电子设备的连接状态;
根据上述充电设备连接电子设备的充电口的优先级,将上述充电设备的可用充电功率,在上述充电设备连接电子设备的充电口之间进行分配;
控制上述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电。
其中一种可能的实现方式中,当上述指令被上述设备执行时,使得上述设备执行上述根据上述适配器的在位状态确定上述充电设备的最大输出功率的步骤包括:
当上述适配器在位时,确定上述充电设备的最大输出功率为上述适配器的输入功率和上述充电设备自身提供的功率之和;
当上述适配器不在位时,确定上述充电设备的最大输出功率为上述充电设备自身提供的功率。
其中一种可能的实现方式中,当上述指令被上述设备执行时,使得上述设备执行上述根据上述充电设备连接电子设备的充电口的优先级,将所述充电设备的可用充电功率,在所述充电设备连接电子设备的充电口之间进行分配的步骤包括:
根据上述充电设备连接电子设备的充电口中最高优先级充电口所需的最小功率、所述充电设备的可用充电功率和优先级低于所述最高优先级的充电口所需的最小功率,确定第一功率范围;
将所述第一功率范围内的第一充电功率分配给所述最高优先级充电口。
其中一种可能的实现方式中,当上述指令被上述设备执行时,使得上述设备执行上述将上述第一功率范围内的第一充电功率分配给上述最高优先级充电口的步骤之后,还执行以下步骤:
根据上述充电设备连接电子设备的充电口中次高优先级充电口所需的最小功率、上述充电设备的可用充电功率、上述第一充电功率和优先级低于上述次高优先级的充电口所需的最小功率确定第二功率范围;
将上述第二功率范围内的第二充电功率分配给上述次高优先级充电口。
其中一种可能的实现方式中,当上述指令被上述设备执行时,使得上述设备执行上述将上述第二功率范围内的第二充电功率分配给上述次高优先级充电口的步骤之后,还执行以下步骤:
根据上述充电设备连接电子设备的充电口中最低优先级充电口所需的最小功率、上述充电设备的可用充电功率、上述第一充电功率和上述第二充电功率确定第三功率范围;
将上述第三功率范围内的第三充电功率分配给上述最低优先级充电口。
其中一种可能的实现方式中,当上述指令被上述设备执行时,使得上述设备执行上述获取上述充电设备的使用状态的步骤之后,还执行以下步骤:
在上述充电设备发生异常事件之后,控制上述充电设备停止对所连接的电子设备充电;其中,上述异常事件包括以下之一或组合:上述充电设备的适配器不在位并且上述充电设备的电量低于预定的电量阈值、上述充电设备开关机、上述充电设备的适配器发生在位与不在位的状态转换和上述充电设备连接的电子设备发生连接与不连接的状态转换。
图6所示的充电设备可以是终端设备也可以是内置于上述终端设备的电路设备。该设备可以用于执行本申请图1~图3所示实施例提供的方法中的功能/步骤。
如图6所示,充电设备900包括处理器910和收发器920。可选地,该充电设备900还可以包括存储器930。其中,处理器910、收发器920和存储器930之间可以通过内部连接通路互相通信,传递控制和/或数据信号,该存储器930用于存储计算机程序,该处理器910用于从该存储器930中调用并运行该计算机程序。
上述处理器910可以和存储器930可以合成一个处理装置,更常见的是彼此独立的部件,处理器910用于执行存储器930中存储的程序代码来实现上述功能。具体实现时,该存储器930也可以集成在处理器910中,或者,独立于处理器910。
除此之外,为了使得充电设备900的功能更加完善,该充电设备900还可以包括输入单元960和显示单元970等中的一个或多个。其中,显示单元970可以包括显示屏。
可选地,上述充电设备900还可以包括电池950。
应理解,图6所示的充电设备900能够实现图1~图3所示实施例提供的方法的各个过程。充电设备900中的各个模块的操作和/或功能,分别为了实现上述方法实施例中的相应流程。具体可参见图1~图3所示方法实施例中的描述,为避免重复,此处适当省略详细描述。
应理解,图6所示的充电设备900中的处理器910可以是片上系统SOC,该处 理器910中可以包括中央处理器(Central Processing Unit;以下简称:CPU),还可以进一步包括其他类型的处理器,例如:图像处理器(Graphics Processing Unit;以下简称:GPU)等。
总之,处理器910内部的各部分处理器或处理单元可以共同配合实现之前的方法流程,且各部分处理器或处理单元相应的软件程序可存储在存储器930中。
上述存储器930可以是只读存储器(read-only memory,ROM)、可存储静态信息和指令的其它类型的静态存储设备、随机存取存储器(random access memory,RAM)或可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质等。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图1~图3所示实施例提供的方法。
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图1~图3所示实施例提供的方法。
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者 网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。

Claims (19)

  1. 一种充电方法,其特征在于,包括:
    获取充电设备的适配器的在位状态和所述充电设备的使用状态;
    根据所述适配器的在位状态确定所述充电设备的最大输出功率,以及根据所述充电设备的使用状态确定所述充电设备的保留功率;
    根据所述充电设备的最大输出功率和所述充电设备的保留功率,确定所述充电设备的可用充电功率;
    获取所述充电设备的充电口与电子设备的连接状态;
    根据所述充电设备连接电子设备的充电口的优先级,将所述充电设备的可用充电功率,在所述充电设备连接电子设备的充电口之间进行分配;
    控制所述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述适配器的在位状态确定所述充电设备的最大输出功率包括:
    当所述适配器在位时,确定所述充电设备的最大输出功率为所述适配器的输入功率和所述充电设备自身提供的功率之和;
    当所述适配器不在位时,确定所述充电设备的最大输出功率为所述充电设备自身提供的功率。
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述充电设备连接电子设备的充电口的优先级,将所述充电设备的可用充电功率,在所述充电设备连接电子设备的充电口之间进行分配包括:
    根据所述充电设备连接电子设备的充电口中最高优先级充电口所需的最小功率、所述充电设备的可用充电功率和优先级低于所述最高优先级的充电口所需的最小功率,确定第一功率范围;
    将所述第一功率范围内的第一充电功率分配给所述最高优先级充电口。
  4. 根据权利要求3所述的方法,其特征在于,所述将所述第一功率范围内的第一充电功率分配给所述最高优先级充电口之后,还包括:
    根据所述充电设备连接电子设备的充电口中次高优先级充电口所需的最小功率、所述充电设备的可用充电功率、所述第一充电功率和优先级低于所述次高优先级的充电口所需的最小功率确定第二功率范围;
    将所述第二功率范围内的第二充电功率分配给所述次高优先级充电口。
  5. 根据权利要求4所述的方法,其特征在于,所述将所述第二功率范围内的第二充电功率分配给所述次高优先级充电口之后,还包括:
    根据所述充电设备连接电子设备的充电口中最低优先级充电口所需的最小功率、所述充电设备的可用充电功率、所述第一充电功率和所述第二充电功率确定第三功率范围;
    将所述第三功率范围内的第三充电功率分配给所述最低优先级充电口。
  6. 根据权利要求1或2所述的方法,其特征在于,所述获取所述充电设备的使用状态之后,还包括:
    在所述充电设备发生异常事件之后,控制所述充电设备停止对所连接的电子设备充电;其中,所述异常事件包括以下之一或组合:所述充电设备的适配器不在位并且所述充电设备的电量低于预定的电量阈值、所述充电设备开关机、所述充电设备的适配器发生在位与不在位的状态转换和所述充电设备连接的电子设备发生连接与不连接的状态转换。
  7. 一种充电装置,设置在充电设备中,其特征在于,所述充电装置包括:
    获取模块,用于获取所述充电设备的适配器的在位状态和所述充电设备的使用状态;
    确定模块,用于根据所述适配器的在位状态确定所述充电设备的最大输出功率,以及根据所述充电设备的使用状态确定所述充电设备的保留功率;根据所述充电设备的最大输出功率和所述充电设备的保留功率,确定所述充电设备的可用充电功率;
    所述获取模块,还用于获取所述充电设备的充电口与电子设备的连接状态;
    分配模块,用于根据所述充电设备连接电子设备的充电口的优先级,将所述充电设备的可用充电功率,在所述充电设备连接电子设备的充电口之间进行分配;
    控制模块,用于控制所述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电。
  8. 根据权利要求7所述的装置,其特征在于,
    所述确定模块,具体用于当所述适配器在位时,确定所述充电设备的最大输出功率为所述适配器的输入功率和所述充电设备自身提供的功率之和;当所述适配器不在位时,确定所述充电设备的最大输出功率为所述充电设备自身提供的功率。
  9. 根据权利要求7或8所述的装置,其特征在于,所述分配模块包括:
    功率范围确定子模块,用于根据所述充电设备连接电子设备的充电口中最高优先级充电口所需的最小功率、所述充电设备的可用充电功率和优先级低于所述最高优先级的充电口所需的最小功率,确定第一功率范围;
    功率分配子模块,用于将所述第一功率范围内的第一充电功率分配给所述最高优先级充电口。
  10. 根据权利要求9所述的装置,其特征在于,
    所述功率范围确定子模块,还用于在所述功率分配子模块将所述第一功率范围内的第一充电功率分配给所述最高优先级充电口之后,根据所述充电设备连接电子设备的充电口中次高优先级充电口所需的最小功率、所述充电设备的可用充电功率、所述第一充电功率和优先级低于所述次高优先级的充电口所需的最小功率确定第二功率范围;
    所述功率分配子模块,还用于将所述第二功率范围内的第二充电功率分配给所述次高优先级充电口。
  11. 根据权利要求10所述的装置,其特征在于,
    所述功率范围确定子模块,还用于在所述功率分配子模块将所述第二功率范围内的第二充电功率分配给所述次高优先级充电口之后,根据所述充电设备连接电子 设备的充电口中最低优先级充电口所需的最小功率、所述充电设备的可用充电功率、所述第一充电功率和所述第二充电功率确定第三功率范围;
    所述功率分配子模块,还用于将所述第三功率范围内的第三充电功率分配给所述最低优先级充电口。
  12. 根据权利要求7或8所述的装置,其特征在于,
    所述控制模块,还用于在所述获取模块获取所述充电设备的使用状态之后,在所述充电设备发生异常事件之后,控制所述充电设备停止对所连接的电子设备充电;其中,所述异常事件包括以下之一或组合:所述充电设备的适配器不在位并且所述充电设备的电量低于预定的电量阈值、所述充电设备开关机、所述充电设备的适配器发生在位与不在位的状态转换和所述充电设备连接的电子设备发生连接与不连接的状态转换。
  13. 一种充电设备,其特征在于,包括:
    一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述设备执行时,使得所述设备执行以下步骤:
    获取充电设备的适配器的在位状态和所述充电设备的使用状态;
    根据所述适配器的在位状态确定所述充电设备的最大输出功率,以及根据所述充电设备的使用状态确定所述充电设备的保留功率;
    根据所述充电设备的最大输出功率和所述充电设备的保留功率,确定所述充电设备的可用充电功率;
    获取所述充电设备的充电口与电子设备的连接状态;
    根据所述充电设备连接电子设备的充电口的优先级,将所述充电设备的可用充电功率,在所述充电设备连接电子设备的充电口之间进行分配;
    控制所述充电设备连接电子设备的充电口,按照分配的功率对所连接的电子设备进行充电。
  14. 根据权利要求13所述的设备,其特征在于,当所述指令被所述设备执行时,使得所述设备执行所述根据所述适配器的在位状态确定所述充电设备的最大输出功率的步骤包括:
    当所述适配器在位时,确定所述充电设备的最大输出功率为所述适配器的输入功率和所述充电设备自身提供的功率之和;
    当所述适配器不在位时,确定所述充电设备的最大输出功率为所述充电设备自身提供的功率。
  15. 根据权利要求13或14所述的设备,其特征在于,当所述指令被所述设备执行时,使得所述设备执行所述根据所述充电设备连接电子设备的充电口的优先级,将所述充电设备的可用充电功率,在所述充电设备连接电子设备的充电口之间进行分配的步骤包括:
    根据所述充电设备连接电子设备的充电口中最高优先级充电口所需的最小功率、所述充电设备的可用充电功率和优先级低于所述最高优先级的充电口所需的最小功率,确定第一功率范围;
    将所述第一功率范围内的第一充电功率分配给所述最高优先级充电口。
  16. 根据权利要求15所述的设备,其特征在于,当所述指令被所述设备执行时,使得所述设备执行所述将所述第一功率范围内的第一充电功率分配给所述最高优先级充电口的步骤之后,还执行以下步骤:
    根据所述充电设备连接电子设备的充电口中次高优先级充电口所需的最小功率、所述充电设备的可用充电功率、所述第一充电功率和优先级低于所述次高优先级的充电口所需的最小功率确定第二功率范围;
    将所述第二功率范围内的第二充电功率分配给所述次高优先级充电口。
  17. 根据权利要求16所述的步骤,其特征在于,当所述指令被所述设备执行时,使得所述设备执行所述将所述第二功率范围内的第二充电功率分配给所述次高优先级充电口的步骤之后,还执行以下步骤:
    根据所述充电设备连接电子设备的充电口中最低优先级充电口所需的最小功率、所述充电设备的可用充电功率、所述第一充电功率和所述第二充电功率确定第三功率范围;
    将所述第三功率范围内的第三充电功率分配给所述最低优先级充电口。
  18. 根据权利要求13或14所述的设备,其特征在于,当所述指令被所述设备执行时,使得所述设备执行所述获取所述充电设备的使用状态的步骤之后,还执行以下步骤:
    在所述充电设备发生异常事件之后,控制所述充电设备停止对所连接的电子设备充电;其中,所述异常事件包括以下之一或组合:所述充电设备的适配器不在位并且所述充电设备的电量低于预定的电量阈值、所述充电设备开关机、所述充电设备的适配器发生在位与不在位的状态转换和所述充电设备连接的电子设备发生连接与不连接的状态转换。
  19. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如权利要求1-6任一项所述的方法。
PCT/CN2020/128062 2020-01-15 2020-11-11 充电方法、装置和充电设备 WO2021143322A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP20914162.1A EP4068558A4 (en) 2020-01-15 2020-11-11 CHARGING METHOD AND APPARATUS, AND CHARGING DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010042304.X 2020-01-15
CN202010042304.XA CN111162584B (zh) 2020-01-15 2020-01-15 充电方法、装置和充电设备

Publications (1)

Publication Number Publication Date
WO2021143322A1 true WO2021143322A1 (zh) 2021-07-22

Family

ID=70563020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/128062 WO2021143322A1 (zh) 2020-01-15 2020-11-11 充电方法、装置和充电设备

Country Status (3)

Country Link
EP (1) EP4068558A4 (zh)
CN (1) CN111162584B (zh)
WO (1) WO2021143322A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111162584B (zh) * 2020-01-15 2023-10-10 华为技术有限公司 充电方法、装置和充电设备
CN113595213B (zh) * 2021-09-03 2023-10-31 康舒科技股份有限公司 功率分配装置

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080028237A1 (en) * 2006-07-26 2008-01-31 Roadnarrows, Llc Power Management Using Integrated Data and Power Interfaces
US20090100275A1 (en) * 2007-10-15 2009-04-16 Ray Chang Dynamic port power allocation apparatus and methods
CN105515084A (zh) * 2014-10-09 2016-04-20 胜德国际研发股份有限公司 充电装置
CN205882808U (zh) * 2016-07-01 2017-01-11 Tcl通力电子(惠州)有限公司 多端口电源输出电路和充电设备
CN107624210A (zh) * 2015-05-14 2018-01-23 苹果公司 多个物理端口之间的动态功率共享
CN107706972A (zh) * 2017-09-30 2018-02-16 湖南海翼电子商务股份有限公司 用于充电装置的功率输出控制方法、电路及充电装置
CN110546851A (zh) * 2017-05-30 2019-12-06 施耐德电气It公司 用于功率储存和分配的系统和方法
CN111162584A (zh) * 2020-01-15 2020-05-15 华为技术有限公司 充电方法、装置和充电设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140091623A1 (en) * 2012-09-28 2014-04-03 Keith Shippy Power share controller
US20160336745A1 (en) * 2015-05-14 2016-11-17 Apple Inc. Dynamic power sharing among multiple physical ports
CN105553051B (zh) * 2016-02-29 2018-03-30 惠州祺瑞电工有限公司 一种多口输出直流电源的端口管理方法
US20170373522A1 (en) * 2016-06-23 2017-12-28 Apple Inc. Charging System
US10620679B2 (en) * 2017-09-01 2020-04-14 Dell Products L.P. Prioritizing supplying electrical power by a power storage adapter to connected devices
US11106260B2 (en) * 2018-02-13 2021-08-31 Microsoft Technology Licensing, Llc Smart charging platform

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080028237A1 (en) * 2006-07-26 2008-01-31 Roadnarrows, Llc Power Management Using Integrated Data and Power Interfaces
US20090100275A1 (en) * 2007-10-15 2009-04-16 Ray Chang Dynamic port power allocation apparatus and methods
CN105515084A (zh) * 2014-10-09 2016-04-20 胜德国际研发股份有限公司 充电装置
CN107624210A (zh) * 2015-05-14 2018-01-23 苹果公司 多个物理端口之间的动态功率共享
CN205882808U (zh) * 2016-07-01 2017-01-11 Tcl通力电子(惠州)有限公司 多端口电源输出电路和充电设备
CN110546851A (zh) * 2017-05-30 2019-12-06 施耐德电气It公司 用于功率储存和分配的系统和方法
CN107706972A (zh) * 2017-09-30 2018-02-16 湖南海翼电子商务股份有限公司 用于充电装置的功率输出控制方法、电路及充电装置
CN111162584A (zh) * 2020-01-15 2020-05-15 华为技术有限公司 充电方法、装置和充电设备

Also Published As

Publication number Publication date
EP4068558A4 (en) 2023-01-25
CN111162584A (zh) 2020-05-15
EP4068558A1 (en) 2022-10-05
CN111162584B (zh) 2023-10-10

Similar Documents

Publication Publication Date Title
US11068041B2 (en) Method to enhance device policy management (DPM) power sharing for USB Type-C (USB-C) only devices
US10083147B2 (en) Apparatuses and methods for multilane universal serial bus (USB2) communication over embedded universal serial bus (eUSB2)
CN109891399B (zh) 在相同的物理串行总线集线器上产生多个虚拟串行总线集线器实例的装置和方法
KR101565357B1 (ko) 타임아웃을 처리하기 위한 시스템, 방법 및 장치
RU2633126C2 (ru) Усиление механизма перечисления и/или конфигурации одного протокола межсоединений для другого протокола межсоединений
JP5916881B2 (ja) ポータブルコンピューティングデバイス(pcd)上で動作可能なオペレーティングシステムに周辺構成要素インターフェースエクスプレス(pcie)結合デバイスを見せるための方法およびpcd
EP3663913B1 (en) Techniques for processor boot-up
US11263165B2 (en) Apparatuses for periodic universal serial bus (USB) transaction scheduling at fractional bus intervals
US11451067B2 (en) Method, apparatus and system to enhance a device policy manager to manage devices based on battery condition
WO2021143322A1 (zh) 充电方法、装置和充电设备
US20180365425A1 (en) Systems and methods for securely booting a system on chip via a virtual collated internal memory pool
US20190121764A1 (en) Method, apparatus, system to enhance the device policy manager (dpm) to manage an extended usb-c ecosystem
CN106575273B (zh) 用于扩展片上系统的存储器的系统和方法
US20180349188A1 (en) System and Method for Information Handling System Input/Output Resource Management
US11119704B2 (en) System, apparatus and method for sharing a flash device among multiple masters of a computing platform
US11392474B2 (en) Electronic device for controlling interface between a plurality of integrated circuits and operation method thereof
US11232060B2 (en) Method, apparatus and system for power supply policy exchange on a bus
US9252617B2 (en) Battery cycling and management
US10990444B2 (en) Device and method for controlling data request
US10649943B2 (en) System and method for I/O aware processor configuration
TWI696068B (zh) 用於提供高效功率檔案系統操作至一非揮發性區塊記憶體之系統及方法
WO2017004876A1 (zh) 一种输出电流的配置方法及终端
TW202201236A (zh) 記憶體中的推理
US20200133369A1 (en) Managing power request during cluster operations
US12001373B2 (en) Dynamic allocation of peripheral component interconnect express bus numbers

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20914162

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020914162

Country of ref document: EP

Effective date: 20220701

NENP Non-entry into the national phase

Ref country code: DE