Equipment control method and device, storage medium and electronic equipment
By obtaining the remaining power parameters and preset thresholds of the device, the charging task allocation and stealing strategy is optimized, and the task execution efficiency caused by low equipment power is solved, and the charging efficiency and equipment utilization are improved.
Patent Information
- Application Number
- CN202410955323.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-08
AI Technical Summary
When the power of multiple devices is lower than the preset power threshold, the task execution efficiency is low and the charging requirements cannot be fully met, which may lead to insufficient power supply equipment and inability to perform tasks effectively.
By obtaining the remaining power parameters of multiple sets of devices, determining the equipment to be charged based on the preset power threshold, issuing charging tasks to it, occupies the power supply equipment for charging first, and steals and stops charging instructions when necessary to ensure the task Execution efficiency and equipment utilization.
It improves task execution efficiency, reduces equipment energy consumption and operation costs, ensures effective meeting of charging needs, and avoids the situation where the equipment is unable to perform tasks due to insufficient power.
Smart Images

Figure CN118920630A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a control method, an apparatus, a storage medium, and an electronic device for a device. Background Art
[0002] At present, in the relevant technology, if the power level of a device is lower than a preset power threshold, the power supply device will be searched directly, and the device will be controlled to go to the location of the nearest power supply device for charging. When the power levels of multiple devices are lower than the preset power threshold at the same time, these multiple devices will be in a state of being unable to perform the task. Furthermore, if multiple devices are performing charging operations, the task will be stalled. There may also be an insufficient number of power supply devices to meet the charging needs of these multiple devices. In summary, the relevant technology cannot ensure that there are enough devices to perform tasks during some time periods, resulting in a technical problem of low task execution efficiency of the equipment.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, storage medium and electronic device for controlling a device, so as to at least solve the technical problem of low task execution efficiency of the device.
[0005] According to one aspect of the present application, a device control method is provided, including: obtaining multiple groups of remaining power parameters corresponding to multiple groups of devices; determining a first group of devices based on the multiple groups of remaining power parameters and a preset group power threshold, wherein the multiple groups of remaining power parameters include a first group of remaining power parameters corresponding to the first group of devices, and the first group of remaining power parameters and the group power threshold satisfy a first preset condition; issuing a first charging task to a first device to be charged in the first group of devices, wherein the first charging task is used to instruct the first device to be charged to occupy a first power supply device for charging, the first power supply device indicates a device that preferentially supplies power to the first group of devices, and the remaining power parameters corresponding to the first device to be charged and the device power threshold satisfy a second preset condition.
[0006] According to another aspect of the present application, a control device for a device is provided, including: an acquisition module, used to acquire multiple groups of remaining power parameters corresponding to multiple groups of devices; a determination module, used to determine a first group of devices based on the multiple groups of remaining power parameters and a preset group power threshold, wherein the multiple groups of remaining power parameters include a first group of remaining power parameters corresponding to the first group of devices, and the first group of remaining power parameters and the group power threshold meet a first preset condition; a task module, used to issue a first charging task to a first device to be charged in the first group of devices, wherein the first charging task is used to instruct the first device to be charged to occupy a first power supply device for charging, the first power supply device indicates a device that preferentially supplies power to the first group of devices, and the remaining power parameters corresponding to the first device to be charged and the device power threshold meet a second preset condition.
[0007] Optionally, the device is used to issue a first charging task to a first device to be charged in the first group of devices in the following manner: when any of the first power supply devices is not occupied by any charging device, issuing the first charging task to the first device to be charged, wherein the first charging task is used to instruct the first device to be charged to occupy the first power supply device that is not occupied by any charging device for charging; when all the first power supply devices are occupied and a first interruption condition is satisfied between the first device to be charged and the first charging device, sending a first stop charging instruction to the first charging device and issuing the first charging task to the first device to be charged, wherein the first interruption condition is determined by a remaining power parameter of the first device to be charged and a remaining power parameter of the first charging device, and the first stop charging instruction is used to instruct the first charging device to stop occupying the first power supply device, and the remaining power parameter of the first charging device satisfies a third preset condition.
[0008] Optionally, the device is also used to: when all the first power supply devices are occupied and the first preemption condition is not satisfied between the first device to be charged and the first charging device, determine whether the second power supply device is occupied, wherein the second power supply device indicates a device that is not set to preferentially supply power to the first group of devices; when any of the second power supply devices is not occupied, issue a second charging task to the first device to be charged, wherein the second charging task is used to instruct the first device to be charged to occupy the second power supply device that is not occupied by any charging device for charging; when all the second power supply devices are occupied and the first preemption condition is satisfied between the first device to be charged and the second charging device, send a second stop charging instruction to the second charging device, and issue the second charging task to the first device to be charged, wherein the second stop charging instruction is used to instruct the second charging device to stop occupying the second power supply device, and the remaining power parameter of the second charging device satisfies the third preset condition.
[0009] Optionally, the device is used to send a first stop charging instruction to the first charging device and issue the first charging task to the first device to be charged when the first power supply device is occupied and the first interruption condition is satisfied between the first device to be charged and the first charging device in the following manner: when the first power supply device is occupied by the first charging device, obtain a start interruption power threshold and an allowable interruption power threshold; when the remaining power parameter of the first device to be charged is less than or equal to the start interruption power threshold, and the remaining power parameter of the first charging device is greater than or equal to the allowable interruption power threshold, determine that the first interruption condition is satisfied between the first device to be charged and the first charging device; send the first stop charging instruction to the first charging device, and issue the first charging task to the first device to be charged.
[0010] Optionally, the device is used to send a first charging task to a first device to be charged in the first group of devices in the following manner: obtain the number of first devices in the first group of devices that are executing charging tasks and the total number of first devices in the first group of devices; determine a first quantity ratio based on the number of first devices and the total number of first devices; when the first quantity ratio is less than a first ratio threshold, send the first charging task to the first device to be charged.
[0011] Optionally, the device is also used to: when the first quantity ratio is greater than or equal to the first ratio threshold, determine whether a second preemption condition is met between the first device to be charged and the third charging device in the first group of devices, wherein the second preemption condition is determined by the remaining power parameter of the first device to be charged and the remaining power parameter of the third charging device, and the third charging device represents a device in the first group of devices that is performing a charging task; when the second preemption condition is met between the first device to be charged and the third charging device, determine the number of second devices in the second group of devices that are performing a charging task and the total number of second devices in the second group of devices, wherein the second group of devices includes the third charging device; determine a second quantity ratio based on the number of second devices and the total number of second devices; when the second quantity ratio is less than the second ratio threshold, send a third stop charging instruction to the third charging device, and issue a third charging task to the first device to be charged, wherein the third stop charging instruction is used to instruct the third charging device to stop occupying the third power supply device, and the third charging task is used to instruct the first device to be charged to occupy the third power supply device for charging.
[0012] Optionally, the device is also used to: pre-group multiple devices to determine the multiple groups of devices and ungrouped devices; obtain a third device number of the target power supply device, wherein the target power supply device represents a device that is allowed to supply power to the ungrouped device; when the third device number exceeds the fourth device number of the ungrouped device, issue a fourth charging task to the ungrouped device, wherein the fourth charging task is used to instruct the ungrouped device to occupy the target power supply device for charging, and the correspondence between the target power supply device and the ungrouped device is determined by the power parameter of the ungrouped device and the distance between the ungrouped device and the target power supply device; when the third device number does not exceed the fourth device number, issue a fifth charging task to the ungrouped device, wherein the fifth charging task is used to instruct the devices among the ungrouped devices whose power parameters meet the ungrouped power conditions to occupy the target power supply device for charging, and the correspondence between the target power supply device and the ungrouped device is determined by the power parameter of the ungrouped device and the distance between the ungrouped device and the target power supply device.
[0013] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0014] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0015] In an embodiment of the present application, multiple groups of remaining power parameters corresponding to multiple groups of devices are obtained; a first group of devices is determined according to the multiple groups of remaining power parameters and a preset group power threshold, wherein the multiple groups of remaining power parameters include a first group of remaining power parameters corresponding to the first group of devices, and the first group of remaining power parameters and the group power threshold satisfy a first preset condition; a first charging task is issued to a first device to be charged in the first group of devices, wherein the first charging task is used to instruct the first device to be charged to occupy a first power supply device for charging, the first power supply device represents a device that preferentially supplies power to the first group of devices, and the remaining power parameters corresponding to the first device to be charged and the device power threshold satisfy a second preset condition, so as to achieve effective regulation of the charging task for the device to be charged, ensure that the task can be executed as expected, improve the task execution efficiency, and reduce the equipment energy consumption and operating costs, thereby solving the technical problem of low task execution efficiency of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a hardware structure block diagram of a mobile terminal according to a device control method of an embodiment of the present application;
[0017] Figure 2 is a flow chart of a method for controlling a device according to an embodiment of the present application;
[0018] Figure 3 is a flow chart of a control method of a device according to an embodiment of the present application;
[0019] Figure 4 is a flow chart of a control method of a device according to an embodiment of the present application;
[0020] Figure 5 It is a structural block diagram of a control device of a device according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0023] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a device control method according to an embodiment of the present application. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and a terminal device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of the device in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0025] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0026] Optionally, in this embodiment, the control method of the above device can also be implemented by a server, or implemented by the terminal device and the server together.
[0027] The above is only an example and is not specifically limited in this embodiment.
[0028] Optionally, as an optional implementation, Figure 2 is a flow chart of a control method of a device according to an embodiment of the present application, such as Figure 2 As shown, the control method of the above device includes:
[0029] S202, obtaining multiple groups of remaining power parameters corresponding to multiple groups of devices;
[0030] Optionally, in an embodiment of the present application, the devices in the above-mentioned multiple groups of devices may include but are not limited to AGV (automatic guided vehicle), automobiles, industrial equipment, household equipment, etc.
[0031] For example, Figure 3 is a flow chart of a control method of a device according to an embodiment of the present application, such as Figure 3 As shown, several devices can be grouped and divided, and the basis for the division may include but is not limited to the priority of the device to execute the task, the working area of the device, etc. For example, devices with high priority in executing the task are divided into a group of devices, and devices in the same working area are divided into a group of devices to obtain the above-mentioned multiple groups of devices, and each group of devices corresponds to its own remaining power parameter, and a remaining power parameter may include but is not limited to the power value of a device in the corresponding group of devices.
[0032] It should also be noted that the number of devices in different groups may be the same or different, the remaining power parameters of devices in different groups may be the same or different, and a device may be in different groups of devices to process the same or different tasks.
[0033] S204, determining a first group of devices according to the multiple groups of remaining power parameters and a preset group power threshold, wherein the multiple groups of remaining power parameters include a first group of remaining power parameters corresponding to the first group of devices, and the first group of remaining power parameters and the group power threshold satisfy a first preset condition;
[0034] Optionally, in an embodiment of the present application, the above-mentioned group power threshold can be flexibly set, and the present application does not impose any limitation on this. The above-mentioned first group of devices can be understood as any group of devices in the above-mentioned multiple groups of devices, and the above-mentioned first group of remaining power parameters refers to the power values of several devices in the first group of devices.
[0035] Exemplarily, the group power threshold may include several ones, specifically: the first group of devices consists of two devices A and device B, and the corresponding group power threshold is 40; the second group of devices consists of devices A and device C, and the corresponding group power threshold is 30. The current remaining power of device A is 30, the current remaining power of device B is 30, and the current remaining power of device C is 70. Then the remaining power parameters of the first group are 30, 30; the remaining power parameters of the second group of devices are 30, 70. The remaining power parameters of the first group are averaged, and the average value of the remaining power parameters of the first group is 30, which is less than the group power threshold of 40 corresponding to the first group; similarly, the remaining power parameters of the second group are averaged, and the average value of the remaining power parameters of the second group is 70, which is greater than the group power threshold of 30 corresponding to the second group. It can be regarded as that the remaining power parameters of the first group and the group power threshold meet the first preset condition.
[0036] Exemplarily, assuming that the first group of devices and the second group of devices both correspond to a same group power threshold 20, then in combination with the above example, the first group of remaining power parameters and the group power threshold do not meet the first preset condition.
[0037] It should be noted that the above-mentioned first preset condition may include but is not limited to the average value of the first group of remaining power parameters being greater than or equal to the group power threshold, and may also be a weighted summation of the first group of remaining power parameters, and the sum value obtained is greater than or equal to the group power threshold, wherein the weight values of the remaining power parameters of different devices may be determined by the priority and urgency of the tasks to be performed by the corresponding devices. For example, the weight value corresponding to the device with a higher task priority is set to be larger than the weight value corresponding to the device with a higher task priority, so as to ensure that the device is charged in time afterwards without affecting the execution efficiency of the task.
[0038] S206, issuing a first charging task to a first device to be charged in the first group of devices, wherein the first charging task is used to instruct the first device to be charged to occupy a first power supply device for charging, the first power supply device indicates a device that preferentially supplies power to the first group of devices, and the remaining power parameter corresponding to the first device to be charged and the device power threshold meet a second preset condition.
[0039] Optionally, in the present application, the first device to be charged refers to a device in the first group of devices that needs to be charged. The first device to be charged may include several devices, and the first device to be charged includes but is not limited to a device that is not currently charged, a device that is currently being charged, etc. The first charging task is used to increase the power of the first device to be charged. The first power supply device may include but is not limited to charging devices such as chargers and charging piles. The first power supply device may include several devices. The power threshold of the above-mentioned device can be flexibly set, and the present application does not impose any restrictions on this.
[0040] It is understandable that one device can occupy different power supply devices for charging operations, and different devices can also occupy the same power supply device for charging operations, to ensure the timeliness of charging and the rational use of the power supply equipment. The present application does not limit this. In addition, there can be multiple power supply devices, and some of these multiple power supply devices can be pre-set to be able to preferentially supply power to the above-mentioned first group of devices. This part of the equipment is the above-mentioned first power supply device. The difference between the first power supply device and other power supply devices may include but is not limited to being closer to the first device to be charged, or having better performance, etc.
[0041] Exemplarily, the first group of devices consists of device 1, device 2, and device 3, among which device 1 is performing a transportation task; device 2 is performing an unloading task, and device 3 is using charging pile A to perform a charging task. The power threshold of the above-mentioned devices is 30. At this time, the remaining power parameter of device 1 is 20, the remaining power parameter of device 2 is 50, and the remaining power parameter of device 3 is 26. Then the remaining power parameters of device 1 and device 3 and the device power threshold meet the second preset condition; while the remaining power parameter of device 2 and the device power threshold do not meet the second preset condition.
[0042] Further, device 1 and device 3 are determined as the first group of devices to be charged, and device 1 can occupy the idle charging pile B, and device 3 continues to use the charging pile A to perform the first charging task.
[0043] It should be noted that the second preset condition may include but is not limited to the first device to be charged having a power level greater than or equal to a device power threshold.
[0044] In an exemplary embodiment, the control method of the device proposed in the present application may include but is not limited to the application of the field of automated industrial control. For example, the above-mentioned device is an AGV, and the power supply device is a charging pile for powering the AGV. Specifically, it may include but is not limited to the following steps:
[0045] S1, periodically obtain the remaining power parameters of each AGV in each group;
[0046] S2, set the group power threshold;
[0047] S3, respectively determining whether the average remaining power parameter of each group of AGVs is less than or equal to the group power threshold, and determining several groups of AGVs whose average remaining power parameter is less than or equal to the group power threshold as the first group of devices, and the group power thresholds corresponding to different groups of AGVs may be the same or different;
[0048] S4, processing each group of AGV equipment indicated by the first group of equipment respectively;
[0049] S5, setting the device power threshold, which may be the same as or different from the device power threshold, and executing S6 for each group of AGV devices;
[0050] S6, determining whether the remaining power of each AGV in the group is less than or equal to the device power threshold, and determining the AGV whose remaining power parameter is less than or equal to the device power threshold as the first device to be charged;
[0051] S7, issuing a first charging task to the first device to be charged, instructing the first device to be charged to occupy the first charging pile for charging.
[0052] Through the embodiments of the present application, multiple groups of remaining power parameters corresponding to multiple groups of devices are obtained; a first group of devices is determined according to the multiple groups of remaining power parameters and a preset group power threshold, wherein the multiple groups of remaining power parameters include a first group of remaining power parameters corresponding to the first group of devices, and the first group of remaining power parameters and the group power threshold satisfy a first preset condition; a first charging task is issued to a first device to be charged in the first group of devices, wherein the first charging task is used to instruct the first device to be charged to occupy a first power supply device for charging, the first power supply device represents a device that preferentially supplies power to the first group of devices, and the remaining power parameters corresponding to the first device to be charged and the device power threshold satisfy a second preset condition, so as to achieve effective regulation of the charging task for the device to be charged, ensure that the task can be executed as expected, improve the task execution efficiency, and reduce the equipment energy consumption and operating costs, thereby solving the technical problem of low task execution efficiency of the equipment.
[0053] As an optional scheme, the above-mentioned sending of the first charging task to the first device to be charged in the above-mentioned first group of devices includes: when any of the above-mentioned first power supply devices is not occupied by any charging device, sending the above-mentioned first charging task to the above-mentioned first device to be charged, wherein the above-mentioned first charging task is used to instruct the above-mentioned first device to be charged to occupy the above-mentioned first power supply device that is not occupied by any charging device for charging; when all of the above-mentioned first power supply devices are occupied and the first device to be charged and the first charging device meet the first interruption condition, sending a first stop charging instruction to the above-mentioned first charging device, and sending the above-mentioned first charging task to the above-mentioned first device to be charged, wherein the above-mentioned first interruption condition is determined by the remaining power parameter of the above-mentioned first device to be charged and the remaining power parameter of the above-mentioned first charging device, and the above-mentioned first stop charging instruction is used to instruct the above-mentioned first charging device to stop occupying the above-mentioned first power supply device, and the remaining power parameter of the above-mentioned first charging device meets the third preset condition.
[0054] Optionally, in an embodiment of the present application, the above-mentioned first charging device refers to a device that uses a first power supply device for charging, and the above-mentioned first stop charging instruction may include but is not limited to stopping charging, ending charging, cutting off power, stopping current, stopping the charging process, etc.
[0055] Exemplarily, if the first power supply device is not occupied by any device, it means that the first power supply device is idle, that is, the first device to be charged can occupy the first power supply device to perform the first charging task.
[0056] In an exemplary embodiment, the first power supply device is composed of three power supply devices, and these three devices are occupied by three charging devices respectively, indicating that the first power supply device is not idle and is currently unable to supply power to the first device to be charged. It can be determined whether the first interception condition is met between the first device to be charged and the first charging device.
[0057] Specifically, the first preemption condition can be expressed as follows: assuming that the remaining power parameter of the first device to be charged is C1, the remaining power parameter of the first charging device is C2, the starting power to be preempted is SZC, and the power allowed to be preempted is STC. If C1 is less than or equal to SZC, and C2 is greater than or equal to STC, the first preemption condition is met.
[0058] In another exemplary embodiment, if the first interception condition is satisfied between the first device to be charged and the first charging device, a first charging task may be issued to the first device to be charged, and a first stop charging instruction may be issued to the first charging device, so that the first device to be charged starts to occupy the first power supply device for charging, and the first charging device stops occupying the first power supply device.
[0059] It should also be noted that the remaining power parameter of the first charging device needs to meet the above-mentioned third preset condition. In other words, if the first power supply device is composed of multiple power supply devices, and the multiple devices are occupied by multiple charging devices, the above-mentioned first charging device can be determined as one of the multiple charging devices. The third preset condition may include but is not limited to: the remaining power parameter of the first charging device is the charging device with the largest remaining power parameter among the multiple charging devices; the remaining power parameter of the first charging device is greater than or equal to the power threshold for allowing charging to be stopped, and the power supply device occupied by the first charging device is the power supply device closest to the first charging device, so that the first device to be charged can be quickly moved to the position of the first power supply device for charging, avoiding problems such as shutdown of the first device to be charged due to the long moving distance.
[0060] As an optional scheme, the above method also includes: when all the above-mentioned first power supply devices are occupied and the above-mentioned first device to be charged and the above-mentioned first charging device do not meet the above-mentioned first preemption condition, determining whether the second power supply device is occupied, wherein the above-mentioned second power supply device indicates that the device is not set to preferentially supply power to the above-mentioned first group of devices; when any of the above-mentioned second power supply devices is not occupied, issuing a second charging task to the above-mentioned first device to be charged, wherein the above-mentioned second charging task is used to instruct the above-mentioned first device to be charged to occupy the above-mentioned second power supply device that is not occupied by any charging device for charging; when all the above-mentioned second power supply devices are occupied and the above-mentioned first device to be charged and the second charging device meet the above-mentioned first preemption condition, sending a second stop charging instruction to the above-mentioned second charging device, and issuing the above-mentioned second charging task to the above-mentioned first device to be charged, wherein the above-mentioned second stop charging instruction is used to instruct the above-mentioned second charging device to stop occupying the above-mentioned second power supply device, and the remaining power parameter of the above-mentioned second charging device meets the above-mentioned third preset condition.
[0061] Optionally, in an embodiment of the present application, the second power supply device may be a power supply device different from the first power supply device, and may include but is not limited to providing charging operations for the first device to be charged, and the first power supply device may include but is not limited to multiple power supply devices.
[0062] Exemplarily, if the first interception condition is not satisfied between the first device to be charged and the first charging device, that is, the first charging device still needs to occupy the first power supply device to continue the charging operation, then the first device to be charged cannot replace the first charging device and occupy the first power supply device. At this time, through the embodiment of the present application, it can be determined whether the second power supply device is occupied. If it is not occupied, the first charging device is moved to the position of the second power supply device and occupies the second power supply device to perform the charging task.
[0063] In an exemplary embodiment, if the second power supply device is also occupied, it is further determined whether the first interruption condition is met between the second power supply device and the second charging device, where the second charging device refers to the device occupying the second charging device for charging.
[0064] In another exemplary embodiment, if the first interception condition is satisfied between the first device to be charged and the second charging device, a first charging task may be issued to the first device to be charged, and a first stop charging instruction may be issued to the second charging device, so that the first device to be charged starts to occupy the first power supply device for charging, and the second charging device stops occupying the first power supply device.
[0065] It should also be noted that the remaining power parameter of the second charging device needs to meet the above-mentioned third preset condition. In other words, if the first power supply device is composed of multiple power supply devices, and the multiple devices are occupied by multiple charging devices, the above-mentioned second charging device can be determined as a charging device among the multiple charging devices that meets the third preset condition.
[0066] Through the embodiments of the present application, when the first power supply device of any device is not occupied by any charging device, the first charging task of the device is issued to the first device to be charged; when the first power supply devices of the device are all occupied and the first device to be charged and the first charging device meet the first preemption condition, a first stop charging instruction is sent to the first charging device of the device, and the first charging task of the device is issued to the first device to be charged; when the first power supply devices are all occupied and the first preemption condition is not met between the first device to be charged and the first charging device, it is determined whether the second power supply device is occupied; when any second power supply device is not occupied, the second charging task is issued to the first device to be charged; when the second power supply devices are all occupied and the first device to be charged and the second charging device meet the first preemption condition, a second stop charging instruction is sent to the second charging device, and the second charging task is issued to the first device to be charged, so as to meet the charging demand of the first device to be charged, quickly charge the first device to be charged, and effectively improve the utilization rate of the equipment.
[0067] As an optional scheme, when the first power supply devices are all occupied and the first device to be charged and the first charging device meet the first interruption condition, the first stop charging instruction is sent to the first charging device, and the first charging task is issued to the first device to be charged, including: when the first power supply device is occupied by the first charging device, obtaining the power threshold for starting to interrupt and the power threshold for allowing interruption; when the remaining power parameter of the first device to be charged is less than or equal to the power threshold for starting to interrupt, and the remaining power parameter of the first charging device is greater than or equal to the power threshold for allowing interruption, determining that the first interruption condition is met between the first device to be charged and the first charging device; sending the first stop charging instruction to the first charging device, and issuing the first charging task to the first device to be charged.
[0068] Optionally, in an embodiment of the present application, the above-mentioned threshold for starting to interrupt power and the threshold for allowing interruption of power can be flexibly set, and the present application does not impose any limitation on this.
[0069] In an exemplary embodiment, the first charging device is being charged by the first power supply device. At this time, the power threshold for starting to preempt power and the power threshold for allowing power to be interrupted are obtained, and then the remaining power parameter of the first device to be charged is compared with the power threshold for starting to preempt power; the remaining power parameter of the first charging device is compared with the power threshold for allowing power to be interrupted, and two comparison results are obtained.
[0070] Further, based on the two comparison results, when it is determined that the remaining power parameter of the first device to be charged is less than or equal to the power preemption threshold, and the remaining power parameter of the first charging device is greater than or equal to the above-mentioned power preemption threshold, the first device to be charged can occupy the first power supply device for charging operations, and the first charging device will no longer be able to occupy the first power supply device.
[0071] As an optional scheme, the above-mentioned sending of the first charging task to the first device to be charged in the above-mentioned first group of devices includes: obtaining the number of first devices in the above-mentioned first group of devices that are executing charging tasks and the total number of first devices in the above-mentioned first group of devices; determining a first quantity ratio based on the above-mentioned number of first devices and the above-mentioned total number of first devices; when the above-mentioned first quantity ratio is less than a first ratio threshold, sending the above-mentioned first charging task to the above-mentioned first device to be charged.
[0072] Optionally, in an embodiment of the present application, the above-mentioned first device quantity refers to the number of devices in the first group of devices that are being charged, the above-mentioned first total number of devices refers to the total number of devices in the first group of devices, the above-mentioned first quantity ratio can be determined as the ratio of the first device quantity to the first total number of devices, and the above-mentioned first ratio threshold value can be understood as the maximum proportion of the number of devices in the first group of devices that are being charged to the total number of all devices in the group. The value can be flexibly set and the present application does not limit this.
[0073] Exemplarily, the first quantity ratio is compared with a first ratio threshold, and if the first quantity ratio is less than the first ratio threshold, the first device to be charged is instructed to execute the first charging task and perform a charging operation.
[0074] As an optional solution, the method further includes: when the first quantity ratio is greater than or equal to the first ratio threshold, determining whether a second preemption condition is met between the first device to be charged and the third charging device in the first group of devices, wherein the second preemption condition is determined by the remaining power parameter of the first device to be charged and the remaining power parameter of the third charging device, and the third charging device represents a device in the first group of devices that is performing a charging task; when the second preemption condition is met between the first device to be charged and the third charging device, determining the number of second devices in the second group of devices that are performing a charging task and the total number of second devices in the second group of devices, wherein the second group of devices includes the third charging device; determining a second quantity ratio based on the number of second devices and the total number of second devices; when the second quantity ratio is less than the second ratio threshold, sending a third stop charging instruction to the third charging device, and issuing a third charging task to the first device to be charged, wherein the third stop charging instruction is used to instruct the third charging device to stop occupying the third power supply device, and the third charging task is used to instruct the first device to be charged to occupy the third power supply device for charging.
[0075] Optionally, in an embodiment of the present application, the third charging device refers to a device in the first group of devices other than the first device to be charged, and the third charging device is charging. The second preemption condition can be understood as that the remaining power parameter of the first device to be charged is less than or equal to the starting power to be preempted, and the remaining power parameter of the third charging device is greater than or equal to the power allowed to be preempted. Then the second preemption condition is met, and the starting power to be preempted and the power allowed to be preempted can be flexibly set. This application does not make any limitation. The second group of devices are other groups of devices in the multiple groups of devices other than the first group of devices.
[0076] It should be noted that the third charging device is a device in the second group of devices or a device in the first group of devices.
[0077] In an exemplary embodiment, if the first quantity ratio is greater than or equal to the above-mentioned first ratio threshold, it is necessary to determine whether the second interception condition is met between the first device to be charged and the third charging device. If the second interception condition is met between the first device to be charged and the third charging device, it is necessary to obtain the number of devices being charged in the second group of devices as the above-mentioned second device number, and the total number of devices in the second group of devices as the above-mentioned second total number of devices. The ratio of the second device number to the second total number of devices is determined as the above-mentioned second quantity ratio.
[0078] Optionally, in an embodiment of the present application, the second ratio threshold may be flexibly set, and the present application does not impose any limitation on this.
[0079] In another exemplary embodiment, it is then compared whether the second quantity ratio is less than a second ratio threshold. If so, it indicates that the first charging device can replace the third charging device to occupy the third power supply device for charging, and the third charging device will stop the charging operation.
[0080] Through the embodiments of the present application, when the above-mentioned first quantity ratio is greater than or equal to the above-mentioned first ratio threshold, it is determined whether the second interception condition is met between the above-mentioned first device to be charged and the third charging device in the above-mentioned first group of devices; when the above-mentioned second interception condition is met between the above-mentioned first device to be charged and the above-mentioned third charging device, the number of second devices in the second group of devices that are executing charging tasks and the total number of second devices in the above-mentioned second group of devices are determined; the second quantity ratio is determined according to the above-mentioned number of second devices and the above-mentioned total number of second devices; when the above-mentioned second quantity ratio is less than the second ratio threshold, a third stop charging instruction is sent to the above-mentioned third charging device, and a third charging task is issued to the above-mentioned first device to be charged, so as to avoid multiple devices being in a charging state, resulting in no device available, affecting the task execution efficiency.
[0081] As an optional scheme, the above method also includes: pre-grouping multiple devices to determine the above multiple groups of devices and ungrouped devices; obtaining the third device number of the target power supply device, wherein the above target power supply device represents the device that is allowed to supply power to the above ungrouped device; when the number of the above third devices exceeds the fourth device number of the above ungrouped devices, issuing a fourth charging task to the above ungrouped devices, wherein the above fourth charging task is used to instruct the above ungrouped devices to occupy the above target power supply device for charging, and the correspondence between the above target power supply device and the above ungrouped devices is determined by the power parameters of the above ungrouped devices and the distance between the above ungrouped devices and the above target power supply device; when the number of the above third devices does not exceed the number of the above fourth devices, issuing a fifth charging task to the above ungrouped devices, wherein the above fifth charging task is used to instruct the devices whose power parameters meet the ungrouped power conditions in the above ungrouped devices to occupy the above target power supply device for charging, and the correspondence between the above target power supply device and the above ungrouped devices is determined by the power parameters of the above ungrouped devices and the distance between the above ungrouped devices and the above target power supply device.
[0082] Optionally, in an embodiment of the present application, the above-mentioned multiple devices may be devices of any group of the above-mentioned multiple groups of devices, or may not be devices of the above-mentioned multiple groups of devices, that is, the above-mentioned ungrouped devices. The above-mentioned third device quantity refers to the number of devices that can be powered, and the above-mentioned fourth device quantity refers to the number of ungrouped devices to be charged. For example, if the target power supply devices are power supply device A, power supply device B, and power supply device C, then the third device quantity is 3, and the ungrouped devices to be charged are ungrouped device A and ungrouped device B, then the fourth device quantity is 2.
[0083] It should be noted that the target power supply device can not only provide power to the ungrouped devices, but also provide power to the devices in the multiple groups of devices.
[0084] Exemplarily, if the number of third devices exceeds the number of fourth devices, it means that there is an idle target power supply device that can power the ungrouped devices. The ungrouped devices move to the location of the target power supply device by executing the fourth charging task, occupying the target power supply device and starting charging.
[0085] Furthermore, assuming that there are multiple target power supply devices, the ungrouped device can determine which power supply device to select for charging based on the distance between itself and the multiple power supply devices and its own remaining power parameters.
[0086] In an exemplary embodiment, the ungrouped devices consist of device A and device B. The target power supply devices that can currently be powered are power supply device A, power supply device B, and power supply device C. Device A is closest to power supply device A, and device B is closest to power supply device B. If power is not supplied to the target device A, device A will select power supply device A for charging, and device B will select power supply device B for charging.
[0087] In another exemplary embodiment, if device A and device B are both closest to power supply device A, the remaining power parameter of device A can be further compared with the remaining power parameter of device B, so that the device corresponding to the remaining power parameter with a smaller value between the two occupies power supply device A for charging, and the device corresponding to the remaining power parameter with a larger value selects any one of power supply device B and power supply device C for charging, or the device corresponding to the remaining power parameter with a larger value does not perform the charging operation first. This application does not impose any limitation on this.
[0088] Optionally, the above-mentioned devices satisfying the ungrouped power condition may include, but are not limited to, devices among the above-mentioned ungrouped devices whose power is lower than a preset threshold.
[0089] Exemplarily, if the number of the third devices does not exceed the number of the fourth devices, it means that there is no idle target power supply device that can power the ungrouped devices, and the ungrouped devices will occupy the target power supply device to start charging by executing the fifth charging task.
[0090] In an exemplary embodiment, the target power supply device consists of power supply device A and power supply device B. Power supply device A is occupied by device A in the ungrouped devices, power supply device B is occupied by device B in the ungrouped devices, and device K in the ungrouped devices meets the ungrouped power condition, and the distance between device K and power supply device A is closer than the distance between device K and power supply device B. Then, it can be first compared whether the preemption condition is met between device K and device A. If so, device A is ordered to stop occupying power supply device A, and device K starts to occupy power supply device A for charging. The preemption condition here can be understood as that the remaining power parameter of device A is less than or equal to the starting preemption power, and the remaining power parameter of device K is greater than or equal to the allowed preemption power. Then the preemption condition is met, and the starting preemption power and the allowed preemption power can be flexibly set, and this application does not impose any restrictions.
[0091] Furthermore, if the snatch condition is not met between device K and device A, then search again whether a new idle power supply device has appeared in the current target power supply device, which can be used for charging device K. If not, continue to compare whether the snatch condition is met between device K and device B. If so, order device B to stop occupying power supply device B, and device K starts to occupy power supply device B for charging. If not, continue to search whether a new idle power supply device has appeared in the current target power supply device, which can be used for charging device K.
[0092] Through the embodiments of the present application, multiple devices are grouped in advance to determine the multiple groups of devices and ungrouped devices; the third device number of the target power supply device is obtained; when the third device number exceeds the fourth device number of the ungrouped devices, the fourth charging task is issued to the ungrouped devices; when the third device number does not exceed the fourth device number, the fifth charging task is issued to the ungrouped devices. That is, the device control method proposed in the present application can not only control the charging of grouped devices, but also control the charging of ungrouped devices, and can be applicable to a variety of application scenarios to ensure the availability of the device control method.
[0093] The above is only an example, and this application does not make any specific limitation.
[0094] Obviously, the embodiments described above are only part of the embodiments of the present application, rather than all the embodiments.
[0095] The present application is described in detail below with reference to specific embodiments:
[0096] In an exemplary embodiment, the control method of the device proposed in the present application can be applied to the application scenario of industrial automation control. Taking the device as an AGV and the power supply device as a charging pile used by the AGV as an example, the set power of each group of devices is maintained through group charging, so that the devices can be charged even when they are idle. Moreover, the devices to be charged in the grouped devices can give priority to charging the predetermined charging piles in the group to ensure that the AGV fully performs its tasks and improves production efficiency.
[0097] Exemplarily, AGV grouping information may include, but is not limited to, the minimum threshold of the average power of the devices in the group, the preferred charging piles in the group, and the maximum proportion of devices allowed to be charged in the group, so as to avoid all devices being charged so that no devices are available, and to achieve the purpose of retaining a certain number of devices to continue to perform other tasks. When receiving device grouping information, if the average power of the devices in the group is lower than the preset threshold, the devices in the group with power lower than the preset threshold will be assigned charging tasks even if they are in a no-task state. If the grouping information also transmits the information of the preferred charging piles in the group, the devices in the group will give priority to charging at these charging piles. If the number of devices being charged in the group reaches the preset threshold of the number of chargeable devices in the group, at this time, the devices that need to be charged can seize the charging piles used by the devices being charged in the group.
[0098] Understandably, Figure 4 is a flow chart of a control method of a device according to an embodiment of the present application. In the embodiment of the present application, the scheduling control method flow of AGV group charging can be as follows Figure 4 As shown:
[0099] S401, information initialization, periodic search for low-power devices and available charging piles. If there is device grouping information, when the average power of the devices in the group is lower than the preset threshold, the devices in the group below the preset threshold are treated as devices to be charged.
[0100] S402-1, issuing charging tasks to ungrouped devices: For ungrouped devices to be charged, if there are enough charging piles, all devices to be charged will be issued charging tasks, provided that there are devices to perform tasks. In order of the power of the devices from low to high, the nearest available charging piles will be searched in sequence. If the number of charging piles is less than the number of devices to be charged, charging piles will be assigned to some devices first according to the principle of giving priority to low-power devices, i.e., the nearest available charging piles will be searched, and the remaining devices to be charged may not be assigned charging tasks temporarily; if the device being charged and the device to be charged meet the preemption conditions, a stop charging instruction will be issued to the device being charged, so that the device to be charged can perform the charging task at the charging pile.
[0101] Specifically, the stealing condition can be expressed as follows: the current power of the device to be charged is C1, the power of the device being charged is C2, the starting stealing power is SZC, and the allowable stolen power is STC. If C1 ≤ SZC and C2 ≥ STC, the stealing condition is met.
[0102] S402-2. Send a charging task to the grouped devices. For the grouped devices to be charged, first, determine whether the number of devices in the group meets the maximum charging ratio. If it meets, preferentially select the designated candidate charging piles within the group. If there is an idle charging pile among the candidate charging piles within the group, arrange a charging task for the device. If there is no idle charging pile, determine whether the candidate charging pile meets the stealing condition. If it meets, perform a stealing charging operation for the device. If it does not meet the stealing condition, look for other idle charging piles. If no other idle charging pile is found, determine whether other non-candidate charging piles meet the stealing condition.
[0103] Specifically, the maximum charging ratio can be expressed as: the maximum ratio of the number of chargeable devices in the group to the total number of devices in the group. For example, the number of charging devices in the group is n, and the total number of devices in the group is m. If the maximum charging ratio of the device is 1 / 2, and if n < m / 2, the maximum charging ratio is met.
[0104] In another exemplary embodiment, if the number of devices in the group does not meet the maximum charging ratio, compare the device with the devices being charged in the group to determine whether the device and the devices being charged in the group meet the stealing condition. If the stealing condition is met, continue to judge whether, after the device goes to charge, the maximum charging ratio is met in all groups. If it meets, perform a stealing charging operation for the device.
[0105] Through the embodiments of the present application, adopting the grouped charging method can maintain the average power of the AGVs in the group at a set threshold. Even when the devices have no tasks and the power is lower than the set average power threshold of the AGVs in the group, a charging task will be issued, avoiding the situation where the power of all devices is too low and needs to be charged at the same time. Moreover, by setting the maximum proportion of allowable charging devices in the group, it is avoided that all devices are charging and there are no available devices, and a certain number of devices can be reserved to continue to perform other tasks. If the number of devices being charged in the group reaches the preset threshold of the number of chargeable devices in the group, at this time, the devices that need to be charged can steal the charging piles used by the devices being charged in the group to ensure that a certain number of devices in the group can continue to perform tasks. In addition, the preferentially selected charging piles within the group are also set, and when the power of the devices in the group is lower than the set threshold, such charging piles are preferentially selected for charging. When stealing a charging pile, such charging piles will also be preferentially stolen, avoiding the situation where devices all go to the charging piles of other production processes, resulting in no suitable devices to perform tasks in this process and affecting production efficiency, and ensuring that the devices of each process can be charged at the designated charging piles of their respective processes.
[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, or optical disk), and includes a number of instructions for enabling a front-end device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application. The information collected in the above embodiments is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse. The above embodiments are based on big data analysis of personal information, and / or use artificial intelligence technology to make automated decisions to make decisions that have a significant impact on personal rights and interests. The technical solution will provide users with corresponding operation entrances for users to choose to agree or refuse the automated decision-making results; if the user chooses to refuse, the expert decision-making process will be entered.
[0107] According to another aspect of the embodiments of the present application, a system access device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0108] Figure 5 is a structural block diagram of a control device of a device according to an embodiment of the present application, such as Figure 5 As shown, the device comprises:
[0109] An acquisition module, used to acquire multiple groups of remaining power parameters corresponding to multiple groups of devices;
[0110] a determination module, configured to determine a first group of devices according to a plurality of groups of remaining power parameters and a preset group power threshold, wherein the plurality of groups of remaining power parameters include a first group of remaining power parameters corresponding to the first group of devices, and the first group of remaining power parameters and the group power threshold satisfy a first preset condition;
[0111] A task module is used to issue a first charging task to a first device to be charged in a first group of devices, wherein the first charging task is used to instruct the first device to be charged to occupy a first power supply device for charging, the first power supply device indicates a device that preferentially supplies power to the first group of devices, and the remaining power parameter corresponding to the first device to be charged and the device power threshold meet a second preset condition.
[0112] As an optional scheme, the device is used to issue a first charging task to a first device to be charged in the first group of devices in the following manner: when any first power supply device is not occupied by any charging device, issuing a first charging task to the first device to be charged, wherein the first charging task is used to instruct the first device to be charged to occupy a first power supply device that is not occupied by any charging device for charging; when all first power supply devices are occupied and a first interruption condition is satisfied between the first device to be charged and the first charging device, sending a first stop charging instruction to the first charging device and issuing a first charging task to the first device to be charged, wherein the first interruption condition is determined by a remaining power parameter of the first device to be charged and a remaining power parameter of the first charging device, and the first stop charging instruction is used to instruct the first charging device to stop occupying the first power supply device, and the remaining power parameter of the first charging device satisfies a third preset condition.
[0113] As an optional scheme, the device is also used to: when all the first power supply devices are occupied and the first preemption condition is not satisfied between the first device to be charged and the first charging device, determine whether the second power supply device is occupied, wherein the second power supply device indicates a device that is not set to preferentially supply power to the first group of devices; when any of the second power supply devices is not occupied, issue a second charging task to the first device to be charged, wherein the second charging task is used to instruct the first device to be charged to occupy the second power supply device that is not occupied by any charging device for charging; when all the second power supply devices are occupied and the first preemption condition is satisfied between the first device to be charged and the second charging device, send a second stop charging instruction to the second charging device, and issue a second charging task to the first device to be charged, wherein the second stop charging instruction is used to instruct the second charging device to stop occupying the second power supply device, and the remaining power parameter of the second charging device satisfies a third preset condition.
[0114] As an optional scheme, the device is used to send a first stop charging instruction to the first charging device and issue a first charging task to the first device to be charged when the first power supply device is occupied and the first interruption condition is satisfied between the first device to be charged and the first charging device in the following manner: when the first power supply device is occupied by the first charging device, obtain a start interruption power threshold and an allowable interruption power threshold; when the remaining power parameter of the first device to be charged is less than or equal to the start interruption power threshold, and the remaining power parameter of the first charging device is greater than or equal to the allowable interruption power threshold, determine that the first interruption condition is satisfied between the first device to be charged and the first charging device; send a first stop charging instruction to the first charging device, and issue a first charging task to the first device to be charged.
[0115] As an optional solution, the device is used to send a first charging task to a first device to be charged in a first group of devices in the following manner: obtain the number of first devices in the first group of devices that are executing charging tasks and the total number of first devices in the first group of devices; determine a first quantity ratio based on the number of first devices and the total number of first devices; and when the first quantity ratio is less than a first ratio threshold, send the first charging task to the first device to be charged.
[0116] As an optional scheme, the device is also used to: when the first quantity ratio is greater than or equal to the first ratio threshold, determine whether the second preemption condition is met between the first device to be charged and the third charging device in the first group of devices, wherein the second preemption condition is determined by the remaining power parameter of the first device to be charged and the remaining power parameter of the third charging device, and the third charging device represents the device in the first group of devices that is performing a charging task; when the second preemption condition is met between the first device to be charged and the third charging device, determine the number of second devices in the second group of devices that are performing a charging task and the total number of second devices in the second group of devices, wherein the second group of devices includes the third charging device; determine the second quantity ratio based on the number of second devices and the total number of second devices; when the second quantity ratio is less than the second ratio threshold, send a third stop charging instruction to the third charging device, and issue a third charging task to the first device to be charged, wherein the third stop charging instruction is used to instruct the third charging device to stop occupying the third power supply device, and the third charging task is used to instruct the first device to be charged to occupy the third power supply device for charging.
[0117] As an optional scheme, the device is also used to: pre-group multiple devices to determine multiple groups of devices and ungrouped devices; obtain a third device number of the target power supply device, wherein the target power supply device indicates a device that is allowed to supply power to the ungrouped device; when the third device number exceeds the fourth device number of the ungrouped device, issue a fourth charging task to the ungrouped device, wherein the fourth charging task is used to instruct the ungrouped device to occupy the target power supply device for charging, and the correspondence between the target power supply device and the ungrouped device is determined by the power parameters of the ungrouped device and the distance between the ungrouped device and the target power supply device; when the third device number does not exceed the fourth device number, issue a fifth charging task to the ungrouped device, wherein the fifth charging task is used to instruct the devices in the ungrouped device whose power parameters meet the ungrouped power conditions to occupy the target power supply device for charging, and the correspondence between the target power supply device and the ungrouped device is determined by the power parameters of the ungrouped device and the distance between the ungrouped device and the target power supply device.
[0118] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0119] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0120] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0121] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0122] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0123] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0124] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0125] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, 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 application is not limited to any specific combination of hardware and software.
[0126] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for controlling a device, characterized in that: include: Get multiple groups of remaining power parameters corresponding to multiple groups of devices; Determining a first group of devices according to the multiple groups of remaining power parameters and a preset group power threshold, wherein the multiple groups of remaining power parameters include a first group of remaining power parameters corresponding to the first group of devices, and the first group of remaining power parameters and the group power threshold satisfy a first preset condition; A first charging task is issued to a first device to be charged in the first group of devices, wherein the first charging task is used to instruct the first device to be charged to occupy a first power supply device for charging, the first power supply device represents a device that preferentially supplies power to the first group of devices, and the remaining power parameter corresponding to the first device to be charged and the device power threshold meet a second preset condition.
2. The method according to claim 1, characterized in that The sending the first charging task to the first device to be charged in the first group of devices includes: In the case where any of the first power supply devices is not occupied by any charging device, the first charging task is issued to the first device to be charged, wherein the first charging task is used to instruct the first device to be charged to occupy the first power supply device that is not occupied by any charging device for charging; When all the first power supply devices are occupied and the first interruption condition is met between the first device to be charged and the first charging device, a first stop charging instruction is sent to the first charging device, and the first charging task is issued to the first device to be charged, wherein the first interruption condition is determined by the remaining power parameter of the first device to be charged and the remaining power parameter of the first charging device, and the first stop charging instruction is used to instruct the first charging device to stop occupying the first power supply device, and the remaining power parameter of the first charging device meets a third preset condition.
3. The method according to claim 2, characterized in that The method further comprises: When all the first power supply devices are occupied and the first interruption condition is not satisfied between the first device to be charged and the first charging device, determining whether the second power supply device is occupied, wherein the second power supply device indicates a device that is not set to preferentially supply power to the first group of devices; In the case where any of the second power supply devices is not occupied, a second charging task is issued to the first device to be charged, wherein the second charging task is used to instruct the first device to be charged to occupy the second power supply device that is not occupied by any charging device for charging; When the second power supply devices are all occupied and the first interruption condition is met between the first device to be charged and the second charging device, a second stop charging instruction is sent to the second charging device, and the second charging task is issued to the first device to be charged, wherein the second stop charging instruction is used to instruct the second charging device to stop occupying the second power supply device, and the remaining power parameter of the second charging device meets the third preset condition.
4. The method according to claim 2, characterized in that: The method of sending a first stop charging instruction to the first charging device and issuing the first charging task to the first charging device when the first power supply device is occupied and the first interruption condition is satisfied between the first device to be charged and the first charging device includes: When the first power supply device is occupied by the first charging device, obtaining a threshold for starting to interrupt power and a threshold for allowing interruption of power; When the remaining power parameter of the first device to be charged is less than or equal to the power threshold for starting to interrupt, and the remaining power parameter of the first charging device is greater than or equal to the power threshold allowed to be interrupted, it is determined that the first interruption condition is met between the first device to be charged and the first charging device; The first stop charging instruction is sent to the first charging device, and the first charging task is sent to the first device to be charged.
5. The method according to claim 1, characterized in that The sending the first charging task to the first device to be charged in the first group of devices includes: Obtaining the number of first devices in the first group of devices that are executing charging tasks and the total number of first devices in the first group of devices; Determine a first quantity ratio according to the first quantity of devices and the total number of the first devices; When the first quantity ratio is less than a first ratio threshold, the first charging task is issued to the first device to be charged.
6. The method according to claim 5, characterized in that The method further comprises: When the first quantity ratio is greater than or equal to the first ratio threshold, determining whether a second preemption condition is satisfied between the first device to be charged and a third charging device in the first group of devices, wherein the second preemption condition is determined by a remaining power parameter of the first device to be charged and a remaining power parameter of the third charging device, and the third charging device represents a device in the first group of devices that is performing a charging task; When the second interruption condition is satisfied between the first device to be charged and the third charging device, determine the number of second devices in the second group of devices that are performing charging tasks and the total number of second devices in the second group of devices, wherein the second group of devices includes the third charging device; determining a second quantity ratio according to the second device quantity and the total number of the second devices; When the second quantity ratio is less than a second ratio threshold, a third stop charging instruction is sent to the third charging device, and a third charging task is issued to the first device to be charged, wherein the third stop charging instruction is used to instruct the third charging device to stop occupying the third power supply device, and the third charging task is used to instruct the first device to be charged to occupy the third power supply device for charging.
7. The method according to claim 1, characterized in that The method further comprises: Pre-grouping a plurality of devices to determine the plurality of groups of devices and ungrouped devices; Acquire a third device quantity of target power supply devices, wherein the target power supply devices represent devices that are allowed to supply power to the ungrouped devices; In the case where the number of the third devices exceeds the number of the fourth devices of the ungrouped devices, a fourth charging task is issued to the ungrouped devices, wherein the fourth charging task is used to instruct the ungrouped devices to occupy the target power supply device for charging, and the corresponding relationship between the target power supply device and the ungrouped devices is determined by the power parameter of the ungrouped devices and the distance between the ungrouped devices and the target power supply device; When the number of the third devices does not exceed the number of the fourth devices, a fifth charging task is issued to the ungrouped devices, wherein the fifth charging task is used to instruct the devices among the ungrouped devices whose power parameters meet the ungrouped power conditions to occupy the target power supply device for charging, and the correspondence between the target power supply device and the ungrouped devices is determined by the power parameters of the ungrouped devices and the distance between the ungrouped devices and the target power supply device.
8. A control device for an equipment, characterized in that: include: An acquisition module, used to acquire multiple groups of remaining power parameters corresponding to multiple groups of devices; a determination module, configured to determine a first group of devices according to the multiple groups of remaining power parameters and a preset group power threshold, wherein the multiple groups of remaining power parameters include a first group of remaining power parameters corresponding to the first group of devices, and the first group of remaining power parameters and the group power threshold satisfy a first preset condition; A task module is used to issue a first charging task to a first device to be charged in the first group of devices, wherein the first charging task is used to instruct the first device to be charged to occupy a first power supply device for charging, the first power supply device represents a device that preferentially supplies power to the first group of devices, and the remaining power parameter corresponding to the first device to be charged and the device power threshold meet a second preset condition.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
