Charging Control Method and Device
By integrating control circuits, storage modules and voltage conversion modules in the charging control device, identifying the charging protocols supported by the power consumption equipment and adjusting the power supply voltage, the problem of poor charging convenience in the prior art is solved, and the efficiency of charging of non-standard chargers and multi-chargers power supply is improved.
Patent Information
- Application Number
- CN202011493441.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-17
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2040-12-17
AI Technical Summary
The convenience of charging in the prior art is poor, and users need to use a charger standard with electronic devices to achieve fast charging, otherwise they will not be able to charge.
It provides a charging control device, including a control circuit, a storage module, multiple ports and voltage conversion modules, which can identify the charging protocol supported by the power consumption equipment and adjust the voltage output by the power supply equipment to a suitable charging voltage to realize charging of non-standard chargers.
Through the charging control device, users can use non-standard chargers to charge electronic devices, which improves charging convenience, and can supply power through multiple non-standard chargers at the same time, improving charging efficiency.
Smart Images

Figure CN112671062B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a charging control method and device. Background Art
[0002] With the development of fast charging technology for electronic devices, the market demand for fast charging functions is increasing. Fast charging can fully charge electronic devices in a shorter time, giving users a better user experience. At present, different chargers have different ways of achieving fast charging. When users need to fast charge electronic devices, they need to use the charger that comes standard with the electronic devices to fast charge the electronic devices. When there is no charger that comes standard with the electronic devices around, the electronic devices cannot be fast charged, and the convenience of charging is poor. Summary of the invention
[0003] The embodiments of the present application provide a charging control method and device, which can solve the problem of poor charging convenience in the prior art.
[0004] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:
[0005] In a first aspect, an embodiment of the present application provides a charging control device, the charging control device comprising a control circuit, a storage module, a first port, at least two second ports, and a voltage conversion module corresponding to each of the second ports;
[0006] Each of the voltage conversion modules is connected to the first port, and each of the voltage conversion modules is connected to the corresponding second port;
[0007] The first port is used to connect to an electric device, and each of the second ports is used to connect to a different power supply device;
[0008] The storage module is used to store multiple charging protocols;
[0009] The control circuit is respectively connected to the first port, each of the second ports and the storage module, and is used to identify a first target charging protocol supported by the power-consuming device, where the first target charging protocol is one of the multiple charging protocols;
[0010] Wherein, under the action of the control circuit, each of the voltage conversion modules is used to adjust the voltage output by the corresponding power supply device connected to the second port to the charging voltage corresponding to the first target charging protocol, and output it to the power-consuming device.
[0011] In a second aspect, an embodiment of the present application provides a charging control method, which is applied to a charging control device, wherein the charging control device is respectively connected to an electric device and at least two power supply devices, and the method includes:
[0012] Obtain a first target charging protocol supported by the electrical device;
[0013] Determine the charging voltage of the electrical device based on the first target charging protocol;
[0014] Adjust the voltages output by the at least two power supply devices to the charging voltage respectively;
[0015] Output the adjusted voltage to the electrical device.
[0016] In a third aspect, an embodiment of the present application provides a charging control device, which is respectively connected to an electrical device and at least two power supply devices. The device includes:
[0017] An obtaining module, configured to obtain a first target charging protocol supported by the electrical device;
[0018] A determining module, configured to determine the charging voltage of the electrical device based on the first target charging protocol;
[0019] An adjusting module, configured to adjust the voltages output by the at least two power supply devices to the charging voltage respectively;
[0020] An output module, configured to output the adjusted voltage to the electrical device.
[0021] In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps in the charging control method described in the second aspect are implemented.
[0022] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps in the charging control method described in the second aspect are implemented.
[0023] In a sixth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the second aspect.
[0024] In the embodiments of the present application, under the action of the control circuit of the charging control device, each of the voltage conversion modules is configured to adjust the voltage output by the power supply device connected to the corresponding second port to the charging voltage corresponding to the first target charging protocol, and output it to the electrical device. In this way, the charging control device can serve as an intermediate communication device between the power supply device and the electrical device. Therefore, for non-standard chargers, the non-standard chargers can supply power to the electrical device through the charging control device, thereby improving the charging convenience; and multiple non-standard chargers can simultaneously supply power to the electrical device, improving the charging efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 FIG. 6 is one of the schematic structural diagrams of a charging control device provided by an embodiment of the present application;
[0026] Figure 2 FIG. 10 is another schematic structural diagram of a charging control device provided by an embodiment of the present application;
[0027] Figure 3 FIG. 14 is a flowchart of a charging control method provided by an embodiment of the present application;
[0028] Figure 4 FIG. 18 is a third schematic structural diagram of a charging control device provided by an embodiment of the present application;
[0029] Figure 5 FIG. 22 is a fourth schematic structural diagram of a charging control device provided by an embodiment of the present application;
[0030] Figure 6 FIG. 26 is a fifth schematic structural diagram of a charging control device provided by an embodiment of the present application;
[0031] Figure 7 FIG. 30 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0032] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0033] The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / " generally means that the related objects before and after are in an "or" relationship.
[0034] The following will, with reference to the accompanying drawings, describe in detail the charging control device provided by the embodiments of this application through specific embodiments and their application scenarios.
[0035] See Figure 1 , Figure 1 is one of the structural schematic diagrams of a charging control device provided by the embodiments of this application. As Figure 1 shown, the charging control device includes a control circuit 1, a storage module 2, a first port 3, at least two second ports 4, and a voltage conversion module 5 corresponding to each of the second ports 4 one by one;
[0036] Each of the voltage conversion modules 5 is connected to the first port 3, and each of the voltage conversion modules 5 is connected to the corresponding second port 4;
[0037] The first port 3 is used to connect to an electrical device, and each of the second ports 4 is used to connect to different power supply devices;
[0038] The storage module 2 is used to store multiple charging protocols; at least one parameter type is included in each charging protocol, and the parameter values of the parameter types are different. The parameter types can include voltage, current, power, etc. The voltage, current, and power of different charging protocols are not exactly the same. For example, the voltage of charging protocol A is higher than that of charging protocol B, and the current of charging protocol A is higher than that of charging protocol B; or, the voltage of charging protocol A is the same as that of charging protocol B, and the current of charging protocol A is higher than that of charging protocol B; or, the charging current of charging protocol A is different at different remaining battery levels, and the charging current of charging protocol B remains fixed, etc.
[0039] The control circuit 1 is respectively connected to the first port 3, each of the second ports 4, and the storage module 2, and is used to identify a first target charging protocol supported by the electrical device, and the first target charging protocol is one of the multiple charging protocols;
[0040] Among them, under the action of the control circuit 1, each voltage conversion module 5 is used to adjust the voltage output by the power supply device connected to the corresponding second port to the charging voltage corresponding to the first target charging protocol, and output it to the electrical device.
[0041] Among them, the control circuit 1 can be a microcontroller unit (MCU). The first port 3 can adopt a Type-c interface, or a Type-A interface, or a lightning interface, etc. This embodiment does not limit the specific implementation manner of the first port 3. The second port 4 can adopt a Type-c interface, or a Type-A interface, or a lightning interface, etc. This embodiment does not limit the specific implementation manner of the second port 4. The control circuit 1 can also be connected to the voltage conversion module 5.
[0042] In addition, the power supply device can be a charger, a computer, a speaker, etc., which can be used for power supply, and the electrical device can be a mobile phone, a smart watch, a pedometer, etc., which are electronic devices with power consumption requirements.
[0043] It should be noted that when the first port 3 is connected to the electrical device and the second port 4 is connected to the power supply device, the charging control device can detect the charging protocol of the power supply device. After completing the detection of the charging protocol of the power supply device, it enters the waiting state and outputs the default voltage; if the charging control device receives the charging demand information of the electrical device, it outputs the charging voltage corresponding to the charging demand information to the electrical device.
[0044] In addition, the storage module 2 can be used to store information. The storage module 2 can store multiple charging protocols. For example, existing charging protocols can be stored in the storage module 2, so that the charging control device can communicate with electrical devices and power supply devices with any charging protocol. The control circuit 1 can control the storage module 2 to store the information to be stored, or read the information to be read from the storage module 2. For example, the storage module 2 can be a memory module. By setting the storage module 2, the storage function can be realized. When the charging control device is connected to the electrical device, the memory space of the electrical device can be expanded, and the memory of the electrical device can be increased.
[0045] Further, the voltage conversion module 5 can be used for voltage conversion. The voltage conversion module 5 can convert a high-voltage signal into a low-voltage signal; or can convert a low-voltage signal into a high-voltage signal; or can have the function of converting a high-voltage signal into a low-voltage signal and converting a low-voltage signal into a high-voltage signal at the same time. Exemplarily, the voltage conversion module 5 can convert a 9V voltage signal into a 5V voltage signal, and can also convert a 9V voltage signal into a 12V voltage signal. The control circuit 1 can be connected to the voltage conversion module 5 through the driving module, and drive the voltage conversion module 5 to work through the driving module.
[0046] In practical applications, as Figure 2 shown, the charging control device is respectively connected to a plurality of power supply devices. Each power supply device may include a primary high-voltage module, a power output module, a third port, and a protocol logic module. The primary high-voltage module is connected to the third port through the power output module, and outputs voltage through the third port; the protocol logic module is respectively connected to the primary high-voltage module, the power output module, and the third port, and is used to control the power supply device to output voltage to the charging control device and communicate with the charging control device. The third port is connected to the second port 4. The charging control device is also connected to the electrical device. The electrical device may include a system and a power consumption module group, a power management module, a fourth port, a battery module, and a control system. The fourth port is connected to the system and the power consumption module group through the power management module, and the voltage input through the fourth port powers the system and the power consumption module group; the control system is respectively connected to the fourth port and the battery module, and the battery module is respectively connected to the battery management module and the system and the power consumption module group; the fourth port is connected to the first port 3, where the system and the power consumption module group include the modules with power consumption requirements in the electrical device.
[0047] Exemplarily, after multiple power supply devices are powered on, they output corresponding default voltages to the charging control device. The charging control device can detect the charging protocols of each power supply device one by one. The electrical device can send charging requirement information to the charging control device according to the requirements of the battery module. For example, the charging requirement information can include voltage V1 and current I1. The control circuit 1 of the charging control device can send a voltage output request to each power supply device through the second port 4 connected to each power supply device. For the first power supply device that can provide voltage V1, the charging control device directly conducts the voltage conversion module 5 corresponding to the first power supply device, and the first power supply device is a power supply device among the multiple power supply devices; for the second power supply device that cannot provide voltage V1, the charging control device communicates with the second power supply device based on the charging protocol of the second power supply device, and requests the second power supply device to output voltage V2. Voltage V2 can be the voltage with the smallest absolute value of the difference from voltage V1 within the power supply voltage range of the second power supply device, and the second power supply device is a power supply device among the multiple power supply devices. The charging control device converts the voltage V2 output by the second power supply device into voltage V1 through the voltage conversion module 5 corresponding to the second power supply device. The charging control device outputs voltage V1 to the power supply device, and the sum of the currents of the voltage conversion modules 5 corresponding to each second port 4 is the output current of the first port 3.
[0048] By setting the voltage conversion module 5, when the voltage output by the power supply device does not match the charging voltage required by the electrical device, the voltage output by the power supply device can be converted into the charging voltage required by the electrical device through the voltage conversion module 5. In this way, for a charger whose power supply voltage range of the power supply device does not include the charging voltage required by the electrical device, it can also charge the electrical device through the charging control device, thereby further improving the charging convenience.
[0049] Furthermore, the charging control device may further include a first communication module and a second communication module. The control circuit 1 can be connected to the first port 3 through the first communication module, and the control circuit 1 can be connected to the second port 4 through the second communication module. The first communication module may include a communication chip, and the communication chip can communicate with the electrical device according to the communication protocol corresponding to the electrical device. The second communication module may include a communication chip, and the communication chip can communicate with the power supply device according to the communication protocol corresponding to the power supply device. The control circuit 1 can be connected to the voltage conversion module 5 through a driving module.
[0050] In an embodiment of the present application, under the action of the control circuit 1 of the charging control device, each of the voltage conversion modules 5 is configured to adjust the voltage output by the power supply device connected to the corresponding second port to the charging voltage corresponding to the first target charging protocol, and output it to the electrical device. In this way, the charging control device can serve as an intermediate communication device between the power supply device and the electrical device. Therefore, for a non-standard charger, the non-standard charger can supply power to the electrical device through the charging control device, thereby improving the charging convenience; and it can simultaneously supply power to the electrical device through multiple non-standard chargers, improving the charging efficiency.
[0051] Optionally, the charging control device further includes a power supply module, and the power supply module is connected to the control circuit 1;
[0052] The power supply module is configured to supply power to the control circuit 1;
[0053] The control circuit 1 is further configured to send a request message requesting the electrical device to supply power to the charging control device to the electrical device when the power supply module supplies power to the control circuit 1.
[0054] Among them, the power supply module can store electric energy and supply power to each module of the charging control device. The power supply module can be connected to the voltage conversion module 5.
[0055] It should be noted that in the prior art, the storage device does not have the ability to initiate communication actively. It can only initiate the storage communication handshake after passively receiving the power from the electrical device. For electrical devices such as mobile phones with a default low-voltage output interface, the storage device cannot connect to the electrical device to provide the storage function for the electrical device. In this embodiment, by setting a power supply module in the charging control device, the power supply module can supply power to the control circuit 1, so that the charging control device can actively communicate with the electrical device, activate the On-The-Go (OTG) function of the electrical device, and enable the electrical device to supply power to the charging control device.
[0056] In this embodiment, by setting the power supply module, the power supply module can supply power to the control circuit 1. Thus, when the charging control device is connected to the electrical device, the power supply module supplies power to the control circuit 1, enabling the control circuit 1 to have the ability to activate the OTG function of the electrical device. Therefore, the charging control device can perform storage communication with the electrical device, thereby expanding the memory of the electrical device.
[0057] An embodiment of the present application further provides a charging system, and the charging system includes the charging control device according to the embodiment of the present application.
[0058] Optionally, the charging system further includes an electrical device and at least two power supply devices. The electrical device is connected to the first port, and each of the at least two power supply devices is respectively connected to a different second port in the charging control device.
[0059] In this embodiment, the charging control device can parallel the output electric energy of multiple power supply devices, so as to obtain a larger output power, and can realize that without carrying a power supply device with a large volume, it can also meet the charging requirements of high-power electrical devices. Thus, for power supply devices with small power that do not meet the charging requirements of the current electrical device, they can continue to be used, reducing the waste rate of power supply devices.
[0060] See Figure 3 , Figure 3 is a flowchart of a charging control method provided by an embodiment of the present application. The charging control method is applied to a charging control device, and the charging control device is respectively connected to an electrical device and at least two power supply devices. As Figure 3 shown, it includes the following steps:
[0061] Step 101, obtain a first target charging protocol supported by the electrical device;
[0062] Step 102, determine the charging voltage of the electrical device based on the first target charging protocol;
[0063] Step 103, adjust the voltages output by the at least two power supply devices to the charging voltage respectively;
[0064] Step 104, output the adjusted voltage to the electrical device.
[0065] Among them, the charging control method can be applied to Figure 1 the charging control device described above. The charging control device can store multiple charging protocols, and the first target charging protocol can be one of the multiple charging protocols. The charging control device can communicate with the electrical device based on the first target charging protocol to obtain the charging requirement information of the electrical device. The charging requirement information can include the charging voltage of the electrical device; or, the charging requirement information can include the charging voltage and charging current of the electrical device; or it can include the charging power of the electrical device; etc., and this embodiment does not limit this. The charging voltage of the electrical device can be directly determined from the charging voltage carried in the charging requirement information, or the charging voltage of the electrical device can also be calculated through the charging power carried in the charging requirement information. For example, the quotient of the charging power and the preset current can be used as the charging voltage of the electrical device.
[0066] In practical applications, after receiving the output voltage of the target power supply device through the second port, the charging control device can activate the control circuit and initiate a communication handshake with the target power supply device through the first communication module. The charging control device can communicate with the target power supply device based on multiple pre-stored charging protocols respectively to determine the second target charging protocol of the target power supply device. After being connected to the electrical device, the charging control device can receive a communication handshake request from the electrical device through the first port, communicate with the electrical device based on multiple pre-stored charging protocols respectively to determine the first target charging protocol of the electrical device, and communicate with the electrical device according to the first target charging protocol. The control circuit of the charging control device can judge whether the output voltage of the target power supply device meets the charging voltage of the electrical device according to the obtained charging requirement information of the electrical device. If the output voltage of the target power supply device meets the charging voltage of the electrical device, the control circuit can control the first port and the second port to conduct, and directly output the output voltage of the target power supply device to the electrical device. For example, it can control the voltage conversion module corresponding to the target power supply device to conduct directly. The target power supply device can be any one of the at least two power supply devices.
[0067] Furthermore, if the output voltage of the target power supply device does not meet the charging voltage of the electrical device, it can request the target power supply device to output a target voltage according to the power supply voltage range of the target power supply device. The control circuit can control the voltage conversion module to perform voltage conversion on the target voltage output by the target power supply device, and output a voltage signal with a voltage magnitude equal to the charging voltage to the electrical device. After the electrical device finishes charging, it can send an instruction to the charging control device to stop charging.
[0068] It should be noted that the charging control device in this embodiment can supply power to the electronic device at its maximum efficiency with a non-standard charger, thereby improving the user experience; moreover, through the charging control device, the memory of the electronic device can be expanded and the service life of the electronic device can be extended; the charging control device integrates the functions of power expansion and storage expansion, and power expansion and storage expansion can share modules such as the communication module, the power module, and the control circuit, reducing costs; the charging control device can also integrate functions such as audio and lighting to further improve the user experience.
[0069] In an embodiment of the present application, a first target charging protocol supported by the electrical device is obtained; a charging voltage of the electrical device is determined based on the first target charging protocol; voltages output by the at least two power supply devices are respectively adjusted to the charging voltage; and the adjusted voltages are output to the electrical device. In this way, the charging control device can serve as an intermediate communication device between the power supply device and the electrical device, so that for a non-standard charger, the non-standard charger can supply power to the electrical device through the charging control device, thereby improving the charging convenience; and can simultaneously supply power to the electrical device through multiple non-standard chargers, improving the charging efficiency.
[0070] Optionally, the step of respectively adjusting the voltages output by the at least two power supply devices to the charging voltage includes:
[0071] Second target charging protocols supported by the at least two power supply devices are respectively obtained;
[0072] Based on the second target charging protocol corresponding to each power supply device among the at least two power supply devices, a power supply voltage range of each power supply device is determined;
[0073] If the charging voltage of the electrical device is not within the power supply voltage range of the target power supply device, a first request message is sent to the target power supply device, where the first request message is used to request the target power supply device to adjust the output voltage to a target voltage, and the target voltage is the voltage with the smallest absolute value of the difference from the charging voltage within the power supply voltage range, and the target power supply device is any one of the at least two power supply devices;
[0074] The target voltage output by the target power supply device is adjusted to the charging voltage.
[0075] Among them, communication can be carried out with the target power supply device respectively based on multiple pre-stored charging protocols to determine the second target charging protocol supported by the target power supply device.
[0076] It should be noted that after receiving the output voltage of the target power supply device through the second port, the charging control device can start the control circuit, initiate a communication handshake with the target power supply device through the second communication module, and output a default voltage from the first port. The default voltage can be 3.5V, 4.5V, or 5V, etc. The charging control device can pre-store multiple charging protocols, for example, charging protocol 1, charging protocol 2, and charging protocol 3. The charging control device can carry out communication with the target power supply device respectively based on the multiple pre-stored charging protocols to determine the second target charging protocol supported by the target power supply device.
[0077] Exemplarily, the charging control device may communicate with the target power supply device based on charging protocol 1. If the communication based on charging protocol 1 is successful, the second target charging protocol supported by the target power supply device may be recorded as charging protocol 1. If the communication based on charging protocol 1 fails, the charging control device may communicate with the target power supply device based on charging protocol 2. If the communication based on charging protocol 2 is successful, the second target charging protocol supported by the target power supply device may be recorded as charging protocol 2. If the communication based on charging protocol 2 fails, the charging control device may communicate with the target power supply device based on charging protocol 3. If the communication based on charging protocol 3 is successful, the second target charging protocol supported by the target power supply device may be recorded as charging protocol 3.
[0078] In addition, to maximize the conversion efficiency of the voltage conversion module, the target voltage is the voltage with the smallest absolute value of the difference between the charging voltage and the voltage within the power supply voltage range of the target power supply device. For example, if the power supply voltage range of the target power supply device is from 5V to 12V and the charging voltage is 15V, the target voltage may be 12V.
[0079] In this embodiment, if the charging voltage of the electrical device is not within the power supply voltage range, a first request message is sent to the target power supply device, and the first request message is used to request the target power supply device to adjust the output voltage to the target voltage. In this way, for a charger whose power supply voltage range does not include the charging voltage required by the electrical device, the charging control device can also charge the electrical device, thereby further improving the charging convenience.
[0080] Optionally, after respectively obtaining the second target charging protocols supported by the at least two power supply devices, the method further includes:
[0081] If the charging voltage of the electrical device is within the power supply voltage range of the target power supply device, a second request message is sent to the target power supply device, and the second request message is used to request the target power supply device to adjust the output voltage to the charging voltage.
[0082] Among them, the second request message may be sent to the target power supply device when the default voltage output by the target power supply device is not the charging voltage and the charging voltage of the electrical device is within the power supply voltage range of the target power supply device.
[0083] Taking the power supply voltage range of the target power supply device as 5V to 12V and the charging voltage as 9V as an example, the charging control device can send a second request message to the target power supply device through the second port, requesting the target power supply device to adjust the output voltage to 9V. The charging control device receives a voltage signal with a voltage magnitude of 9V output by the target power supply device at the second port, and outputs a voltage signal with a voltage magnitude of 9V to the electrical device at the first port to charge the electrical device.
[0084] In this embodiment, if the charging voltage of the electrical device is within the power supply voltage range, a second request message is sent to the target power supply device, and the second request message is used to request the target power supply device to adjust the output voltage to the charging voltage. In this way, for a charger whose default output voltage does not meet the charging voltage required by the electrical device, the charging control device can also charge the electrical device, thereby further improving the charging convenience.
[0085] Optionally, the method further includes:
[0086] When it is detected that the charging control device is disconnected from all the at least two power supply devices, a third request message is sent to the electrical device, and the third request message is used to request the electrical device to supply power to the charging control device.
[0087] Among them, the charging control device can monitor the connection status with the power supply device in real time. If it is detected that the second port is disconnected from all the at least two power supply devices, an OTG communication instruction can be sent to the electrical device to request the electrical device to supply power to the charging control device through OTG.
[0088] In practical applications, when the charging control device is not connected to the power supply device and is connected to the electrical device, the power module of the charging control device supplies power to the control circuit, and the control circuit sends an OTG communication instruction to the electrical device; after receiving the OTG communication instruction, the electrical device turns on the power supply switch and supplies power to the charging control device through the first port. The charging control device can initiate a storage handshake communication with the electrical device and wait for the electrical device to store information or read information.
[0089] In this embodiment, when it is detected that the charging control device is disconnected from all the at least two power supply devices, a third request message is sent to the electrical device. In this way, the charging control device can activate the OTG function of the electrical device, so that the charging control device can perform storage communication with the electrical device, thereby expanding the memory of the electrical device.
[0090] Optionally, after sending the third request message to the electrical device, the method further includes:
[0091] Receiving a fourth request message sent by the electrical device based on a storage protocol, where the fourth request message is used to request reading information to be read stored in the charging control device or storing information to be stored of the electrical device into the charging control device;
[0092] In response to the fourth request message, sending the information to be read to the electrical device, or storing the information to be stored.
[0093] In this embodiment, communication is performed with the electrical device according to a storage communication protocol, and the fourth request message sent by the electrical device is received. In response to the fourth request message, the information to be read is sent to the electrical device, or the information to be stored is stored. In this way, the charging control device can implement a storage function. When the charging control device is connected to the electrical device, the memory space of the electrical device can be expanded, and the memory of the electrical device can be increased.
[0094] It should be noted that for the charging control method provided in the embodiments of the present application, the execution subject may be a charging control device, or a control circuit in the charging control device for executing the charging control method. In the embodiments of the present application, the example of the charging control device executing the charging control method is used to illustrate the charging control device provided in the embodiments of the present application.
[0095] See Figure 4 , Figure 4 which is the third schematic structural diagram of a charging control device provided in the embodiments of the present application. The charging control device is respectively connected to an electrical device and at least two power supply devices. As Figure 4 shown, the charging control device 200 further includes:
[0096] An obtaining module 201, configured to obtain a first target charging protocol supported by the electrical device;
[0097] A determining module 202, configured to determine the charging voltage of the electrical device based on the first target charging protocol;
[0098] An adjusting module 203, configured to adjust the voltages output by the at least two power supply devices to the charging voltage respectively;
[0099] An output module 204, configured to output the adjusted voltage to the electrical device.
[0100] In the embodiment of the present application, the obtaining module obtains the first target charging protocol supported by the electrical device; the determining module determines the charging voltage of the electrical device based on the first target charging protocol; the adjusting module adjusts the voltages output by the at least two power supply devices to the charging voltage respectively; the output module outputs the adjusted voltage to the electrical device. In this way, the charging control device can serve as an intermediate communication device between the power supply device and the electrical device, so that for a non-standard charger, the non-standard charger can supply power to the electrical device through the charging control device, thereby improving the charging convenience; and can simultaneously supply power to the electrical device through multiple non-standard chargers, improving the charging efficiency.
[0101] Optionally, the adjusting module 203 is specifically configured to:
[0102] Obtain the second target charging protocols supported by the at least two power supply devices respectively;
[0103] Determine the power supply voltage range of each power supply device based on the second target charging protocol corresponding to each power supply device among the at least two power supply devices;
[0104] If the charging voltage of the electrical device is not within the power supply voltage range of the target power supply device, send a first request message to the target power supply device, where the first request message is used to request the target power supply device to adjust the output voltage to the target voltage, and the target voltage is the voltage with the smallest absolute value of the difference from the charging voltage within the power supply voltage range, and the target power supply device is any one of the at least two power supply devices;
[0105] Adjust the target voltage output by the target power supply device to the charging voltage.
[0106] Optionally, the adjusting module 203 is specifically further configured to:
[0107] If the charging voltage of the electrical device is within the power supply voltage range of the target power supply device, send a second request message to the target power supply device, where the second request message is used to request the target power supply device to adjust the output voltage to the charging voltage.
[0108] Optionally, as Figure 5 shown, the device 200 further includes:
[0109] A sending module 205, configured to send a third request message to the electrical device when it is detected that the charging control device is disconnected from all the at least two power supply devices, where the third request message is used to request the electrical device to supply power to the charging control device.
[0110] Optionally, asFigure 6 As shown, the device 200 further includes:
[0111] A receiving module 206, configured to receive fourth request information sent by the electrical device based on a storage protocol, where the fourth request information is used to request to read the information to be read stored in the charging control device or store the information to be stored of the electrical device in the charging control device;
[0112] A processing module 207, configured to, in response to the fourth request message, send the information to be read to the electrical device, or store the information to be stored.
[0113] The charging control device provided in the embodiments of the present application can implement Figure 3 each process implemented by the method embodiments. To avoid repetition, details are not described herein again.
[0114] Optionally, as Figure 7 shown, the embodiments of the present application further provide an electronic device 300, including a processor 301, a memory 302, a program or instruction stored on the memory 302 and executable on the processor 301. When the program or instruction is executed by the processor 301, each process of the above-mentioned charging control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not described herein again.
[0115] The embodiments of the present application further provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned charging control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not described herein again.
[0116] Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.
[0117] The embodiments of the present application further provide a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement each process of the above-mentioned charging control method embodiment, and the same technical effect can be achieved. To avoid repetition, details are not described herein again.
[0118] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system chip, a chip system, or a system-on-chip, etc.
[0119] It should be noted that in this text, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or apparatus comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or apparatus. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0120] From the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on this understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present application.
[0121] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.
Claims
1. A charging control device, characterized in that, the charging control device includes a control circuit, a storage module, a first port, at least two second ports, and a voltage conversion module corresponding to each of the second ports; each of the voltage conversion modules is connected to the first port, and each of the voltage conversion modules is connected to the corresponding second port; the first port is used to connect to an electrical device, and each of the second ports is used to connect to different power supply devices; the storage module is used to store multiple charging protocols; the control circuit is respectively connected to the first port, each of the second ports, and the storage module, and is used to identify a first target charging protocol supported by the electrical device, and the first target charging protocol is one of the multiple charging protocols; wherein, under the action of the control circuit, each of the voltage conversion modules is used to adjust the voltage output by the power supply device connected to the corresponding second port to the charging voltage corresponding to the first target charging protocol, and output it to the electrical device; for a target power supply device that cannot provide the charging voltage corresponding to the first target charging protocol, the charging control device communicates with the target power supply device based on a second charging protocol supported by the target power supply device, and requests the target power supply device to output a target voltage, where the target voltage is the absolute value of the difference between the charging voltage and the voltage within the power supply voltage range of the target power supply device, and the target power supply device is any one of at least two power supply devices, and the target voltage output by the target power supply device is adjusted to the charging voltage through the voltage conversion module corresponding to the target power supply device; the charging control device further includes a power supply module, and the power supply module is connected to the control circuit; the power supply module is used to supply power to the control circuit; the control circuit is further used to send a request message requesting the electrical device to supply power to the charging control device when the power supply module supplies power to the control circuit.
2. A charging control method, characterized in that, applied to a charging control device, the charging control device is respectively connected to an electrical device and at least two power supply devices, and the method includes: obtaining a first target charging protocol supported by the electrical device; determining the charging voltage of the electrical device based on the first target charging protocol; respectively adjusting the voltages output by the at least two power supply devices to the charging voltage; outputting the adjusted voltage to the electrical device; the respectively adjusting the voltages output by the at least two power supply devices to the charging voltage includes: respectively obtaining second target charging protocols supported by the at least two power supply devices; determining the power supply voltage range of each of the at least two power supply devices based on the second target charging protocol corresponding to each power supply device; If the charging voltage of the electrical device is not within the power supply voltage range of the target power supply device, a first request message is sent to the target power supply device, where the first request message is used to request the target power supply device to adjust the output voltage to a target voltage, and the target voltage is the voltage with the smallest absolute value of the difference between the charging voltage and the power supply voltage range, and the target power supply device is any one of the at least two power supply devices; Adjust the target voltage output by the target power supply device to the charging voltage; The method further includes: When it is detected that the charging control device is disconnected from all of the at least two power supply devices, a third request message is sent to the electrical device, where the third request message is used to request the electrical device to supply power to the charging control device.
3. The method according to claim 2, wherein, after respectively obtaining the second target charging protocols supported by the at least two power supply devices, the method further includes: If the charging voltage of the electrical device is within the power supply voltage range of the target power supply device, a second request message is sent to the target power supply device, where the second request message is used to request the target power supply device to adjust the output voltage to the charging voltage.
4. The method according to claim 2, wherein, after sending the third request message to the electrical device, the method further includes: Receiving a fourth request message sent by the electrical device based on the storage protocol, where the fourth request message is used to request to read the information to be read stored in the charging control device or store the information to be stored of the electrical device in the charging control device; In response to the fourth request message, sending the information to be read to the electrical device, or storing the information to be stored.
5. A charging control device, wherein, The charging control device is respectively connected to an electrical device and at least two power supply devices, and the device includes: An acquisition module, configured to acquire a first target charging protocol supported by the electrical device; A determination module, configured to determine the charging voltage of the electrical device based on the first target charging protocol; An adjustment module, configured to respectively adjust the voltages output by the at least two power supply devices to the charging voltage; An output module, configured to output the adjusted voltage to the electrical device; The adjustment module is specifically configured to: Respectively obtain second target charging protocols supported by the at least two power supply devices; Determine the power supply voltage range of each of the at least two power supply devices based on the second target charging protocol corresponding to each power supply device; If the charging voltage of the electrical device is not within the power supply voltage range of the target power supply device, a first request message is sent to the target power supply device, where the first request message is used to request the target power supply device to adjust the output voltage to a target voltage, and the target voltage is the voltage with the smallest absolute value of the difference between the charging voltage and the power supply voltage range, and the target power supply device is any one of the at least two power supply devices; Adjust the target voltage output by the target power supply device to the charging voltage; The device further includes: A sending module, configured to send a third request message to the electrical device when it is detected that the charging control device is disconnected from all of the at least two power supply devices, where the third request message is used to request the electrical device to supply power to the charging control device.
6. The device according to claim 5, wherein, The adjustment module is specifically further configured to: If the charging voltage of the electrical device is within the power supply voltage range of the target power supply device, send a second request message to the target power supply device, where the second request message is used to request the target power supply device to adjust the output voltage to the charging voltage.
7. The device according to claim 5, wherein, The device further includes: A receiving module, configured to receive a fourth request message sent by the electrical device based on a storage protocol, where the fourth request message is used to request to read the information to be read stored in the charging control device or store the information to be stored of the electrical device in the charging control device; A processing module, configured to, in response to the fourth request message, send the information to be read to the electrical device, or store the information to be stored.
Citation Information
Patent Citations
Apparatus and method for a mobile router to receive power from a plurality of power supplies
CN106575874A
Charging converter and charging method
CN108390430A