An intelligent charging method based on an extensible charging cabinet and a storage medium
Patent Information
- Application Number
- CN202210620326.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-02
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2042-06-02
AI Technical Summary
[0007]本发明提供一种基于可扩展充电柜的智能充电方法及存储介质,解决了现有的充电宝装置可接入的充电宝数量固定无法兼容不同人流量的区域,且成本较高、功耗较高的技术问题
[0007]本发明提供一种基于可扩展充电柜的智能充电方法及存储介质,解决了现有的充电宝装置可接入的充电宝数量固定无法兼容不同人流量的区域,且成本较高、功耗较高的技术问题。
Smart Images

Figure CN115001084B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent charging technology, and in particular to an intelligent charging method and storage medium based on an expandable charging cabinet. Background Technology
[0002] With the development of technology and the popularization of electronic smart devices, more and more smart and portable mobile devices have become indispensable items in people's daily lives, such as smartwatches, Bluetooth headsets, tablets, smartphones, and e-readers. These smart devices often have limited battery capacity and consume a lot of power. When going out, it is necessary to temporarily charge these devices. Personal power banks are inconvenient to carry, so shared power banks have emerged.
[0003] Existing shared power bank devices are generally integrated cabinets with multiple power banks, with a fixed number of power banks and a fixed number of charging ports on the cabinet. In order to charge the multiple power banks on the cabinet, a high-power power module built into the cabinet or an external power adapter is usually used to increase the input power to meet the charging needs of the multiple power banks on the cabinet.
[0004] However, the following technical problems exist:
[0005] (1) The power bank interface on the power bank device is fixed, and the number of power banks that can be connected is fixed. However, due to the difference in the flow of people in different areas, the number of power banks that can be connected cannot be compatible with different areas. In areas with a large flow of people, the number of power banks that can be connected in the shared power bank cabinet cannot meet the needs of users; in areas with a small flow of people, the power banks that can be connected in the shared power bank cabinet are idle and wasted.
[0006] (2) Existing power bank devices are equipped with high-power power modules or external power adapters, which not only have high production costs, but also high power consumption and are relatively power-consuming. Summary of the Invention
[0007] This invention provides an intelligent charging method and storage medium based on an expandable charging cabinet, which solves the technical problems of existing power bank devices having a fixed number of power banks that can be connected, making them incompatible with areas with different traffic volumes, and having high costs and high power consumption.
[0008] To address the above technical problems, this invention provides an intelligent charging method based on an expandable charging cabinet, comprising the following steps:
[0009] S1. When a power bank to be connected is detected, obtain the connection information of the power bank to be connected;
[0010] S2. Iterate through the charging information of all connected power banks and calculate the total power consumption.
[0011] S3. Calculate the current redundant power based on the occupied power and available power;
[0012] S4. Execute a preset charging strategy based on the current redundant power and the information to be connected.
[0013] This basic solution, combined with the actual application environment, designs an access control scheme for expanding power banks. When a power bank to be connected is detected, it is not charged immediately. Instead, the current redundant power of the charging cabinet is calculated, and the power is adaptively allocated according to the preset charging strategy and the current redundant power. Then, power is supplied to the power bank to be connected. In this way, the limited charging power can meet the charging needs of multiple power banks that need to be connected, thereby realizing the scalability of the charging cabinet to adapt to the flow of people in different areas.
[0014] In a further embodiment, step S1 includes:
[0015] When a scalable charging layer access signal is received from the communication interface, it is determined that a power bank to be accessed has been detected, and the access information of each power bank on the scalable charging layer is obtained.
[0016] Alternatively, when a power bank return signal is received, it is determined that a power bank to be connected has been detected, and the connection information of the power bank to be connected is obtained.
[0017] The information to be accessed includes the current battery level, the interface number, and the communication node for accessing the main controller.
[0018] Based on the actual impact of pedestrian flow, this solution designs and configures an expandable charging cabinet. The expandable charging layer that is connected and the returned power bank are uniformly defined as the power bank to be connected. After the main controller detects the power bank to be connected, it does not charge it immediately, but obtains the corresponding connection information. Then, it obtains the optimal charging solution according to the preset charging strategy, which can meet the charging needs of increased pedestrian flow and also ensure the user experience of the power bank.
[0019] In a further implementation, step S2 includes: traversing the charging information of all connected power banks, obtaining the charging power from the charging information, calculating the total power used by all connected power banks, and obtaining the total power used, calculated using the following formula:
[0020]
[0021] Where n is the total number of connected power banks, Wn is the total power used, and Wi is the charging power of the connected power banks.
[0022] In a further embodiment, in step S3, the current redundant power is the difference between the available power and the occupied power.
[0023] In a further embodiment, step S4 includes the following steps:
[0024] S41. Determine whether the current redundant power is greater than 0. If yes, proceed to step S42; otherwise, proceed to step S43.
[0025] S42. Traverse each of the information to be accessed and execute the last-in-first-out strategy to charge the power bank to be accessed.
[0026] S43. Traverse each of the charging information, identify the connected power bank that meets the power-off condition as the target power bank, and disconnect the power supply to the target power bank until the current redundant power is not less than 0.
[0027] The power outage condition is that the device is in a charging state and the current battery level is at its maximum.
[0028] This solution allocates power to the power banks to be connected based on the current redundant power of the charging cabinet, thereby reducing the power consumption of the charging cabinet and achieving low power consumption while meeting the user's charging needs.
[0029] In a further embodiment, step S42 includes:
[0030] A. Traverse each piece of information to be accessed, obtain the communication node of each power bank to be accessed, and generate a time list corresponding to each one.
[0031] B. Read the time list, obtain the access information of the power bank to be connected that is closest to the current time node, and obtain the corresponding interface number;
[0032] C. Supply power to the charging interface corresponding to the interface number to obtain the corresponding charging power;
[0033] D. Determine whether the charging power is less than the current redundant power. If so, connect the corresponding power bank to the power supply for charging and return to step S2; otherwise, return to step S2.
[0034] This solution uses a last-in-first-out (LIFO) approach to power the charging banks being connected. While allowing more charging banks to connect, it also balances the power of each charging bank in the charging cabinet, thereby reducing the probability of a charging bank being unable to be lent out while waiting to charge and increasing the utilization rate of each charging bank.
[0035] In a further implementation, step S0 is also included: after detecting the power-on signal, traversing all charging information of all connected power banks, and calculating the total occupied power and the current redundant power in sequence; when the current redundant power is greater than 0, traversing each charging information according to the current redundant power, and determining at least one charging target for charging;
[0036] The charging target is a connected power bank with the lowest current battery level that is not currently charging.
[0037] The present invention also provides a storage medium storing a computer program thereon, the computer program being used to implement the above-described intelligent charging method based on a scalable charging cabinet. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc. Attached Figure Description
[0038] Figure 1 This is a flowchart illustrating the workflow of an intelligent charging method based on a scalable charging cabinet, as provided in an embodiment of the present invention.
[0039] Figure 2 This is the charging process of the last-in-first-out strategy provided in the embodiments of the present invention;
[0040] Figure 3 This is a three-dimensional structural diagram of the expandable charging cabinet provided in an embodiment of the present invention.
[0041] The components include: 1. Main controller; 2. Expandable charging layer; 3. All-in-one machine. Detailed Implementation
[0042] The embodiments of the present invention are described in detail below with reference to the accompanying drawings. The embodiments are given for illustrative purposes only and should not be construed as limiting the present invention. The accompanying drawings are for reference and illustration only and do not constitute a limitation on the scope of patent protection of the present invention, because many changes can be made to the present invention without departing from the spirit and scope of the present invention.
[0043] Example 1
[0044] This invention provides an intelligent charging method based on a scalable charging cabinet, such as... Figure 1 As shown, in this embodiment, steps S0 to S4 are included:
[0045] S0. After detecting the power-on signal, iterate through all the charging information of the connected power banks, and calculate the total power occupied and the current redundant power in sequence. When the current redundant power is greater than 0, iterate through each of the charging information according to the current redundant power, and determine at least one charging target for charging.
[0046] The charging target is a connected power bank with the lowest current battery level that is not currently charging.
[0047] The actual number of charging targets is calculated based on redundant power. At the same time, charging power allocation can be performed based on the remaining power, with higher allocation priority for smaller power levels.
[0048] S1. When a power bank to be connected is detected, obtain the connection information of the power bank to be connected, including:
[0049] When a signal indicating access to the expandable charging layer 2 is received from the communication interface, it is determined that a power bank to be connected has been detected, and the connection information for each power bank on the expandable charging layer is obtained. For example, when the current area experiences increased foot traffic, an expandable charging layer 2 is added to the basic charging cabinet as needed. At this time, the charging cabinet is repowered, and the main controller 1 detects the access of the new expandable charging layer 2. The expandable charging layer 2 can be flexibly stacked according to actual needs.
[0050] In this embodiment, see Figure 3 The all-in-one machine 3 includes a first charging module and a power module. The expandable charging layer 2 is equipped with a second charging module. The power module supplies power to the main controller 1 and supplies power to the first charging module and the second charging module under the control of the main controller 1.
[0051] This embodiment uses a single power supply module. After the charging cabinet is powered on, neither the expandable charging layer 2 nor the integrated unit 3 will automatically charge the power banks (i.e., the first charging module and the second charging module) that are already installed in them. That is, whether to charge the power banks can only be determined by the main controller 1 (e.g., step S0). If the main controller 1 is not installed, or if the main controller 1 malfunctions and cannot transmit instructions to the lower layer, both the expandable charging layer 2 and the integrated unit 3 will automatically stop charging the power banks.
[0052] Alternatively, when a power bank return signal is received, it is determined that a power bank to be connected has been detected, and the connection information of the power bank to be connected is obtained.
[0053] The information to be accessed includes the current battery level, the interface number, and the communication node that connects to the main controller 1 (e.g., the event node that sends a return signal to the main controller 1 after the power bank is returned).
[0054] Based on the actual flow of people, this embodiment designs and configures an expandable charging cabinet. The expandable charging layer 2 and the returned power bank are uniformly defined as power banks to be connected. After the main controller 1 detects the power bank to be connected, it does not charge it first, but obtains the corresponding connection information. Then, it obtains the optimal charging scheme according to the preset charging strategy, which can meet the charging needs of increased flow of people and also ensure the user experience of the power bank.
[0055] S2. Iterate through the charging information of all connected power banks and calculate the total power consumption. Specifically, iterate through the charging information of all connected power banks, obtain the charging power from the charging information, count the charging power of all connected power banks, and obtain the total power consumption. The calculation formula is as follows:
[0056]
[0057] Where n is the total number of connected power banks, Wn is the total power used, and Wi is the charging power of the connected power banks.
[0058] S3. Calculate the current redundant power based on the occupied power and available power;
[0059] In this embodiment, the current redundant power is the difference between the available power and the occupied power.
[0060] S4. Execute the preset charging strategy based on the current redundant power and the information to be connected, including steps S41 to S43:
[0061] S41. Determine whether the current redundant power is greater than 0. If yes, proceed to step S42; otherwise, proceed to step S43.
[0062] S42. Iterate through each pending connection information and execute the last-in-first-out (LIFO) strategy to charge the pending power bank. (See below) Figure 2 This includes steps A through E:
[0063] A. Iterate through each piece of information to be connected, obtain the communication node of each power bank to be connected, and generate a time list that corresponds to each one.
[0064] B. Read the time list, obtain the access information of the power bank that is closest to the current time node, and obtain the corresponding interface number;
[0065] C. Supply power to the charging interface corresponding to the interface number to obtain the corresponding charging power;
[0066] D. Determine if the charging power is less than the current redundant power. If yes, connect the corresponding power bank to the power supply for charging and return to step S2; otherwise, return to step S2.
[0067] This embodiment uses a last-in-first-out (LIFO) principle to supply power to the power banks to be connected. While enabling more power banks to be connected, it can also balance the power of each power bank in the charging cabinet, thereby reducing the probability of power banks waiting to be charged and being unable to be lent out, and increasing the utilization probability of each power bank.
[0068] S43. Traverse each charging information, identify the connected power bank that meets the power-off conditions as the target power bank, and disconnect the power supply to the target power bank until the current redundant power is not less than 0.
[0069] In this embodiment, the preferred power-off condition is that the device is in a charging state and has the maximum current battery level.
[0070] After each power supply to a target power bank is disconnected, there will be a preset time delay. The main controller 1 will update the redundant power before proceeding with the next charging control.
[0071] This embodiment allocates power to the power banks to be connected based on the current redundant power of the charging cabinet. This can reduce the power consumption of the charging cabinet and achieve low power consumption while meeting the user's charging needs.
[0072] This invention, in conjunction with practical application environments, designs an access control scheme for expanding power banks. When a power bank to be connected is detected, it is not charged immediately. Instead, the current redundant power of the charging cabinet is calculated, and an adaptive power allocation calculation is performed based on a preset charging strategy and the current redundant power. Then, power is supplied to the power bank to be connected, thereby utilizing limited charging power to meet the charging needs of multiple power banks that need to be connected, thus realizing the scalability of the charging cabinet to adapt to the flow of people in different areas.
[0073] Example 2
[0074] The present invention also provides a storage medium storing a computer program thereon, the computer program being used to implement the intelligent charging method based on an expandable charging cabinet provided in Embodiment 1 above. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0075] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.
Claims
1. A smart charging method based on an expandable charging cabinet, characterized in that, Including the following steps: S1. When a power bank to be connected is detected, obtain the connection information of the power bank to be connected; S2. Iterate through the charging information of all connected power banks and calculate the total power consumption. S3. Calculate the current redundant power based on the occupied power and available power; S4. Execute a preset charging strategy based on the current redundant power and the information to be connected; Step S4 includes the following steps: S41. Determine whether the current redundant power is greater than 0. If yes, proceed to step S42; otherwise, proceed to step S43. S42. Traverse each of the information to be accessed and execute the last-in-first-out strategy to charge the power bank to be accessed. S43. Traverse each of the charging information, identify the connected power bank that meets the power-off condition as the target power bank, and disconnect the power supply to the target power bank until the current redundant power is not less than 0. The power outage condition is that the device is in a charging state and the current battery level is at its maximum.
2. The intelligent charging method based on an expandable charging cabinet as described in claim 1, characterized in that, Step S1 includes: When an access signal for the expandable charging layer is received from the communication interface, it is determined that a power bank to be accessed has been detected, and the access information of each power bank on the expandable charging layer is obtained. Alternatively, when a power bank return signal is received, it is determined that a power bank to be connected has been detected, and the connection information of the power bank to be connected is obtained. The information to be accessed includes the current battery level, the interface number, and the communication node for accessing the main controller.
3. The intelligent charging method based on an expandable charging cabinet as described in claim 2, characterized in that, Step S2 specifically involves: traversing the charging information of all connected power banks, obtaining the charging power from the charging information, calculating the total power used by all connected power banks, and obtaining the total power used. The calculation formula is as follows: Where n is the total number of connected power banks, Wn is the total power used, and Wi is the charging power of the connected power banks.
4. The intelligent charging method based on an expandable charging cabinet as described in claim 1, characterized in that: In step S3, the current redundant power is the difference between the available power and the occupied power.
5. The intelligent charging method based on an expandable charging cabinet as described in claim 2, characterized in that, Step S42 includes: A. Traverse each piece of information to be accessed, obtain the communication node of each power bank to be accessed, and generate a time list corresponding to each one. B. Read the time list, obtain the access information of the power bank to be connected that is closest to the current time node, and obtain the corresponding interface number; C. Supply power to the charging interface corresponding to the interface number to obtain the corresponding charging power; D. Determine whether the charging power is less than the current redundant power. If so, connect the corresponding power bank to the power supply for charging and return to step S2; otherwise, return to step S2.
6. The intelligent charging method based on an expandable charging cabinet as described in claim 1, characterized in that, It also includes step S0: After detecting the power-on signal, iterate through the charging information of all connected power banks and calculate the total power used and the current redundant power in sequence; When the current redundant power is greater than 0, each charging information is traversed according to the current redundant power to determine at least one charging target for charging. The charging target is a connected power bank with the lowest current battery level that is not currently charging.
7. A storage medium having a computer program stored thereon, characterized in that: The computer program is used to implement the intelligent charging method based on an expandable charging cabinet as described in any one of claims 1-6.
Citation Information
Patent Citations
Multi-battery charging method, system and device, charging / battery replacing cabinet and storage medium
CN112952941A
Shared charging cabinet
CN213461205U