Intelligent identification and current distribution method and system for USB charger
By identifying the total charging power of the USB charger and the power required by the device, setting priority and power maintenance time, and analyzing the power maintenance time, the problem that the USB charger cannot effectively control the current allocation time is solved, and the reasonable allocation of device priority and charging speed is achieved.
Patent Information
- Application Number
- CN202411446675.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2044-10-16
AI Technical Summary
When charging multiple mobile phone devices, existing USB chargers cannot effectively control the current allocation time, resulting in the charging time being unpredictable.
By identifying the total charging power of the USB charger and the power required by the mobile phone device, setting the device priority and power maintenance time, analyzing the power maintenance time, and using the device priority and power maintenance time to distribute the current, ensuring that the charging amount and speed during slow charging at night and fast charging at daytime is similar.
The control of the current distribution time is realized to ensure that devices with relatively low power are preferred to charge, the total amount of slow charging at night is similar, and the speed of fast charging during daytime is similar, solving the problem of unpredictable charging time.
Smart Images

Figure CN118971297B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of USB chargers, and in particular to a method and system for intelligent identification and current distribution of a USB charger. Background Art
[0002] USB chargers are divided into single-port chargers and multi-port chargers. Multi-port chargers refer to chargers with multiple USB ports that can connect to multiple mobile devices. If the power of the USB charger is not enough to charge multiple high-power mobile devices, these multiple mobile devices need to be charged concurrently and alternately. At this time, the charging time and charging current for each mobile device need to be correctly allocated.
[0003] At present, there are patents in the prior art that can realize the current distribution of chargers for multiple mobile devices. For example, the patent application with publication number CN104158257B, entitled Inductive Current and USB Dual-Mode Charging Control Circuit and Implementation Method, relates to an inductive current USB dual-mode charging control circuit and implementation method. The main circuit is composed of a microprocessor, a current sensing circuit and a USB control circuit. The microprocessor adopts IDT_P9035A_DST. The current sensing circuit is composed of an operational amplifier AZV831, a transistor Q1 and a resistor and capacitor element; the USB control circuit is composed of an output voltage regulator chip UP7534GMA5-15, a thyristor Q3, and a USB interface. When the wireless charger circuit is charging, the voltage between pins 3 and 4 of the operational amplifier AZV831 is lower than the voltage between pins 3 and 4 of the operational amplifier AZV831. When the wireless charger circuit is not charging, the microprocessor IDT_P9035A_DST calculates the remaining current state based on the real-time changes in the voltage of the ISNS pin and distributes the power. Using a power adapter with a limited output current of 1.8A, while ensuring normal wireless charging, the excess available current is calculated and used to charge the mobile phone through a wired USB port. However, this application does not control the duration of the current distribution, resulting in unpredictable charging time for mobile devices in actual use. Therefore, a solution that can control the duration of the current distribution is urgently needed. Summary of the Invention
[0004] In order to solve the above problems, the present invention provides a method and system for intelligent identification and current distribution of a USB charger, which can control the current distribution duration.
[0005] In a first aspect, the present invention provides a method for intelligent identification and current distribution of a USB charger, comprising:
[0006] Identify the total charging power of the USB charger, identify the current power requirement of the current mobile phone device and the planned power requirement of the planned mobile phone device, and query the current access time of the current mobile phone device to the USB charger and the planned access time of the planned mobile phone device to the USB charger;
[0007] When the current required power is not greater than the total charging power, in a first access period between the current access time and the planned access time, performing a first current allocation on the current mobile device using the current required power to obtain a first allocated current;
[0008] During a second access period from the current access time to the planned access time, when the remaining charging power in the total charging power excluding the current required power is not less than the planned required power, a second current distribution is performed between the current mobile phone device and the planned mobile phone device using the current required power and the planned required power to obtain a second distributed current;
[0009] When the remaining charging power in the total charging power excluding the current required power is less than the planned required power, setting the device priority of the current mobile device and the planned mobile device, analyzing the duration of the power maintenance of the current mobile device during the first access time period, and determining whether the current access time does not fall within the nighttime charging time period and whether the planned access time falls within the nighttime charging time period;
[0010] When the current access time and the planned access time both belong to the nighttime charging period, a third current allocation is performed on the current mobile phone device and the planned mobile phone device using the device priority and the power maintenance time to obtain a third allocated current.
[0011] In a possible implementation of the first aspect, performing a first current distribution on the current mobile device using the current required power to obtain a first distributed current includes:
[0012] Query the constant voltage of the USB charger;
[0013] The ratio of the current required power to the constant voltage is calculated to obtain the first distributed current.
[0014] In a possible implementation of the first aspect, performing a second current distribution on the current mobile device and the planned mobile device based on the current required power and the planned required power to obtain a second distributed current includes:
[0015] Obtaining a first allocated current of the current mobile phone device;
[0016] Query the constant voltage of the USB charger;
[0017] Calculating the ratio of the planned required power to the constant voltage to obtain the allocated current of the planned mobile phone device;
[0018] The first distributed current and the distributed current of the planned mobile phone device are used as the second distributed current.
[0019] In a possible implementation of the first aspect, setting the device priority between the current mobile device and the planned mobile device includes:
[0020] During the first access period, setting the priority of the current mobile device to be higher than the first device priority of the planned mobile device;
[0021] During the second access period, calculating the current remaining power of the current mobile device at the planned access time;
[0022] Detecting the planned remaining power of the planned mobile phone device;
[0023] When the current remaining power is higher than the planned remaining power, setting the priority of the current mobile phone device to be lower than the second device priority of the planned mobile phone device;
[0024] When the current remaining power is lower than the planned remaining power, the priority of the current mobile phone device is set to be higher than the first device priority of the planned mobile phone device.
[0025] In a possible implementation of the first aspect, analyzing a duration of battery life of the current mobile device during the first access period includes:
[0026] During the first access period, calculating a first standard charging speed of the USB charger for the current mobile phone device;
[0027] Query the remaining power increase of the current mobile device between the current access time and the planned access time;
[0028] converting the remaining power increase into a remaining power increase;
[0029] Calculating a charging speed of the current mobile phone device using the remaining power increase;
[0030] When the charging speed of the mobile phone is not less than the first standard charging speed, determining a first power maintenance time of the current mobile phone device;
[0031] When the charging speed of the mobile phone is lower than the first standard charging speed, calculating a first speed difference between the first standard charging speed and the charging speed of the mobile phone;
[0032] Query the unit remaining power of the current mobile phone device;
[0033] When there is no low-current connection between the USB charger and the current mobile phone device, calculating a ratio of the unit residual power to the first speed difference to obtain a second power maintenance time of the current mobile phone device;
[0034] Calculating a second standard charging speed of the USB charger when a low current connection is established between the USB charger and the current mobile phone device;
[0035] When the second standard charging speed is not less than the first speed difference, determining a third power maintenance time of the current mobile phone device;
[0036] When the second standard charging speed is less than the first speed difference, calculating a second speed difference between the charging speed difference and the second standard charging speed;
[0037] The ratio of the unit residual power to the second speed difference is calculated to obtain a fourth power maintenance time of the current mobile phone device.
[0038] In a possible implementation of the first aspect, performing a third current distribution on the current mobile device and the planned mobile device by using the device priority and the power maintenance duration to obtain a third distributed current includes:
[0039] Obtaining a first device priority and a second device priority in the device priorities;
[0040] Obtaining a first power maintenance duration, a second power maintenance duration, a third power maintenance duration, and a fourth power maintenance duration from the power maintenance duration;
[0041] Based on the first device priority, using the first power maintenance time, perform a first current distribution on the current mobile device within the first access period to obtain a first current distribution result;
[0042] At the planned access moment, detecting whether the device priority of the current mobile device and the planned mobile device is the first device priority;
[0043] When the device priority of the current mobile device and the planned mobile device is not the first device priority, constructing a power objective function of the current mobile device and the planned mobile device according to the second power maintenance time, the third power maintenance time, and the fourth power maintenance time;
[0044] Performing a second current distribution on the current mobile device and the planned mobile device using the power objective function to obtain a second current distribution result;
[0045] The first current distribution result and the second current distribution result are used as the third distributed current.
[0046] In a possible implementation of the first aspect, constructing a power objective function of the current mobile device and the planned mobile device based on the second power maintenance duration, the third power maintenance duration, and the fourth power maintenance duration includes:
[0047] According to the second power maintenance time, the third power maintenance time, and the fourth power maintenance time, the power target function of the current mobile device and the planned mobile device is constructed using the following formula:
[0048]
[0049] in, represents the power objective function, Indicates that the usage is less than the second power maintenance time The power objective function, Indicates that the usage is less than the third battery life The power objective function, Indicates that the usage is less than the fourth battery life The power objective function, Indicates the low connection current between the USB charger and the current mobile device, Indicates the total charging power In addition to the planned power requirements The charging current corresponding to the remaining charging power is Indicates that the charging time of the planned mobile device is the second power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the second power maintenance time To calculate the battery life of mobile devices, Indicates the planned charging times of the mobile device. Indicates the current charging times of the mobile device. Indicates that the charging time of the planned mobile device is the third power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the third power maintenance time To calculate the battery life of mobile devices, Indicates that the charging time of the planned mobile device is the fourth power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the fourth power maintenance time To calculate the battery life of mobile devices, Indicates the second standard charging speed, Indicates the first speed difference.
[0050] In a possible implementation of the first aspect, performing a fourth current distribution on the current mobile device and the planned mobile device by using the device priority and the power maintenance duration to obtain the fourth distributed current includes:
[0051] Obtaining a first device priority and a second device priority in the device priorities;
[0052] Obtaining a first power maintenance duration, a second power maintenance duration, a third power maintenance duration, and a fourth power maintenance duration from the power maintenance duration;
[0053] Based on the first device priority, using the first power maintenance time, perform a third current distribution for the current mobile device within the first access time period to obtain a third current distribution result;
[0054] At the planned access moment, detecting whether the device priority of the current mobile device and the planned mobile device is the first device priority;
[0055] When the device priority of the current mobile device and the planned mobile device is not the first device priority, constructing a speed objective function of the current mobile device and the planned mobile device according to the second power maintenance time, the third power maintenance time, and the fourth power maintenance time;
[0056] Performing a fourth current distribution on the current mobile device and the planned mobile device using the speed target function to obtain a fourth current distribution result;
[0057] The third current distribution result and the fourth current distribution result are used as the third distributed current.
[0058] In a possible implementation of the first aspect, constructing a speed target function of the current mobile device and the planned mobile device based on the second power maintenance duration, the third power maintenance duration, and the fourth power maintenance duration includes:
[0059] According to the second power maintenance time, the third power maintenance time, and the fourth power maintenance time, the speed objective function of the current mobile device and the planned mobile device is constructed using the following formula:
[0060]
[0061] Among them, represents the speed objective function, Indicates that the usage is less than the second power maintenance time The speed objective function, Indicates that the usage is less than the third battery life The speed objective function, Indicates that the usage is less than the fourth battery life The speed objective function, Indicates the low connection current between the USB charger and the current mobile device, Indicates the total charging power In addition to the planned power requirements The charging current corresponding to the remaining charging power is Indicates that the charging time of the planned mobile device is the second power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the second power maintenance time To calculate the battery life of mobile devices, Indicates the planned charging times of the mobile device. Indicates the current charging times of the mobile device. Indicates that the charging time of the planned mobile device is the third power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the third power maintenance time To calculate the battery life of mobile devices, Indicates that the charging time of the planned mobile device is the fourth power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the fourth power maintenance time To calculate the battery life of mobile devices, Indicates the second standard charging speed, Indicates the first speed difference.
[0062] In a second aspect, the present invention provides an intelligent identification and current distribution system for a USB charger, the system comprising:
[0063] a time query module for identifying the total charging power of the USB charger, identifying the current power requirement of the current mobile phone device and the planned power requirement of the planned mobile phone device, and respectively querying the current access time of the current mobile phone device to the USB charger and the planned access time of the planned mobile phone device to the USB charger;
[0064] A first allocation module is configured to, when the current required power is not greater than the total charging power, perform a first current allocation on the current mobile device using the current required power within a first access period between the current access time and the planned access time to obtain a first allocated current;
[0065] a second allocation module, configured to, during a second access period from the current access time to after the planned access time, perform a second current allocation on the current mobile device and the planned mobile device using the current required power and the planned required power when the remaining charging power in the total charging power excluding the current required power is not less than the planned required power, to obtain a second allocated current;
[0066] a time determination module, configured to, when the remaining charging power in the total charging power excluding the current required power is less than the planned required power, set a device priority between the current mobile device and the planned mobile device, analyze the duration of power retention of the current mobile device during the first access time period, and determine whether the current access time does not fall within the nighttime charging time period and whether the planned access time falls within the nighttime charging time period;
[0067] The third allocation module is used to use the device priority and the power maintenance time to perform a third current allocation on the current mobile phone device and the planned mobile phone device when the current access time and the planned access time both belong to the night charging period to obtain a third allocated current.
[0068] Compared with the existing technology, the technical principle and beneficial effects of this solution are:
[0069] The embodiment of the present invention sets a device priority between the current mobile device and the planned mobile device to prioritize charging the mobile device with relatively low battery. Furthermore, the embodiment of the present invention analyzes the battery life of the current mobile device during the first access period to analyze how long the current mobile device consumes power when it is not charging or is charging at a low current, thereby ensuring that the planned mobile device can be powered off when the current mobile device reaches its power consumption point and charge the current mobile device instead. Furthermore, the embodiment of the present invention uses the device priority and the battery life to perform a third current allocation between the current mobile device and the planned mobile device to ensure that the total charge amount of the current mobile device and the planned mobile device is similar when slow charging is possible at night. The embodiment of the present invention uses the device priority and the battery life to perform a fourth current allocation between the current mobile device and the planned mobile device to ensure that the charging speed of the current mobile device and the planned mobile device is similar when fast charging is urgently needed during the day. Therefore, the embodiment of the present invention provides a method and system for intelligent identification and current allocation of USB chargers, which can control the current allocation duration. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0071] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0072] Figure 1 A flowchart of a method for intelligent identification and current distribution of a USB charger provided by one embodiment of the present invention;
[0073] Figure 2 A schematic diagram of a module of an intelligent identification and current distribution system for a USB charger provided by one embodiment of the present invention. DETAILED DESCRIPTION
[0074] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0075] An embodiment of the present invention provides a method for intelligently identifying and distributing current for a USB charger. The method can be executed by at least one of a server, a terminal, or other electronic device capable of executing the method provided by the embodiment of the present invention. In other words, the method can be executed by software or hardware installed on a terminal or server device, where the software can be a blockchain platform. The server can include, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster. The server can be a standalone server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0076] See Figure 1 FIG. 1 is a flow chart of a method for intelligent identification and current distribution of a USB charger according to an embodiment of the present invention. Figure 1 The intelligent identification and current distribution method of the USB charger described in the specification includes:
[0077] S1. Identify the total charging power of the USB charger, identify the current required power of the current mobile phone device and the planned required power of the planned mobile phone device, and query the current access time of the current mobile phone device to the USB charger and the planned access time of the planned mobile phone device to the USB charger.
[0078] In an embodiment of the present invention, the current mobile phone device refers to a mobile phone device that is connected to the USB charger earlier than the time when the planned mobile phone device is connected to the USB charger, and the planned mobile phone device refers to a mobile phone device that is connected to the USB charger later than the time when the current mobile phone device is connected to the USB charger.
[0079] S2. When the current required power is not greater than the total charging power, during a first access period between the current access time and the planned access time, use the current required power to perform a first current distribution on the current mobile device to obtain a first distributed current.
[0080] In one embodiment of the present invention, the first current distribution of the current of the current mobile phone device using the current required power to obtain the first distributed current includes: querying the constant voltage of the USB charger; and calculating the ratio of the current required power to the constant voltage to obtain the first distributed current.
[0081] S3. During a second access period from the current access moment to the planned access moment, when the remaining charging power in the total charging power excluding the current required power is not less than the planned required power, a second current distribution is performed on the current mobile phone device and the planned mobile phone device using the current required power and the planned required power to obtain a second distributed current.
[0082] In one embodiment of the present invention, the second current distribution of the current mobile phone device and the planned mobile phone device is performed based on the current required power and the planned required power to obtain the second distributed current, including: obtaining the first distributed current of the current mobile phone device; querying the constant voltage of the USB charger; calculating the ratio of the planned required power to the constant voltage to obtain the distributed current of the planned mobile phone device; and using the first distributed current and the distributed current of the planned mobile phone device as the second distributed current.
[0083] S4. When the remaining charging power in the total charging power excluding the current required power is less than the planned required power, set the device priority of the current mobile phone device and the planned mobile phone device, analyze the duration of the power maintenance of the current mobile phone device during the first access time period, and determine whether the current access time does not belong to the night charging time period and whether the planned access time belongs to the night charging time period.
[0084] In the embodiment of the present invention, the device priorities of the current mobile phone device and the planned mobile phone device are set so as to give priority to charging the mobile phone device with relatively low power.
[0085] In one embodiment of the present invention, the setting of the device priority of the current mobile phone device and the planned mobile phone device includes: in the first access time period, setting the priority of the current mobile phone device higher than the first device priority of the planned mobile phone device; in the second access time period, calculating the current remaining power of the current mobile phone device at the planned access moment; detecting the planned remaining power of the planned mobile phone device; when the current remaining power is higher than the planned remaining power, setting the priority of the current mobile phone device lower than the second device priority of the planned mobile phone device; when the current remaining power is lower than the planned remaining power, setting the priority of the current mobile phone device higher than the first device priority of the planned mobile phone device.
[0086] Optionally, the process of calculating the current remaining power of the current mobile phone device at the planned access moment can be achieved by calculating the charging power of the current mobile phone device in the period before the planned access moment, determining the amount of power added to the original power of the current mobile phone device through the conversion relationship between power and power, and taking the sum of the original power and the increased power as the current remaining power of the current mobile phone device.
[0087] Furthermore, the embodiment of the present invention analyzes the duration of power maintenance of the current mobile phone device during the first access period to analyze how long the current mobile phone device will consume power when it is not charged or is charged at a low current, thereby ensuring that the planned mobile phone device can be powered off when the current mobile phone device reaches the power consumption time and charge the current mobile phone device instead.
[0088] In one embodiment of the present invention, the analysis of the duration of the battery life of the current mobile phone device during the first access period includes: calculating a first standard charging speed of the USB charger for the current mobile phone device during the first access period; querying the remaining battery increase of the current mobile phone device between the current access moment and the planned access moment; converting the remaining battery increase into a remaining power increase; calculating the charging speed of the current mobile phone device using the remaining power increase; determining the first battery life of the current mobile phone device when the charging speed of the mobile phone is not less than the first standard charging speed; calculating a first speed difference between the first standard charging speed and the charging speed of the mobile phone when the charging speed of the mobile phone is less than the first standard charging speed; querying the current mobile phone device. the unit residual power of the unit residual power of the device; when there is no low-current connection between the USB charger and the current mobile phone device, calculating the ratio of the unit residual power to the first speed difference to obtain the second power maintenance time of the current mobile phone device; calculating the second standard charging speed of the USB charger when there is a low-current connection between the USB charger and the current mobile phone device; when the second standard charging speed is not less than the first speed difference, determining the third power maintenance time of the current mobile phone device; when the second standard charging speed is less than the first speed difference, calculating the second speed difference between the charging speed difference and the second standard charging speed; calculating the ratio of the unit residual power to the second speed difference to obtain the fourth power maintenance time of the current mobile phone device.
[0089] Among them, the first standard charging speed refers to the speed at which the USB charger outputs power to the current mobile phone device per unit time, which is determined based on the constant voltage and current output by the USB charger to the current mobile phone device. The remaining power increase refers to the increase in the remaining current of the current mobile phone device. The mobile phone charging speed refers to the speed of power change per unit time. The first power maintenance time and the third power maintenance time both refer to infinite time.
[0090] Optionally, the process of converting the remaining power increase into the remaining power increase is achieved through a conversion relationship between mobile phone current and power.
[0091] It should be noted that when there is no low-current connection between the USB charger and the current mobile phone device, it means that the current mobile phone device and the USB charger are disconnected. If the current mobile phone device and the USB charger need to be connected again, a handshake between the current mobile phone device and the USB charger is required.
[0092] It should be noted that when there is a low-current connection between the USB charger and the current mobile phone device, the low current depends on the configuration of the USB charger. This low current is only used to keep the connection between the USB charger and the current mobile phone device from being disconnected, and there is no need to shake hands again.
[0093] S5. When the current access time and the planned access time both belong to the nighttime charging period, a third current allocation is performed on the current mobile phone device and the planned mobile phone device using the device priority and the power maintenance time to obtain a third allocated current.
[0094] In the embodiment of the present invention, the nighttime charging period is set to 12:00 PM to 6:00 AM, and may also be set according to actual conditions.
[0095] Furthermore, an embodiment of the present invention performs a third current distribution between the current mobile phone device and the planned mobile phone device by utilizing the device priority and the power maintenance time, so as to ensure that the total charging amount of the current mobile phone device and the planned mobile phone device is similar when slow charging is possible at night.
[0096] In one embodiment of the present invention, the third current distribution of the current of the current mobile device and the planned mobile device is performed using the device priority and the power maintenance time to obtain a third distributed current, including: obtaining the first device priority and the second device priority in the device priority; obtaining the first power maintenance time, the second power maintenance time, the third power maintenance time and the fourth power maintenance time in the power maintenance time; based on the first device priority, using the first power maintenance time to perform the first current distribution of the current mobile device in the first access time period to obtain a first current distribution result; at the planned access moment, detecting whether the device priority of the current mobile device and the planned mobile device is the first device priority; when the device priority of the current mobile device and the planned mobile device is not the first device priority, constructing the power target function of the current mobile device and the planned mobile device according to the second power maintenance time, the third power maintenance time and the fourth power maintenance time; using the power target function to perform the second current distribution of the current mobile device and the planned mobile device to obtain a second current distribution result; and using the first current distribution result and the second current distribution result as the third distributed current.
[0097] Optionally, the process of allocating the first current of the current mobile device within the first access period based on the first device priority and utilizing the first power maintenance time refers to giving priority to charging high-priority mobile devices, and maintaining the charging time within the period of the first power maintenance time.
[0098] Optionally, the process of using the power objective function to perform a second current distribution on the current mobile device and the planned mobile device to obtain the second current distribution result refers to obtaining the charging time corresponding to the minimum objective function value when the objective function is minimum, and controlling the current distribution time by the charging time. The current distribution principle is similar to the above-mentioned principle of using the current required power to perform the first current distribution on the current mobile device to obtain the first distributed current, and will not be further elaborated here.
[0099] In another embodiment of the present invention, constructing the power target function of the current mobile device and the planned mobile device according to the second power maintenance duration, the third power maintenance duration, and the fourth power maintenance duration includes: constructing the power target function of the current mobile device and the planned mobile device according to the second power maintenance duration, the third power maintenance duration, and the fourth power maintenance duration using the following formula:
[0100]
[0101] in, represents the power objective function, Indicates that the usage is less than the second power maintenance time The power objective function, Indicates that the usage is less than the third battery life The power objective function, Indicates that the usage is less than the fourth battery life The power objective function, Indicates the low connection current between the USB charger and the current mobile device, Indicates the total charging power In addition to the planned power requirements The charging current corresponding to the remaining charging power is Indicates that the charging time of the planned mobile device is the second power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the second power maintenance time To calculate the battery life of mobile devices, Indicates the planned charging times of the mobile device. Indicates the current charging times of the mobile device. Indicates that the charging time of the planned mobile device is the third power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the third power maintenance time To calculate the battery life of mobile devices, Indicates that the charging time of the planned mobile device is the fourth power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the fourth power maintenance time To calculate the battery life of mobile devices, Indicates the second standard charging speed, Indicates the first speed difference.
[0102] S6. When the current access time and the planned access time do not belong to the nighttime charging period, a fourth current distribution is performed on the current mobile phone device and the planned mobile phone device using the device priority and the power maintenance time to obtain a fourth distributed current.
[0103] The embodiment of the present invention performs a fourth current distribution between the current mobile phone device and the planned mobile phone device by utilizing the device priority and the power maintenance time, so as to ensure that the charging speed of the current mobile phone device and the planned mobile phone device is similar when fast charging is urgently needed during the day.
[0104] In one embodiment of the present invention, the fourth current distribution of the current of the current mobile device and the planned mobile device is performed using the device priority and the power maintenance time to obtain a fourth distributed current, including: obtaining the first device priority and the second device priority in the device priority; obtaining the first power maintenance time, the second power maintenance time, the third power maintenance time and the fourth power maintenance time in the power maintenance time; based on the first device priority, using the first power maintenance time to perform a third current distribution of the current mobile device in the first access time period to obtain a third current distribution result; at the planned access moment, detecting whether the device priority of the current mobile device and the planned mobile device is the first device priority; when the device priority of the current mobile device and the planned mobile device is not the first device priority, constructing a speed target function of the current mobile device and the planned mobile device according to the second power maintenance time, the third power maintenance time and the fourth power maintenance time; using the speed target function to perform a fourth current distribution on the current mobile device and the planned mobile device to obtain a fourth current distribution result; and using the third current distribution result and the fourth current distribution result as the third distributed current.
[0105] Optionally, the process of allocating the third current of the current mobile device within the first access period based on the first device priority and utilizing the first power maintenance time is similar to the principle of the aforementioned process of allocating the first current of the current mobile device within the first access period based on the first device priority and utilizing the first power maintenance time, and will not be further elaborated here.
[0106] In another embodiment of the present invention, constructing the speed target function of the current mobile device and the planned mobile device based on the second power maintenance duration, the third power maintenance duration, and the fourth power maintenance duration includes: constructing the speed target function of the current mobile device and the planned mobile device using the following formula based on the second power maintenance duration, the third power maintenance duration, and the fourth power maintenance duration:
[0107]
[0108] in, represents the speed objective function, Indicates that the usage is less than the second power maintenance time The speed objective function, Indicates that the usage is less than the third battery life The speed objective function, Indicates that the usage is less than the fourth battery life The speed objective function, Indicates the low connection current between the USB charger and the current mobile device, Indicates the total charging power In addition to the planned power requirements The charging current corresponding to the remaining charging power is Indicates that the charging time of the planned mobile device is the second power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the second power maintenance time To calculate the battery life of mobile devices, Indicates the planned charging times of the mobile device. Indicates the current charging times of the mobile device. Indicates that the charging time of the planned mobile device is the third power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the third power maintenance time To calculate the battery life of mobile devices, Indicates that the charging time of the planned mobile device is the fourth power maintenance time The total charging power at Indicates that the planning of mobile devices has ended After charging, the current mobile device is The total charging power under the charging time, Indicates that the charging time of the planned mobile phone device is the fourth power maintenance time To calculate the battery life of mobile devices, Indicates the second standard charging speed, Indicates the first speed difference.
[0109] Optionally, the process of using the speed target function to perform a fourth current distribution on the current mobile phone device and the planned mobile phone device to obtain the fourth current distribution result is similar to the principle of the aforementioned process of using the power target function to perform a second current distribution on the current mobile phone device and the planned mobile phone device to obtain the second current distribution result, and will not be further elaborated here.
[0110] As can be seen, the embodiment of the present invention sets the device priority of the current mobile device and the planned mobile device to prioritize charging the mobile device with relatively low power. Furthermore, the embodiment of the present invention analyzes the power maintenance time of the current mobile device during the first access period to analyze how long the current mobile device consumes power when it is not charging or maintaining low current, thereby ensuring that the planned mobile device can be powered off when the current mobile device reaches the power consumption point and charge the current mobile device instead. Furthermore, the embodiment of the present invention uses the device priority and the power maintenance time to perform a third current allocation between the current mobile device and the planned mobile device to ensure that the total charging amount of the current mobile device and the planned mobile device is similar when slow charging is allowed at night. The embodiment of the present invention uses the device priority and the power maintenance time to perform a fourth current allocation between the current mobile device and the planned mobile device to ensure that the charging speed of the current mobile device and the planned mobile device is similar when fast charging is urgently needed during the day. Therefore, the embodiment of the present invention proposes a method and system for intelligent identification and current allocation of USB chargers, which can control the current allocation time.
[0111] like Figure 2 FIG. 1 is a functional module diagram of the intelligent identification and current distribution system of the USB charger of the present invention.
[0112] The USB charger intelligent identification and current distribution system 200 described in the present invention can be installed in an electronic device. Depending on the functionality implemented, the system can include a time query module 201, a first distribution module 202, a second distribution module 203, a time determination module 204, and a third distribution module 205. A module, also referred to as a unit, is a series of computer program segments that can be executed by an electronic device processor and perform a fixed function. These are stored in the electronic device's memory.
[0113] In the embodiment of the present invention, the functions of each module / unit are as follows:
[0114] The time query module 201 is used to identify the total charging power of the USB charger, identify the current power requirement of the current mobile phone device and the planned power requirement of the planned mobile phone device, and query the current access time of the current mobile phone device to the USB charger and the planned access time of the planned mobile phone device to the USB charger;
[0115] The first allocation module 202 is configured to, when the current required power is not greater than the total charging power, perform a first current allocation on the current mobile device using the current required power within a first access period between the current access time and the planned access time to obtain a first allocated current;
[0116] The second allocation module 203 is configured to, during a second access period from the current access time to the planned access time, when the remaining charging power in the total charging power excluding the current required power is not less than the planned required power, perform a second current allocation between the current mobile device and the planned mobile device using the current required power and the planned required power to obtain a second allocated current;
[0117] The time determination module 204 is configured to, when the remaining charging power in the total charging power excluding the current required power is less than the planned required power, set the device priority of the current mobile device and the planned mobile device, analyze the duration of the power maintenance of the current mobile device during the first access time period, and determine whether the current access time does not fall within the nighttime charging time period and whether the planned access time falls within the nighttime charging time period;
[0118] The third allocation module 205 is used to perform a third current allocation on the current mobile device and the planned mobile device using the device priority and the power maintenance time when both the current access time and the planned access time belong to the night charging period to obtain a third allocated current.
[0119] In detail, the modules in the USB charger intelligent identification and current distribution system 200 according to the embodiment of the present invention are used in the same manner as above. Figure 1 The intelligent identification of the USB charger and the current distribution method described in the specification are the same technical means and can produce the same technical effects, so they will not be repeated here.
[0120] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.
[0121] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0122] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.
[0123] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0124] The foregoing description is intended only to provide specific embodiments of the present invention, which will enable those skilled in the art to understand and implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein, but is to be construed in the widest possible manner consistent with the principles and novel features disclosed herein.
Claims
1. A method for intelligent identification and current distribution of a USB charger, characterized in that: The method comprises: Identify the total charging power of the USB charger, identify the current power requirement of the current mobile phone device and the planned power requirement of the planned mobile phone device, and query the current access time of the current mobile phone device to the USB charger and the planned access time of the planned mobile phone device to the USB charger; When the current required power is not greater than the total charging power, in a first access period between the current access time and the planned access time, a first current allocation is performed on the current mobile device using the current required power to obtain a first allocated current; During a second access period from the current access time to the planned access time, when the remaining charging power in the total charging power excluding the current required power is not less than the planned required power, a second current distribution is performed between the current mobile phone device and the planned mobile phone device using the current required power and the planned required power to obtain a second distributed current; When the remaining charging power in the total charging power excluding the current required power is less than the planned required power, setting the device priority of the current mobile device and the planned mobile device, analyzing the duration of the power maintenance of the current mobile device during the first access time period, and determining whether the current access time does not fall within the nighttime charging time period and whether the planned access time falls within the nighttime charging time period; When the current access time and the planned access time both fall within the nighttime charging period, a third current allocation is performed on the current mobile device and the planned mobile device using the device priority and the power maintenance duration to obtain a third allocated current, including: Obtaining a first device priority and a second device priority in the device priorities; Obtaining a first power maintenance duration, a second power maintenance duration, a third power maintenance duration, and a fourth power maintenance duration from the power maintenance duration; Based on the first device priority, using the first power maintenance time, perform a first current distribution on the current mobile device within the first access period to obtain a first current distribution result; At the planned access moment, detecting whether the device priority of the current mobile device and the planned mobile device is the first device priority; When the device priority of the current mobile device and the planned mobile device is not the first device priority, constructing a power objective function of the current mobile device and the planned mobile device according to the second power maintenance time, the third power maintenance time, and the fourth power maintenance time; Performing a second current distribution on the current mobile device and the planned mobile device using the power objective function to obtain a second current distribution result; The first current distribution result and the second current distribution result are used as the third distributed current.
2. The method according to claim 1, characterized in that The first current distribution for the current mobile device using the current required power to obtain a first distributed current includes: Query the constant voltage of the USB charger; The ratio of the current required power to the constant voltage is calculated to obtain the first distributed current.
3. The method according to claim 1, characterized in that The second current distribution between the current mobile device and the planned mobile device according to the current required power and the planned required power to obtain a second distributed current includes: Obtaining a first allocated current of the current mobile phone device; Query the constant voltage of the USB charger; Calculating the ratio of the planned required power to the constant voltage to obtain the allocated current of the planned mobile phone device; The first distributed current and the distributed current of the planned mobile phone device are used as the second distributed current.
4. The method according to claim 1, wherein The setting of the device priority between the current mobile device and the planned mobile device includes: During the first access period, setting the priority of the current mobile device to be higher than the first device priority of the planned mobile device; During the second access period, calculating the current remaining power of the current mobile device at the planned access time; Detecting the planned remaining power of the planned mobile phone device; When the current remaining power is higher than the planned remaining power, setting the priority of the current mobile phone device to be lower than the second device priority of the planned mobile phone device; When the current remaining power is lower than the planned remaining power, the priority of the current mobile phone device is set to be higher than the first device priority of the planned mobile phone device.
5. The method according to claim 1, wherein The analyzing the duration of battery life of the current mobile phone device during the first access period includes: During the first access period, calculating a first standard charging speed of the USB charger for the current mobile phone device; Query the remaining power increase of the current mobile device between the current access time and the planned access time; converting the remaining power increase into a remaining power increase; Calculating a charging speed of the current mobile phone device using the remaining power increase; When the charging speed of the mobile phone is not less than the first standard charging speed, determining a first power maintenance time of the current mobile phone device; When the charging speed of the mobile phone is lower than the first standard charging speed, calculating a first speed difference between the first standard charging speed and the charging speed of the mobile phone; Query the unit remaining power of the current mobile phone device; When there is no low-current connection between the USB charger and the current mobile phone device, calculating a ratio of the unit residual power to the first speed difference to obtain a second power maintenance time of the current mobile phone device; Calculating a second standard charging speed of the USB charger when a low current connection is established between the USB charger and the current mobile phone device; When the second standard charging speed is not less than the first speed difference, determining a third power maintenance time of the current mobile phone device; When the second standard charging speed is less than the first speed difference, calculating a second speed difference between the first speed difference and the second standard charging speed; The ratio of the unit residual power to the second speed difference is calculated to obtain a fourth power maintenance time of the current mobile phone device.
6. The method according to claim 1, characterized in that When neither the current access time nor the planned access time falls within the nighttime charging period, a fourth current allocation is performed on the current mobile device and the planned mobile device using the device priority and the power maintenance duration to obtain a fourth allocated current, including: Obtaining a first device priority and a second device priority in the device priorities; Obtaining a first power maintenance duration, a second power maintenance duration, a third power maintenance duration, and a fourth power maintenance duration from the power maintenance duration; Based on the first device priority, using the first power maintenance time, perform a third current distribution for the current mobile device within the first access time period to obtain a third current distribution result; At the planned access moment, detecting whether the device priority of the current mobile device and the planned mobile device is the first device priority; When the device priority of the current mobile device and the planned mobile device is not the first device priority, constructing a speed objective function of the current mobile device and the planned mobile device according to the second power maintenance time, the third power maintenance time, and the fourth power maintenance time; Performing a fourth current distribution on the current mobile device and the planned mobile device using the speed target function to obtain a fourth current distribution result; The third current distribution result and the fourth current distribution result are used as the fourth distributed current.
7. An intelligent identification and current distribution system for a USB charger, characterized in that: The system comprises: a time query module for identifying the total charging power of the USB charger, identifying the current power requirement of the current mobile phone device and the planned power requirement of the planned mobile phone device, and respectively querying the current access time of the current mobile phone device to the USB charger and the planned access time of the planned mobile phone device to the USB charger; A first allocation module is configured to, when the current required power is not greater than the total charging power, perform a first current allocation on the current mobile device using the current required power within a first access period between the current access time and the planned access time to obtain a first allocated current; a second allocation module, configured to, during a second access period from the current access time to after the planned access time, perform a second current allocation on the current mobile device and the planned mobile device using the current required power and the planned required power when the remaining charging power in the total charging power excluding the current required power is not less than the planned required power, to obtain a second allocated current; a time determination module, configured to, when the remaining charging power in the total charging power excluding the current required power is less than the planned required power, set a device priority between the current mobile device and the planned mobile device, analyze the duration of power retention of the current mobile device during the first access time period, and determine whether the current access time does not fall within the nighttime charging time period and whether the planned access time falls within the nighttime charging time period; A third allocation module is configured to, when both the current access time and the planned access time fall within the nighttime charging period, perform a third current allocation on the current mobile device and the planned mobile device using the device priority and the power maintenance duration to obtain a third allocated current, including: Obtaining a first device priority and a second device priority in the device priorities; Obtaining a first power maintenance duration, a second power maintenance duration, a third power maintenance duration, and a fourth power maintenance duration from the power maintenance duration; Based on the first device priority, using the first power maintenance time, perform a first current distribution on the current mobile device within the first access period to obtain a first current distribution result; At the planned access moment, detecting whether the device priority of the current mobile device and the planned mobile device is the first device priority; When the device priority of the current mobile device and the planned mobile device is not the first device priority, constructing a power objective function of the current mobile device and the planned mobile device according to the second power maintenance time, the third power maintenance time, and the fourth power maintenance time; Performing a second current distribution on the current mobile device and the planned mobile device using the power objective function to obtain a second current distribution result; The first current distribution result and the second current distribution result are used as the third distributed current.
Citation Information
Patent Citations
Inductive current and USB dual-mode charging control circuit and realization method
CN104158257B
Battery power guaranteeing method and battery power guaranteeing apparatus for portable electronic product, and mobile terminal
CN103199310A
Charging method and device, storage medium and charging system
CN115416530A
Power capacity distribution system for charging stations and control method thereof
WO2017148182A1
KR20230116104A