WO2021082986A1 - 充电方法、装置及存储介质 - Google Patents

充电方法、装置及存储介质 Download PDF

Info

Publication number
WO2021082986A1
WO2021082986A1 PCT/CN2020/122209 CN2020122209W WO2021082986A1 WO 2021082986 A1 WO2021082986 A1 WO 2021082986A1 CN 2020122209 W CN2020122209 W CN 2020122209W WO 2021082986 A1 WO2021082986 A1 WO 2021082986A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging
receiving terminal
power receiving
protocol
charger
Prior art date
Application number
PCT/CN2020/122209
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 深圳市沃特沃德股份有限公司
Publication of WO2021082986A1 publication Critical patent/WO2021082986A1/zh

Links

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

Definitions

  • This application relates to the field of charging technology, and in particular to a charging method, device and storage medium.
  • the purpose of this application is to provide a charging method, device and storage medium, which aims to solve the problem that in the prior art, the charger can only quickly charge a specific smart terminal.
  • this application proposes a charging method which is applied to a charger, and the charging method includes:
  • the charging mode corresponding to the type of the charging protocol is selected to charge the power receiving terminal, wherein the charger supports multiple charging protocols, and each charging protocol and each charging protocol are stored in the charger.
  • the association table corresponding to the charging mode one-to-one.
  • the step of identifying the type of charging protocol supported by the powered terminal includes:
  • the charging protocol corresponding to the device identifier is searched from a preset mapping table, wherein the preset mapping table stores a mapping relationship between the device identifiers of multiple power receiving terminals and the charging protocol.
  • the method includes:
  • the method includes:
  • the step of selecting the charging mode corresponding to the type of the charging protocol and charging the power receiving terminal includes:
  • the third preset charging mode is used to charge the power receiving terminal.
  • the step of selecting the charging mode corresponding to the type of the charging protocol and charging the power receiving terminal includes:
  • the charging charging information sent by the server is received, wherein the charging charging information is calculated by the server according to the initial charging data and the termination charging data according to a preset charging calculation formula.
  • the charger includes a charging interface, and when it is detected that the powered terminal is connected, before the step of identifying the type of charging protocol supported by the powered terminal, the method includes:
  • This application also proposes a charging device installed in a charger, and the charging device includes:
  • the identification unit is used to identify the type of charging protocol supported by the power receiving terminal when it is detected that the power receiving terminal accesses;
  • the charging unit is configured to select a charging mode corresponding to the type of the charging protocol to charge the power receiving terminal, wherein the charger supports multiple charging protocols, and each of the charging protocols is stored in the charger.
  • An association table with a one-to-one correspondence between the charging protocol and each of the charging modes.
  • the present application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and the computer program is executed to implement the above-mentioned charging method.
  • This application also proposes a computer device, which includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and the processor implements the above-mentioned charging when the computer program is executed. method.
  • the charging method, device and storage medium of the present application identify the type of charging protocol supported by the power receiving terminal when it is detected that the power receiving terminal is connected. Because the charger supports multiple charging protocols, and each of the above is stored in the charger. There is a one-to-one association table between the charging protocol and each of the charging modes, so that the charging mode corresponding to the type of the charging protocol can be selected to charge the power receiving terminal, so that the same charger can be used for terminals that support different charging protocols. The effect of fast charging.
  • FIG. 1 is a schematic flowchart of a charging method according to an embodiment of the present application
  • FIG. 2 is a schematic block diagram of the structure of a charging device according to an embodiment of the present application.
  • FIG. 3 is a schematic block diagram of the structure of the identification unit in FIG. 2 in an embodiment of the present application;
  • FIG. 4 is a schematic block diagram of the structure of the identification unit in FIG. 2 in another embodiment of the present application.
  • FIG. 5 is a schematic block diagram of the structure of a charging device according to another embodiment of the present application.
  • FIG. 6 is a schematic block diagram of the structure of the charging unit in FIG. 2 in an embodiment of the present application.
  • FIG. 7 is a schematic block diagram of the structure of a charging device according to another embodiment of the present application.
  • FIG. 8 is a schematic block diagram of the structure of a charging device according to another embodiment of the present application.
  • FIG. 9 is a schematic block diagram of the structure of an embodiment of the storage medium of the present application.
  • FIG. 10 is a schematic structural block diagram of an embodiment of a computer device of the present application.
  • the present application provides a charging method, the charging method is applied to a charger, and the charging method includes:
  • the charging method described above is applied to a charger.
  • the charger includes a charger for personal use by the user, such as an applicable charger when purchasing a mobile phone, as well as a charger provided by a merchant for charging services, such as shared chargers, charging Piles and so on.
  • the charger includes a charging interface, and the charging interface is preferably a Type C interface.
  • the power receiving terminal is a terminal device that is charged with electricity, including, for example, a mobile phone, a tablet, an electric vehicle, and the like.
  • the above charging protocol is the charging protocol supported by the powered terminal, generally a fast charging protocol. Taking mobile phones as an example, the types of fast charging protocols adopted by different brands of mobile phone manufacturers are different.
  • the fast charging protocol supported by Huawei is SCP Protocol
  • the fast charging protocol supported by Huawei is the QC protocol
  • the fast charging protocol supported by VIVO is the VOOC protocol
  • the fast charging protocol supported by Meizu is the PD, QC protocol, etc.
  • the charger supports multiple charging protocols, and the output power of the charger is a preset range, for example, it may be an output power range of 5W-100W.
  • the charger selects a charging mode that matches the charging protocol of the power receiving terminal to charge the charger.
  • the charger supports the charging protocol of the power receiving terminal, it directly uses the charging mode corresponding to the charging protocol of the power receiving terminal to quickly charge the power receiving terminal.
  • the charger does not support the charging protocol of the above-mentioned power-receiving terminal, it is further determined whether the charger supports a charging protocol compatible with the charging protocol of the above-mentioned power-receiving terminal. If there is a compatible charging protocol, the compatible charging protocol corresponding The charging mode quickly charges the powered terminal; if the charger does not include a compatible charging protocol, the default standard output power (for example, 5V/1A) is used for charging.
  • the default standard output power for example, 5V/1A
  • the charging method of this embodiment identifies the type of charging protocol supported by the powered terminal when it is detected that the powered terminal is connected. Because the charger supports multiple charging protocols, and the charger stores each of the charging protocols and each The charging mode has a one-to-one association table, so that the charging mode corresponding to the type of charging protocol can be selected to charge the power receiving terminal, and the effect of using the same charger to quickly charge terminals supporting different charging protocols .
  • the step S1 of identifying the type of charging protocol supported by the powered terminal includes:
  • the above device identifier is used to identify the device category of the powered terminal, so that the charger can determine the charging protocol supported by the powered terminal according to the device identifier.
  • the above device identifier includes: The brand name, model and other information of the power receiving terminal. If the driver of the power receiving terminal has been installed in the charger, a corresponding registry will be formed in the driver cache area of the charger, and the relevant information of the device, such as device identification, will be stored in the registry. When the powered terminal is connected to the charger, the USB hub of the charger will automatically recognize that this is the information of the powered terminal that already exists in the registry, and the device identification of the powered terminal can be obtained from the registry.
  • the charging protocol corresponding to the power receiving terminal is searched from the preset mapping table.
  • the above-mentioned preset mapping table is pre-stored in the charger and/or in the server.
  • the foregoing preset mapping table stores information such as the device identification and charging protocol of the existing power receiving terminal.
  • the data in the foregoing preset mapping table can be updated. In this way, the charging method of this embodiment can be applied to a variety of mobile phone brands, and the scalability of the applicable smart terminal brands is also high.
  • step S11 of obtaining the device identifier of the power receiving terminal the method includes:
  • the power receiving terminal when the power receiving terminal is connected to the charger for the first time, the corresponding driver has not been installed in the charger, and the communication connection between the charger and the power receiving terminal cannot be established.
  • the power receiving terminal first sends the driver program to the charger, and the charger installs the driver program to establish a communication connection between the charger and the power receiving terminal, and data transmission can be performed between the charger and the power receiving terminal.
  • the driver program further includes: power-off and restart of the charging interface of the charger; and obtaining the device identification of the power receiving terminal.
  • the charger will automatically recognize that the driver of the power receiving terminal has been installed in the charger, and you can find the device identification of the power receiving terminal corresponding to the driver, such as brand name and model Wait.
  • step of installing the driver program it further includes: sending the device identification of the powered terminal and the driver program to the server, so that the server updates the background data.
  • step S1 of identifying the type of charging protocol supported by the powered terminal when the access of the powered terminal is detected it includes:
  • S02. Store the association relationship between the device identification of the newly added power receiving terminal and the charging protocol in the preset mapping table, and install the driver of the newly added power receiving terminal.
  • the charger has a built-in networking module, which can be a wifi module, a GPRS module, NB-IOT (Narrow Band Internet of Things, narrowband Internet of Things) modules, etc.
  • the charger communicates wirelessly with the server through the networking module.
  • the device identifier of the newly added power receiving terminal mentioned above is not included in the current preset mapping table.
  • the current preset mapping table does not include information such as the device identification of the phone.
  • the server sends information such as the device identification, charging protocol, and driver program of the newly added power receiving terminal to the charger through the networking module.
  • the charger updates the preset mapping table stored in the local, and automatically installs the driver program of the newly added power receiving terminal mentioned above.
  • the charging method of this embodiment is applicable to various brands of power receiving terminals and has good scalability.
  • the step S2 of selecting the charging mode corresponding to the type of the charging protocol and charging the power receiving terminal includes:
  • the charger supports multi-protocol fast charging, such as the mainstream fast charging protocols on the market, such as SCP, QC, and PD.
  • the charging protocol supported by the power receiving terminal is the SCP protocol, and the charger also supports the SCP protocol. It is determined that there is an adapted first fast charging protocol in the charger, that is, the SCP protocol.
  • the charger uses the first fast charging protocol to automatically adjust the voltage and/or current of the charging interface to the preset voltage value and/or current value, that is, the corresponding first preset
  • the charging mode quickly charges the power receiving terminal.
  • the charger When the charger does not have the first fast charging protocol adapted to the charging protocol, it is determined whether there is a second fast charging protocol compatible with the charging protocol of the powered terminal in the charger.
  • the charging protocol supported by the powered terminal is QC4.0 protocol
  • the charger does not support the QC4.0 protocol, but the charger supports the PD protocol compatible with the QC4.0 protocol, it is determined that the charger has the second fast charging protocol compatible with the powered terminal, that is, the PD protocol.
  • the charger uses the second preset charging mode corresponding to the compatible second fast charging protocol to charge the power receiving terminal.
  • the third preset charging mode is used to charge the power receiving terminal, and in the third preset charging mode
  • the preset voltage value and preset current value for charging are set, for example, charging is performed using the current standard charging power of 5V/1A.
  • the step S2 includes:
  • the charging method of this embodiment is applied to chargers that businesses provide external charging services, such as shared chargers, charging piles, and so on.
  • charging process management is required to facilitate businesses such as charging.
  • initial charging data is sent to the server.
  • the aforementioned initial charging data includes, for example, the user's brand and model, the amount of power of the user's device before charging, and the charging start time.
  • the power of the user equipment before charging can be sent by the power receiving terminal to the charger.
  • the charging termination data is sent to the server.
  • the charging termination data includes, for example, the charging end time, the power of the user equipment after charging, the power used for charging, and so on. After the user equipment is charged, the power can be sent by the power receiving terminal to the charger.
  • a charge fuel gauge is set in the charger, and the amount of electricity used for charging can be counted through the charge fuel gauge.
  • the aforementioned preset charging termination conditions include: the receiving terminal is fully charged, the receiving terminal is not fully charged but disconnected from the receiving terminal (for example, the mobile phone is not fully charged, and the user disconnects the mobile phone from the charger),
  • the preset charging time and/or charging power threshold are reached, and the preset charging time, charging power threshold and other values can be remotely set on the server to realize remote charging control of the charger.
  • the server calculates the amount of electricity charged by the power receiving terminal according to the above initial charging data and termination charging data, and calculates the corresponding charge according to the preset charging calculation formula, such as setting the unit price for the electricity and using the charged
  • the charging information is obtained by multiplying the electric quantity by the unit price; the gradient unit price can also be further set. As the charging capacity gradually increases, the corresponding charging unit price becomes lower and lower.
  • the merchant can formulate an appropriate preset charging calculation formula by itself, and the server sends the calculated charging charging information to the charger.
  • the charger can display the corresponding charging billing information on the display screen, and can also display the corresponding charging code, etc.
  • the above-mentioned charger includes a charging interface
  • the above-mentioned step S1 of identifying the type of charging protocol supported by the power-receiving terminal when it is detected that the power-receiving terminal accesses includes:
  • the above-mentioned charging interface is a type-C interface. After the power receiving terminal is connected to the charger, the charger detects a level change on the signal line of the charging interface, and then it is determined that the power receiving terminal is connected.
  • a charging device provided by the present application, the charging device is installed in a charger, and the charging device includes:
  • the identification unit 10 is configured to identify the type of charging protocol supported by the power receiving terminal when it is detected that the power receiving terminal is connected;
  • the charging unit 20 is configured to select a charging mode corresponding to the type of the charging protocol to charge the power receiving terminal, wherein the charger supports multiple charging protocols, and the charger stores various charging protocols.
  • the above-mentioned charging device is installed in a charger, and the charger includes a charger for personal use by the user, such as an applicable charger when purchasing a mobile phone, and a charger provided by a merchant to provide charging services, such as shared chargers, charging Piles and so on.
  • the charger includes a charging interface, and the charging interface is preferably a Type C interface.
  • the power receiving terminal is a terminal device that is charged with electricity, including, for example, a mobile phone, a tablet, an electric vehicle, and the like.
  • the above charging protocol is the charging protocol supported by the powered terminal, generally a fast charging protocol. Taking mobile phones as an example, the types of fast charging protocols adopted by different brands of mobile phone manufacturers are different.
  • the fast charging protocol supported by Huawei is SCP Protocol
  • the fast charging protocol supported by Huawei is the QC protocol
  • the fast charging protocol supported by VIVO is the VOOC protocol
  • the fast charging protocol supported by Meizu is the PD, QC protocol, etc.
  • the charger supports multiple charging protocols, and the output power of the charger is a preset range, for example, an output power range of 5W-100W.
  • the charger selects a charging mode that matches the charging protocol of the power receiving terminal to charge the charger.
  • the charger supports the charging protocol of the power receiving terminal, it directly uses the charging mode corresponding to the charging protocol of the power receiving terminal to quickly charge the power receiving terminal.
  • the charger does not support the charging protocol of the above-mentioned power-receiving terminal, it is further determined whether the charger supports a charging protocol compatible with the charging protocol of the above-mentioned power-receiving terminal. If there is a compatible charging protocol, the compatible charging protocol corresponding The charging mode quickly charges the powered terminal; if the charger does not include a compatible charging protocol, the default standard output power (for example, 5V/1A) is used for charging.
  • the default standard output power for example, 5V/1A
  • the charging device of this embodiment recognizes the type of charging protocol supported by the power receiving terminal when it detects that the power receiving terminal is connected. Because the charger supports multiple charging protocols, and the charger stores each of the charging protocols and the various charging protocols. The charging mode has a one-to-one correspondence table, so that the charging mode corresponding to the type of charging protocol can be selected to charge the power receiving terminal, and the effect of using the same charger to quickly charge terminals supporting different charging protocols .
  • the above-mentioned identification unit 10 includes:
  • the identity obtaining subunit 101 is configured to obtain the device identity of the power receiving terminal
  • the protocol search subunit 102 is configured to search for a charging protocol corresponding to the device identifier from a preset mapping table, wherein the preset mapping table stores the mapping relationship between the device identifiers of multiple power receiving terminals and the charging protocol .
  • the aforementioned device identification is used to identify the device category of the powered terminal, so that the charger can determine the charging protocol supported by the powered terminal according to the device identification.
  • the aforementioned device The logo includes information such as the brand name and model of the power receiving terminal. If the driver of the power receiving terminal has been installed in the charger, a corresponding registry will be formed in the driver cache area of the charger, and the relevant information of the device, such as device identification, will be stored in the registry. When the powered terminal is connected to the charger, the USB hub of the charger will automatically recognize that this is the information of the powered terminal that already exists in the registry, and the device identification of the powered terminal can be obtained from the registry.
  • the charging protocol corresponding to the power receiving terminal is searched from the preset mapping table.
  • the above-mentioned preset mapping table is pre-stored in the charger and/or in the server.
  • the foregoing preset mapping table stores information such as the device identification and charging protocol of the existing power receiving terminal.
  • the data in the foregoing preset mapping table can be updated. In this way, the charging method of this embodiment can be applied to a variety of mobile phone brands, and the scalability of the applicable smart terminal brands is also high.
  • the above-mentioned identification unit 10 includes:
  • the first judging subunit 103 is used to judge whether a driver program corresponding to the power receiving terminal is stored;
  • the receiving subunit 104 is configured to receive the driver program of the power receiving terminal sent by the power receiving terminal if the driver corresponding to the power receiving terminal is not stored;
  • the installation subunit 105 is used to install the driver to establish a communication connection with the power receiving terminal.
  • the power receiving terminal when the power receiving terminal is connected to the charger for the first time, the corresponding driver has not been installed in the charger, and the communication connection between the charger and the power receiving terminal cannot be established.
  • the power receiving terminal first sends the driver program to the charger, and the charger installs the driver program to establish a communication connection between the charger and the power receiving terminal, and data transmission can be performed between the charger and the power receiving terminal.
  • the above-mentioned identification acquisition subunit 101 further includes: a power-off and restart sub-unit, which is used to power-off and restart the charging interface of the charger; and acquire the device identification of the power receiving terminal.
  • a power-off and restart sub-unit which is used to power-off and restart the charging interface of the charger; and acquire the device identification of the power receiving terminal.
  • the aforementioned identification acquisition subunit 101 further includes: a server update subunit, configured to send the device identification and driver program of the power receiving terminal to the server, so that the server updates the background data.
  • the above-mentioned charging device includes:
  • the receiving unit 01 is configured to receive the device identification, charging protocol, and driver of the newly-added power receiving terminal sent by the server;
  • the update unit 02 is configured to store the association relationship between the device identification of the newly added power receiving terminal and the charging protocol in the preset mapping table, and install the driver of the newly added power receiving terminal.
  • a networking module is built in the receiving unit 01, and the networking module can be a wifi module, a GPRS module, NB-IOT (Narrow Band Internet of Things, narrowband Internet of Things) modules, etc.
  • the receiving unit 01 performs wireless communication with the above-mentioned server through a networking module.
  • the device identifier of the newly added power receiving terminal mentioned above is not included in the current preset mapping table. For example, when a new brand of smart phone appears on the market, the current preset mapping table does not include information such as the device identification of the phone.
  • the server sends the device identification, charging protocol, and driver information of the newly added power receiving terminal to the receiving unit 01 through the networking module.
  • the charger updates the preset mapping table stored locally, and automatically installs the driver program of the newly added power receiving terminal through the update unit 02.
  • the charging device of this embodiment is suitable for various brands of power receiving terminals and has good scalability.
  • the above-mentioned charging unit 20 includes:
  • the second judgment subunit 201 is used to judge whether there is a first fast charging protocol adapted to the charging protocol;
  • the first charging subunit 202 is configured to, if there is a first fast charging protocol adapted to the charging protocol, select the first preset charging mode corresponding to the first fast charging protocol to perform fast charging on the power receiving terminal.
  • the third determining subunit 203 is configured to determine whether there is a second fast charging protocol compatible with the charging protocol if there is no first fast charging protocol adapted to the charging protocol;
  • the second charging sub-unit 204 is configured to, if there is a second fast charging protocol compatible with the charging protocol, select the second preset charging mode corresponding to the second fast charging protocol to fast charge the power receiving terminal Charge
  • the third charging sub-unit 205 is configured to use a third preset charging mode to charge the power receiving terminal if there is no second fast charging protocol compatible with the charging protocol.
  • the charger supports multi-protocol fast charging, such as the mainstream fast charging protocols on the market, such as SCP, QC, and PD.
  • the second judgment subunit 201 is used to determine whether there is a first fast charging protocol in the charger that is compatible with the charging protocol of the power receiving terminal.
  • the charging protocol supported by the power receiving terminal is the SCP protocol. If the charger also supports the SCP protocol, it is determined that there is an adapted first fast charging protocol in the charger, that is, the SCP protocol.
  • the first fast charging protocol is used through the first charging subunit 202 to automatically adjust the voltage and/or current of the charging interface to the preset voltage value and/or current value, that is, the corresponding The first preset charging mode quickly charges the power receiving terminal.
  • the third judging subunit 203 determines whether there is a second fast charging protocol compatible with the charging protocol of the power receiving terminal in the charger, for example,
  • the charging protocol supported by the electric terminal is the QC4.0 protocol
  • the charger does not support the QC4.0 protocol
  • the charger supports the PD protocol compatible with the QC4.0 protocol
  • the second charging subunit 204 uses the second preset charging mode corresponding to the compatible second fast charging protocol to charge the power receiving terminal.
  • the third charging sub-unit 205 adopts the third preset charging mode to charge the power receiving terminal.
  • the third preset charging mode a preset voltage value and a preset current value for charging are set, for example, the current commonly used standard charging power of 5V/1A is used for charging.
  • the above-mentioned charging device further includes:
  • the initial data sending unit 30 is used to send initial charging data to the server
  • the termination data sending unit 40 is configured to send termination data to the server when it is detected that the preset charging termination condition is met;
  • the charging unit 50 is configured to receive charging charging information sent by the server, wherein the charging charging information is calculated by the server according to the initial charging data and the termination charging data according to a preset charging calculation formula And dazzling.
  • the charging method of this embodiment is applied to chargers that businesses provide external charging services, such as shared chargers, charging piles, and so on.
  • charging process management is required to facilitate businesses such as charging.
  • the initial charging data sending unit 30 when charging starts, the initial charging data is sent to the server.
  • the aforementioned initial charging data includes, for example, the user's brand and model, the amount of power of the user's device before charging, and the charging start time.
  • the power of the user equipment before charging can be sent by the power receiving terminal to the charger.
  • the termination data sending unit 40 when the charging is terminated, the termination data is sent to the server.
  • the charging termination data includes, for example, the charging end time, the power of the user equipment after charging, the power used for charging, and so on. After the user equipment is charged, the power can be sent by the power receiving terminal to the charger.
  • a charge fuel gauge is set in the charger, and the amount of electricity used for charging can be counted through the charge fuel gauge.
  • the aforementioned preset charging termination conditions include: the receiving terminal is fully charged, the receiving terminal is not fully charged but disconnected from the receiving terminal (for example, the mobile phone is not fully charged, and the user disconnects the mobile phone from the charger),
  • the preset charging time and/or charging power threshold are reached, and the preset charging time, charging power threshold and other values can be remotely set on the server to realize remote charging control of the charger.
  • the server calculates the amount of electricity charged by the power receiving terminal based on the above initial charging data and the termination of charging data, and calculates the corresponding charge according to a preset charging calculation formula, such as setting a unit price for the electricity and using the charging
  • the charging information is obtained by multiplying the input power by the unit price; you can also set a gradient unit price. As the charging capacity gradually increases, the corresponding charging unit price becomes lower and lower.
  • the merchant can formulate an appropriate preset charging calculation formula by itself, and the server sends the calculated charging charging information to the charger.
  • the charger can display the corresponding charging billing information on the display screen, and can also display the corresponding charging code, etc.
  • the above-mentioned charger includes a charging interface
  • the above-mentioned charging device includes:
  • the monitoring unit 03 is used to monitor whether the level on the signal line of the charging interface changes
  • the judging unit 04 is configured to, if there is a change, judge that the access of the power receiving terminal is detected.
  • the above-mentioned charging interface is a type-C interface.
  • the monitoring unit 03 detects the level change on the signal line of the charging interface, and the determining unit 04 determines that there is a power receiving terminal. Access.
  • the present application also provides a storage medium 1 in which a computer program 2 is stored, which when running on a computer, causes the computer to execute the charging method described in the above embodiment.
  • the present application also provides a computer device 3 containing instructions, when it runs on the computer device 3, the computer device 3 executes the charging method described in the above embodiment through the processor 4 provided inside.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • wired such as coaxial cable, optical fiber, digital subscriber line (DSL)
  • wireless such as infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state hard disk). Disk (SSD)) etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

本申请揭示了一种充电方法、装置及存储介质,其中方法包括当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型;选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电。本申请实现了采用同一个充电器对支持不同充电协议的终端进行快速充电的效果。

Description

充电方法、装置及存储介质
本申请要求于2019年10月30日提交中国专利局、申请号为201911044523.5,发明名称为“充电方法、装置、存储介质及计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及充电技术领域,具体涉及一种充电方法、装置及存储介质。
背景技术
随着智能终端的普及,应用于智能手机、智能平板等终端设备的电池快速充电技术也快速发展。目前,智能终端行业的大多数品牌都在各自开发适用于自身品牌的快充技术。由于不同智能终端所使用的快充协议并不统一,而充电器所使用的快充协议需要与对应的智能终端相适配,这就导致一种快充充电器只能对特定智能终端适用,而无法对采用其它快充协议的智能终端适用。
技术问题
本申请的目的为提供一种充电方法、装置及存储介质,旨在解决在现有技术中,充电器只能对特定智能终端进行快充的问题。
技术解决方案
为实现上述目的,本申请提出了一种充电方法,所述充电方法应用于充电器,所述充电方法包括:
当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型;
选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电,其中,所述充电器支持多种充电协议,所述充电器内存储有各所述充电协议与各所述充电模式一一对应的关联表。
进一步地,所述识别所述受电终端支持的充电协议的类型的步骤,包括:
获取所述受电终端的设备标识;
从预设映射表中查找与所述设备标识对应的充电协议,其中,所述预设映射表中存储了多种受电终端的设备标识和充电协议的映射关系。
进一步地,所述获取所述受电终端的设备标识的步骤前,包括:
判断是否存储有与所述受电终端对应的驱动程序;
若否,则接收所述受电终端发送的所述受电终端的驱动程序;
安装所述驱动程序,以建立与所述受电终端的通讯连接。
进一步地,所述当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型的步骤前,包括:
接收服务器发送的新增受电终端的设备标识、充电协议和驱动程序;
将所述新增受电终端的设备标识和充电协议的关联关系存储至所述预设映射表中,并安装所述新增受电终端的驱动程序。
进一步地,所述选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电的步骤,包括:
判断是否有与所述充电协议适配的第一快充协议;
若有与所述充电协议适配的第一快充协议,则选择所述第一快充协议对应的第一预设充电模式对所述受电终端进行快充充电;
若没有与所述充电协议适配的第一快充协议,则判断是否有与所述充电协议兼容的第二快充协议;
若有与所述充电协议兼容的第二快充协议,则选择所述第二快充协议对应的第二预设充电模式对所述受电终端进行快充充电;
若没有与所述充电协议兼容的第二快充协议,则采用第三预设充电模式对所述受电终端进行充电。
进一步地,所述选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电的步骤后,包括:
发送初始充电数据至服务器;
当检测满足预设充电终止条件时,发送终止充电数据至所述服务器;
接收所述服务器发送的充电计费信息,其中,所述充电计费信息由所述服务器根据所述初始充电数据和所述终止充电数据,按照预设收费计算公式计算而得。
进一步地,所述充电器包括充电接口,所述当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型的步骤前,包括:
监测所述充电接口的信号线上的电平是否发生变化;
若是,则判定检测到所述受电终端接入。
本申请还提出了一种充电装置,所述充电装置安装于充电器,所述充电装置包括:
识别单元,用于当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型;
充电单元,用于选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电,其中,所述充电器支持多种充电协议,所述充电器内存储有各所述充电协议与各所述充电模式一一对应的关联表。
本申请还提出了一种存储介质,其为计算机可读的存储介质,其上存储有计算机程序,所述计算机程序被执行时实现上述的充电方法。
本申请还提出了一种计算机设备,其包括处理器、存储器及存储于所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的充电方法。
有益效果
本申请的充电方法、装置及存储介质,当检测到受电终端接入时,识别受电终端支持的充电协议的类型,由于充电器支持多种充电协议,且充电器内存储有各所述充电协议与各所述充电模式一一对应的关联表,从而可以选择与充电协议的类型相对应的充电模式,对受电终端进行充电,实现采用同一个充电器对支持不同充电协议的终端进行快速充电的效果。
附图说明
图1 是本申请一实施例的充电方法的流程示意图;
图2是本申请一实施例的充电装置的结构示意框图;
图3 是本申请一实施例中图2中识别单元的结构示意框图;
图4 是本申请又一实施例中图2中识别单元的结构示意框图;
图5 是本申请又一实施例的充电装置的结构示意框图;
图6 是本申请一实施例中图2中充电单元的结构示意框图;
图7 是本申请又一实施例的充电装置的结构示意框图;
图8 是本申请又一实施例的充电装置的结构示意框图;
图9 是本申请的存储介质的一实施例的结构示意框图;
图10 是本申请的计算机设备的一实施例的结构示意框图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的最佳实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
另外,在本申请中如涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。
参照图1,本申请提供的一种充电方法,所述充电方法应用于充电器,所述充电方法包括:
S1、当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型;
S2、选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电,其中,所述充电器支持多种充电协议,所述充电器内存储有各所述充电协议与各所述充电模式一一对应的关联表。
本实施例中,上述充电方法应用于充电器,该充电器包括用户个人使用的充电器,例如购买手机时搭配的适用充电器,也包括商家提供充电服务的充电器,例如共享充电器、充电桩等。充电器包括充电接口,该充电接口优选为Type C接口。
上述步骤S1中,上述受电终端为被充入电量的终端设备,包括如手机、平板、电动汽车等。上述充电协议为受电终端所支持的充电协议,一般为快充协议,以手机为例,不同品牌的手机厂商各家采用的快充协议的类型各不相同,华为支持的快充协议为SCP协议,小米支持的快充协议为QC协议,VIVO支持的快充协议为VOOC协议,魅族支持的快充协议为PD、QC协议等。
上述步骤S2中,充电器支持多种充电协议,充电器的输出功率为预设范围,例如可以为5W~100W的输出功率区间。充电器根据上述受电终端支持的充电协议,选择与受电终端的充电协议相匹配的充电模式,对充电器进行充电。当充电器支持上述受电终端的充电协议时,直接使用上述受电终端的充电协议对应的充电模式对受电终端进行快速充电。当充电器不支持上述受电终端的充电协议时,进一步判断充电器是否有支持与上述受电终端的充电协议相兼容的充电协议,如果有兼容的充电协议,则采用兼容的充电协议对应的充电模式对受电终端进行快速充电;如果充电器中没有包含兼容的充电协议,则采用默认的标准输出功率(例如5V/1A)进行充电。
本实施例的充电方法,当检测到受电终端接入时,识别受电终端支持的充电协议的类型,由于充电器支持多种充电协议,且充电器内存储有各所述充电协议与各所述充电模式一一对应的关联表,从而可以选择与充电协议的类型相对应的充电模式,对受电终端进行充电,实现采用同一个充电器对支持不同充电协议的终端进行快速充电的效果。
在一个实施例中,上述识别所述受电终端支持的充电协议的类型的步骤S1,包括:
S11、获取所述受电终端的设备标识;
S12、从预设映射表中查找与所述设备标识对应的充电协议,其中,所述预设映射表中存储了多种受电终端的设备标识和充电协议的映射关系。
本实施例中,上述步骤S11中,上述设备标识用于标识受电终端的设备类别,进而使得充电器能够根据该设备标识来确定受电终端支持的充电协议,具体地,上述设备标识包括如受电终端的品牌名称、型号等信息。如果充电器内已经安装了受电终端的驱动程序,则在充电器的驱动缓存区会形成对应的注册表,注册表内保存了设备的相关信息,如设备标识等。当受电终端接入充电器,则充电器的USB集线器会自动识别出这是已经存在于注册表中的受电终端的信息,则可以从注册表中获取该受电终端的设备标识。
上述步骤S12中,根据受电终端的设备标识,从预设映射表中查找该受电终端对应的充电协议。上述预设映射表预先存储于充电器内和/或服务器中。上述预设映射表中存储现有的受电终端的设备标识、充电协议等的信息,当出现新的手机品牌时,可以对上述预设映射表中的数据进行更新。这样,本实施例的充电方法可以适用于多种手机品牌,且对于适用的智能终端的品牌的可扩展性也较高。
在一个实施例中,上述获取所述受电终端的设备标识的步骤S11前,包括:
S101、判断是否存储有与所述受电终端对应的驱动程序;
S102、若否,则接收所述受电终端发送的所述受电终端的驱动程序;
S103、安装所述驱动程序,以建立与所述受电终端的通讯连接。
本实施例中,当受电终端是第一次与充电器连接时,充电器内还没有安装对应的驱动程序,充电器与受电终端之间还无法建立通讯连接。受电终端首先将驱动程序发送给充电器,充电器安装该驱动程序,以使得充电器和受电终端之间建立通讯连接,充电器和受电终端之间可以进行数据传输。
进一步地,上述安装所述驱动程序的步骤后,还包括:充电器的充电接口进行断电重启;获取受电终端的设备标识。当充电接口断电重启,此时充电器会自动识别出充电器内已经安装了该受电终端的驱动程序,则可以查找到该驱动程序对应的受电终端的设备标识,如品牌名称、型号等。
进一步地,上述安装所述驱动程序的步骤后,还包括:将受电终端的设备标识、驱动程序发送至服务器,以使得服务器更新后台的数据。
在一个实施例中,上述当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型的步骤S1前,包括:
S01、接收服务器发送的新增受电终端的设备标识、充电协议和驱动程序;
S02、将所述新增受电终端的设备标识和充电协议的关联关系存储至所述预设映射表中,并安装所述新增受电终端的驱动程序。
本实施例中,充电器内置联网模块,该联网模块可以是wifi模块、GPRS模块、NB-IOT(Narrow Band Internet of Things,窄带物联网)模块等。充电器通过联网模块与上述服务器进行无线通讯。上述新增受电终端的设备标识不包含在当前的预设映射表中。例如,当市面上出现了新的品牌的智能手机时,当前的预设映射表中并不包含该手机的设备标识等信息。服务器将上述新增受电终端的设备标识、充电协议和驱动程序等信息通过联网模块发送给充电器。充电器将存储于本地的预设映射表进行更新,并自动安装上述新增受电终端的驱动程序。本实施例的充电方法,适用于各种品牌的受电终端,具有良好的可扩展性。
在一个实施例中,上述选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电的步骤S2,包括:
S21、判断是否有与所述充电协议适配的第一快充协议;
S22、若有与所述充电协议适配的第一快充协议,则选择所述第一快充协议对应的第一预设充电模式对所述受电终端进行快充充电;
S23、若没有与所述充电协议适配的第一快充协议,则判断是否有与所述充电协议兼容的第二快充协议;
S24、若有与所述充电协议兼容的第二快充协议,则选择所述第二快充协议对应的第二预设充电模式对所述受电终端进行快充充电;
S25、若没有与所述充电协议兼容的第二快充协议,则采用第三预设充电模式对所述受电终端进行充电。
本实施例中,充电器内支持多协议快充,例如SCP、QC、PD等市面上的主流快充协议。受电终端接入后,判断充电器内是否有与受电终端的充电协议相适配的第一快充协议,例如受电终端支持的充电协议为SCP协议,充电器也支持SCP协议,则判定充电器内有适配的第一快充协议,即SCP协议。如果有上述第一快充协议,则由充电器使用第一快充协议,自动调整充电接口的电压和/或电流到预设的电压值和/或电流值,即采用对应的第一预设充电模式对受电终端进行快速充电。
当充电器中没有与充电协议适配的第一快充协议时,判断充电器中是否有与受电终端的充电协议所兼容的第二快充协议,例如,受电终端支持的充电协议为QC4.0协议,充电器不支持QC4.0协议,但是充电器支持与QC4.0协议兼容的PD协议,则判定充电器中有与受电终端兼容的第二快充协议,即PD协议。则充电器使用兼容的第二快充协议所对应的第二预设充电模式对受电终端进行充电。
当充电器不支持适配的第一快充协议,也不支持兼容的第二快充协议,则采用上述第三预设充电模式对受电终端进行充电,在上述第三预设充电模式中设置了充电的预设电压值和预设电流值,例如采用目前通用的5V/1A的标准充电功率进行充电。
在一个实施例中,上述选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电的步骤S2后,包括:
S3、发送初始充电数据至服务器;
S4、当检测满足预设充电终止条件时,发送终止充电数据至所述服务器;
S5、接收所述服务器发送的充电计费信息,其中,所述充电计费信息由所述服务器根据所述初始充电数据和所述终止充电数据,按照预设收费计算公式计算而得。
本实施例的充电方法应用于商家对外提供充电服务的充电器,例如共享充电器、充电桩等。对于此类的充电器,需要进行充电过程管理,以便于商家进行收费等操作。
上述步骤S3中,当充电开始时,发送初始充电数据至服务器。其中,上述初始充电数据包括如用户品牌型号、用户设备充电前电量、充电开始时间等。其中用户设备充电前电量可以由受电终端发送给充电器。
上述步骤S4中,当充电终止时,发送终止充电数据至服务器。其中,终止充电数据包括如充电结束时间、用户设备充电后电量、充电所用电量等。用户设备充电后电量可以由受电终端发送给充电器。在充电器内设置充电电量计,充电所用电量可以通过充电电量计来进行统计。上述预设充电终止条件包括:受电终端充满电、受电终端还未充满电但与受电终端断开连接(例如,手机还未充满电,用户将手机和充电器的连接断开)、达到预设的充电时间和/或充电电量门限等,其中预设的充电时间、充电电量门限等数值可以在服务器进行远程设置,以实现对充电器的远程充电控制。
上述步骤S5中,服务器根据上述初始充电数据和终止充电数据,计算出受电终端所充入的电量,根据预设收费计算公式来计算对应的收费,例如对电量设定单价,用充入的电量乘以单价即得充电计费信息;也可以进一步设置梯度单价,随着充电量的逐步增加,对应的充电单价越来越低。商家可以自行制定合适的预设收费计算公式,服务器将计算得到的充电计费信息发送给充电器。充电器可以在显示屏上显示对应的充电计费信息,也可以显示对应的收费码等。
在一个实施例中,上述充电器包括充电接口,上述当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型的步骤S1前,包括:
S03、监测所述充电接口的信号线上的电平是否发生变化;
S04、若是,则判定检测到所述受电终端接入。
本实施例中,上述充电接口为type-C接口,当受电终端接入充电器后,充电器检测到充电接口的信号线上的电平变化,则判定有受电终端的接入。
参照图2,本申请提供的一种充电装置,所述充电装置安装于充电器,所述充电装置包括:
识别单元10,用于当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型;
充电单元20,用于选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电,其中,所述充电器支持多种充电协议,所述充电器内存储有各所述充电协议与各所述充电模式一一对应的关联表。
本实施例中,上述充电装置安装于充电器,该充电器包括用户个人使用的充电器,例如购买手机时搭配的适用充电器,也包括商家提供充电服务的充电器,例如共享充电器、充电桩等。充电器包括充电接口,该充电接口优选为Type C接口。
上述识别单元10中,上述受电终端为被充入电量的终端设备,包括如手机、平板、电动汽车等。上述充电协议为受电终端所支持的充电协议,一般为快充协议,以手机为例,不同品牌的手机厂商各家采用的快充协议的类型各不相同,华为支持的快充协议为SCP协议,小米支持的快充协议为QC协议,VIVO支持的快充协议为VOOC协议,魅族支持的快充协议为PD、QC协议等。
上述充电单元20中,充电器支持多种充电协议,充电器的输出功率为预设范围,例如可以为5W~100W的输出功率区间。充电器根据上述受电终端支持的充电协议,选择与受电终端的充电协议相匹配的充电模式,对充电器进行充电。当充电器支持上述受电终端的充电协议时,直接使用上述受电终端的充电协议对应的充电模式对受电终端进行快速充电。当充电器不支持上述受电终端的充电协议时,进一步判断充电器是否有支持与上述受电终端的充电协议相兼容的充电协议,如果有兼容的充电协议,则采用兼容的充电协议对应的充电模式对受电终端进行快速充电;如果充电器中没有包含兼容的充电协议,则采用默认的标准输出功率(例如5V/1A)进行充电。
本实施例的充电装置,当检测到受电终端接入时,识别受电终端支持的充电协议的类型,由于充电器支持多种充电协议,且充电器内存储有各所述充电协议与各所述充电模式一一对应的关联表,从而可以选择与充电协议的类型相对应的充电模式,对受电终端进行充电,实现采用同一个充电器对支持不同充电协议的终端进行快速充电的效果。
参照图3,在一个实施例中,上述识别单元10,包括:
标识获取子单元101,用于获取所述受电终端的设备标识;
协议查找子单元102,用于从预设映射表中查找与所述设备标识对应的充电协议,其中,所述预设映射表中存储了多种受电终端的设备标识和充电协议的映射关系。
本实施例中,上述标识获取子单元101中,上述设备标识用于标识受电终端的设备类别,进而使得充电器能够根据该设备标识来确定受电终端支持的充电协议,具体地,上述设备标识包括如受电终端的品牌名称、型号等信息。如果充电器内已经安装了受电终端的驱动程序,则在充电器的驱动缓存区会形成对应的注册表,注册表内保存了设备的相关信息,如设备标识等。当受电终端接入充电器,则充电器的USB集线器会自动识别出这是已经存在于注册表中的受电终端的信息,则可以从注册表中获取该受电终端的设备标识。
上述协议查找子单元102中,根据受电终端的设备标识,从预设映射表中查找该受电终端对应的充电协议。上述预设映射表预先存储于充电器内和/或服务器中。上述预设映射表中存储现有的受电终端的设备标识、充电协议等的信息,当出现新的手机品牌时,可以对上述预设映射表中的数据进行更新。这样,本实施例的充电方法可以适用于多种手机品牌,且对于适用的智能终端的品牌的可扩展性也较高。
参照图4,在一个实施例中,上述识别单元10,包括:
第一判断子单元103,用于判断是否存储有与所述受电终端对应的驱动程序;
接收子单元104,用于若没有存储有与所述受电终端对应的驱动程序,则接收所述受电终端发送的所述受电终端的驱动程序;
安装子单元105,用于安装所述驱动程序,以建立与所述受电终端的通讯连接。
本实施例中,当受电终端是第一次与充电器连接时,充电器内还没有安装对应的驱动程序,充电器与受电终端之间还无法建立通讯连接。受电终端首先将驱动程序发送给充电器,充电器安装该驱动程序,以使得充电器和受电终端之间建立通讯连接,充电器和受电终端之间可以进行数据传输。
进一步地,上述标识获取子单元101,还包括:断电重启子单元,用于对充电器的充电接口进行断电重启;获取受电终端的设备标识。当充电接口断电重启,此时充电器会自动识别出充电器内已经安装了该受电终端的驱动程序,则可以查找到该驱动程序对应的受电终端的设备标识,如品牌名称、型号等。
进一步地,上述标识获取子单元101,还包括:服务器更新子单元,用于将受电终端的设备标识、驱动程序发送至服务器,以使得服务器更新后台的数据。
参照图5,在一个实施例中,上述充电装置,包括:
接收单元01,用于接收服务器发送的新增受电终端的设备标识、充电协议和驱动程序;
更新单元02,用于将所述新增受电终端的设备标识和充电协议的关联关系存储至所述预设映射表中,并安装所述新增受电终端的驱动程序。
本实施例中,接收单元01中内置联网模块,该联网模块可以是wifi模块、GPRS模块、NB-IOT(Narrow Band Internet of Things,窄带物联网)模块等。接收单元01通过联网模块与上述服务器进行无线通讯。上述新增受电终端的设备标识不包含在当前的预设映射表中。例如,当市面上出现了新的品牌的智能手机时,当前的预设映射表中并不包含该手机的设备标识等信息。服务器将上述新增受电终端的设备标识、充电协议和驱动程序等信息通过联网模块发送给接收单元01。充电器将存储于本地的预设映射表进行更新,并通过更新单元02自动安装上述新增受电终端的驱动程序。本实施例的充电装置,适用于各种品牌的受电终端,具有良好的可扩展性。
参照图6,在一个实施例中,上述充电单元20,包括:
第二判断子单元201,用于判断是否有与所述充电协议适配的第一快充协议;
第一充电子单元202,用于若有与所述充电协议适配的第一快充协议,则选择所述第一快充协议对应的第一预设充电模式对所述受电终端进行快充充电;
第三判断子单元203,用于若没有与所述充电协议适配的第一快充协议,则判断是否有与所述充电协议兼容的第二快充协议;
第二充电子单元204,用于若有与所述充电协议兼容的第二快充协议,则选择所述第二快充协议对应的第二预设充电模式对所述受电终端进行快充充电;
第三充电子单元205,用于若没有与所述充电协议兼容的第二快充协议,则采用第三预设充电模式对所述受电终端进行充电。
本实施例中,充电器内支持多协议快充,例如SCP、QC、PD等市面上的主流快充协议。受电终端接入后,通过第二判断子单元201判断充电器内是否有与受电终端的充电协议相适配的第一快充协议,例如受电终端支持的充电协议为SCP协议,充电器也支持SCP协议,则判定充电器内有适配的第一快充协议,即SCP协议。如果有上述第一快充协议,则通过第一充电子单元202使用第一快充协议,自动调整充电接口的电压和/或电流到预设的电压值和/或电流值,即采用对应的第一预设充电模式对受电终端进行快速充电。
当充电器中没有与充电协议适配的第一快充协议时,通过第三判断子单元203判断充电器中是否有与受电终端的充电协议所兼容的第二快充协议,例如,受电终端支持的充电协议为QC4.0协议,充电器不支持QC4.0协议,但是充电器支持与QC4.0协议兼容的PD协议,则判定充电器中有与受电终端兼容的第二快充协议,即PD协议。则通过第二充电子单元204使用兼容的第二快充协议所对应的第二预设充电模式对受电终端进行充电。
当充电器不支持适配的第一快充协议,也不支持兼容的第二快充协议,则通过第三充电子单元205采用上述第三预设充电模式对受电终端进行充电,在上述第三预设充电模式中设置了充电的预设电压值和预设电流值,例如采用目前通用的5V/1A的标准充电功率进行充电。
参照图7,在一个实施例中,上述充电装置,还包括:
初始数据发送单元30,用于发送初始充电数据至服务器;
终止数据发送单元40,用于当检测满足预设充电终止条件时,发送终止充电数据至所述服务器;
计费单元50,用于接收所述服务器发送的充电计费信息,其中,所述充电计费信息由所述服务器根据所述初始充电数据和所述终止充电数据,按照预设收费计算公式计算而得。
本实施例的充电方法应用于商家对外提供充电服务的充电器,例如共享充电器、充电桩等。对于此类的充电器,需要进行充电过程管理,以便于商家进行收费等操作。
上述初始数据发送单元30中,当充电开始时,发送初始充电数据至服务器。其中,上述初始充电数据包括如用户品牌型号、用户设备充电前电量、充电开始时间等。其中用户设备充电前电量可以由受电终端发送给充电器。
上述终止数据发送单元40中,当充电终止时,发送终止充电数据至服务器。其中,终止充电数据包括如充电结束时间、用户设备充电后电量、充电所用电量等。用户设备充电后电量可以由受电终端发送给充电器。在充电器内设置充电电量计,充电所用电量可以通过充电电量计来进行统计。上述预设充电终止条件包括:受电终端充满电、受电终端还未充满电但与受电终端断开连接(例如,手机还未充满电,用户将手机和充电器的连接断开)、达到预设的充电时间和/或充电电量门限等,其中预设的充电时间、充电电量门限等数值可以在服务器进行远程设置,以实现对充电器的远程充电控制。
上述计费单元50中,服务器根据上述初始充电数据和终止充电数据,计算出受电终端所充入的电量,根据预设收费计算公式来计算对应的收费,例如对电量设定单价,用充入的电量乘以单价即得充电计费信息;也可以进一步设置梯度单价,随着充电量的逐步增加,对应的充电单价越来越低。商家可以自行制定合适的预设收费计算公式,服务器将计算得到的充电计费信息发送给充电器。充电器可以在显示屏上显示对应的充电计费信息,也可以显示对应的收费码等。
参照图8,在一个实施例中,上述充电器包括充电接口,上述充电装置,包括:
监测单元03,用于监测所述充电接口的信号线上的电平是否发生变化;
判定单元04,用于若发生变化,则判定检测到所述受电终端接入。
本实施例中,上述充电接口为type-C接口,当受电终端接入充电器后,监测单元03检测到充电接口的信号线上的电平变化,则判定单元04判定有受电终端的接入。
参考图9,本申请还提供了一种存储介质1,存储介质1中存储有计算机程序2,当其在计算机上运行时,使得计算机执行以上实施例所描述的充电方法。
参考图10,本申请还提供了一种包含指令的计算机设备3,当其在计算机设备3上运行时,使得计算机设备3通过其内部设置的处理器4执行以上实施例所描述的充电方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (15)

  1. 一种充电方法,其特征在于,所述充电方法应用于充电器,所述充电方法包括:
    当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型;
    选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电,其中,所述充电器支持多种充电协议,所述充电器内存储有各所述充电协议与各所述充电模式一一对应的关联表。
  2. 如权利要求1所述的充电方法,其特征在于,所述识别所述受电终端支持的充电协议的类型的步骤,包括:
    获取所述受电终端的设备标识;
    从预设映射表中查找与所述设备标识对应的充电协议,其中,所述预设映射表中存储了多种受电终端的设备标识和充电协议的映射关系。
  3. 如权利要求2所述的充电方法,其特征在于,所述获取所述受电终端的设备标识的步骤前,包括:
    判断是否存储有与所述受电终端对应的驱动程序;
    若否,则接收所述受电终端发送的所述受电终端的驱动程序;
    安装所述驱动程序,以建立与所述受电终端的通讯连接。
  4. 如权利要求3所述的充电方法,其特征在于,所述安装所述驱动程序的步骤后,还包括:
    所述充电器的充电接口进行断电重启;获取所述受电终端的设备标识。
  5. 如权利要求3所述的充电方法,其特征在于,所述述安装所述驱动程序的步骤后,还包括:
    将所述受电终端的设备标识、驱动程序发送至服务器,以使得所述服务器更新后台的数据。
  6. 如权利要求2所述的充电方法,其特征在于,所述当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型的步骤前,包括:
    接收服务器发送的新增受电终端的设备标识、充电协议和驱动程序;
    将所述新增受电终端的设备标识和充电协议的关联关系存储至所述预设映射表中,并安装所述新增受电终端的驱动程序。
  7. 如权利要求1所述的充电方法,其特征在于,所述选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电的步骤,包括:
    判断是否有与所述充电协议适配的第一快充协议;
    若有与所述充电协议适配的第一快充协议,则选择所述第一快充协议对应的第一预设充电模式对所述受电终端进行快充充电;
    若没有与所述充电协议适配的第一快充协议,则判断是否有与所述充电协议兼容的第二快充协议;
    若有与所述充电协议兼容的第二快充协议,则选择所述第二快充协议对应的第二预设充电模式对所述受电终端进行快充充电;
    若没有与所述充电协议兼容的第二快充协议,则采用第三预设充电模式对所述受电终端进行充电。
  8. 如权利要求1所述的充电方法,其特征在于,所述选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电的步骤后,包括:
    发送初始充电数据至服务器;
    当检测满足预设充电终止条件时,发送终止充电数据至所述服务器;
    接收所述服务器发送的充电计费信息,其中,所述充电计费信息由所述服务器根据所述初始充电数据和所述终止充电数据,按照预设收费计算公式计算而得。
  9. 如权利要求1所述的充电方法,其特征在于,所述充电器包括充电接口,所述当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型的步骤前,包括:
    监测所述充电接口的信号线上的电平是否发生变化;
    若是,则判定检测到所述受电终端接入。
  10. 一种充电装置,其特征在于,所述充电装置安装于充电器,所述充电装置包括:
    识别单元,用于当检测到受电终端接入时,识别所述受电终端支持的充电协议的类型;
    充电单元,用于选择与所述充电协议的类型相对应的充电模式,对所述受电终端进行充电,其中,所述充电器支持多种充电协议,所述充电器内存储有各所述充电协议与各所述充电模式一一对应的关联表。
  11. 如权利要求10所述的充电装置,其特征在于,所述识别单元包括:标识获取子单元,用于获取所述受电终端的设备标识;协议查找子单元,用于从预设映射表中查找与所述设备标识对应的充电协议,其中,所述预设映射表中存储了多种受电终端的设备标识和充电协议的映射关系。
  12. 如权利要求11所述的充电装置,其特征在于,所述识别单元还包括:第一判断子单元,用于判断是否存储有与所述受电终端对应的驱动程序;接收子单元,用于若没有存储有与所述受电终端对应的驱动程序,则接收所述受电终端发送的所述受电终端的驱动程序;安装子单元,用于安装所述驱动程序,以建立与所述受电终端的通讯连接。
  13. 如权利要求12所述的充电装置,其特征在于,所述标识获取子单元还包括:
    断电重启子单元,用于对充电器的充电接口进行断电重启;获取受电终端的设备标识。
  14. 如权利要求12所述的充电装置,其特征在于,所述标识获取子单元还包括:
    服务器更新子单元,用于将受电终端的设备标识、驱动程序发送至服务器,以使得服务器更新后台的数据。
  15. 一种存储介质,其特征在于,其为计算机可读的存储介质,其上存储有计算机程序,所述计算机程序被执行时实现如权利要求1~9任一项所述的充电方法。
PCT/CN2020/122209 2019-10-30 2020-10-20 充电方法、装置及存储介质 WO2021082986A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911044523.5 2019-10-30
CN201911044523.5A CN110729792A (zh) 2019-10-30 2019-10-30 充电方法、装置、存储介质及计算机设备

Publications (1)

Publication Number Publication Date
WO2021082986A1 true WO2021082986A1 (zh) 2021-05-06

Family

ID=69223495

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/122209 WO2021082986A1 (zh) 2019-10-30 2020-10-20 充电方法、装置及存储介质

Country Status (2)

Country Link
CN (1) CN110729792A (zh)
WO (1) WO2021082986A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110729792A (zh) * 2019-10-30 2020-01-24 深圳市沃特沃德股份有限公司 充电方法、装置、存储介质及计算机设备
CN113364070A (zh) * 2020-03-05 2021-09-07 Oppo广东移动通信有限公司 充电控制方法、系统、终端及存储介质
CN111490578A (zh) * 2020-05-29 2020-08-04 维沃移动通信有限公司 充电控制方法及装置
CN111953049A (zh) * 2020-08-15 2020-11-17 广东省博康电子有限公司 一种qc快充的测试方法
CN112260366B (zh) * 2020-11-06 2023-11-24 维沃移动通信有限公司 充电方法、充电装置和充电器
CN112910038A (zh) * 2021-01-22 2021-06-04 维沃移动通信有限公司 电源转换装置、方法及电子设备
CN113178906A (zh) * 2021-04-13 2021-07-27 北京小米移动软件有限公司 充电方法、装置、电子设备及存储介质
CN114123383A (zh) * 2021-10-29 2022-03-01 浙江大华技术股份有限公司 充电管理方法、充电装置、电子装置和存储介质
CN114301115A (zh) * 2021-12-03 2022-04-08 重庆长安汽车股份有限公司 支持多种手机品牌的快充方法、系统及车辆
CN114050634B (zh) * 2022-01-12 2022-06-17 深圳荣耀智能机器有限公司 充电测试方法、电子设备、适配器和充电测试系统
CN114726064B (zh) * 2022-06-08 2022-09-27 珠海智融科技股份有限公司 一种快速充电器功率控制方法及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986217A (zh) * 2014-05-30 2014-08-13 深圳市中兴移动通信有限公司 一种自适应输出不同电压的充电器及其实现方法
US20160372936A1 (en) * 2015-06-19 2016-12-22 Cypress Semiconductor Corporation Automatic scheme to detect Multi-Standard Charger Types
CN206412844U (zh) * 2017-01-20 2017-08-15 叶玺楠 高兼容性的无线充电装置
CN107742912A (zh) * 2017-11-08 2018-02-27 深圳天珑无线科技有限公司 充电方法、快充设备及计算机可读存储介质
CN107834628A (zh) * 2017-11-02 2018-03-23 芯海科技(深圳)股份有限公司 一种基于type‑c接口实现多种快充协议电路及方法
CN110729792A (zh) * 2019-10-30 2020-01-24 深圳市沃特沃德股份有限公司 充电方法、装置、存储介质及计算机设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140239886A1 (en) * 2011-09-29 2014-08-28 Delta Electronics (Thailand) Automatic Protocol (AP) for USB Charger System
CN105162228B (zh) * 2015-09-10 2018-08-14 深圳市华宝新能源股份有限公司 智能充电器及其充电控制电路
CN107482727A (zh) * 2017-09-04 2017-12-15 深圳支点电子智能科技有限公司 保护型的充电器和相关产品
CN107394859A (zh) * 2017-09-05 2017-11-24 深圳支点电子智能科技有限公司 可动态充电的充电器和相关产品
CN109980754A (zh) * 2017-12-14 2019-07-05 厦门新页科技有限公司 一种自适应输入输出的无线充电控制系统及方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986217A (zh) * 2014-05-30 2014-08-13 深圳市中兴移动通信有限公司 一种自适应输出不同电压的充电器及其实现方法
US20160372936A1 (en) * 2015-06-19 2016-12-22 Cypress Semiconductor Corporation Automatic scheme to detect Multi-Standard Charger Types
CN206412844U (zh) * 2017-01-20 2017-08-15 叶玺楠 高兼容性的无线充电装置
CN107834628A (zh) * 2017-11-02 2018-03-23 芯海科技(深圳)股份有限公司 一种基于type‑c接口实现多种快充协议电路及方法
CN107742912A (zh) * 2017-11-08 2018-02-27 深圳天珑无线科技有限公司 充电方法、快充设备及计算机可读存储介质
CN110729792A (zh) * 2019-10-30 2020-01-24 深圳市沃特沃德股份有限公司 充电方法、装置、存储介质及计算机设备

Also Published As

Publication number Publication date
CN110729792A (zh) 2020-01-24

Similar Documents

Publication Publication Date Title
WO2021082986A1 (zh) 充电方法、装置及存储介质
CN108242838B (zh) 基于时间的电池充电控制方法及支持该方法的电子设备
KR102414226B1 (ko) 배터리 누설 상태에 기반한 제어 방법 및 전자 장치
CN111313500B (zh) 充电管理方法和装置、电子设备、计算机可读存储介质
US10044215B2 (en) Method, apparatus, and server for updating software
WO2021212802A1 (zh) 充电方法及系统、充电盒、蓝牙耳机
KR20160105167A (ko) 전자 장치 및 전자 장치의 충전 제어 방법
WO2017182002A1 (zh) 一种设备控制方法、装置及存储介质
CN115425711B (zh) 充电电流的获取方法、装置、终端设备及存储介质
CN109032984A (zh) 一种复用usb接口的方法及usb otg设备
CN106708564A (zh) 一种fota更新方法、装置及服务器
KR102391500B1 (ko) 배터리 충전 제어 방법 및 그 장치
JP2019176717A (ja) 充電器管理方法、サーバー及び充電器
KR101183322B1 (ko) 복수 장치들에서의 배터리 충전 레벨 관리방법
WO2021031779A1 (zh) 充电方法、终端及计算机可读存储介质
EP4322698A1 (en) Device disconnection processing method and apparatus, mobile terminal, and storage medium
WO2018223398A1 (zh) 充电方法及装置
CN112671071B (zh) 充电控制方法、充电控制装置、存储介质与电子设备
CN116315185B (zh) 电子设备及电池管理方法
WO2021143298A1 (zh) 无屏设备分享站点连接信息的方法、装置和存储介质
CN109831767B (zh) 一种智能可穿戴设备的蓝牙连接方法及系统
CN101795484A (zh) Cdma终端及其搜网方法
CN112825401B (zh) 充电线、充电器、充电控制方法和充电装置
CN111198743A (zh) 充电动画的显示方法及装置、设备、存储介质
CN108391293B (zh) 一种共享mifi设备及其切换网络的方法

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: 20883186

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20883186

Country of ref document: EP

Kind code of ref document: A1