Charging method and device of electronic equipment, equipment and storage medium
By dynamically adjusting the charging plan of electronic devices in an intelligent storage environment, the problem of equipment shortage is solved based on the equipment's historical charging record and current power status, and the charging efficiency and resource utilization are improved.
Patent Information
- Application Number
- CN202311491151.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-09
- Publication Date
- 2025-05-13
Smart Images

Figure CN119990555A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of storage technology, and in particular to a charging method, device, equipment and storage medium for an electronic device. Background Art
[0002] An automated guided vehicle (AGV) is a transport vehicle that can automatically transport items from the starting point to the destination along a specified guide path. An AGV with an automatic transfer device can automatically complete the picking, placing, and horizontal transportation of items under the guidance of a control system. With the rapid development of logistics, the use of AGVs to transport items in smart warehouses is becoming more and more popular. When using AGVs in smart warehouses, staff can remotely control the AGV to perform operations according to different item handling tasks, and recharge the AGV when the AGV is low on power.
[0003] In the prior art, in order to ensure the operating efficiency of the smart warehouse, the charging strategy of AGV is mainly "shallow charging and shallow discharge", that is, short-term charging when there are many items to be transported, and long-term charging until full when there are few items to be transported. Similarly, when multiple smart devices are running in the same environment, the "shallow charging and shallow discharge" charging strategy will result in a fixed number of smart devices being charged among the multiple smart devices running in the same environment.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following technical problems in the prior art:
[0005] The lack of a reasonable scheduling plan to charge multiple devices running in the current environment may lead to equipment shortages, affecting the operating efficiency of the equipment. Summary of the invention
[0006] The present invention provides a charging method, device, equipment and storage medium for electronic devices, so as to dynamically adjust the charging plan of each electronic device in the current environment and improve the operation efficiency of the electronic devices.
[0007] In a first aspect, an embodiment of the present invention provides a charging method for an electronic device, the method comprising:
[0008] After determining that the current electronic device meets the charging condition, determine whether the current electronic device is in a manual full charging plan, wherein the manual full charging plan is determined by a waiting full charging plan established by historical charging records of each electronic device in the current environment where the current electronic device is located;
[0009] When it is determined that the current electronic device is in a manual full charging plan, a full charging task is issued to the current electronic device;
[0010] Otherwise, when it is determined that there is a full charging quota, a full charging task or a normal charging task is sent to the current electronic device according to whether the current electronic device is in the waiting full charging plan.
[0011] In a second aspect, an embodiment of the present invention further provides a charging device for an electronic device, the device comprising:
[0012] A first determination module is used to determine whether the current electronic device is in a manual full charge plan after determining that the current electronic device meets the charging condition, wherein the manual full charge plan is determined according to the full charge plan after the full charge plan is established according to the historical charging records of each electronic device;
[0013] A first execution module is used to send a full charging task to the current electronic device when it is determined that the current electronic device is in a manual full charging plan;
[0014] The second execution module is used to send a full charging task or a normal charging task to the current electronic device according to whether the current electronic device is in a waiting full charging plan when it is determined that the current electronic device is not in a manual full charging plan and there is a full charging quota.
[0015] In a third aspect, an embodiment of the present invention further provides a computer device, the computer device comprising:
[0016] one or more processors;
[0017] a storage device for storing one or more programs,
[0018] When one or more programs are executed by one or more processors, the one or more processors implement any of the electronic device charging methods in the first aspect.
[0019] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute any of the electronic device charging methods in the first aspect when executed by a computer processor.
[0020] The embodiments of the above invention have the following advantages or beneficial effects:
[0021] An embodiment of the present invention provides a charging method for an electronic device, comprising: after determining that the current electronic device meets charging conditions, determining whether the current electronic device is in a manual full charging plan; when it is determined that the current electronic device is in the manual full charging plan, issuing a full charging task to the current electronic device; otherwise, when it is determined that there is a full charging quota, according to whether the current electronic device is in a to-be-full-charged plan, issuing a full charging task or a normal charging task to the current electronic device. In the above technical scheme, when it is determined that the current electronic device meets the charging conditions, it is determined whether the current electronic device is in a manual full charging plan. If the current electronic device is in the manual full charging plan, a full charging task is issued to the current electronic device, so as to realize timely full charging of the electronic devices that need to be fully charged in the current environment in priority; if the current electronic device is not in the manual full charging plan, when it is determined that there is a full charging quota, it is judged whether the current electronic device is in a waiting full charging plan. If it is determined that the current electronic device is in the waiting full charging plan, a full charging task is issued to the current electronic device; if it is determined that the current electronic device is not in the waiting full charging plan, a normal charging task is issued to the current electronic device, so as to realize dynamic adjustment of the charging plan of each electronic device in the current environment, improve the utilization rate of charging resources, meet the full charging requirements of electronic devices at the same time, improve the charging efficiency of electronic devices in the current environment, and solve the problem of equipment shortage and impact on equipment operation efficiency caused by the lack of a reasonable scheduling plan to charge multiple devices running in the current environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of a flow chart of a charging method for an electronic device provided by an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of a flow chart of another method for charging an electronic device provided by an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of the structure of a charging device for an electronic device provided by an embodiment of the present invention;
[0025] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0027] It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe various operations (or steps) as sequential processes, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the embodiments in the present invention and the features in the embodiments can be combined with each other without conflict.
[0028] Figure 1 The present invention provides a flowchart of a method for charging an electronic device. The present invention can be applied to the situation where multiple electronic devices running in the current environment need to be charged. The method can be executed by a charging device for an electronic device, which can be implemented by software and / or hardware. Figure 1 Said method specifically comprises the following steps:
[0029] S110: After determining that the current electronic device meets the charging condition, determine whether the current electronic device is in a manual full charging plan.
[0030] The manual full charging plan is determined by a waiting full charging plan established by historical charging records of each electronic device in the current environment where the current electronic device is located.
[0031] The current electronic device refers to a device composed of electronic components such as integrated circuits, transistors, and electron tubes, and uses electronic technology (including) software to function. In the embodiment of the present invention, the current electronic device refers to a smart device that can run multiple devices at the same time indoors. Exemplarily, the current electronic device can be a sweeping robot, a food delivery vehicle, an AGV, etc., and the embodiment of the present invention does not make specific limitations on this. The charging condition is a condition for judging whether the current electronic device needs to be charged. The embodiment of the present invention does not make specific limitations on this. Exemplarily, the charging condition can be that the current power of the current electronic device is less than 15%. The to-be-fully-charged plan consists of electronic devices that need to be fully charged in the current environment where the current electronic device is located, and the manual full-charge plan consists of electronic devices that need to be fully charged first and are selected by the user in the to-be-fully-charged plan. The historical charging record is a record of the electronic device performing a charging task.
[0032] On every natural day or every preset number of natural days, a full charging plan can be first established based on the electronic devices that need to be fully charged in the current environment. Then the user can select the electronic devices that need to be fully charged first in the full charging plan, and form a manual full charging plan to select the electronic devices that need to be fully charged first in the full charging plan.
[0033] Specifically, for any electronic device in the current environment, it can be used as the current electronic device to determine whether the current electronic device meets the charging conditions. Specifically, whether the current electronic device meets the charging conditions can be determined based on the current environment in which the current electronic device is located and the current power of the current electronic device to determine whether the current electronic device needs to be charged.
[0034] Since the electronic devices included in the manual full charging plan are all electronic devices that need to be fully charged first, after determining that the current electronic device meets the charging conditions, it is possible to first determine whether the current electronic device is in the manual full charging plan to determine whether the current electronic device needs to be fully charged first.
[0035] If the current electronic device is in the manual full charging plan, it indicates that the current electronic device needs to be fully charged first; if the current electronic device is not in the manual full charging plan, it indicates that the current electronic device does not need to be fully charged first.
[0036] In an embodiment of the present invention, after determining that the current electronic device meets the charging conditions, it is determined whether the current electronic device is in a manual full charging plan to determine whether the current electronic device needs to be fully charged first, thereby realizing the determination of the electronic devices that need to be fully charged first in the current environment.
[0037] S120: When it is determined that the current electronic device is in a manual full charging plan, a full charging task is issued to the current electronic device.
[0038] The full charge task is a charging task that ends charging when the power of the electronic device reaches 100%.
[0039] Specifically, when it is determined that the current electronic device is in the manual full charging plan, it indicates that the current electronic device needs to be fully charged first, that is, the charging task type of the current electronic device is a full charging task. At this time, the full charging task is sent to the current electronic device to control the current electronic device to perform the full charging task.
[0040] In an embodiment of the present invention, when it is determined that the current electronic device is in a manual full charging plan, a full charging task is sent to the current electronic device, thereby achieving timely full charging of electronic devices that need to be fully charged first in the current environment, meeting the full charging requirements of the electronic devices, and thereby improving the charging efficiency of the electronic devices in the current environment.
[0041] S130: Otherwise, when it is determined that there is a full charging quota, a full charging task or a normal charging task is issued to the current electronic device according to whether the current electronic device is in a waiting full charging plan.
[0042] The full charge quota is a preset quota that can be fully charged on the day, and the user can adjust and set the full charge quota according to actual usage needs, and the embodiment of the present invention does not specifically limit this. The normal charging task is a charging task that can dynamically end charging when the power of the electronic device does not reach 100%.
[0043] Specifically, when it is determined that the current electronic device is not in a manual full charge plan, it indicates that there is no need to give priority to fully charging the current electronic device. At this time, it is determined whether there is a full charge quota based on the pre-set full charge quota and the full charge number of the current environment. Specifically, when it is determined that the number of electronic devices being fully charged in the current environment is less than the pre-set full charge quota, it is determined that there is a full charge quota, otherwise, it is determined that there is no full charge quota. If it is determined that there is a full charge quota, it is determined whether the current electronic device is in a to-be-full charge plan, and the charging task type of the current electronic device is determined based on the judgment result, that is, a full charge task or a normal charge task, and then the full charge task or the normal charge task is sent to the current electronic device.
[0044] When it is determined that the current electronic device is in the full charging plan, it can be determined that the charging task type of the current electronic device is a full charging task, and then the full charging task can be issued to the current electronic device; when it is determined that the current electronic device is not in the full charging plan, it can be determined that the charging task type of the current electronic device is a normal charging task, and then the normal charging task can be issued to the current electronic device.
[0045] In an embodiment of the present invention, when it is determined that the current electronic device is not in a manual full charging plan, the charging task type of the current electronic device is determined according to the pre-set full charging quota and the to-be-full charging plan, and the charging task is issued to the current electronic device, so as to dynamically adjust the charging plan of each electronic device in the current environment, improve the utilization rate of charging resources, make full use of the full charging resources, and meet the full charging requirements of the electronic device at the same time, thereby improving the charging efficiency of the electronic device in the current environment, thereby greatly ensuring the operating efficiency of the electronic device in the current environment and improving the user experience of using the electronic device.
[0046] The charging method of an electronic device provided by an embodiment of the present invention includes: after determining that the current electronic device meets the charging conditions, determining whether the current electronic device is in a manual full charging plan; when it is determined that the current electronic device is in the manual full charging plan, issuing a full charging task to the current electronic device; otherwise, when it is determined that there is a full charging quota, according to whether the current electronic device is in a to-be-full-charged plan, issuing a full charging task or a normal charging task to the current electronic device. In the above technical scheme, when it is determined that the current electronic device meets the charging conditions, it is determined whether the current electronic device is in a manual full charging plan. If the current electronic device is in the manual full charging plan, a full charging task is issued to the current electronic device, so as to realize timely full charging of the electronic devices that need to be fully charged in the current environment in priority; if the current electronic device is not in the manual full charging plan, when it is determined that there is a full charging quota, it is judged whether the current electronic device is in a waiting full charging plan. If it is determined that the current electronic device is in the waiting full charging plan, a full charging task is issued to the current electronic device; if it is determined that the current electronic device is not in the waiting full charging plan, a normal charging task is issued to the current electronic device, so as to realize dynamic adjustment of the charging plan of each electronic device in the current environment, improve the utilization rate of charging resources, meet the full charging requirements of electronic devices at the same time, improve the charging efficiency of electronic devices in the current environment, and solve the problem of equipment shortage and impact on equipment operation efficiency caused by the lack of a reasonable scheduling plan to charge multiple devices running in the current environment.
[0047] Figure 2 A flowchart of another method for charging an electronic device provided in an embodiment of the present invention, the embodiment of the present invention is applicable to situations where multiple electronic devices running in the current environment need to be charged. In addition to the above embodiments, the embodiments of the present invention add "determining whether the current electronic device meets the charging conditions based on the current environment and the current power of the current electronic device", "establishing a full charging plan based on the historical charging records of each electronic device in the current environment and a preset charging cycle", "determining a manual full charging plan in the full charging plan based on the received selected information" and "issuing a normal charging task to the current electronic device when it is determined that there is no full charging quota", wherein the explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. See. Figure 2 , the charging method of the electronic device provided by the embodiment of the present invention includes:
[0048] S210: Establish a full charging plan based on the historical charging records of each electronic device in the current environment and a preset charging cycle.
[0049] The electronic device refers to an AGV that transports items in a smart warehouse. The preset charging cycle is a preset charging cycle of the AGV. The user can adjust and set the preset charging cycle according to actual usage requirements, and the embodiment of the present invention does not specifically limit this. For example, the preset charging cycle can be 15 days.
[0050] In one implementation, S210 may specifically include:
[0051] The last full charge time of each electronic device is determined based on the historical charging records of each electronic device in the current environment; after the electronic device whose time interval between the last full charge time and the current time in the current environment is greater than a preset charging cycle is determined as the target electronic device, a full charge plan is established based on the target electronic device.
[0052] The last full charge time is the time when the electronic device last performed a full charge task. The target electronic device is an electronic device that needs to be fully charged.
[0053] Specifically, on each natural day or every preset number of natural days, first obtain the historical charging records of each electronic device in the current environment, and determine the last full charging time of each electronic device based on the historical charging records of each electronic device, that is, the time when each electronic device in the current environment last performed a full charging task; secondly, obtain the current time, and calculate the time interval between the last full charging time and the current time of each electronic device in the current environment; then compare the time interval with the preset charging cycle to determine whether the time interval between the last full charging time and the current time of each electronic device in the current environment is greater than the preset charging cycle.
[0054] If it is determined that the time interval between the last full charge time and the current time of any electronic device in the current environment is greater than the preset charging cycle, it indicates that the electronic device needs to be fully charged, and the electronic device is determined as the target electronic device; otherwise, it indicates that the electronic device does not need to be fully charged, and it continues to be determined whether the time interval between the last full charge time and the current time of other electronic devices in the current environment is greater than the preset charging cycle.
[0055] After determining, based on the judgment result, an electronic device whose time interval between the last full charge time and the current time in the current environment is greater than a preset charging cycle as a target electronic device, a full charge plan is established based on the determined target electronic device, that is, the target electronic device is designated as an electronic device that needs to be fully charged.
[0056] In an embodiment of the present invention, a full charging plan is established based on the historical charging records of each electronic device in the current environment and a preset charging cycle, thereby dynamically determining the electronic devices that need to be fully charged in the current environment based on the historical charging records of the electronic devices.
[0057] S220. Determine a manual full charging plan in the to-be-full-charged plan according to the received selected information.
[0058] The selected information is the electronic device that needs to be fully charged first and is selected by the user from the fully charged plan.
[0059] After establishing the to-be-fully-charged plan, the to-be-fully-charged plan can be sent to the control terminal. The control terminal can display the to-be-fully-charged plan, that is, can display the to-be-fully-charged devices included in the to-be-fully-charged plan. The administrator can trigger the selected information based on the control terminal.
[0060] Specifically, after receiving the selected information sent by the control terminal, the manual full charging plan can be determined in the full charging plan according to the device identification contained in the selected information, that is, the device to be fully charged that needs to be fully charged first can be determined among the devices to be fully charged included in the full charging plan according to the device identification contained in the selected information.
[0061] In an embodiment of the present invention, a manual full charging plan is determined in the full charging plan based on the received selected information, so that the execution order of the full charging plan is dynamically adjusted according to the user's selected information, thereby realizing the determination of electronic devices that need to be fully charged first in the current environment, so that the full charging plan is more suitable for the current environment.
[0062] S230: Determine whether the current electronic device meets the charging condition according to the current environment and the current power of the current electronic device.
[0063] When it is determined that the current electronic device meets the charging condition, S240 is executed; otherwise, S290 is executed.
[0064] In one implementation, S230 may specifically include:
[0065] A power threshold is determined according to the busyness of the current environment; when it is determined that the current power is less than the power threshold, it is determined that the current electronic device meets the charging condition.
[0066] The busyness is the busyness of each electronic device in the current environment, and the power threshold is the power value used to determine whether the current electronic device needs to be charged. When the current power of the electronic device is less than the power threshold, it indicates that the electronic device needs to be charged; when the current power of the electronic device is greater than or equal to the power threshold, it indicates that the electronic device does not need to be charged. In the embodiment of the present invention, the greater the busyness, the busier the current environment, and the smaller the power threshold.
[0067] Specifically, any electronic device in the current environment can be used as the current electronic device, and whether the current electronic device meets the charging condition can be determined according to the current environment and the current power of the current electronic device. Specifically, the busyness of the current environment can be obtained first, and then the power threshold of the current environment can be determined according to the busyness of the current environment. For example, if the busyness of the current environment is less than the busyness threshold, the power threshold can be determined to be A%; if the busyness of the current environment is greater than or equal to the busyness threshold, the power threshold can be determined to be B%, where A is greater than B.
[0068] After determining the power threshold according to the busyness of the current environment, the current power of the current electronic device can be obtained, and the current power of the current electronic device can be compared with the power threshold to determine whether the current electronic device meets the charging condition. Specifically, if the current power of the current electronic device is less than the power threshold, it indicates that the current power of the current electronic device is insufficient to support the current electronic device to continue to operate, and the current electronic device needs to be charged. At this time, it is determined that the current electronic device meets the charging condition, and S240 is executed; if the current power of the current electronic device is greater than or equal to the power threshold, it indicates that the current power of the current electronic device can support the current electronic device to continue to operate, and the current electronic device does not need to be charged. At this time, it is determined that the current electronic device does not meet the charging condition, and then S290 is executed.
[0069] Of course, after determining that the current electronic device does not meet the charging condition, other electronic devices may be determined as the current electronic device to continue to determine whether the current electronic device meets the charging condition based on the current environment and the current power of the current electronic device.
[0070] For example, when A is 20 and B is 15, when the busyness of the current environment is less than the busyness threshold, if the current power of the current electronic device is 30%, it is determined that the current electronic device does not meet the charging condition; if the current power of the current electronic device is 15%, it is determined that the current electronic device meets the charging condition. When the busyness of the current environment is greater than or equal to the busyness threshold, if the current power of the current electronic device is 30%, it is determined that the current electronic device does not meet the charging condition; if the current power of the current electronic device is 12%, it is determined that the current electronic device meets the charging condition.
[0071] In an embodiment of the present invention, whether the current electronic device meets the charging conditions is determined based on the busyness of the current environment and the current power of the current electronic device, thereby dynamically adjusting the power threshold according to the busyness of the current environment, and then dynamically determining whether the current electronic device needs to be charged, thereby meeting the charging needs of the electronic device and ensuring the operating efficiency of the electronic device.
[0072] S240: Determine whether the current electronic device is in a manual full charging plan.
[0073] When it is determined that the current electronic device is in the manual full charging plan, execute S270; otherwise, execute S250.
[0074] The manual full charging plan is determined by a waiting full charging plan established by historical charging records of each electronic device in the current environment where the current electronic device is located.
[0075] Specifically, since the electronic devices included in the manual full charge plan are all electronic devices that need to be fully charged first, after determining that the current electronic device meets the charging conditions based on the current power of the current electronic device, it is determined whether the current electronic device is in the manual full charge plan based on the established manual full charge plan to determine whether the current electronic device needs to be fully charged first. Specifically, if it is determined that the current electronic device is in the manual full charge plan, it indicates that the current electronic device needs to be fully charged first, and S270 is executed at this time; if it is determined that the current electronic device is not in the manual full charge plan, it indicates that the current electronic device does not need to be fully charged first, and S250 is executed at this time to continue to determine the charging task type of the current electronic device.
[0076] In an embodiment of the present invention, after determining that the current electronic device meets the charging conditions, it is determined whether the current electronic device is in a manual full charging plan to determine whether the current electronic device needs to be fully charged first, thereby realizing the determination of the electronic devices that need to be fully charged first in the current environment.
[0077] S250: Determine whether there are full charge quotas.
[0078] When it is determined that there is a full charge quota, execute S260; otherwise, execute S280.
[0079] Specifically, when it is determined that the current electronic device is not in the manual full charge plan, it indicates that it is not necessary to give priority to fully charge the current electronic device. At this time, it is determined whether there is a full charge quota in the current environment based on the preset full charge quota and the full charge number of the current environment. Specifically, when it is determined that the number of electronic devices being fully charged in the current environment is less than the preset full charge quota, it is determined that there is a full charge quota, otherwise, it is determined that there is no full charge quota.
[0080] If it is determined that there is a full charging quota, it means that other electronic devices in the current environment can still be controlled to perform full charging tasks. At this time, S260 is executed to continue to determine the charging task type of the current electronic device; if it is determined that there is no full charging quota, it means that there are no quotas for full charging tasks in the current environment, otherwise it will affect the operating efficiency of the electronic devices in the current environment. At this time, it is determined that the charging task type of the current electronic device is a normal charging task, and S280 is executed to send the charging task to the current electronic device.
[0081] In an embodiment of the present invention, after determining that the current electronic device is not in a manual full charging plan, it is determined whether there are full charging quotas, so that after the electronic device that needs to be fully charged first executes the full charging task, it is further determined whether there are still quotas for executing the full charging task in the current environment, thereby making full use of the full charging resources.
[0082] S260: Determine whether the current electronic device is in a fully charged plan.
[0083] When it is determined that the current electronic device is in the waiting-for-full-charge plan, execute S270 ; otherwise, execute S280 .
[0084] Specifically, when it is determined that there is a full charge quota, it indicates that other electronic devices can still be controlled to perform full charge tasks in the current environment. At this time, it is determined whether the current electronic device is in the full charge plan that has been established to determine the type of charging task for the current electronic device. Specifically, the device identification of the current electronic device can be searched in the full charge plan. If the full charge plan includes the device identification of the current electronic device, it is determined that the current electronic device is in the full charge plan. Otherwise, it is determined that the current electronic device is not in the full charge plan.
[0085] In actual application, if it is determined that the current electronic device is in a full charging plan, it can be determined that the charging task type of the current electronic device is a full charging task, and S270 is executed at this time; if it is determined that the current electronic device is not in a full charging plan, it can be determined that the charging task type of the current electronic device is a normal charging task, and S280 is executed at this time.
[0086] In an embodiment of the present invention, after determining that there is a full charging quota, it continues to judge whether the current electronic device is in a to-be-full-charging plan, thereby realizing determination of the charging task type of the current electronic device according to the to-be-full-charging plan, improving the efficiency of determining the task type, and reducing the implementation complexity of determining the task type.
[0087] S270: Send a full charge task to the current electronic device.
[0088] Specifically, when it is determined that the current electronic device is in a manual full charging plan, or when it is determined that there is a full charging quota and it is determined that the current electronic device is in a pending full charging plan, it indicates that the charging task type of the current electronic device is a full charging task. At this time, the full charging task is sent to the current electronic device to control the current electronic device to perform the full charging task.
[0089] In an embodiment of the present invention, the charging task type of the current electronic device is determined to be a full charging task based on the judgment result, and the full charging task is sent to the current electronic device, so as to realize timely full charging of the electronic device that needs to be fully charged in the current environment, and make full use of the full charging resources. At the same time, the full charging requirements of the electronic device are met, thereby improving the charging efficiency of the electronic device in the current environment.
[0090] S280: Send a normal charging task to the current electronic device.
[0091] Specifically, when it is determined that there is no full charging quota, or when it is determined that there is a full charging quota and it is determined that the current electronic device is not in the full charging plan, it indicates that the charging task type of the current electronic device is a normal charging task. At this time, a normal charging task is sent to the current electronic device to control the current electronic device to perform the normal charging task.
[0092] It should be noted that when the current electronic device is performing a normal charging task, the normal charging task of the current electronic device can be dynamically terminated.
[0093] In an embodiment of the present invention, the charging task type of the current electronic device is determined to be a normal charging task based on the judgment result, and the normal charging task is issued to the current electronic device, so as to realize timely charging of the electronic device that does not meet the full charging conditions and needs to be charged in the current environment, thereby improving the utilization rate of charging resources, meeting the charging needs of the electronic device, and greatly ensuring the operating efficiency of the electronic device in the current environment.
[0094] S290: Determine that there is no need to charge the current electronic device.
[0095] Specifically, when it is determined that the current electronic device does not meet the charging conditions based on the current environment and the current power of the current electronic device, it indicates that the current power of the current electronic device can support the current electronic device to continue operating. At this time, it is determined that there is no need to charge the current electronic device.
[0096] In the embodiment of the present invention, when it is determined that the current electronic device does not meet the charging condition, it is determined that the current electronic device does not need to be charged, thereby achieving the determination of the electronic device that does not need to be charged, thereby saving charging resources.
[0097] The charging method of an electronic device provided by an embodiment of the present invention includes: establishing a to-be-full-charged plan according to the historical charging records of each electronic device in the current environment and a preset charging cycle; determining a manual full-charged plan in the to-be-full-charged plan according to the received selected information; determining whether the current electronic device meets the charging condition according to the current environment and the current power of the current electronic device; if it is determined that the current electronic device meets the charging condition, determining whether the current electronic device is in the manual full-charged plan; if it is determined that the current electronic device is not in the manual full-charged plan, determining whether there is a full-charge quota; if it is determined that there is a full-charge quota, determining whether the current electronic device is in the to-be-full-charged plan; if it is determined that the current electronic device is in the manual full-charged plan, or if it is determined that there is a full-charge quota and the current electronic device is in the to-be-full-charged plan, issuing a full-charged charging task to the current electronic device; if it is determined that there is no full-charge quota, or if it is determined that there is a full-charge quota and the current electronic device is not in the to-be-full-charged plan, issuing a normal charging task to the current electronic device; if it is determined that the current electronic device does not meet the charging condition, determining that there is no need to charge the current electronic device.In the above technical scheme, on each natural day or every preset number of natural days, firstly, the last full charging time of each electronic device is determined according to the historical charging records of each electronic device in the current environment, and the time interval between the last full charging time of each electronic device in the current environment and the current time is calculated. Secondly, the electronic device whose time interval is greater than the preset charging cycle is determined as the target electronic device, and a to-be-fully-charged plan is established according to the target electronic device, so that the electronic device that needs to be fully charged in the current environment is dynamically determined according to the historical charging records of the electronic device, and then the electronic device that needs to be fully charged first is determined in the to-be-fully-charged plan according to the user's selected information, and a manual full charging plan is established, so that the electronic device that needs to be fully charged first in the current environment is determined, so that the full charging plan is more suitable for the current environment; in addition, the power threshold that needs to be charged in the current environment is determined according to the busyness of the current environment, and the current power of the current electronic device is compared with the power threshold to determine whether the current electronic device meets the charging conditions, that is, when the current power of the current electronic device is less than the power threshold, it is determined that the current electronic device meets the charging conditions; otherwise, it is determined that the current electronic device does not meet the charging conditions, so that the charging conditions are determined according to the user's selected information. The power threshold is dynamically adjusted according to the busyness of the current environment, and then it is dynamically determined whether the current electronic device needs to be charged; when it is determined that the current electronic device meets the charging conditions, it is judged whether the current electronic device is in a manual full charging plan. If it is determined that the current electronic device is in a manual full charging plan, a full charging task is sent to the current electronic device; if it is determined that the current electronic device is not in a manual full charging plan, the charging task type of the current electronic device continues to be determined according to the full charging quota and the to-be-full charging plan, that is, when it is determined that there is a full charging quota and the current electronic device is in a to-be-full charging plan, a full charging task is sent to the current electronic device; otherwise, a normal charging task is sent to the current electronic device, so as to realize the determination of the charging task type of the current electronic device according to the current environment, improve the efficiency of determining the task type, reduce the implementation complexity of determining the task type, and at the same time make full use of the full charging resources, improve the utilization rate of the charging resources, meet the full charging requirements and charging needs of the electronic device, and greatly ensure the operating efficiency of the electronic device in the current environment; when it is determined that the current electronic device does not meet the charging conditions, it is determined that there is no need to charge the current electronic device, so as to realize the determination of the electronic device that does not need to be charged, thereby saving charging resources.
[0098] Figure 3 The present invention provides a schematic diagram of the structure of a charging device for an electronic device according to an embodiment of the present invention. The device and the charging methods for electronic devices according to the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the charging device for electronic devices, reference can be made to the embodiments of the charging methods for electronic devices according to the above embodiments.
[0099] The specific structure of the charging device of the electronic device is as follows Figure 3 As shown, including:
[0100] A first determination module 310 is used to determine whether the current electronic device is in a manual full charge plan after determining that the current electronic device meets the charging condition, wherein the manual full charge plan is determined according to the full charge plan after the full charge plan is established according to the historical charging records of each electronic device;
[0101] The first execution module 320 is used to send a full charging task to the current electronic device when it is determined that the current electronic device is in a manual full charging plan;
[0102] The second execution module 330 is used to send a full charging task or a normal charging task to the current electronic device according to whether the current electronic device is in a waiting full charging plan when it is determined that the current electronic device is not in a manual full charging plan and there is a full charging quota.
[0103] Based on the above embodiment, the device further includes:
[0104] The second determination module is used to determine whether the current electronic device meets the charging condition according to the current environment and the current power of the current electronic device.
[0105] Based on the above embodiment, the second determining module is specifically used for:
[0106] Determine the power threshold based on the busyness of the current environment;
[0107] When it is determined that the current power level is less than the power threshold, it is determined that the current electronic device meets the charging condition.
[0108] Based on the above embodiment, the device further includes:
[0109] The third determination module is used to establish a full charging plan based on the historical charging records of each electronic device in the current environment and a preset charging cycle; and determine a manual full charging plan in the full charging plan based on the received selected information.
[0110] Based on the above embodiment, the third determining module is specifically used to:
[0111] Determine the last full charge time of each electronic device according to the historical charging records of each electronic device in the current environment;
[0112] After determining an electronic device whose time interval between the last full charge time and the current time in the current environment is greater than a preset charging cycle as a target electronic device, a full charge plan is established based on the target electronic device.
[0113] Based on the above embodiment, the device further includes:
[0114] The third execution module is used to send a common charging task to the current electronic device when it is determined that there is no full charging quota.
[0115] Based on the above embodiment, the second execution module 330 is specifically configured to:
[0116] When determining that the current electronic device is in a waiting-for-full-charge plan, a full-charge task is issued to the current electronic device;
[0117] Otherwise, a normal charging task is sent to the current electronic device.
[0118] The charging device for an electronic device provided in the embodiment of the present invention can execute the charging method for an electronic device provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the charging method for an electronic device.
[0119] It is worth noting that in the embodiment of the charging device for the above-mentioned electronic device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0120] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Figure 4 A block diagram of an exemplary computer device 4 suitable for use in implementing embodiments of the present invention is shown. Figure 4 The computer device 4 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0121] like Figure 4 As shown, the computer device 4 is in the form of a general-purpose computing electronic device. The components of the computer device 4 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0122] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0123] The computer device 4 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 4, including volatile and non-volatile media, removable and non-removable media.
[0124] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 4 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0125] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0126] The computer device 4 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 4, and / or any device that enables the computer device 4 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the computer device 4 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. Figure 4 As shown, the network adapter 20 communicates with other modules of the computer device 4 via the bus 18. It should be understood that although Figure 4Not shown, other hardware and / or software modules may be used in conjunction with computer device 4, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0127] The processing unit 16 executes various functional applications and page displays by running the program stored in the system memory 28, for example, implementing the charging method of the electronic device provided in the embodiment of the present invention, the method comprising:
[0128] After determining that the current electronic device meets the charging condition, determine whether the current electronic device is in a manual full charging plan, wherein the manual full charging plan is determined by a waiting full charging plan established by historical charging records of each electronic device in the current environment where the current electronic device is located;
[0129] When it is determined that the current electronic device is in a manual full charging plan, a full charging task is issued to the current electronic device;
[0130] Otherwise, when it is determined that there is a full charging quota, a full charging task or a normal charging task is sent to the current electronic device according to whether the current electronic device is in the waiting full charging plan.
[0131] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the charging method of the electronic device provided in any embodiment of the present invention.
[0132] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, a charging method for an electronic device provided in an embodiment of the present invention is implemented. The method includes:
[0133] After determining that the current electronic device meets the charging condition, determine whether the current electronic device is in a manual full charging plan, wherein the manual full charging plan is determined by a waiting full charging plan established by historical charging records of each electronic device in the current environment where the current electronic device is located;
[0134] When it is determined that the current electronic device is in a manual full charging plan, a full charging task is issued to the current electronic device;
[0135] Otherwise, when it is determined that there is a full charging quota, a full charging task or a normal charging task is sent to the current electronic device according to whether the current electronic device is in the waiting full charging plan.
[0136] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0137] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0138] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0139] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0140] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0141] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for charging an electronic device, characterized in that: include: After determining that the current electronic device meets the charging condition, determining whether the current electronic device is in a manual full charging plan, wherein the manual full charging plan is determined by a to-be-full-charged plan established by historical charging records of each electronic device in the current environment where the current electronic device is located; When it is determined that the current electronic device is in the manual full charging plan, issuing a full charging task to the current electronic device; Otherwise, when it is determined that there is a full charging quota, a full charging task or a normal charging task is sent to the current electronic device according to whether the current electronic device is in the to-be-full-charged plan.
2. The method for charging an electronic device according to claim 1, characterized in that: Also includes: Determine whether the current electronic device meets the charging condition according to the current environment and the current power of the current electronic device.
3. The method for charging an electronic device according to claim 2, characterized in that: Determining whether the current electronic device meets the charging condition according to the current environment and the current power of the current electronic device includes: Determining a power threshold according to the busyness of the current environment; When it is determined that the current power level is less than the power threshold, it is determined that the current electronic device meets the charging condition.
4. The method for charging an electronic device according to claim 1, characterized in that: Also includes: Establishing the full charging plan according to the historical charging records of each of the electronic devices in the current environment and the preset charging cycle; The manual full charging plan is determined in the to-be-full-charging plan according to the received selected information.
5. The method for charging an electronic device according to claim 4, characterized in that: The fully charged plan is established according to the historical charging records of each of the electronic devices in the current environment and the preset charging cycle, including: Determining the last full charge time of each of the electronic devices according to the historical charging records of each of the electronic devices in the current environment; After determining an electronic device whose time interval between the last full charge time and the current time in the current environment is greater than the preset charging cycle as a target electronic device, the to-be-full-charged plan is established based on the target electronic device.
6. The method for charging an electronic device according to claim 1, characterized in that: Also includes: When it is determined that there is no full charging quota, a normal charging task is issued to the current electronic device.
7. The method for charging an electronic device according to claim 1, characterized in that: According to whether the current electronic device is in the waiting-for-full-charge plan, a full-charge task or a common-charge task is issued to the current electronic device, including: When determining that the current electronic device is in the to-be-fully-charged plan, issuing a full-charge task to the current electronic device; Otherwise, a common charging task is sent to the current electronic device.
8. A charging device for an electronic device, characterized in that: include: A first determination module is used to determine whether the current electronic device is in a manual full charge plan after determining that the current electronic device meets the charging condition, wherein the manual full charge plan is determined according to the full charge plan after establishing the full charge plan according to the historical charging records of each electronic device; A first execution module, configured to, when determining that the current electronic device is in the manual full charging plan, issue a full charging task to the current electronic device; The second execution module is used to send a full charging task or a normal charging task to the current electronic device according to whether the current electronic device is in the waiting full charging plan when it is determined that the current electronic device is not in the manual full charging plan and there is a full charging quota.
9. A computer device, characterized in that: The computer device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the charging method for an electronic device as described in any one of claims 1 to 7.
10. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to execute the charging method for an electronic device as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Charging calibration method and device for transport vehicle
CN112339581A
Transport vehicle charging scheduling control method and device
CN113408773A
Charging control method, program, and charging control system
CN114503391A
Charging scheduling method, device and equipment of unmanned container truck and readable storage medium
CN115438948A
Control system of unmanned fork type mobile robot
CN115877854A