Robot charging scheduling method, device and equipment and storage medium
Through wireless communication between the robot's own communication module and the charging pile, charging queue registration and target charging pile selection are realized, which solves the reliability problem caused by the dependence of multiple robots on the cloud platform for collaborative scheduling and ensures the stability and reliability of charging scheduling.
Patent Information
- Application Number
- CN202410572758.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2024-08-23
AI Technical Summary
Collaborative scheduling of multiple robots relies on the cloud platform. The stability and availability of the cloud platform directly affects system reliability. If the cloud platform fails or services are interrupted, the charging dispatch system may not operate normally.
Through wireless communication between the robot's own communication module and the main control charging pile, the robot's charging queue registration, standby point judgment, charging request and target charging pile selection are realized, avoiding reliance on the cloud platform for charging scheduling.
This ensures the stability and reliability of the robot's charging schedule without relying on the cloud platform. It can operate normally even in environments with weak or unstable network signals, which enhances the stability and reliability of the charging schedule.
Smart Images

Figure CN118536737A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a robot charging scheduling method, device, equipment and storage medium. Background Art
[0002] With the continuous development of technology, robots have become an indispensable part of modern industry. Among them, the autonomous charging function of robots has become a highly concerned technological breakthrough. The autonomous charging function enables robots to actively find charging piles for charging according to their own energy consumption, thus avoiding the need for manual intervention and monitoring. The introduction of this function not only greatly improves the work efficiency of robots, but also significantly reduces labor costs. However, when faced with the situation where multiple robots need to be coordinated and dispatched, the autonomous charging function of robots faces certain difficulties. When multiple robots are working at the same time, they may need to be charged at the same time, which requires the coordinated dispatch of robots to ensure that they can charge in an orderly manner and continue to work.
[0003] Traditional multi-robot charging coordination scheduling methods include: (1) All robots return to the designated charging pile for charging, that is, using the shared charging pile method; however, if multiple robots use the same charging pile, the charging pile may be too crowded, causing the robots to wait too long. (2) Provide each robot with an independent charging pile, and when the robot needs to charge, guide it back to its own charging pile; if multiple robots are equipped with independent charging piles, although the problem of charging pile congestion can be avoided, there may be a situation where multiple robots work for a long time and the working time is different, resulting in an excess of charging piles.
[0004] In order to solve these problems of collaborative scheduling of multiple robots, researchers actively explored various innovative solutions and introduced cloud platforms as scheduling processors, handing over the charging problems of multiple robots to the cloud platform for intelligent scheduling. By handing over the allocation and scheduling of charging tasks to the cloud platform, more intelligent and efficient collaborative scheduling can be achieved. The cloud platform can perform global scheduling and optimization based on information such as the robot's working status, energy consumption, and the availability of charging piles to ensure that each robot can get a reasonable charging arrangement, avoiding the waste of charging pile resources and the interruption of robot work. However, relying on the cloud platform for scheduling operations means that the reliability of the system depends on the stability and availability of the cloud platform. If the cloud platform fails or the service is interrupted, the scheduling system may not operate normally. Summary of the invention
[0005] The present invention provides a robot charging scheduling method, device, equipment and storage medium to solve the technical problem that the existing collaborative scheduling of multiple robots relies on a cloud platform, the reliability of the system depends on the stability and availability of the cloud platform, and if the cloud platform fails or the service is interrupted, the scheduling system may not be able to operate normally.
[0006] In order to solve the above technical problems, an embodiment of the present invention provides a robot charging scheduling method, comprising:
[0007] When it is detected that the current power of the robot is lower than the preset power threshold and is not in the working state, a registration charging queue message containing the robot number and the current power of the robot to be charged is broadcast through a preset communication module, so that the preset master control charging pile registers the robot to be charged into the charging queue after receiving the registration charging queue message; wherein the master control charging pile is a charging pile for storing the charging queue of the robot;
[0008] When it is determined that the robot to be charged has been registered in the charging queue, the robot to be charged is controlled to move to a preset charging standby point, and it is determined whether the robot to be charged is located at the first position in the charging queue;
[0009] When it is determined that the robot to be charged is at the first position in the charging queue, a charging request message containing the robot number of the robot to be charged is broadcast, so that the currently idle charging pile, upon receiving the charging request message, broadcasts a charging pile information message containing the corresponding charging pile number and charging pile location information;
[0010] When the charging pile information message is received, a charging pile is selected from the currently idle charging piles as the target charging pile to be charged, a charging confirmation information message including the robot number of the robot to be charged and the charging pile number of the target charging pile is broadcast, and the robot to be charged is controlled to move to the target charging pile for charging.
[0011] As a preferred solution, after receiving the registration charging queue message, the master charging pile registers the robot to be charged into the charging queue in the following manner:
[0012] When the master charging pile receives the registration charging queue message, it registers the corresponding robots to be charged into the charging queue in sequence according to the broadcast time of the registration charging queue message and the robot number and current power of the robots to be charged in the registration charging queue message, updates the charging queue, and broadcasts the charging queue data message containing the updated charging queue data;
[0013] According to the broadcast time of the registration charging queue message and the robot number and current power of the robot to be charged in the registration charging queue message, the corresponding robot to be charged is registered to the charging queue in sequence, including:
[0014] If the broadcasting times of the registration charging queue messages are all different, the corresponding robots to be charged are registered in the charging queue in order of the broadcasting time of each registration charging queue message;
[0015] If there are several registration charging queue messages with the same broadcast time, the corresponding robots to be charged are registered to the charging queue in order from low to high according to the current power of the robots to be charged in each registration charging queue message;
[0016] If there are several registered charging queue messages with the same current power of the robots to be charged, the corresponding robots to be charged will be registered in the charging queue in ascending order according to the robot numbers of the robots to be charged in each registered charging queue message.
[0017] As a preferred solution, determine whether the robot to be charged has been registered in the charging queue in the following way:
[0018] When receiving the charging queue data message broadcasted by the master control charging pile, judging whether there is a robot to be charged in the charging queue according to the charging queue data in the charging queue data message;
[0019] If yes, it is determined that the robot to be charged has been registered in the charging queue; if not, it is determined that the robot to be charged has not been registered in the charging queue, and the registration charging queue message containing the robot number and current power of the robot to be charged is continued to be broadcast.
[0020] As a preferred solution, when the charging pile information message is received, a charging pile is selected from currently idle charging piles as a target charging pile to be charged, including:
[0021] When receiving a charging pile information message, determining the number of received charging pile information messages;
[0022] If there is only one charging pile information message, the charging pile that broadcasts the charging pile information message is directly used as the target charging pile to be charged;
[0023] If there is more than one charging pile information message, the path of the robot to be charged from the current position to each charging pile is determined according to the charging pile location information in each charging pile information message, and the charging pile corresponding to the shortest path is selected as the target charging pile to be charged.
[0024] As a preferred solution, the broadcast includes a charging confirmation information message including the robot number of the robot to be charged and the charging pile number of the target charging pile, including:
[0025] Alternately broadcasting a charging confirmation information message including the robot number of the robot to be charged and the charging pile number of the target charging pile and an exit charging queue message including the robot number of the robot to be charged, so that after receiving the exit charging queue message, the master control charging pile removes the robot to be charged from the charging queue according to the robot number of the robot to be charged, updates the charging queue, and broadcasts a charging queue data message including the updated charging queue;
[0026] When receiving the charging queue data message broadcast by the master charging pile, determine whether the robot to be charged has exited the charging queue according to the charging queue data in the charging queue data message; if it has not exited, continue to broadcast the exit charging queue message containing the robot number of the robot to be charged.
[0027] As a preferred solution, it also includes:
[0028] When each charging pile receives the charging confirmation information message, it determines whether the charging pile is the selected target charging pile according to the charging pile number of the target charging pile in the charging confirmation information message;
[0029] If yes, wait for the robot to be charged to arrive for charging; if no, end the process.
[0030] As a preferred solution, the communication module includes: a LoRa communication module.
[0031] On the basis of the above embodiment, another embodiment of the present invention provides a robot charging scheduling device, including: a charging queue registration module, a robot moving module to be charged, a charging request module and a target charging pile selection module;
[0032] The charging queue registration module is used to broadcast a registration charging queue message containing the robot number and current power of the robot to be charged through a preset communication module when it is detected that the current power of the robot is lower than a preset power threshold and is not in a working state, so that the preset master control charging pile registers the robot to be charged into the charging queue after receiving the registration charging queue message; wherein the master control charging pile is a charging pile for storing the charging queue of the robot;
[0033] The robot moving module to be charged is used to control the robot to be charged to move to a preset charging standby point when it is determined that the robot to be charged has been registered in the charging queue, and to determine whether the robot to be charged is located at the first position in the charging queue;
[0034] The charging request module is used to broadcast a charging request message containing the robot number of the robot to be charged when it is determined that the robot to be charged is at the first position in the charging queue, so that the currently idle charging pile, upon receiving the charging request message, broadcasts a charging pile information message containing the corresponding charging pile number and charging pile location information;
[0035] The target charging pile selection module is used to select a charging pile from the currently idle charging piles as the target charging pile to be charged when receiving the charging pile information message, broadcast a charging confirmation information message including the robot number of the robot to be charged and the charging pile number of the target charging pile, and control the robot to be charged to move to the target charging pile for charging.
[0036] Based on the above embodiments, another embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the robot charging scheduling method described in the above invention embodiments is implemented.
[0037] Based on the above embodiment, another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the robot charging scheduling method described in the above invention embodiment.
[0038] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0039] The present invention provides a robot charging scheduling method. When it is detected that the current power of the robot is lower than a preset power threshold and is not in a working state, a registration charging queue message containing the robot number and the current power of the robot to be charged is broadcasted through a preset communication module, so that a preset main control charging pile registers the robot to be charged into the charging queue after receiving the registration charging queue message; wherein the main control charging pile is a charging pile for storing the charging queue of the robot; when it is determined that the robot to be charged has been registered into the charging queue, the robot to be charged is controlled to move to a preset charging standby point, and it is judged whether the robot to be charged is located in the charging queue. The first in the column; when it is determined that the robot to be charged is at the first in the charging queue, a charging request message containing the robot number of the robot to be charged is broadcast, so that the currently idle charging pile, when receiving the charging request message, broadcasts a charging pile information message containing the corresponding charging pile number and charging pile location information; when the charging pile information message is received, a charging pile is selected from the currently idle charging piles as the target charging pile to be charged, a charging confirmation information message containing the robot number of the robot to be charged and the charging pile number of the target charging pile is broadcast, and the robot to be charged is controlled to move to the target charging pile for charging.
[0040] The present invention uses the communication module preset by the robot itself to wirelessly communicate with the main control charging pile and other charging piles, and can realize the charging scheduling of the robot through the robot's own processor and communication module, without relying on the intervention of the cloud platform or other third-party platforms, so it can avoid the risk of the robot charging scheduling not being able to proceed normally due to factors such as poor network quality of the cloud platform or other third-party platforms. Even in an environment with weak or unstable network signals, it can still run stably and complete the robot's charging scheduling tasks, enhancing the stability and reliability of the robot's charging scheduling. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a flowchart of a robot charging scheduling method provided by an embodiment of the present invention;
[0042] Figure 2 It is the flow chart of the robot’s charging scheduling operation;
[0043] Figure 3 It is the operation flow chart of the charging pile during the charging scheduling process;
[0044] Figure 4 This is the operation flow chart when the robot fails to charge;
[0045] Figure 5 It is a structural schematic diagram of a robot charging scheduling device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0048] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0049] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0050] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0051] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0052] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0053] Embodiment 1
[0054] Please refer to Figure 1 , is a flow chart of a robot charging scheduling method provided by an embodiment of the present invention, comprising the following specific steps:
[0055] S1. When it is detected that the current power of the robot is lower than a preset power threshold and is not in a working state, a registration charging queue message containing the robot number and current power of the robot to be charged is broadcast through a preset communication module, so that the preset master control charging pile registers the robot to be charged into the charging queue after receiving the registration charging queue message; wherein the master control charging pile is a charging pile for storing the charging queue of the robot;
[0056] Preferably, the communication module includes: a LoRa communication module.
[0057] Preferably, after receiving the registration charging queue message, the master control charging pile registers the robot to be charged in the charging queue in the following manner: after receiving the registration charging queue message, according to the broadcast time of the registration charging queue message and the robot number and current power of the robot to be charged in the registration charging queue message, the master control charging pile registers the corresponding robots to be charged in the charging queue in turn, updates the charging queue, and broadcasts a charging queue data message containing the updated charging queue data; wherein, according to the broadcast time of the registration charging queue message and the robot number and current power of the robot to be charged in the registration charging queue message, the corresponding robots to be charged are registered in the charging queue in turn, including In summary: if the broadcast times of the registration charging queue messages are all different, according to the broadcast time of each registration charging queue message, the corresponding robots to be charged are registered in the charging queue in order from the earliest to the latest broadcast time; if there are several registration charging queue messages with the same broadcast time, according to the current power of the robots to be charged in each registration charging queue message, the corresponding robots to be charged are registered in the charging queue in order from the lowest to the highest current power; if there are several registration charging queue messages with the same current power of the robots to be charged, according to the robot numbers of the robots to be charged in each registration charging queue message, the corresponding robots to be charged are registered in the charging queue in order from the smallest to the largest robot numbers.
[0058] Preferably, it is determined whether the robot to be charged has been registered in the charging queue in the following manner: when a charging queue data message broadcast by the main control charging pile is received, it is judged whether there is a robot to be charged in the charging queue according to the charging queue data in the charging queue data message; if yes, it is determined that the robot to be charged has been registered in the charging queue; if not, it is determined that the robot to be charged has not been registered in the charging queue, and the registration charging queue message containing the robot number and current power of the robot to be charged is continued to be broadcast.
[0059] Specifically, the present invention provides a multi-robot multi-charging pile scheduling charging system based on LoRa communication, which is used to solve the charging scheduling problem of multiple robots and multiple charging piles. The system realizes wireless communication by installing a separate LoRa module on each robot and each charging pile respectively, and realizes the entire charging scheduling process through the broadcast mode of the LoRa module, the ID distinction of the data message, and the logical processing of the robot processor and the charging pile processor. In the broadcast mode of the LoRa module, all LoRa modules within the communication range can receive all data messages, and distinguish different data messages by screening the ID in the data message.
[0060] At the hardware level, each robot and each charging pile is equipped with a LoRa module for wireless communication. When the robot and the charging pile need to communicate, their respective LoRa modules will send and receive data messages. The reception of messages is the key to the subsequent logic and process processing of the robot and charging pile processors, thereby completing the process of multi-robot multi-charging pile scheduling.
[0061] In this system, it is necessary to realize the coordinated charging scheduling of multiple robots and multiple charging piles. In order to ensure that the robot can accurately locate and use the charging pile, it is necessary to extract and save the pre-set charging pile location information (the location information of the charging pile in the map) to the processor of the charging pile when setting the robot's map. In this way, the robot can find the corresponding charging pile for charging based on the location information sent by the charging pile. In the specific charging scheduling process, when the robot's power is lower than the set value, the system will notify it to go to the nearest charging standby point for charging.
[0062] The charging standby point is a pre-set specific area, which only serves as a temporary waiting point before the robot is charged. The robot will not perform any operation here, but just wait in line. In the actual application process, it is also very important to select a suitable location as the charging standby point. This location should have a relatively wide space to accommodate multiple robots for charging at the same time.
[0063] The following first explains the key terms, LoRa message ID and basic content mentioned in the present invention. The following Table 1 is a key term analysis table, and Table 2 is a LoRa message ID and basic content analysis table:
[0064]
[0065]
[0066] Table 1 Key noun analysis table
[0067] The charging queue described in Table 1 is determined according to the contents of the messages with ID numbers 101 and 102 in the LoRa message, and is updated by the processor of the master charging pile. The judgment rules of the charging queue are as follows:
[0068] (1) The robot that first sends the data message for registering the charging queue with ID 101 will enter the charging queue first;
[0069] (2) If multiple robots send 101 messages at the same time, the system will determine which robot has less power. The robot with less power will be given priority in the charging queue, but the created charging queue will not be disrupted. The charging order is also based on the charging queue.
[0070] (3) If the power levels of multiple robots are the same, the robot with the smaller number will be prioritized in the charging queue.
[0071]
[0072] Table 1 LoRa message ID and basic content analysis table
[0073] Specifically, the charging scheduling process of the present invention is described from two perspectives: the robot and the charging pile.
[0074] 1. Robot angle
[0075] Please refer to Figure 2 , which is the charging scheduling operation flow chart of the robot. The following is a detailed description of the flow chart in steps:
[0076] Step 1: The robot's LoRa module is in normal working condition. When the robot's power drops to a preset power threshold and is not currently in working condition, the charging function will be automatically triggered. In a specific embodiment, the power threshold can be set to 30% of the robot's total power.
[0077] Step 2: The robot's LoRa module continuously broadcasts messages with ID 101.
[0078] S2. When it is determined that the robot to be charged has been registered in the charging queue, control the robot to be charged to move to a preset charging standby point, and determine whether the robot to be charged is at the first position in the charging queue;
[0079] After the robot receives the charging queue data message with ID 201 sent by the LoRa module of the main control charging pile, if the robot exists in the received charging queue, it can be confirmed that the robot has been successfully registered to the charging queue and control the robot to navigate and move to the charging standby point.
[0080] If the robot does not exist in the received charging queue, it will continue to send messages with ID 101 until the registration of the charging queue is successful. When the robot successfully registers the charging queue and arrives at the charging standby point, it determines whether it is the first in the charging queue. If not, it will wait for a certain period of time and continue to determine its ranking in the charging queue; if it is the first, proceed to the next step. In a specific embodiment, the waiting time of the robot can be set to 5 seconds.
[0081] S3. When it is determined that the robot to be charged is at the first position in the charging queue, a charging request message including the robot number of the robot to be charged is broadcast, so that the currently idle charging pile, upon receiving the charging request message, broadcasts a charging pile information message including the corresponding charging pile number and charging pile location information;
[0082] Step 3: When it is determined that the robot is at the first position in the charging queue, the robot's LoRa module broadcasts a charging request message with an ID of 103 at a preset broadcast frequency, waiting for the LoRa module of the charging pile to receive the data and perform logical processing; in a specific embodiment, the broadcast frequency can be set to once every 10 seconds.
[0083] If the robot's LoRa module receives the charging pile information with ID 202, it stops sending the charging request message with ID 103, and then waits for a while to ensure that the robot's LoRa module receives relatively complete charging pile information (there may be multiple charging pile information) before entering the next step. If the charging pile information with ID 202 is not received, the above broadcast frequency is maintained to continue sending the charging request message with ID 103.
[0084] Among them, the robot waits for a period of time before entering the next step, mainly to ensure that the robot's LoRa module can receive complete charging pile information. Affected by the number of charging piles, charging environment, etc., the specific waiting time can be set after the on-site environment is paralleled. In a specific embodiment, the charging scene can be a relatively open space with 5 charging piles. The actual waiting time can be about 1 minute. Within 1 minute, the robot to be charged can receive 202 messages from all charging piles available for charging.
[0085] S4. When the charging pile information message is received, a charging pile is selected from the currently idle charging piles as the target charging pile to be charged, a charging confirmation information message including the robot number of the robot to be charged and the charging pile number of the target charging pile is broadcast, and the robot to be charged is controlled to move to the target charging pile for charging.
[0086] Preferably, when the charging pile information message is received, a charging pile is selected from the currently idle charging piles as the target charging pile to be charged, including: when the charging pile information message is received, the number of received charging pile information messages is determined; if there is only one charging pile information message, the charging pile that broadcasts the charging pile information message is directly used as the target charging pile to be charged; if there is more than one charging pile information message, the path of the robot to be charged from the current position to each charging pile is determined according to the charging pile position information in each charging pile information message, and the charging pile corresponding to the shortest path is selected as the target charging pile to be charged.
[0087] Preferably, the broadcast contains a charging confirmation information message containing the robot number of the robot to be charged and the charging pile number of the target charging pile, including: alternately broadcasting a charging confirmation information message containing the robot number of the robot to be charged and the charging pile number of the target charging pile and a quit charging queue message containing the robot number of the robot to be charged, so that after receiving the quit charging queue message, the master charging pile removes the robot to be charged from the charging queue according to the robot number of the robot to be charged, updates the charging queue, and broadcasts a charging queue data message containing the updated charging queue; when receiving the charging queue data message broadcasted by the master charging pile, judging whether the robot to be charged has quit the charging queue according to the charging queue data in the charging queue data message; if it has not quit, continuing to broadcast the quit charging queue message containing the robot number of the robot to be charged.
[0088] Preferably, it also includes: when each charging pile receives the charging confirmation information message, it determines whether the charging pile is the selected target charging pile according to the charging pile number of the target charging pile in the charging confirmation information message; if so, it waits for the robot to be charged to arrive for charging; if not, the process ends.
[0089] Step 4: The robot determines the number of charging pile information received. If there is only one charging pile information, the robot will directly select the charging pile for charging. If there is multiple charging pile information, the robot will extract the location information of each charging pile, and by comparing the length of the path corresponding to each charging pile, select the charging pile with the shortest path as the target charging pile for this charging (wherein, the robot's path can be determined in the implementation preparation stage, that is, the path from the charging standby point to each charging pile is pre-set, and each path is bound to the charging pile on the path)
[0090] Step 5: After completing the charging pile selection, the robot's LoRa module will send a charging confirmation message with ID 104. At the same time, the robot's LoRa module continues to send messages with ID 102, exiting the charging queue and waiting for the charging queue data message with ID 201 sent by the LoRa module of the master charging pile. After confirming that the machine has successfully exited the charging queue, proceed with subsequent operations. If the received charging queue still exists for the machine, continue to send messages with ID 102 until it successfully exits the charging queue.
[0091] It should be noted that the charging confirmation message and the exit charging queue message are broadcast alternately in the same time period, rather than waiting for the robot to exit the charging queue before broadcasting the charging confirmation message. This is done to avoid the situation where, during the charging queue update process, if the next robot to be charged also sends a charging request, but the charging pile selected by the previous robot to be charged has not received and processed the charging confirmation message, and is still sending charging pile information, which may cause two robots to be charged to select the same charging pile.
[0092] After successfully exiting the charging queue, the robot navigates to the selected charging station location for charging. A timeout period is reserved for the navigation process until successful charging. If the robot successfully starts charging within this period, the charging process ends. If charging fails, the robot will re-execute the process from step 1, that is, the robot's LoRa module sends a message with ID 101 and re-registers itself in the charging queue. In a specific embodiment, the reserved timeout period can be 5 minutes.
[0093] 2. Charging pile angle
[0094] Please refer to Figure 3 , is the operation flow chart of the charging pile during the charging scheduling process. The following is a detailed description of the flow chart in steps:
[0095] Step 1: The LoRa module of the charging pile is in normal working state. When the LoRa module of the charging pile receives the charging request message with ID 103, it first determines whether the current charging pile is charging. If yes, no logical processing is performed; if not, the LoRa module of the charging pile will send the charging pile information with ID 202 every preset time, and continue to send it for a period of time. If the charging confirmation information with ID 104 is received in the broadcast, it will end in advance and enter the next step. If the charging confirmation information is not received within the preset time, it will time out, and the LoRa module of the charging pile will no longer send the charging pile information with ID 202. In a specific embodiment, if not, the LoRa module of the charging pile can send the charging pile information with ID 202 every 5 seconds, and continue for 1 minute. If the charging confirmation information with ID 104 is received in the broadcast, it will end in advance and enter the next step. If the charging confirmation information is not received within 2 minutes, it will time out, and the LoRa module of the charging pile will no longer send the charging pile information with ID 202.
[0096] Step 2: The charging pile system will then check whether the charging confirmation information with ID 104 received by the LoRa module of the charging pile contains the ID of this charging pile to confirm that the robot has indeed selected this charging pile for charging. If the ID of this charging pile is not included, the process ends; if it is included, proceed to the next step.
[0097] Step 3: In this step, the system mainly waits for the robot to navigate to the charging pile and start charging. In a specific embodiment, the waiting time can be up to 5 minutes. During this period, if the charging pile receives a charging request message with ID 103, it will not respond. If the robot still does not arrive after more than 5 minutes, the process ends; if the robot successfully arrives and starts charging within 5 minutes, the charging pile will switch to the charging state and will no longer respond to the charging request message with ID 103.
[0098] In addition, when the robot triggers the automatic charging function, it will try to execute the "robot operation process during charging scheduling" in the first part above. In a specific embodiment, it can make up to 5 attempts. If the robot successfully completes charging in these 5 attempts, the charging process is completed. However, if the robot still fails to charge successfully after 5 attempts, it will notify the relevant responsible personnel to perform manual charging operations. Please refer to Figure 4 , the operation flow chart when charging the robot fails.
[0099] It can be seen that the present invention provides a robot charging scheduling method, through which the following beneficial effects can be achieved:
[0100] (1) Through the preset communication module of the robot itself, it can communicate wirelessly with the main control charging pile and other charging piles. The robot's charging scheduling can be realized through the robot's own processor and communication module, without relying on the intervention of the cloud platform or other third-party platforms. Therefore, it can avoid the risk of the robot's charging scheduling not being able to proceed normally due to factors such as poor network quality of the cloud platform or other third-party platforms. Even in an environment with weak or unstable network signals, it can still run stably and complete the robot's charging scheduling tasks, enhancing the stability and reliability of the robot's charging scheduling;
[0101] (2) The wireless communication part of the present invention adopts the LoRa module, which not only reduces the hardware cost, but also reduces the computing power requirement of the robot processor to a certain extent because the processor of the charging pile participates in part of the logic processing work.
[0102] It should be noted that the communication module in the present invention is not limited to the LoRa module, and the following modules can also be used to achieve the same function of the LoRa module:
[0103] (1) The Zigbee module solution has the advantage of a higher data transmission rate than LoRa. At the same time, due to its low power consumption design, it is suitable for battery-powered devices. The disadvantage is that the transmission distance is short and it also requires more complex network management. (2) The Wi-Fi module solution has the advantage of a high data transmission rate and is suitable for transmitting large amounts of data. The disadvantage is that it has high power consumption and is not suitable for battery-powered devices, and the transmission distance is short. (3) The Bluetooth module solution has the advantage of a low power consumption design, is suitable for small devices, and has good compatibility. The disadvantage is that the data transmission rate is low and the transmission distance is shorter than the LoRa module.
[0104] Embodiment 2
[0105] Please refer to Figure 5 , is a schematic diagram of the structure of a robot charging scheduling device provided by an embodiment of the present invention, the device comprising: a charging queue registration module, a robot moving module to be charged, a charging request module and a target charging pile selection module;
[0106] The charging queue registration module is used to broadcast a registration charging queue message containing the robot number and current power of the robot to be charged through a preset communication module when it is detected that the current power of the robot is lower than a preset power threshold and is not in a working state, so that the preset master control charging pile registers the robot to be charged into the charging queue after receiving the registration charging queue message; wherein the master control charging pile is a charging pile for storing the charging queue of the robot;
[0107] The robot moving module to be charged is used to control the robot to be charged to move to a preset charging standby point when it is determined that the robot to be charged has been registered in the charging queue, and to determine whether the robot to be charged is located at the first position in the charging queue;
[0108] The charging request module is used to broadcast a charging request message containing the robot number of the robot to be charged when it is determined that the robot to be charged is at the first position in the charging queue, so that the currently idle charging pile, upon receiving the charging request message, broadcasts a charging pile information message containing the corresponding charging pile number and charging pile location information;
[0109] The target charging pile selection module is used to select a charging pile from the currently idle charging piles as the target charging pile to be charged when receiving the charging pile information message, broadcast a charging confirmation information message including the robot number of the robot to be charged and the charging pile number of the target charging pile, and control the robot to be charged to move to the target charging pile for charging.
[0110] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0111] Those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0112] Embodiment 3
[0113] Accordingly, an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the robot charging scheduling method described in the above-mentioned embodiment of the invention when executing the computer program.
[0114] The electronic device may be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The device may include, but is not limited to, a processor and a memory.
[0115] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the device, and various interfaces and lines are used to connect various parts of the entire device.
[0116] Embodiment 4
[0117] Accordingly, an embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the robot charging scheduling method described in the above-mentioned embodiment of the invention.
[0118] The memory can be used to store the computer program, and the processor realizes various functions of the device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMed ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0119] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each method embodiment described above can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-On l yMemory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0120] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A robot charging scheduling method, characterized in that: include: When it is detected that the current power of the robot is lower than the preset power threshold and is not in the working state, a registration charging queue message containing the robot number and the current power of the robot to be charged is broadcast through a preset communication module, so that the preset master control charging pile registers the robot to be charged into the charging queue after receiving the registration charging queue message; wherein the master control charging pile is a charging pile for storing the charging queue of the robot; When it is determined that the robot to be charged has been registered in the charging queue, the robot to be charged is controlled to move to a preset charging standby point, and it is determined whether the robot to be charged is located at the first position in the charging queue; When it is determined that the robot to be charged is at the first position in the charging queue, a charging request message containing the robot number of the robot to be charged is broadcast, so that the currently idle charging pile, upon receiving the charging request message, broadcasts a charging pile information message containing the corresponding charging pile number and charging pile location information; When the charging pile information message is received, a charging pile is selected from the currently idle charging piles as the target charging pile to be charged, a charging confirmation information message including the robot number of the robot to be charged and the charging pile number of the target charging pile is broadcast, and the robot to be charged is controlled to move to the target charging pile for charging.
2. The robot charging scheduling method according to claim 1, characterized in that: After receiving the registration charging queue message, the master charging pile registers the robot to be charged into the charging queue in the following manner: When the master charging pile receives the registration charging queue message, it registers the corresponding robots to be charged into the charging queue in sequence according to the broadcast time of the registration charging queue message and the robot number and current power of the robots to be charged in the registration charging queue message, updates the charging queue, and broadcasts the charging queue data message containing the updated charging queue data; According to the broadcast time of the registration charging queue message and the robot number and current power of the robot to be charged in the registration charging queue message, the corresponding robot to be charged is registered to the charging queue in sequence, including: If the broadcasting times of the registration charging queue messages are all different, the corresponding robots to be charged are registered in the charging queue in order of the broadcasting time of each registration charging queue message; If there are several registration charging queue messages with the same broadcast time, the corresponding robots to be charged are registered to the charging queue in order from low to high according to the current power of the robots to be charged in each registration charging queue message; If there are several registered charging queue messages with the same current power of the robots to be charged, the corresponding robots to be charged will be registered in the charging queue in ascending order according to the robot numbers of the robots to be charged in each registered charging queue message.
3. The robot charging scheduling method according to claim 2, characterized in that: Determine whether the robot to be charged has been registered in the charging queue by the following methods: When receiving the charging queue data message broadcasted by the master control charging pile, judging whether there is a robot to be charged in the charging queue according to the charging queue data in the charging queue data message; If yes, it is determined that the robot to be charged has been registered in the charging queue; if not, it is determined that the robot to be charged has not been registered in the charging queue, and the registration charging queue message containing the robot number and current power of the robot to be charged is continued to be broadcast.
4. The robot charging scheduling method according to claim 1, characterized in that: When the charging pile information message is received, a charging pile is selected from currently idle charging piles as a target charging pile to be charged, including: When receiving a charging pile information message, determining the number of received charging pile information messages; If there is only one charging pile information message, the charging pile that broadcasts the charging pile information message is directly used as the target charging pile to be charged; If there is more than one charging pile information message, the path of the robot to be charged from the current position to each charging pile is determined according to the charging pile location information in each charging pile information message, and the charging pile corresponding to the shortest path is selected as the target charging pile to be charged.
5. The robot charging scheduling method according to claim 1, characterized in that: The broadcast includes a charging confirmation information message including the robot number of the robot to be charged and the charging pile number of the target charging pile, including: Alternately broadcasting a charging confirmation information message including the robot number of the robot to be charged and the charging pile number of the target charging pile and an exit charging queue message including the robot number of the robot to be charged, so that after receiving the exit charging queue message, the master control charging pile removes the robot to be charged from the charging queue according to the robot number of the robot to be charged, updates the charging queue, and broadcasts a charging queue data message including the updated charging queue; When receiving the charging queue data message broadcast by the master charging pile, determine whether the robot to be charged has exited the charging queue according to the charging queue data in the charging queue data message; if it has not exited, continue to broadcast the exit charging queue message containing the robot number of the robot to be charged.
6. The robot charging scheduling method according to claim 1, characterized in that: Also includes: When each charging pile receives the charging confirmation information message, it determines whether the charging pile is the selected target charging pile according to the charging pile number of the target charging pile in the charging confirmation information message; If yes, wait for the robot to be charged to arrive for charging; if no, end the process.
7. The robot charging scheduling method according to claim 1, characterized in that: The communication module includes: a LoRa communication module.
8. A robot charging scheduling device, characterized in that: include: Charging queue registration module, charging robot movement module, charging request module and target charging pile selection module; The charging queue registration module is used to broadcast a registration charging queue message containing the robot number and current power of the robot to be charged through a preset communication module when it is detected that the current power of the robot is lower than a preset power threshold and is not in a working state, so that the preset master control charging pile registers the robot to be charged into the charging queue after receiving the registration charging queue message; wherein the master control charging pile is a charging pile for storing the charging queue of the robot; The robot moving module to be charged is used to control the robot to be charged to move to a preset charging standby point when it is determined that the robot to be charged has been registered in the charging queue, and to determine whether the robot to be charged is located at the first position in the charging queue; The charging request module is used to broadcast a charging request message containing the robot number of the robot to be charged when it is determined that the robot to be charged is at the first position in the charging queue, so that the currently idle charging pile, upon receiving the charging request message, broadcasts a charging pile information message containing the corresponding charging pile number and charging pile location information; The target charging pile selection module is used to select a charging pile from the currently idle charging piles as the target charging pile to be charged when receiving the charging pile information message, broadcast a charging confirmation information message including the robot number of the robot to be charged and the charging pile number of the target charging pile, and control the robot to be charged to move to the target charging pile for charging.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the robot charging scheduling method according to any one of claims 1 to 7 is implemented.
10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is executed, the device where the storage medium is located is controlled to execute the robot charging scheduling method according to any one of claims 1 to 7.
Citation Information
Cited By
Group mobile robot parallel charging scheduling method and system
CN122678248A
