CN110729792A - Charging method, charging device, storage medium and computer equipment - Google Patents

Charging method, charging device, storage medium and computer equipment Download PDF

Info

Publication number
CN110729792A
CN110729792A CN201911044523.5A CN201911044523A CN110729792A CN 110729792 A CN110729792 A CN 110729792A CN 201911044523 A CN201911044523 A CN 201911044523A CN 110729792 A CN110729792 A CN 110729792A
Authority
CN
China
Prior art keywords
charging
power receiving
protocol
receiving terminal
charger
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911044523.5A
Other languages
Chinese (zh)
Inventor
张国滔
郑勇
张立新
戴志涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Water World Co Ltd
Original Assignee
Shenzhen Water World Co Ltd
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 Shenzhen Water World Co Ltd filed Critical Shenzhen Water World Co Ltd
Priority to CN201911044523.5A priority Critical patent/CN110729792A/en
Publication of CN110729792A publication Critical patent/CN110729792A/en
Priority to PCT/CN2020/122209 priority patent/WO2021082986A1/en
Pending legal-status Critical Current

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

Abstract

The application discloses a charging method, a charging device, a storage medium and a computer device, wherein the method comprises the steps of identifying the type of a charging protocol supported by a powered terminal when the powered terminal is detected to be accessed; and selecting 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 an association table in which each charging protocol corresponds to each charging mode one to one is stored in the charger. The method and the device have the advantage that the effect of rapidly charging the terminals supporting different charging protocols by adopting the same charger is realized.

Description

Charging method, charging device, storage medium and computer equipment
Technical Field
The present application relates to the field of charging technologies, and in particular, to a charging method, an apparatus, a storage medium, and a computer device.
Background
With the popularization of intelligent terminals, the battery rapid charging technology applied to terminal devices such as smart phones and smart tablets is also rapidly developed. At present, most brands in the intelligent terminal industry develop fast charging technologies suitable for the brands. Because the quick charging protocols used by different intelligent terminals are not uniform, and the quick charging protocol used by the charger needs to be matched with the corresponding intelligent terminal, the quick charging charger can only be suitable for a specific intelligent terminal and cannot be suitable for the intelligent terminal adopting other quick charging protocols.
Disclosure of Invention
The application aims to provide a charging method, a charging device, a storage medium and computer equipment, and aims to solve the problem that in the prior art, a charger can only perform quick charging on a specific intelligent terminal.
The application provides a charging method, which is applied to a charger and comprises the following steps:
when detecting that a powered terminal is accessed, identifying the type of a charging protocol supported by the powered terminal;
and selecting 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 an association table in which each charging protocol corresponds to each charging mode one to one is stored in the charger.
Further, the step of identifying the type of charging protocol supported by the powered terminal includes:
acquiring a device identifier of the power receiving terminal;
and searching a charging protocol corresponding to the equipment identifier from a preset mapping table, wherein the preset mapping table stores mapping relations between the equipment identifiers and the charging protocols of various power receiving terminals.
Further, before the step of obtaining the device identifier of the power receiving terminal, the method includes:
judging whether a driver corresponding to the power receiving terminal is stored;
if not, receiving a driving program of the power receiving terminal sent by the power receiving terminal;
and installing the driving program to establish communication connection with the power receiving terminal.
Further, when the powered terminal is detected to be accessed, the step of identifying the type of the charging protocol supported by the powered terminal is preceded by the step of:
receiving equipment identification, a charging protocol and a driving program of a newly-added power receiving terminal sent by a server;
and storing the association relationship between the equipment identifier of the newly added power receiving terminal and the charging protocol into the preset mapping table, and installing a driving program of the newly added power receiving terminal.
Further, the selecting a charging mode corresponding to the type of the charging protocol and charging the power receiving terminal includes:
judging whether a first quick charging protocol adaptive to the charging protocol exists or not;
if a first quick charging protocol adaptive to the charging protocol exists, selecting a first preset charging mode corresponding to the first quick charging protocol to carry out quick charging on the power receiving terminal;
if the first quick charging protocol adaptive to the charging protocol does not exist, judging whether a second quick charging protocol compatible with the charging protocol exists or not;
if a second quick charging protocol compatible with the charging protocol exists, selecting a second preset charging mode corresponding to the second quick charging protocol to carry out quick charging on the power receiving terminal;
and if the second quick charging protocol compatible with the charging protocol does not exist, charging the power receiving terminal by adopting a third preset charging mode.
Further, the selecting a charging mode corresponding to the type of the charging protocol, and after the charging the power receiving terminal, the method includes:
sending initial charging data to a server;
when the detection meets the preset charging termination condition, sending the data of terminating the charging to the server;
and receiving charging billing information sent by the server, wherein the charging billing information is calculated by the server according to the initial charging data and the termination charging data and a preset charging calculation formula.
Further, the charger includes a charging interface, and when the powered terminal is detected to be accessed, the method includes, before the step of identifying the type of the charging protocol supported by the powered terminal:
monitoring whether the level on a signal wire of the charging interface changes;
and if so, judging that the power receiving terminal is detected to be accessed.
The present application also provides a charging device, the charging device is installed in the charger, the charging device includes:
an identification unit configured to identify a type of a charging protocol supported by a power receiving terminal when an access of the power receiving terminal is detected;
and a charging unit configured to select a charging mode corresponding to the type of the charging protocol and charge the power receiving terminal, where the charger supports multiple charging protocols, and an association table in which each charging protocol corresponds to each charging mode one to one is stored in the charger.
The present application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, which when executed implements the charging method described above.
The application also provides a computer device, which comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the charging method when executing the computer program.
The beneficial effect of this application:
according to the charging method, the charging device, the storage medium and the computer equipment, when the powered terminal is detected to be accessed, the type of the charging protocol supported by the powered terminal is identified, and the charger supports various charging protocols and stores the association tables corresponding to the charging protocols and the charging modes one to one, so that the charging mode corresponding to the type of the charging protocol can be selected, the powered terminal is charged, and the effect of rapidly charging the terminals supporting different charging protocols by adopting the same charger is achieved.
Drawings
Fig. 1 is a schematic flow chart of a charging method according to an embodiment of the present application;
fig. 2 is a schematic block diagram of a charging device according to an embodiment of the present application;
FIG. 3 is a block diagram illustrating a schematic structure of the recognition unit shown in FIG. 2 according to an embodiment of the present application;
FIG. 4 is a block diagram schematically illustrating the structure of the recognition unit in FIG. 2 according to another embodiment of the present application;
fig. 5 is a block diagram schematically illustrating a charging device according to still another embodiment of the present application;
FIG. 6 is a block diagram illustrating a schematic structure of the charging unit shown in FIG. 2 according to an embodiment of the present disclosure;
fig. 7 is a block diagram schematically illustrating a charging device according to still another embodiment of the present application;
fig. 8 is a block diagram schematically illustrating a charging device according to still another embodiment of the present application;
FIG. 9 is a block diagram illustrating the structure of one embodiment of a storage medium of the present application;
FIG. 10 is a block diagram illustrating the structure of one embodiment of a computer device of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, descriptions in this application as to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicit to the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
Referring to fig. 1, the present application provides a charging method, where the charging method is applied to a charger, and the charging method includes:
s1, when the power receiving terminal is detected to be accessed, identifying the type of the charging protocol supported by the power receiving terminal;
and S2, selecting a charging mode corresponding to the type of the charging protocol, and charging the power receiving terminal, wherein the charger supports multiple charging protocols, and an association table in which each charging protocol corresponds to each charging mode one to one is stored in the charger.
In this embodiment, the charging method is applied to a charger, where the charger includes a charger used by a user, such as an applicable charger matched when purchasing a mobile phone, and also includes a charger providing charging service by a merchant, such as a shared charger and a charging pile. The charger includes the interface that charges, and this interface that charges is preferred Type C interface.
In step S1, the power receiving terminal is a charged terminal device, such as a mobile phone, a tablet, an electric vehicle, and the like. The charging protocol is a charging protocol supported by the power receiving terminal, and is generally a quick charging protocol, taking a mobile phone as an example, the types of quick charging protocols adopted by various mobile phone manufacturers of different brands are different, the quick charging protocol supported by the mobile phone manufacturer is an SCP protocol, the quick charging protocol supported by the millet is a QC protocol, the quick charging protocol supported by the VIVO is a VOOC protocol, and the quick charging protocol supported by the charm is a PD protocol, a QC protocol and the like.
In step S2, the charger supports multiple charging protocols, and the output power of the charger is within a preset range, for example, an output power range of 5W to 100W. And the charger selects a charging mode matched with the charging protocol of the power receiving terminal according to the charging protocol supported by the power receiving terminal, and charges the charger. When the charger supports the charging protocol of the power receiving terminal, the charging mode corresponding to the charging protocol of the power receiving terminal is directly used for rapidly charging the power receiving terminal. When the charger does not support the charging protocol of the power receiving terminal, further judging whether the charger supports a charging protocol compatible with the charging protocol of the power receiving terminal, if so, rapidly charging the power receiving terminal by adopting a charging mode corresponding to the compatible charging protocol; if the charger does not contain a compatible charging protocol, the charger is charged with a default standard output power (e.g., 5V/1A).
According to the charging method, when the powered terminal is detected to be connected, the type of the charging protocol supported by the powered terminal is identified, the charger supports multiple charging protocols, and the association table in which the charging protocols correspond to the charging modes one to one is stored in the charger, so that the charging mode corresponding to the type of the charging protocol can be selected, the powered terminal is charged, and the effect of rapidly charging the terminals supporting different charging protocols by adopting the same charger is achieved.
In an embodiment, the step S1 of identifying the type of the charging protocol supported by the power receiving terminal includes:
s11, acquiring the equipment identification of the power receiving terminal;
s12, searching a charging protocol corresponding to the device identifier from a preset mapping table, where the preset mapping table stores mapping relationships between the device identifiers and the charging protocols of multiple power receiving terminals.
In this embodiment, in the step S11, the device identifier is used to identify a device type of the power receiving terminal, so that the charger can determine the charging protocol supported by the power receiving terminal according to the device identifier, specifically, the device identifier includes information such as a brand name and a model of the power receiving terminal. If the charger has installed the driver of the powered terminal, a corresponding registry is formed in the drive buffer of the charger, and the registry stores the relevant information of the device, such as the device identifier. When the powered terminal is connected to the charger, the USB hub of the charger automatically recognizes that the powered terminal is information of the powered terminal already existing in the registry, and the device identifier of the powered terminal can be obtained from the registry.
In step S12, the charging protocol corresponding to the power receiving terminal is searched from the preset mapping table according to the device identifier of the power receiving terminal. The preset mapping table is stored in the charger and/or the server in advance. The preset mapping table stores information of an equipment identifier, a charging protocol and the like of an existing powered terminal, and when a new mobile phone brand appears, data in the preset mapping table can be updated. Therefore, the charging method of the embodiment can be suitable for various mobile phone brands, and the expandability of the applicable brands of the intelligent terminals is high.
In an embodiment, before the step S11 of obtaining the device identifier of the power receiving terminal, the method includes:
s101, judging whether a driving program corresponding to the power receiving terminal is stored or not;
s102, if not, receiving a driving program of the power receiving terminal sent by the power receiving terminal;
and S103, installing the driving program to establish communication connection with the power receiving terminal.
In this embodiment, when the power receiving terminal is connected to the charger for the first time, the corresponding driver is not installed in the charger, and the charger cannot establish communication connection with the power receiving terminal. The power receiving terminal firstly sends a driving program to the charger, the charger installs the driving program so as to establish communication connection between the charger and the power receiving terminal, and data transmission can be carried out between the charger and the power receiving terminal.
Further, after the step of installing the driver, the method further includes: the charging interface of the charger is powered off and restarted; the device identifier of the power receiving terminal is acquired. When the charging interface is powered off and restarted, the charger can automatically recognize that the driver of the power receiving terminal is installed in the charger, and the device identifier, such as the brand name and the model, of the power receiving terminal corresponding to the driver can be found.
Further, after the step of installing the driver, the method further includes: and sending the equipment identifier and the driving program of the power receiving terminal to the server so that the server updates the data of the background.
In an embodiment, before the step S1 of identifying the type of the charging protocol supported by the powered terminal when the powered terminal is detected to be accessed, the method includes:
s01, receiving the device identification, the charging protocol and the driving program of the newly added power receiving terminal sent by the server;
and S02, storing the association relationship between the equipment identifier of the newly added power receiving terminal and the charging protocol into the preset mapping table, and installing the driving program of the newly added power receiving terminal.
In this embodiment, the charger is internally provided with a networking module, which may be a wifi module, a GPRS module, an NB-IOT (narrow band Internet of Things) module, or the like. The charger carries out wireless communication with the server through the networking module. The device identifier of the newly added power receiving terminal is not included in the current preset mapping table. For example, when a new brand of smart phone appears in the market, the current preset mapping table does not include information such as a device identifier of the smart phone. And the server transmits the information of the equipment identification, the charging protocol, the driving program and the like of the newly-added power receiving terminal to the charger through the networking module. And the charger updates a preset mapping table stored locally and automatically installs the driving program of the newly added power receiving terminal. The charging method of the embodiment is suitable for power receiving terminals of various brands, and has good expandability.
In one embodiment, the step S2 of selecting the charging mode corresponding to the type of the charging protocol and charging the power receiving terminal includes:
s21, judging whether a first quick charging protocol adaptive to the charging protocol exists or not;
s22, if a first quick-charging protocol adaptive to the charging protocol exists, selecting a first preset charging mode corresponding to the first quick-charging protocol to perform quick-charging on the power receiving terminal;
s23, if the first quick charging protocol which is adaptive to the charging protocol does not exist, judging whether a second quick charging protocol which is compatible with the charging protocol exists or not;
s24, if a second quick-charging protocol compatible with the charging protocol exists, selecting a second preset charging mode corresponding to the second quick-charging protocol to perform quick-charging on the power receiving terminal;
and S25, if the second quick charging protocol compatible with the charging protocol does not exist, charging the power receiving terminal by adopting a third preset charging mode.
In this embodiment, the charger supports multi-protocol fast charging, for example, the mainstream fast charging protocol in the market, such as SCP, QC, PD, etc. After the power receiving terminal is accessed, whether a first quick charging protocol matched with the charging protocol of the power receiving terminal exists in the charger is judged, for example, the charging protocol supported by the power receiving terminal is an SCP protocol, and if the charger also supports the SCP protocol, it is judged that the first quick charging protocol matched with the charger exists in the charger, namely, the SCP protocol. If the first quick charging protocol exists, the charger automatically adjusts the voltage and/or the current of the charging interface to a preset voltage value and/or current value by using the first quick charging protocol, namely, the corresponding first preset charging mode is adopted to quickly charge the power receiving terminal.
When the charger does not have a first fast charging protocol adaptive to the charging protocol, it is determined whether a second fast charging protocol compatible with the charging protocol of the powered terminal exists in the charger, for example, the charging protocol supported by the powered terminal is a QC4.0 protocol, the charger does not support the QC4.0 protocol, but the charger supports a PD protocol compatible with the QC4.0 protocol, and it is determined that the charger has the second fast charging protocol compatible with the powered terminal, that is, the PD protocol. The charger charges the powered terminal using a second preset charging mode corresponding to the compatible second fast charging protocol.
When the charger does not support the first adaptive fast charging protocol or the second compatible fast charging protocol, the powered terminal is charged in the third preset charging mode, where a preset voltage value and a preset current value of charging are set in the third preset charging mode, for example, charging is performed using a currently universal standard charging power of 5V/1A.
In one embodiment, after the step S2 of selecting the charging mode corresponding to the type of the charging protocol and charging the power receiving terminal, the method includes:
s3, sending initial charging data to a server;
s4, when the detection meets the preset charging termination condition, sending the data of terminating the charging to the server;
and S5, receiving charging billing information sent by the server, wherein the charging billing information is calculated by the server according to the initial charging data and the termination charging data and a preset charging calculation formula.
The charging method of the embodiment is applied to a charger which provides charging service for a merchant, such as a shared charger and a charging pile. For such a charger, it is necessary to manage the charging process so as to facilitate the operation of charging and the like by the merchant.
In the above step S3, when charging is started, the initial charging data is transmitted to the server. The initial charging data includes, for example, a brand model of the user, an amount of electricity before charging the user device, a charging start time, and the like. Wherein the amount of power before the user equipment is charged can be sent to the charger by the powered terminal.
In the above step S4, when the charging is terminated, the termination charging data is transmitted to the server. The charging termination data includes, for example, a charging end time, an amount of electricity after the user equipment is charged, an amount of electricity used for charging, and the like. The charged electric quantity of the user equipment can be sent to the charger by the power receiving terminal. A charging electricity meter is arranged in the charger, and the electricity consumption for charging can be counted through the charging electricity meter. The preset charging termination condition includes: the method includes that the power receiving terminal is fully charged, the power receiving terminal is not fully charged but disconnected from the power receiving terminal (for example, a mobile phone is not fully charged, and a user disconnects the mobile phone from a charger), and preset charging time and/or a charging capacity threshold are reached, wherein preset values of the charging time, the charging capacity threshold and the like can be remotely set in a server, so that remote charging control over the charger is achieved.
In the step S5, the server calculates the charged electric quantity of the power receiving terminal according to the initial charging data and the termination charging data, calculates the corresponding charge according to a preset charge calculation formula, for example, a unit price is set for the electric quantity, and the charged electric quantity is multiplied by the unit price to obtain the charging billing information; a gradient unit price may be further set, and as the charging amount increases gradually, the corresponding charging unit price becomes lower and lower. The merchant can set a proper preset charging calculation formula by self, and the server sends the charging billing information obtained by calculation to the charger. The charger can display corresponding charging billing information on a display screen, and can also display corresponding charging codes and the like.
In one embodiment, the charger includes a charging interface, and the identifying the type of the charging protocol supported by the powered terminal before the step S1, when the powered terminal is detected to be accessed, includes:
s03, monitoring whether the level on the signal wire of the charging interface changes;
and S04, if yes, judging that the power receiving terminal is detected to be accessed.
In this embodiment, the charging interface is a type-C interface, and when the power receiving terminal is connected to the charger, the charger detects a level change on a signal line of the charging interface, and determines that the power receiving terminal is connected.
Referring to fig. 2, the present application provides a charging device mounted on a charger, the charging device including:
an identification unit 10 configured to identify a type of a charging protocol supported by a power receiving terminal when the power receiving terminal is detected to be accessed;
a charging unit 20, configured to select a charging mode corresponding to the type of the charging protocol, and charge the power receiving terminal, where the charger supports multiple charging protocols, and an association table in which each charging protocol corresponds to each charging mode one to one is stored in the charger.
In this embodiment, the charging device is installed in a charger, and the charger includes a charger used by a user, for example, an applicable charger matched when purchasing a mobile phone, and also includes a charger providing charging service by a merchant, for example, a shared charger, a charging pile, and the like. The charger includes the interface that charges, and this interface that charges is preferred Type C interface.
In the identification unit 10, the power receiving terminal is a charged terminal device, such as a mobile phone, a tablet, an electric vehicle, and the like. The charging protocol is a charging protocol supported by the power receiving terminal, and is generally a quick charging protocol, taking a mobile phone as an example, the types of quick charging protocols adopted by various mobile phone manufacturers of different brands are different, the quick charging protocol supported by the mobile phone manufacturer is an SCP protocol, the quick charging protocol supported by the millet is a QC protocol, the quick charging protocol supported by the VIVO is a VOOC protocol, and the quick charging protocol supported by the charm is a PD protocol, a QC protocol and the like.
In the charging unit 20, the charger supports multiple charging protocols, and the output power of the charger is within a preset range, for example, an output power range of 5W to 100W. And the charger selects a charging mode matched with the charging protocol of the power receiving terminal according to the charging protocol supported by the power receiving terminal, and charges the charger. When the charger supports the charging protocol of the power receiving terminal, the charging mode corresponding to the charging protocol of the power receiving terminal is directly used for rapidly charging the power receiving terminal. When the charger does not support the charging protocol of the power receiving terminal, further judging whether the charger supports a charging protocol compatible with the charging protocol of the power receiving terminal, if so, rapidly charging the power receiving terminal by adopting a charging mode corresponding to the compatible charging protocol; if the charger does not contain a compatible charging protocol, the charger is charged with a default standard output power (e.g., 5V/1A).
The charging device of the embodiment identifies the type of the charging protocol supported by the power receiving terminal when detecting that the power receiving terminal is accessed, and can select the charging mode corresponding to the type of the charging protocol because the charger supports multiple charging protocols and the association table of the charging protocols and the charging modes in one-to-one correspondence is stored in the charger, so that the power receiving terminal is charged, and the effect of rapidly charging the terminals supporting different charging protocols by adopting the same charger is realized.
Referring to fig. 3, in one embodiment, the identification unit 10 includes:
an identifier acquiring subunit 101, configured to acquire a device identifier of the power receiving terminal;
a protocol lookup subunit 102, configured to lookup a charging protocol corresponding to the device identifier from a preset mapping table, where the preset mapping table stores mapping relationships between the device identifiers and the charging protocols of multiple power receiving terminals.
In this embodiment, in the identifier obtaining subunit 101, the device identifier is used to identify a device type of the powered terminal, so that the charger can determine, according to the device identifier, a charging protocol supported by the powered terminal, specifically, the device identifier includes information such as a brand name and a model of the powered terminal. If the charger has installed the driver of the powered terminal, a corresponding registry is formed in the drive buffer of the charger, and the registry stores the relevant information of the device, such as the device identifier. When the powered terminal is connected to the charger, the USB hub of the charger automatically recognizes that the powered terminal is information of the powered terminal already existing in the registry, and the device identifier of the powered terminal can be obtained from the registry.
In the protocol lookup subunit 102, according to the device identifier of the power receiving terminal, a charging protocol corresponding to the power receiving terminal is looked up from a preset mapping table. The preset mapping table is stored in the charger and/or the server in advance. The preset mapping table stores information of an equipment identifier, a charging protocol and the like of an existing powered terminal, and when a new mobile phone brand appears, data in the preset mapping table can be updated. Therefore, the charging method of the embodiment can be suitable for various mobile phone brands, and the expandability of the applicable brands of the intelligent terminals is high.
Referring to fig. 4, in one embodiment, the identification unit 10 includes:
a first determining subunit 103, configured to determine whether a driver corresponding to the power receiving terminal is stored;
a receiving subunit 104, configured to receive, if a driver corresponding to the power receiving terminal is not stored, the driver of the power receiving terminal transmitted by the power receiving terminal;
an installation subunit 105, configured to install the driver to establish a communication connection with the power receiving terminal.
In this embodiment, when the power receiving terminal is connected to the charger for the first time, the corresponding driver is not installed in the charger, and the charger cannot establish communication connection with the power receiving terminal. The power receiving terminal firstly sends a driving program to the charger, the charger installs the driving program so as to establish communication connection between the charger and the power receiving terminal, and data transmission can be carried out between the charger and the power receiving terminal.
Further, the identifier obtaining subunit 101 further includes: the power-off restarting subunit is used for performing power-off restarting on a charging interface of the charger; the device identifier of the power receiving terminal is acquired. When the charging interface is powered off and restarted, the charger can automatically recognize that the driver of the power receiving terminal is installed in the charger, and the device identifier, such as the brand name and the model, of the power receiving terminal corresponding to the driver can be found.
Further, the identifier obtaining subunit 101 further includes: and the server updating subunit is used for sending the equipment identifier and the driving program of the power receiving terminal to the server so as to enable the server to update the data of the background.
Referring to fig. 5, in an embodiment, the charging device includes:
a receiving unit 01, configured to receive a device identifier, a charging protocol, and a driver of a newly added power receiving terminal, which are sent by a server;
and an updating unit 02, configured to store the association relationship between the device identifier of the newly added power receiving terminal and the charging protocol in the preset mapping table, and install a driver of the newly added power receiving terminal.
In this embodiment, the receiving unit 01 is internally provided with a networking module, which may be a wifi module, a GPRS module, an NB-IOT (Narrow Band Internet of Things) module, or the like. The receiving unit 01 performs wireless communication with the server through a networking module. The device identifier of the newly added power receiving terminal is not included in the current preset mapping table. For example, when a new brand of smart phone appears in the market, the current preset mapping table does not include information such as a device identifier of the smart phone. The server sends the information such as the device identifier, the charging protocol, and the driver 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 of the newly added power receiving terminal through the updating unit 02. The charging device of the embodiment is suitable for power receiving terminals of various brands, and has good expandability.
Referring to fig. 6, in one embodiment, the charging unit 20 includes:
a second judging subunit 201, configured to judge whether there is a first fast charging protocol adapted to the charging protocol;
a first charging subunit 202, configured to select a first preset charging mode corresponding to a first fast charging protocol to perform fast charging on the power receiving terminal if the first fast charging protocol adapted to the charging protocol exists;
a third determining subunit 203, 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;
a second charging subunit 204, configured to select a second preset charging mode corresponding to a second fast charging protocol to perform fast charging on the power receiving terminal if the second fast charging protocol compatible with the charging protocol exists;
a third charging subunit 205, configured to, if there is no second fast charging protocol compatible with the charging protocol, charge the powered terminal in a third preset charging mode.
In this embodiment, the charger supports multi-protocol fast charging, for example, the mainstream fast charging protocol in the market, such as SCP, QC, PD, etc. After the power receiving terminal is connected, the second determining subunit 201 determines whether there is a first fast charging protocol in the charger that matches the charging protocol of the power receiving terminal, for example, the charging protocol supported by the power receiving terminal is an SCP protocol, and the charger also supports the SCP protocol, and then determines that there is an adapted first fast charging protocol, that is, the SCP protocol, in the charger. If the first fast charging protocol exists, the first charging subunit 202 uses the first fast charging protocol to automatically adjust the voltage and/or current of the charging interface to a preset voltage value and/or current value, that is, the power receiving terminal is rapidly charged in a corresponding first preset charging mode.
When the charger does not have the first fast charging protocol adapted to the charging protocol, the third determining subunit 203 determines whether there is a second fast charging protocol compatible with the charging protocol of the powered terminal in the charger, for example, the charging protocol supported by the powered terminal is the 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, and then determines that there is a second fast charging protocol compatible with the powered terminal in the charger, that is, the PD protocol. The powered terminal is charged through the second charging subunit 204 using a second preset charging mode corresponding to the compatible second fast charging protocol.
When the charger does not support the first adaptive fast charging protocol or the second compatible fast charging protocol, the third charging subunit 205 charges the power receiving terminal in the third preset charging mode, where a preset charging voltage value and a preset charging current value are set in the third preset charging mode, for example, the current universal standard charging power of 5V/1A is used for charging.
Referring to fig. 7, in an embodiment, the charging device further includes:
an initial data transmitting unit 30 for transmitting initial charging data to the server;
a termination data transmitting unit 40 configured to transmit termination charging data to the server when it is detected that a preset charging termination condition is satisfied;
and the charging unit 50 is configured to receive charging information sent by the server, where the charging information is calculated by the server according to a preset charging calculation formula according to the initial charging data and the termination charging data.
The charging method of the embodiment is applied to a charger which provides charging service for a merchant, such as a shared charger and a charging pile. For such a charger, it is necessary to manage the charging process so as to facilitate the operation of charging and the like by the merchant.
In the initial data transmitting unit 30, when charging is started, initial charging data is transmitted to the server. The initial charging data includes, for example, a brand model of the user, an amount of electricity before charging the user device, a charging start time, and the like. Wherein the amount of power before the user equipment is charged can be sent to the charger by the powered terminal.
In the termination data transmitting unit 40, when the charging is terminated, the termination charging data is transmitted to the server. The charging termination data includes, for example, a charging end time, an amount of electricity after the user equipment is charged, an amount of electricity used for charging, and the like. The charged electric quantity of the user equipment can be sent to the charger by the power receiving terminal. A charging electricity meter is arranged in the charger, and the electricity consumption for charging can be counted through the charging electricity meter. The preset charging termination condition includes: the method includes that the power receiving terminal is fully charged, the power receiving terminal is not fully charged but disconnected from the power receiving terminal (for example, a mobile phone is not fully charged, and a user disconnects the mobile phone from a charger), and preset charging time and/or a charging capacity threshold are reached, wherein preset values of the charging time, the charging capacity threshold and the like can be remotely set in a server, so that remote charging control over the charger is achieved.
In the charging unit 50, the server calculates the charged electric quantity of the power receiving terminal according to the initial charging data and the termination charging data, calculates the corresponding charge according to a preset charge calculation formula, for example, a unit price is set for the electric quantity, and the charged electric quantity is multiplied by the unit price to obtain charging and charging information; a gradient unit price may be further set, and as the charging amount increases gradually, the corresponding charging unit price becomes lower and lower. The merchant can set a proper preset charging calculation formula by self, and the server sends the charging billing information obtained by calculation to the charger. The charger can display corresponding charging billing information on a display screen, and can also display corresponding charging codes and the like.
Referring to fig. 8, in an embodiment, the charger includes a charging interface, and the charging device includes:
the monitoring unit 03 is used for monitoring whether the level on the signal wire of the charging interface changes;
a determining unit 04, configured to determine that the power receiving terminal is detected to be accessed if the change occurs.
In this embodiment, the charging interface is a type-C interface, and when the powered terminal is connected to the charger, the monitoring unit 03 detects a level change on a signal line of the charging interface, and the determining unit 04 determines that the powered terminal is connected.
Referring to fig. 9, the present application also provides a storage medium 1, in which a computer program 2 is stored in the storage medium 1, and when the computer program runs on a computer, the computer is caused to execute the charging method described in the above embodiment.
Referring to fig. 10, the present application also provides a computer device 3 containing instructions, which when run on the computer device 3, causes the computer device 3 to execute the charging method described in the above embodiment by means of the processor 4 provided inside it.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A charging method is applied to a charger, and the charging method comprises the following steps:
when detecting that a powered terminal is accessed, identifying the type of a charging protocol supported by the powered terminal;
and selecting 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 an association table in which each charging protocol corresponds to each charging mode one to one is stored in the charger.
2. The charging method according to claim 1, wherein the step of identifying the type of the charging protocol supported by the powered terminal includes:
acquiring a device identifier of the power receiving terminal;
and searching a charging protocol corresponding to the equipment identifier from a preset mapping table, wherein the preset mapping table stores mapping relations between the equipment identifiers and the charging protocols of various power receiving terminals.
3. The charging method according to claim 2, wherein the step of obtaining the device identifier of the power receiving terminal is preceded by:
judging whether a driver corresponding to the power receiving terminal is stored;
if not, receiving a driving program of the power receiving terminal sent by the power receiving terminal;
and installing the driving program to establish communication connection with the power receiving terminal.
4. The charging method according to claim 2, wherein the step of identifying the type of charging protocol supported by the powered terminal when the powered terminal is detected to be accessed is preceded by the step of:
receiving equipment identification, a charging protocol and a driving program of a newly-added power receiving terminal sent by a server;
and storing the association relationship between the equipment identifier of the newly added power receiving terminal and the charging protocol into the preset mapping table, and installing a driving program of the newly added power receiving terminal.
5. The charging method according to claim 1, wherein the step of selecting a charging mode corresponding to the type of the charging protocol to charge the power receiving terminal comprises:
judging whether a first quick charging protocol adaptive to the charging protocol exists or not;
if a first quick charging protocol adaptive to the charging protocol exists, selecting a first preset charging mode corresponding to the first quick charging protocol to carry out quick charging on the power receiving terminal;
if the first quick charging protocol adaptive to the charging protocol does not exist, judging whether a second quick charging protocol compatible with the charging protocol exists or not;
if a second quick charging protocol compatible with the charging protocol exists, selecting a second preset charging mode corresponding to the second quick charging protocol to carry out quick charging on the power receiving terminal;
and if the second quick charging protocol compatible with the charging protocol does not exist, charging the power receiving terminal by adopting a third preset charging mode.
6. The charging method according to claim 1, wherein the step of selecting the charging mode corresponding to the type of the charging protocol to charge the power receiving terminal comprises:
sending initial charging data to a server;
when the detection meets the preset charging termination condition, sending the data of terminating the charging to the server;
and receiving charging billing information sent by the server, wherein the charging billing information is calculated by the server according to the initial charging data and the termination charging data and a preset charging calculation formula.
7. The charging method according to claim 1, wherein the charger includes a charging interface, and when the powered terminal is detected to be accessed, the step of identifying the type of charging protocol supported by the powered terminal is preceded by the step of:
monitoring whether the level on a signal wire of the charging interface changes;
and if so, judging that the power receiving terminal is detected to be accessed.
8. A charging device, wherein the charging device is mounted to a charger, the charging device comprising:
an identification unit configured to identify a type of a charging protocol supported by a power receiving terminal when an access of the power receiving terminal is detected;
and a charging unit configured to select a charging mode corresponding to the type of the charging protocol and charge the power receiving terminal, where the charger supports multiple charging protocols, and an association table in which each charging protocol corresponds to each charging mode one to one is stored in the charger.
9. A storage medium, characterized in that it is a computer-readable storage medium on which a computer program is stored, which computer program, when executed, implements a charging method according to any one of claims 1 to 7.
10. Computer device, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said processor implementing the charging method according to any one of claims 1 to 7 when executing said computer program.
CN201911044523.5A 2019-10-30 2019-10-30 Charging method, charging device, storage medium and computer equipment Pending CN110729792A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911044523.5A CN110729792A (en) 2019-10-30 2019-10-30 Charging method, charging device, storage medium and computer equipment
PCT/CN2020/122209 WO2021082986A1 (en) 2019-10-30 2020-10-20 Charging method and apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911044523.5A CN110729792A (en) 2019-10-30 2019-10-30 Charging method, charging device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN110729792A true CN110729792A (en) 2020-01-24

Family

ID=69223495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911044523.5A Pending CN110729792A (en) 2019-10-30 2019-10-30 Charging method, charging device, storage medium and computer equipment

Country Status (2)

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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111490578A (en) * 2020-05-29 2020-08-04 维沃移动通信有限公司 Charging control method and device
CN111953049A (en) * 2020-08-15 2020-11-17 广东省博康电子有限公司 QC quick-charging test method
WO2021082986A1 (en) * 2019-10-30 2021-05-06 深圳市沃特沃德股份有限公司 Charging method and apparatus, and storage medium
CN113178906A (en) * 2021-04-13 2021-07-27 北京小米移动软件有限公司 Charging method, charging device, electronic device and storage medium
CN113364070A (en) * 2020-03-05 2021-09-07 Oppo广东移动通信有限公司 Charging control method, system, terminal and storage medium
CN114050634A (en) * 2022-01-12 2022-02-15 深圳荣耀智能机器有限公司 Charging test method, electronic device, adapter and charging test system
CN114301115A (en) * 2021-12-03 2022-04-08 重庆长安汽车股份有限公司 Quick charging method and system supporting multiple mobile phone brands and vehicle
WO2022095961A1 (en) * 2020-11-06 2022-05-12 维沃移动通信有限公司 Charging method, charging apparatus, and charger
CN114726064A (en) * 2022-06-08 2022-07-08 珠海智融科技股份有限公司 Quick charger power control method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986217A (en) * 2014-05-30 2014-08-13 深圳市中兴移动通信有限公司 Charger outputting different voltages in self-adaptation mode and implementation method thereof
US20140239886A1 (en) * 2011-09-29 2014-08-28 Delta Electronics (Thailand) Automatic Protocol (AP) for USB Charger System
CN105162228A (en) * 2015-09-10 2015-12-16 深圳市华宝新能源有限公司 Intelligent charger and charging control circuit thereof
CN107394859A (en) * 2017-09-05 2017-11-24 深圳支点电子智能科技有限公司 The charger and Related product that can dynamically charge
CN107482727A (en) * 2017-09-04 2017-12-15 深圳支点电子智能科技有限公司 The charger and Related product of protection type
CN109980754A (en) * 2017-12-14 2019-07-05 厦门新页科技有限公司 A kind of the wireless charging control system and method for adaptive input output

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9866055B2 (en) * 2015-06-19 2018-01-09 Cypress Semiconductor Corporation Automatic scheme to detect multi-standard charger types
CN206412844U (en) * 2017-01-20 2017-08-15 叶玺楠 The wireless charging device of highly compatible
CN107834628B (en) * 2017-11-02 2024-04-12 芯海科技(深圳)股份有限公司 Circuit and method for realizing multiple fast charging protocols based on TYPE-C interface
CN107742912A (en) * 2017-11-08 2018-02-27 深圳天珑无线科技有限公司 Charging method, fast fill device and computer-readable recording medium
CN110729792A (en) * 2019-10-30 2020-01-24 深圳市沃特沃德股份有限公司 Charging method, charging device, storage medium and computer equipment

Patent Citations (6)

* 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
CN103986217A (en) * 2014-05-30 2014-08-13 深圳市中兴移动通信有限公司 Charger outputting different voltages in self-adaptation mode and implementation method thereof
CN105162228A (en) * 2015-09-10 2015-12-16 深圳市华宝新能源有限公司 Intelligent charger and charging control circuit thereof
CN107482727A (en) * 2017-09-04 2017-12-15 深圳支点电子智能科技有限公司 The charger and Related product of protection type
CN107394859A (en) * 2017-09-05 2017-11-24 深圳支点电子智能科技有限公司 The charger and Related product that can dynamically charge
CN109980754A (en) * 2017-12-14 2019-07-05 厦门新页科技有限公司 A kind of the wireless charging control system and method for adaptive input output

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021082986A1 (en) * 2019-10-30 2021-05-06 深圳市沃特沃德股份有限公司 Charging method and apparatus, and storage medium
CN113364070A (en) * 2020-03-05 2021-09-07 Oppo广东移动通信有限公司 Charging control method, system, terminal and storage medium
CN111490578A (en) * 2020-05-29 2020-08-04 维沃移动通信有限公司 Charging control method and device
CN111953049A (en) * 2020-08-15 2020-11-17 广东省博康电子有限公司 QC quick-charging test method
WO2022095961A1 (en) * 2020-11-06 2022-05-12 维沃移动通信有限公司 Charging method, charging apparatus, and charger
CN113178906A (en) * 2021-04-13 2021-07-27 北京小米移动软件有限公司 Charging method, charging device, electronic device and storage medium
CN114301115A (en) * 2021-12-03 2022-04-08 重庆长安汽车股份有限公司 Quick charging method and system supporting multiple mobile phone brands and vehicle
CN114050634A (en) * 2022-01-12 2022-02-15 深圳荣耀智能机器有限公司 Charging test method, electronic device, adapter and charging test system
CN114726064A (en) * 2022-06-08 2022-07-08 珠海智融科技股份有限公司 Quick charger power control method and system
CN114726064B (en) * 2022-06-08 2022-09-27 珠海智融科技股份有限公司 Quick charger power control method and system

Also Published As

Publication number Publication date
WO2021082986A1 (en) 2021-05-06

Similar Documents

Publication Publication Date Title
CN110729792A (en) Charging method, charging device, storage medium and computer equipment
CN108242838B (en) Time-based battery charge control method and electronic device supporting same
EP3570409A1 (en) System and method for updating firmware in a wireless charger
US8712394B2 (en) Systems, methods, and apparatus to prepare a mobile device for provisioning
US10044215B2 (en) Method, apparatus, and server for updating software
CN107438830B (en) Upgrading method, upgrading device, upgrading equipment and upgrading system
CN106612015B (en) Apparatus and method for reducing noise of wireless charging device
CA2565317C (en) Modular data components for wireless communication devices
JP2015111904A (en) Method for obtaining mobile terminal accessory application from communication network, and mobile terminal
CN110659046A (en) Firmware upgrading method, terminal, charging box, earphone and storage medium
CN101668081A (en) Mobile terminal and automatic upgrading method thereof
WO2018116922A1 (en) Information processing device, control method for information processing device, and program
CN111384738A (en) Control method and device of charging protocol
CN102684747B (en) Method and device for searching adjacent bluetooth device
CN106708564A (en) FOTA update method, device and server
CN102932778A (en) Method and system for wirelessly upgrading mobile phone terminal
JP2019179546A (en) Method and system for notifying a user of progress of charging of rechargeable battery corresponding to the user and charged at service end
CN113760333A (en) Software upgrading method and device, electronic equipment and computer readable storage medium
CN112448832B (en) Household appliance network distribution method, device and equipment
CN107276180B (en) Charging control method, device and system and user equipment
WO2021018208A1 (en) Firmware upgrade method and apparatus, electronic device, and storage medium
KR102312362B1 (en) Wireless charging equipment, terminal, service providing device, wireless charging system comprising the same, control method thereof and computer readable medium having computer program recorded therefor
CN113619435B (en) Cross-platform charging method, terminal and storage device
CN103793247A (en) Diagnosis device software updating method and device
CN112825401B (en) Charging line, charger, charging control method and charging device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination