Charging management method, device and computer equipment for mobile power charging cabinet
By setting power thresholds and priorities in the power bank charging cabinet, priority charging of power banks with low power is achieved, solving the problem of inaccurate charging control in existing technologies and improving the efficiency and accuracy of the charging cabinet.
Patent Information
- Application Number
- CN202110545338.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-19
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-05-19
AI Technical Summary
Existing power bank charging cabinets cannot accurately control charging, causing some power banks with low battery levels to fail to charge, affecting user experience.
By detecting the power levels of each power bank in the charging cabinet, setting low power thresholds and lendable power thresholds, and dividing charging priorities into first, second, and third priorities, precise charging management is carried out based on the priorities and the charging capacity of the charging cabinet.
It enables priority charging of power banks with low battery levels, maximizing the use of charging resources, avoiding malfunctions caused by low battery levels, and improving charging accuracy and the utilization efficiency of charging cabinets.
Smart Images

Figure CN113346573B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer software, and in particular to a charging management method, device, computer equipment and storage medium for a mobile power charging cabinet. Background Art
[0002] With the development of computer technology and economy, shared mobile power technology has emerged. Shared mobile power refers to charging rental equipment provided by enterprises. Users can rent mobile power by scanning the QR code on the device screen with mobile phones and other devices and paying a deposit. After the mobile power is successfully returned, the deposit can be withdrawn and returned to the account at any time.
[0003] In the field of shared charging, there are generally a large number of mobile power supplies in a charging cabinet. However, based on cost considerations, the charging cabinet can only charge a certain number of mobile power supplies at the same time, rather than charging all of them.
[0004] However, the current charging management method of the mobile power charging cabinet cannot accurately control the charging of the mobile power. Summary of the invention
[0005] Based on this, it is necessary to provide a charging management method, device, computer equipment and storage medium for a mobile power charging cabinet that can accurately control the charging of a mobile power supply in order to solve the above technical problems.
[0006] A charging management method for a mobile power charging cabinet, the method comprising:
[0007] Detect the power value of each mobile power supply in the charging cabinet;
[0008] The mobile power source whose power value is less than the low power threshold is set as the first charging priority;
[0009] Setting the mobile power source whose power value is greater than or equal to the too low power threshold and less than the loanable power threshold as the second charging priority;
[0010] When the number L of mobile power supplies of the first charging priority is greater than or equal to the number M of mobile power supplies that can be charged simultaneously by the charging cabinet, the M mobile power supplies of the first charging priority are charged;
[0011] When the number L of mobile power supplies of the first charging priority is less than the number M that can be charged simultaneously by the charging cabinet, and the number N of mobile power supplies of the second priority is ≥ ML, L mobile power supplies of the first charging priority and ML mobile power supplies of the second charging priority are charged.
[0012] A charging management device for a mobile power charging cabinet, the device comprising:
[0013] The power detection module is used to detect the power value of each mobile power supply in the charging cabinet;
[0014] A setting module, used to set a mobile power source whose power value is less than a too low power threshold as the first charging priority;
[0015] The setting module is further used to set the mobile power source whose power value is greater than or equal to the too low power threshold and less than the loanable power threshold as the second charging priority;
[0016] A charging module, used for charging M mobile power supplies of the first charging priority when the number L of mobile power supplies of the first charging priority is greater than or equal to the number M of mobile power supplies that can be charged simultaneously by the charging cabinet;
[0017] The charging module is also used to charge L mobile power supplies of the first charging priority and ML mobile power supplies of the second charging priority when the number L of mobile power supplies of the first charging priority is less than the number M that can be charged simultaneously by the charging cabinet, and the number N of mobile power supplies of the second priority is ≥ ML.
[0018] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0019] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.
[0020] The charging management method, device, computer equipment and storage medium of the mobile power charging cabinet described above detect the power of each mobile power in the charging cabinet; set the mobile power with a power value less than the too low power threshold as the first charging priority; set the mobile power with a power value greater than or equal to the too low power threshold and less than the loanable power threshold as the second charging priority; when the number of mobile power supplies of the first charging priority L is greater than or equal to the number of mobile power supplies that can be charged at the same time M in the charging cabinet, give priority to charging the M mobile power supplies of the first charging priority, avoid the problem that the mobile power supply cannot be detected due to the low power of the mobile power supply, and accurately control the charging of the mobile power supply. When the number of mobile power supplies of the first charging priority L is less than the number of mobile power supplies that can be charged at the same time M in the charging cabinet, and the number of mobile power supplies of the second priority N ≥ ML, charge the L mobile power supplies of the first charging priority and the ML mobile power supplies of the second charging priority, both giving priority to charging the mobile power supplies with too low power and making the most of the charging resources in the charging cabinet, so that the charging of the mobile power can be accurately controlled. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1An application environment diagram of a charging management method for a mobile power charging cabinet in one embodiment;
[0022] Figure 2 A schematic diagram of a flow chart of a charging management method for a mobile power charging cabinet in one embodiment;
[0023] Figure 3 It is a schematic flow chart of a charging management method of a mobile power charging cabinet in another embodiment;
[0024] Figure 4 It is a flow chart of a charging management method of a mobile power charging cabinet in another embodiment;
[0025] Figure 5 It is a structural block diagram of a charging management device of a mobile power charging cabinet in one embodiment;
[0026] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0028] The charging management method of the mobile power charging cabinet provided in this application can be applied to Figure 1 In the application environment shown. The charging cabinet 102 includes a memory, a controller and a charging module; the memory is used to store data of each mobile power source, such as the power value of the mobile power source, the identification of the mobile power source, etc.; the controller is used to control whether the mobile power source is charged, and to control the mobile power source to be moved out of the charging cabinet, etc.; the charging module is used to charge the mobile power source. The charging cabinet can charge one or more mobile power sources 104.
[0029] In one embodiment, Figure 2 As shown, a charging management method for a mobile power charging cabinet is provided. This embodiment uses the method applied to a charging cabinet as an example. In this embodiment, the method includes the following steps:
[0030] Step 202, detecting the power value of each mobile power source in the charging cabinet.
[0031] The charging cabinet is a device used to charge a mobile power source. A mobile power source is a portable charger that can be carried with you and can store electrical energy. For example, a mobile power source can be a power bank. Before charging the mobile power source or when a new mobile power source is detected to be returned to the charging cabinet, the power value of the mobile power source is detected and recorded.
[0032] Step 204 , setting the mobile power source whose power value is less than the too low power threshold as the first charging priority.
[0033] The too low power threshold refers to the threshold of too low power. The too low power threshold can be set as needed. When the power value of the mobile power supply is less than the too low power threshold, it means that the power value of the mobile power supply is too low, and the mobile power supply is at risk of having a power value of 0; based on cost considerations, the current mobile power supply hardware design does not take into account the situation of too low power. When the power value of the mobile power supply is 0, it cannot be recognized by the charging cabinet, which leads to failures in the rental and return of the mobile power supply, affecting user use. The first charging priority is the priority of the mobile power supply whose power value is less than the too low power threshold.
[0034] After the charging cabinet detects the power value of each mobile power source, it compares the power value of each mobile power source with the too low power threshold, selects the mobile power source whose power value is less than the too low power threshold, and sets the priority of the selected mobile power source as the first charging priority.
[0035] Step 206 , setting the mobile power source whose power value is greater than or equal to the too low power threshold and less than the loanable power threshold as the second charging priority.
[0036] The loanable power threshold refers to the power threshold of the mobile power source that can be loaned out. The loanable power threshold can be set as needed. When the power value of the mobile power source is less than the loanable power threshold, the mobile power source cannot be loaned out; when the power value of the mobile power source is greater than or equal to the loanable power threshold, the mobile power source can be loaned out.
[0037] The loanable power threshold is greater than the too low power threshold. For example, the loanable power threshold is 75% and the too low power threshold is 10%.
[0038] After the charging cabinet detects the power value of each mobile power source, it compares the power value of each mobile power source with the too low power threshold and the loanable power threshold respectively, and screens out mobile power sources with power values greater than or equal to the too low power threshold and less than the loanable power threshold, and sets the priority of the screened mobile power sources as the second charging priority.
[0039] Step 208: When the number L of mobile power supplies of the first charging priority is greater than or equal to the number M of mobile power supplies that can be charged simultaneously by the charging cabinet, charge the M mobile power supplies of the first charging priority.
[0040] The number of mobile power supplies that can be charged simultaneously in the charging cabinet M is the number of mobile power supplies that can be charged simultaneously in the charging cabinet. The number of mobile power supplies that can be charged simultaneously in the charging cabinet M can be set as needed. For example, the number of mobile power supplies that can be charged simultaneously in the charging cabinet M can be 10.
[0041] The charging cabinet counts the number L of mobile power supplies with the first charging priority, and compares L with the number M of mobile power supplies that can be charged simultaneously by the charging cabinet. When L≥M, M mobile power supplies with the first charging priority are selected from the L mobile power supplies with the first charging priority for charging.
[0042] Step 210, when the number L of mobile power supplies with the first charging priority is less than the number M of mobile power supplies that can be charged simultaneously by the charging cabinet, and the number N of mobile power supplies with the second priority is ≥M - L, charge the L mobile power supplies with the first charging priority and the M - L mobile power supplies with the second charging priority.
[0043] When L < M, it means that the charging cabinet is sufficient to support all mobile power supplies with the first charging priority to be charged simultaneously, and the charging capacity of the charging cabinet is still surplus. In order to make full use of the charging capacity of the charging cabinet, mobile power supplies with a power value greater than or equal to the lendable power threshold are additionally charged.
[0044] The charging cabinet counts the number N of mobile power supplies with the second charging priority. When N≥M - L, M - L mobile power supplies with the second charging priority are selected from the mobile power supplies with the second priority, and the L mobile power supplies with the first charging priority and the M - L mobile power supplies with the second charging priority are charged, so that the charging cabinet can operate at full load.
[0045] In this embodiment, the power of each mobile power supply in the charging cabinet is detected; the mobile power supply with a power value less than the low power threshold is set as the first charging priority; the mobile power supply with a power value greater than or equal to the low power threshold and less than the lendable power threshold is set as the second charging priority; when the number L of mobile power supplies with the first charging priority is greater than or equal to the number M of mobile power supplies that can be charged simultaneously by the charging cabinet, M mobile power supplies with the first charging priority are preferentially charged, avoiding the problem that the power of the mobile power supply is too low to perform data detection on the mobile power supply, and the charging of the mobile power supply can be accurately controlled. When the number L of mobile power supplies with the first charging priority is less than the number M of mobile power supplies that can be charged simultaneously by the charging cabinet, and the number N of mobile power supplies with the second priority is ≥M - L, the L mobile power supplies with the first charging priority and the M - L mobile power supplies with the second charging priority are charged, which not only preferentially charges the mobile power supply with too low power, but also maximally utilizes the charging resources in the charging cabinet, so that the charging of the mobile power supply can be accurately controlled.
[0046] In one embodiment, the charging method for charging M mobile power supplies with the first charging priority includes: sorting the mobile power supplies with the first charging priority according to the power value size to form a first sub-charging sequence; in the first sub-charging sequence, M mobile power supplies are selected for charging in ascending order of the power value.
[0047] The first sub - charging sequence is a sequence formed by sorting the power banks with the first charging priority according to the magnitude of their power values.
[0048] In this embodiment, the charging cabinet selects M power banks from the first sub - charging sequence for charging in ascending order of power values, which can prevent the power banks from malfunctioning due to too low power values.
[0049] In one embodiment, when the number L of power banks with the first charging priority is less than the number M of power banks that the charging cabinet can charge simultaneously, and the number N of power banks with the second priority satisfies N≥M - L, the above - mentioned method further includes: sorting the power banks with the second charging priority according to the magnitude of their power values to form a second sub - charging sequence; and selecting M - L power banks from the second sub - charging sequence in descending order of power values.
[0050] The second sub - charging sequence is a sequence formed by sorting the power banks with the second charging priority according to the magnitude of their power values. It can be understood that the closer the power bank is to the borrowable power threshold, the faster it can return to the borrowable state. Charging these power banks first helps improve the turnover efficiency of the power banks.
[0051] In this embodiment, the charging cabinet selects M - L power banks from the second sub - charging sequence for charging in descending order of power values, which can make the power values of the power banks reach the borrowable power threshold faster, so that they can be borrowed, ensuring the enterprise's revenue.
[0052] In one embodiment, as Figure 3 shown, the above - mentioned method further includes:
[0053] Step 302: Set the power banks with power values greater than or equal to the borrowable power threshold and less than the full - charge threshold as the third charging priority.
[0054] The full - charge threshold refers to the threshold of full charge. The full - charge threshold can be set as needed. The full - charge threshold is greater than the borrowable power threshold. For example, the full - charge threshold is 90%.
[0055] After the charging cabinet detects the power values of each power bank, it compares the power values of each power bank with the borrowable power threshold and the full - charge threshold respectively, screens out the power banks with power values greater than or equal to the borrowable power threshold and less than the full - charge threshold, and sets the priority of the screened - out power banks as the third charging priority.
[0056] Step 304: When the number L of power banks with the first charging priority is less than the number M of power banks that the charging cabinet can charge simultaneously, and the number N of power banks with the second priority satisfies N < M - L, count the number K of power banks with the third charging priority.
[0057] Step 306: When the number K of the mobile power supplies with the third charging priority is ≥ M - L - N, charge the L mobile power supplies with the first charging priority, the N mobile power supplies with the second charging priority, and the M - L - N mobile power supplies with the third charging priority.
[0058] When the number K of the mobile power supplies with the third charging priority is ≥ M - L - N, the charging cabinet selects M - L - N mobile power supplies with the third charging priority from the K mobile power supplies with the third charging priority, and charges the L mobile power supplies with the first charging priority, the N mobile power supplies with the second charging priority, and the M - L - N mobile power supplies with the third charging priority.
[0059] Generally, after the mobile power supply is fully charged, that is, when the battery level reaches 100%, the battery level will inevitably decrease over time or after being rented by the user. However, the service life of the mobile power supply is limited. If the mobile power supply is charged when its battery level is lower than 100%, it is very unfavorable for extending the service life of the mobile power supply. Therefore, in this embodiment, a full - charge threshold is set to determine whether the mobile power supply needs to be charged, and it is set that only the mobile power supplies below the full - charge threshold are the mobile power supplies that need to be charged, which can improve the charging accuracy and extend the service life of the mobile power supply.
[0060] In this embodiment, when the number L of the mobile power supplies with the first charging priority is less than the number M of mobile power supplies that can be charged simultaneously by the charging cabinet, and the number N of the mobile power supplies with the second priority is < M - L, count the number K of the mobile power supplies with the third charging priority. And when the number K of the mobile power supplies with the third charging priority is ≥ M - L - N, charge the L mobile power supplies with the first charging priority, the N mobile power supplies with the second charging priority, and the M - L - N mobile power supplies with the third charging priority, which can maximize the utilization of the charging resources in the charging cabinet and improve the utilization rate of the charging resources in the charging cabinet.
[0061] In one embodiment, when the number K of the mobile power supplies with the third charging priority is ≥ M - L - N, the above - mentioned method further includes: sorting the mobile power supplies with the third charging priority according to the battery level values to form a third sub - charging sequence; in the third sub - charging sequence, select M - L - N mobile power supplies in ascending order of the battery level values.
[0062] The third sub - charging sequence is a sequence formed by sorting the mobile power supplies with the third charging priority according to the battery level values.
[0063] In this embodiment, the charging cabinet selects MLN mobile power supplies for charging in the third sub-charging sequence in order of power value from small to large, to prevent the power value of the mobile power supplies in the third sub-charging sequence from decreasing below the loanable power threshold, and to keep the power value of each mobile power supply in the third sub-charging sequence greater than the loanable power threshold.
[0064] In one embodiment, the priorities of the first charging priority, the second charging priority, and the third charging priority are sequentially decreased; detecting the power value of each mobile power source in the charging cabinet includes: detecting the power value of each mobile power source in the charging cabinet in real time; the above method also includes: charging each mobile power source in the charging cabinet in real time in the order of the charging priority of each mobile power source in the charging cabinet from high to low.
[0065] The charging cabinet detects the power value of each mobile power source in real time, and the charging priority of the mobile power source can be determined according to the power value of the mobile power source. The charging priority of the mobile power source belongs to one of the first charging priority, the second charging priority and the third charging priority; each mobile power source is charged in real time in the order of the charging priority of each mobile power source from high to low.
[0066] In this embodiment, the charging cabinet charges each mobile power source in real time according to the charging priority of each mobile power source from high to low, which can give priority to charging the mobile power sources with higher charging priority and improve the accuracy of charging.
[0067] In one embodiment, each mobile power source in the charging cabinet is charged in real time according to the order of the charging priority of each mobile power source from high to low, including: when the power value of the mobile power source of the first charging priority is charged to a too low power threshold, or the power value of the mobile power source of the second charging priority is charged to a loanable power threshold, or the power value of the mobile power source of the third charging priority is charged to a sufficient power threshold, the mobile power source charged to the too low power threshold, the mobile power source charged to the loanable power threshold, or the mobile power source charged to the sufficient power threshold is used as a mobile power source to be replaced; according to the charging priorities of each mobile power source to be replaced and each mobile power source in an uncharged state, a first mobile power source with the highest charging priority is selected from each mobile power source to be replaced and each mobile power source in an uncharged state, the first mobile power source replaces the mobile power source to be replaced with the first mobile power source, and the first mobile power source is charged.
[0068] The first mobile power source is a mobile power source with the highest charging priority among the mobile power sources to be replaced and the mobile power sources in an uncharged state.
[0069] It can be understood that when the power value of the mobile power supply with the first charging priority is charged to the too low power threshold, the power value of the mobile power supply is greater than or equal to the too low power threshold and less than the loanable power threshold, and the charging priority of the mobile power supply is updated to the second charging priority with a lower charging priority.
[0070] Similarly, when the power value of the mobile power supply of the second charging priority is charged to the loanable power threshold, the power value of the mobile power supply is greater than or equal to the loanable power threshold and less than the sufficient power threshold, and the charging priority of the mobile power supply is updated to the third charging priority with a lower charging priority. When the power value of the mobile power supply of the third charging priority is charged to the sufficient power threshold, it means that the power value of the mobile power supply is relatively sufficient and does not need to be charged further. The charging cabinet can set the mobile power supply with a power value greater than or equal to the sufficient power threshold to the fourth charging priority; the priority of the fourth charging priority is lower than the priority of the third charging priority.
[0071] The charging cabinet uses a mobile power supply that is charged to a too low power threshold, or a mobile power supply that is charged to a loanable power threshold, or a mobile power supply that is charged to a sufficient power threshold as a mobile power supply to be replaced; according to the charging priorities of the mobile power supplies to be replaced and the mobile power supplies that are not charged, a first mobile power supply with the highest charging priority is selected from the mobile power supplies to be replaced and the mobile power supplies that are not charged, and the first mobile power supply replaces the mobile power supply to be replaced, and the first mobile power supply is charged.
[0072] In this embodiment, the charging cabinet selects the first mobile power supply with the highest charging priority from the mobile power supplies to be replaced, and replaces the mobile power supply to be replaced with the first mobile power supply, so that the mobile power supplies with the highest charging priority in the charging cabinet can be charged in real time, thereby improving the charging accuracy.
[0073] In one embodiment, according to the charging priorities of the mobile power supplies to be replaced and the mobile power supplies in an uncharged state, a first mobile power supply with the highest charging priority is selected from the mobile power supplies to be replaced and the mobile power supplies in an uncharged state, including: when there is a mobile power supply with a first charging priority among the mobile power supplies to be replaced and the mobile power supplies in an uncharged state, the mobile power supply with the lowest power level is selected as the first mobile power supply from the mobile power supplies with the first charging priority and in an uncharged state; when there is no mobile power supply with the first charging priority among the mobile power supplies to be replaced and the mobile power supplies in an uncharged state, and there is a mobile power supply with a second charging priority, the mobile power supply with the highest power level is selected as the first mobile power supply from the mobile power supplies with the second charging priority and in an uncharged state.
[0074] When there is a mobile power supply with a first charging priority among the mobile power supplies to be replaced and the mobile power supplies in an uncharged state, since the first charging priority has the highest priority, the mobile power supply with the lowest power level is selected as the first mobile power supply from the mobile power supplies with the first charging priority and in an uncharged state, so as to avoid a malfunction caused by the power level of the mobile power supply with the lowest power level being 0, thereby improving the charging accuracy.
[0075] When there is no mobile power supply with a first charging priority among the mobile power supplies to be replaced and the mobile power supplies in an uncharged state, and there is a mobile power supply with a second charging priority, the mobile power supply with the second charging priority is the mobile power supply with the highest charging priority among the mobile power supplies to be replaced and the mobile power supplies in an uncharged state, and the mobile power supply with the highest power level is selected from the mobile power supplies with the second charging priority level and in an uncharged state as the first mobile power supply, so that the power level of the mobile power supply with the second charging priority level can be charged to the loanable power threshold as soon as possible, so that the mobile power supply can enter the loanable state in time, thereby improving the loan rate of the mobile power supplies of the charging cabinet and ensuring the benefit of the enterprise.
[0076] In one embodiment, the method further includes: when a new mobile power source is detected to be inserted into the charging cabinet, determining a second mobile power source with the lowest charging priority from the mobile power sources in a charging state; replacing the second mobile power source with the new mobile power source, and charging the new mobile power source.
[0077] The second mobile power source is a mobile power source with the lowest charging priority among the mobile power sources in the charging state.
[0078] The user rents a mobile power supply from the charging cabinet for use, and after use, inserts the mobile power supply into the charging cabinet and returns the mobile power supply. When the charging cabinet detects that a new mobile power supply is inserted into the charging cabinet, it determines the second mobile power supply with the lowest charging priority from the mobile power supplies in the charging state, replaces the second mobile power supply with the new mobile power supply, and charges the new mobile power supply.
[0079] It is understandable that when a new mobile power source is inserted into the charging cabinet, the power value of the new mobile power source may be greater than 0 or may be equal to 0. When the power value of the mobile power source is equal to 0, the charging cabinet cannot identify the mobile power source and may cause the mobile power source to fail to charge for a long time. Therefore, when a new mobile power source is detected to be inserted into the charging cabinet, the new mobile power source is replaced with the second mobile power source with the lowest charging priority, and the new mobile power source is charged first to avoid failure of the mobile power source, thereby improving the accuracy of charging.
[0080] In one embodiment, the method further includes: marking a mobile power source having a power value greater than or equal to a loanable power threshold as being in a loanable state, and marking a mobile power source having a power value less than the loanable power threshold as being in a non-loanable state; when a mobile power source rental request initiated by a user is received, sorting the power levels of the mobile power sources in the loanable state, determining a loanable mobile power source from the sorted mobile power sources in the loanable state, and controlling the loanable mobile power source to be moved out of the charging cabinet.
[0081] A mobile power source with a power value greater than or equal to the loanable power threshold indicates that the power value of the mobile power source is high and can be loaned out, and the mobile power source with a power value greater than or equal to the loanable power threshold is marked as being loanable. When the power value of the mobile power source is charged from less than the loanable power threshold to the loanable power threshold, the mobile power source mark of the mobile power source is updated from a non-loanable state to a loanable state; when the power value of the mobile power source drops from greater than or equal to the loanable power threshold to less than the loanable power threshold, the mobile power source mark of the mobile power source is updated from a loanable state to a non-loanable state.
[0082] When the charging cabinet receives a mobile power supply rental request initiated by a user, the power supply in the loanable state is sorted, the loanable mobile power supply is determined from the sorted mobile power supplies in the loanable state, and the loanable mobile power supply is controlled to move out of the charging cabinet. Optionally, the charging cabinet can select the mobile power supply with the highest power value from the sorted mobile power supplies in the loanable state as the loanable mobile power supply; it can also select the mobile power supply with the second highest power value from the sorted mobile power supplies in the loanable state as the loanable mobile power supply; it can also randomly select a mobile power supply from the sorted mobile power supplies in the loanable state as the loanable mobile power supply, but is not limited thereto.
[0083] In this embodiment, the charging cabinet marks a mobile power source with a power value greater than or equal to the loanable power threshold as being in a loanable state. Upon receiving a mobile power source rental request initiated by a user, the loanable mobile power source is determined from the mobile power sources in the loanable state, and the loaned mobile power source is controlled to be moved out of the charging cabinet. This can accurately remove mobile power sources with a power value greater than or equal to the loanable power threshold, thereby meeting the user's charging needs.
[0084] In one embodiment, Figure 4 As shown, another charging management method for a mobile power charging cabinet is provided, which is applied to the charging cabinet and is described by taking the low power threshold of 10%, the loanable power threshold of 75%, and the sufficient power threshold of 90% as an example, including the following steps:
[0085] Step 402: Detect the power level of each mobile power source in the charging cabinet, and obtain the number L of mobile power sources with power levels < 10%.
[0086] Step 404: Determine whether L ≥ M; when L ≥ M, execute Step 406; when L < M, execute Step 408. Here, M is the number of mobile power supplies that can be charged simultaneously by the charging cabinet.
[0087] Step 406: Sort the L mobile power supplies and charge the M mobile power supplies in ascending order of the power value.
[0088] Step 408: Obtain the number N of mobile power supplies with a power value ≥ 10% and < 75%.
[0089] Step 410: Determine whether N ≥ M - L; when N ≥ M - L, execute Step 412; when N < M - L, execute Step 414.
[0090] Step 412: Sort the N mobile power supplies, select M - L mobile power supplies in descending order of the power value, and charge the L mobile power supplies and the M - L mobile power supplies.
[0091] Step 414: Obtain the number K of mobile power supplies with a power value ≥ 75% and < 90%.
[0092] Step 416: Sort the K mobile power supplies, select M - L - N mobile power supplies in ascending order of the power value, and charge the L mobile power supplies, the N mobile power supplies, and the M - L - N mobile power supplies.
[0093] It should be understood that although Figures 2 to 4 the steps in the flowchart are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise clearly stated in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, Figures 2 to 4 at least a part of the steps in
[0094] In one embodiment, as Figure 5 shown, a charging management device for a mobile power supply charging cabinet is provided, including: a power detection module 502, a setting module 504, and a charging module 506, where:
[0095] The power detection module 502 is used to detect the power values of the mobile power supplies in the charging cabinet.
[0096] The setting module 504 is used to set the mobile power supplies with a power value less than the low power threshold as the first charging priority.
[0097] The setting module 504 is further configured to set the mobile power source, whose power value is greater than or equal to the too low power threshold and less than the loanable power threshold, as the second charging priority.
[0098] The charging module 506 is used to charge M mobile power supplies of the first charging priority when the number L of mobile power supplies of the first charging priority is greater than or equal to the number M of mobile power supplies that can be charged simultaneously by the charging cabinet.
[0099] The charging module 506 is also used to charge L mobile power supplies of the first charging priority and ML mobile power supplies of the second charging priority when the number L of mobile power supplies of the first charging priority is less than the number M that can be charged simultaneously by the charging cabinet and the number N of mobile power supplies of the second priority is ≥ ML.
[0100] The charging management device of the mobile power charging cabinet detects the power of each mobile power in the charging cabinet; sets the mobile power with a power value less than the too low power threshold as the first charging priority; sets the mobile power with a power value greater than or equal to the too low power threshold and less than the loanable power threshold as the second charging priority; when the number of mobile power with the first charging priority L is greater than or equal to the number of mobile power that can be charged at the same time M in the charging cabinet, the M mobile power with the first charging priority are charged first, so as to avoid the problem that the mobile power is too low and the data cannot be detected, and the mobile power can be accurately controlled to charge. When the number of mobile power with the first charging priority L is less than the number of mobile power that can be charged at the same time M in the charging cabinet, and the number of mobile power with the second priority N ≥ ML, the L mobile power with the first charging priority and the ML mobile power with the second charging priority are charged, so that the mobile power with too low power is charged first and the charging resources in the charging cabinet are used to the maximum extent, so that the mobile power can be accurately controlled to charge.
[0101] In one embodiment, the charging module 506 is further used to sort the mobile power supplies of the first charging priority according to the power value to form a first sub-charging sequence; in the first sub-charging sequence, M mobile power supplies are selected for charging in order from small to large power values.
[0102] In one embodiment, the above-mentioned device also includes a selection module. When the number L of mobile power supplies of the first charging priority is less than the number M that can be charged simultaneously by the charging cabinet, and the number N≥ML of mobile power supplies of the second priority, the above-mentioned selection module is used to sort the mobile power supplies of the second charging priority according to the size of the power value to form a second sub-charging sequence; in the second sub-charging sequence, ML mobile power supplies are selected in order from large to small in terms of power value.
[0103] In one embodiment, the charging module 506 is further configured to set a mobile power supply with a power value greater than or equal to the lendable power threshold and less than the full charge threshold as the third charging priority; when the number L of mobile power supplies with the first charging priority is less than the number M of mobile power supplies that can be charged simultaneously by the charging cabinet, and the number N of mobile power supplies with the second priority is less than M - L, count the number K of mobile power supplies with the third charging priority; when the number K of mobile power supplies with the third charging priority is greater than or equal to M - L - N, charge the L mobile power supplies with the first charging priority, the N mobile power supplies with the second charging priority, and the M - L - N mobile power supplies with the third charging priority.
[0104] In one embodiment, when the number K of mobile power supplies with the third charging priority is greater than or equal to M - L - N, the selection module is further configured to sort the mobile power supplies with the third charging priority according to the power value to form a third sub-charging sequence; in the third sub-charging sequence, select M - L - N mobile power supplies in ascending order of the power value.
[0105] In one embodiment, the priority levels of the first charging priority, the second charging priority, and the third charging priority decrease in sequence; the power detection module 502 is further configured to detect the power values of the mobile power supplies in the charging cabinet in real time; the charging module 506 is further configured to charge the mobile power supplies in real time in descending order of the priority levels of the charging priorities of the mobile power supplies in the charging cabinet.
[0106] In one embodiment, the charging module 506 is further configured to, when the power value of a mobile power supply with the first charging priority is charged to the low power threshold, or the power value of a mobile power supply with the second charging priority is charged to the lendable power threshold, or the power value of a mobile power supply with the third charging priority is charged to the full charge threshold, use the mobile power supply charged to the low power threshold, or the mobile power supply charged to the lendable power threshold, or the mobile power supply charged to the full charge threshold as a mobile power supply to be replaced; select the first mobile power supply with the highest charging priority from the mobile power supplies to be replaced and the mobile power supplies in the uncharged state according to the charging priorities of the mobile power supplies to be replaced and the mobile power supplies in the uncharged state, replace the mobile power supply to be replaced with the first mobile power supply, and charge the first mobile power supply.
[0107] In one embodiment, the charging module 506 is further used to select the mobile power supply with the lowest power level from among the mobile power supplies with the first charging priority level and in the uncharged state as the first mobile power supply when there is a mobile power supply with the first charging priority level among the mobile power supplies to be replaced and in the uncharged state; and to select the mobile power supply with the highest power level from among the mobile power supplies with the second charging priority level and in the uncharged state as the first mobile power supply when there is no mobile power supply with the first charging priority level among the mobile power supplies to be replaced and in the uncharged state and there is a mobile power supply with the second charging priority level.
[0108] In one embodiment, the charging module 506 is also used to determine a second mobile power source with the lowest charging priority from the mobile power sources in a charging state when a new mobile power source is detected to be inserted into the charging cabinet; replace the second mobile power source with the new mobile power source, and charge the new mobile power source.
[0109] In one embodiment, the above-mentioned device also includes a removal module, which is used to mark a mobile power supply with a power value greater than or equal to a loanable power threshold as a loanable state, and mark a mobile power supply with a power value less than the loanable power threshold as a non-loanable state; when a mobile power supply rental request initiated by a user is received, the power levels of the mobile power supplies in the loanable state are sorted, and the loanable mobile power supplies are determined from the sorted mobile power supplies in the loanable state, and the loaned mobile power supplies are controlled to be moved out of the charging cabinet.
[0110] For the specific definition of the charging management device of the mobile power charging cabinet, please refer to the definition of the charging management method of the mobile power charging cabinet above, which will not be repeated here. Each module in the charging management device of the mobile power charging cabinet can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0111] In one embodiment, a computer device is provided. The computer device may be a charging cabinet, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a charging management method for a mobile power charging cabinet is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse.
[0112] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0113] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0114] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0115] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0116] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0117] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A charging management method for a mobile power charging cabinet, characterized in that: The method includes: Detecting the power values of each mobile power source in the charging cabinet; Setting the mobile power sources with power values less than the low power threshold as the first charging priority; Setting the mobile power sources with power values greater than or equal to the low power threshold and less than the lendable power threshold as the second charging priority; When the number L of mobile power sources with the first charging priority is greater than or equal to the number M of mobile power sources that can be charged simultaneously in the charging cabinet, charging M mobile power sources with the first charging priority; When the number L of mobile power sources with the first charging priority is less than the number M of mobile power sources that can be charged simultaneously in the charging cabinet, and the number N of mobile power sources with the second priority is ≥ M - L, charging L mobile power sources with the first charging priority and M - L mobile power sources with the second charging priority; Setting the mobile power sources with power values greater than or equal to the lendable power threshold and less than the full power threshold as the third charging priority; When the number L of mobile power sources with the first charging priority is less than the number M of mobile power sources that can be charged simultaneously in the charging cabinet, and the number N of mobile power sources with the second priority is < M - L, counting the number K of mobile power sources with the third charging priority; When the number K of mobile power sources with the third charging priority is ≥ M - L - N, charging L mobile power sources with the first charging priority, N mobile power sources with the second charging priority, and M - L - N mobile power sources with the third charging priority.
2. The charging management method according to claim 1, characterized in that: The charging method for charging M mobile power sources with the first charging priority includes: Sorting the mobile power sources with the first charging priority according to the power value size to form a first sub-charging sequence; In the first sub-charging sequence, selecting M mobile power sources for charging in ascending order of power value.
3. The method according to claim 1, characterized in that When the number L of mobile power sources with the first charging priority is less than the number M of mobile power sources that can be charged simultaneously in the charging cabinet, and the number N of mobile power sources with the second priority is ≥ M - L, the method further includes: Sorting the mobile power sources with the second charging priority according to the power value size to form a second sub-charging sequence; In the second sub-charging sequence, selecting M - L mobile power sources in descending order of power value.
4. The method according to claim 1, characterized in that: When the number K of mobile power sources with the third charging priority is ≥ M - L - N, the method further includes: Sorting the mobile power sources with the third charging priority according to the power value size to form a third sub-charging sequence; In the third sub-charging sequence, selecting M - L - N mobile power sources in ascending order of power value.
5. The method according to claim 1, characterized in that The priority degrees of the first charging priority, the second charging priority, and the third charging priority decrease in turn; The detecting the power values of each mobile power source in the charging cabinet includes: Real-time detecting the power values of each mobile power source in the charging cabinet; The method further includes: Real-time charging each mobile power source in descending order of the priority degree of the charging priority of each mobile power source in the charging cabinet.
6. The method according to claim 5, characterized in that The real-time charging each mobile power source in descending order of the priority degree of the charging priority of each mobile power source in the charging cabinet includes: When the power value of the mobile power source of the first charging priority is charged to the too low power threshold, or the power value of the mobile power source of the second charging priority is charged to the loanable power threshold, or the power value of the mobile power source of the third charging priority is charged to the sufficient power threshold, the mobile power source charged to the too low power threshold, the mobile power source charged to the loanable power threshold, or the mobile power source charged to the sufficient power threshold is used as the mobile power source to be replaced; According to the charging priorities of the mobile power supplies to be replaced and the mobile power supplies in an uncharged state, a first mobile power supply with the highest charging priority is selected from the mobile power supplies to be replaced and the mobile power supplies in an uncharged state, and the first mobile power supply replaces the mobile power supply to be replaced, and the first mobile power supply is charged.
7. The method according to claim 6, characterized in that The method of selecting a first mobile power source with the highest charging priority from among the mobile power sources to be replaced and the mobile power sources in an uncharged state according to the charging priorities of the mobile power sources to be replaced and the mobile power sources in an uncharged state comprises: When there is a mobile power supply with the first charging priority among the mobile power supplies to be replaced and the mobile power supplies in an uncharged state, selecting a mobile power supply with the lowest power as the first mobile power supply from the mobile power supplies with the first charging priority and in an uncharged state; When there is no power bank with the first charging priority among the power banks to be replaced and in an uncharged state, and there is a power bank with the second charging priority, a power bank with the highest power level is selected from the power banks with the second charging priority and in an uncharged state as the first power bank.
8. The method according to claim 5, characterized in that The method further comprises: When it is detected that a new mobile power source is inserted into the charging cabinet, determining a second mobile power source with the lowest charging priority from the mobile power sources in a charging state; The second mobile power source is replaced by the new mobile power source, and the new mobile power source is charged.
9. The method according to claim 1, characterized in that: The method further comprises: Marking a mobile power source with a power value greater than or equal to the loanable power threshold as being in a loanable state, and marking a mobile power source with a power value less than the loanable power threshold as being in a non-loanable state; When a mobile power supply rental request initiated by a user is received, the power levels of the mobile power supplies in the loanable state are sorted, a loanable mobile power supply is determined from the sorted mobile power supplies in the loanable state, and the loanable mobile power supply is controlled to be moved out of the charging cabinet.
10. A charging management device for a mobile power charging cabinet, characterized in that: The device comprises: The power detection module is used to detect the power value of each mobile power supply in the charging cabinet; A setting module, used to set a mobile power source whose power value is less than a too low power threshold as the first charging priority; The setting module is further used to set the mobile power source whose power value is greater than or equal to the too low power threshold and less than the loanable power threshold as the second charging priority; A charging module, used for charging M mobile power supplies of the first charging priority when the number L of mobile power supplies of the first charging priority is greater than or equal to the number M of mobile power supplies that can be charged simultaneously by the charging cabinet; The charging module is further configured to charge L mobile power supplies with the first charging priority and M - L mobile power supplies with the second charging priority when the number L of mobile power supplies with the first charging priority is less than the number M of mobile power supplies that can be charged simultaneously by the charging cabinet, and the number N of mobile power supplies with the second priority is ≥ M - L; The charging module is further configured to set mobile power supplies with a power value greater than or equal to the lendable power threshold and less than the full charge threshold as the third charging priority; when the number L of mobile power supplies with the first charging priority is less than the number M of mobile power supplies that can be charged simultaneously by the charging cabinet, and the number N of mobile power supplies with the second priority is < M - L, count the number K of mobile power supplies with the third charging priority; when the number K of mobile power supplies with the third charging priority is ≥ M - L - N, charge L mobile power supplies with the first charging priority, N mobile power supplies with the second charging priority, and M - L - N mobile power supplies with the third charging priority.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 9.
