Operation method of service robot in offline state

Through automatic switching of base station cells and local task scheduling, the problem of functional failure of service robots in weak or no-network environments is solved, normalizing task execution and reducing operation and maintenance costs.

CN118544374APending Publication Date: 2024-08-27NAT AUTOMOBILE PUJIN INTELLIGENT TECH (ANQING) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410929811.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing service robots cannot perform tasks normally in weak or no-network environments, resulting in functional failure and increased operation and maintenance costs.

Method used

By automatically switching base station cells in a weak network environment, and using the HMI module for local task scheduling in a no-network environment, the task priority queue algorithm is used to ensure task execution efficiency, and encrypted transmission and message queue telemetry protocols are used to synchronize data.

Benefits of technology

It realizes that the service robot can still perform tasks normally in a weak or no-network environment, reducing operation and maintenance costs and improving the intelligence level of the robot.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118544374A
    Figure CN118544374A
Patent Text Reader

Abstract

A method for operating a service robot in an offline state comprises the steps that S1, in a weak network environment, a cloud end issues a task to a robot chassis; s11, when the robot executes a cloud task, the gateway background always sends an instruction to the 4G module to obtain surrounding network environment data in real time; s12, the gateway judges that the current base station cell network environment is a weak network environment according to the acquired surrounding network environment data; s13, after the weak network environment is determined, the gateway automatically executes a base station cell switching operation; s14, normal business is recovered; S2, in a network-free environment, the robot executes a task; and S21, before the robot enters the network-free environment or when the network is normal, the cloud end automatically issues and synchronizes all information of the whole task to the HMI end, and the HMI represents the application scheduling system. According to the invention, the robot can normally execute services without a network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of robots, and in particular to an operation method of a service robot in an offline state. Background Art

[0002] Currently, some service robots are highly dependent on the network. In a weak network or no network environment, they cannot perform normal business, affecting normal use. Existing service robots on the market are basically scheduled through the cloud, and instructions are issued to the robots. The network requirements are very high. When the network fluctuates greatly or the network is abnormally disconnected, the robot's function of performing tasks fails. On the one hand, it affects normal use. For example, in a weak network environment, the service robots on the market currently have a high delay in switching cells with SIM cards, resulting in task timeouts, affecting normal use. On the other hand, it increases operation and maintenance costs. For example, in an environment without a network, robots on the market currently cannot perform any business and cannot be remotely monitored. Operation and maintenance personnel are required to go to the site, increasing operation and maintenance costs. Summary of the invention

[0003] The purpose of the present invention is to provide a method for operating a service robot in an offline state, which can effectively solve the technical problems mentioned in the background technology.

[0004] To achieve the above object, the present invention provides the following technical solutions: A method for operating a service robot in an offline state comprises the following steps: S1. In a weak network environment, the cloud sends tasks to the robot chassis; S11. When the robot performs cloud tasks, the gateway background will continue to send instructions to the 4G module to obtain real-time surrounding network environment data; The gateway backend will call the network information query function to send a network environment query instruction to the 4G module, and obtain network environment data in real time through the network information acquisition function. The acquired data includes information about the current service cell; S12. The gateway determines that the current base station cell network environment is a weak network environment based on the acquired surrounding network environment data; When judging a weak network environment, the gateway judges the acquired signal-to-noise ratio data through a preset threshold judgment function. When the signal-to-noise ratio value is less than 0, the gateway determines that the current network environment is a weak network environment. S13. After determining that the network environment is weak, the gateway will automatically perform the base station cell switching operation; The gateway sends a base station cell switching command through the AT command sending function to switch the communication module to flight mode. After sending the base station cell switching command, the sleep function waits for a corresponding time to ensure that the command takes effect. Then, the communication module automatically selects a base station cell with a better signal and connects to the network through the network reconnection function, so that the gateway reconnects to the 4G or 5G network mode. S14. Resuming normal business: The gateway calls the preset threshold judgment function again to confirm whether the network environment has returned to normal. If the condition that the signal-to-noise ratio is less than 0 is false, it is determined that the network is normal at this time, and the robot continues to perform its normal business; if the condition that the signal-to-noise ratio is less than 0 is true, the for loop function is used to repeat the operation steps of S13 until the network environment is normal, the robot continues to perform normal business, and reports the results to the cloud after the task is completed; S2, the robot performs tasks in an off-network environment; S21. Before the robot enters the networkless environment or when the network is normal, the cloud will automatically send all the information of the entire task and synchronize it to the HMI end. HMI represents the application scheduling system; S22, after receiving the task information, the HMI gateway communication module synchronizes the task information to the HMI task management module through the socket application program interface cross-process communication; HMI gateway communication module: responsible for establishing a stable communication link between the HMI end and the robot chassis, using the network socket protocol so that it does not rely on the external network and can communicate normally in an environment without a network; when the network is normal, it is responsible for establishing a stable network connection with the cloud, communicating with the external network through the MQTT protocol, and receiving task information from the cloud; HMI task management module: used to parse the task information received from the cloud and organize it into executable behavior instruction sets; S23. When the task meets the triggering condition, the HMI task management module will schedule and manage the task according to the different behavior information in the task. The specific steps are as follows: S231, task scheduling: when a task is triggered by time or keywords, the HMI terminal decomposes the behavior information in the task according to the complexity and type of the task; S232, using task scheduling algorithms during the decomposition process to ensure that tasks can be executed efficiently; When the task scheduling algorithm adopts the task priority queue algorithm, the HMI end will first calculate the task priority of different actions in the task, where the task priority is determined by a weighted combination of urgency, task deadline, and task complexity: [ P_i = alpha / U_i + beta / D_i +gamma / C_i ] In this formula, P_i represents the task priority, U_i represents the urgency, D_i represents the task deadline, C_i represents the task complexity, alpha, beta and gamma represent weight coefficients that can be adjusted according to specific application scenarios to balance the impact of urgency, task deadline and task complexity on task priority. Finally, the comparison function is used to prioritize different behaviors in the task. S233, the HMI task management module sends the sorted task execution information to the robot chassis communication module through the network socket protocol. The robot chassis communication module synchronizes the task information to the robot chassis execution module through the socket application program interface cross-process communication. The robot chassis execution module receives the task information sent by the HMI end. After successful reception, it parses each different behavior in the task information by calling the message parsing function. Finally, the for loop function is used to ensure that each behavior information is successfully executed: Robot chassis execution module: responsible for executing the robot's task type, robot movements, the words broadcast during the task, the task execution point, and the task start time; Robot chassis communication module: responsible for sending the task information decomposed by the HMI end to the robot chassis execution module, and reporting the task completion status information of the robot chassis execution module to the HMI end; S234 After the robot chassis execution module completes the execution of all behaviors, the task execution status information is synchronized to the robot chassis communication module through the socket application program interface cross-process communication, and the robot chassis communication module feeds back the execution results to the HMI gateway communication module; The S235HMI gateway communication module synchronizes the task execution results to the HMI data storage module through the socket application program interface cross-process communication. The HMI data storage module saves the result information of the task execution. The HMI data storage module is responsible for saving the execution result information of the entire task when the robot is off the Internet.

[0005] Preferably, in step S11, the information of the serving cell includes network type, country code, operator code, cell ID and signal-to-noise ratio.

[0006] Preferably, in step S13, after sending the base station cell switching instruction, a sleep function is used to wait for 200 milliseconds to ensure that the instruction takes effect.

[0007] Preferably, in step S21, the synchronization task steps are as follows: S211, the cloud uses the application programming interface to package the task information into data in JSON format; S212, through the message queue telemetry transmission protocol, the cloud synchronously sends these data to the HMI gateway communication module; S213. Encrypted transmission is used during synchronization to ensure data security.

[0008] Preferably, in step S22, the task information synchronized to the HMI task management module includes the task name, task description, task type, robot action, the words broadcast during the task, the task execution point and the task start execution time; Task types include leading tasks, welcoming tasks and explaining tasks.

[0009] Preferably, in step S23, the triggering condition satisfied by the task includes reaching the task execution start time.

[0010] Preferably, in step S233, the robot chassis execution module is responsible for executing the robot's task types including leading tasks, welcoming tasks, and explaining tasks.

[0011] Compared with the prior art, the present invention has the following beneficial effects: (1) Service robots are more intelligent: By automatically switching cells in weak networks and performing local scheduling when there is no network, robots will not remain stationary in the same place when there is no network, and can still perform their duties normally.

[0012] (2) Reduce operation and maintenance costs: When the network environment of the robot is poor or even unavailable, there is no need to manually improve the on-site network environment, thus reducing the operation and maintenance costs of the robot. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is a flowchart of a robot executing a task in a weak network environment in an embodiment of the present invention; Figure 2 It is a diagram of the architecture between the modules in the embodiment of the present invention; Figure 3 It is a flow chart of a robot executing tasks in a network-free environment in an embodiment of the present invention. DETAILED DESCRIPTION

[0014] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0015] like Figure 1 , Figure 2 and Figure 3 As shown, a method for operating a service robot in an offline state comprises the following steps: S1. In a weak network environment, the cloud sends tasks to the robot chassis; S11. When the robot performs cloud tasks, the gateway background will continue to send instructions to the 4G module to obtain real-time surrounding network environment data; The gateway backend will call the network information query function (net_searching) to send a network environment query command to the 4G module. The command includes the parameter "at+servingcell". Then, the network environment data is obtained in real time through the network information acquisition function (get_networ_info). The obtained data includes information about the current serving cell, such as network type (LTE), country code (460), operator code (01), cell ID (2818763), signal-to-noise ratio (-14 dB), etc. S12. The gateway determines that the current base station cell network environment is a weak network environment based on the acquired surrounding network environment data; When judging a weak network environment, the gateway uses a preset threshold judgment function (is_weak_network) to judge the acquired signal-to-noise ratio data. When the signal-to-noise ratio value is less than 0, the gateway determines that the current network environment is a weak network environment: S13. After determining that the network environment is weak, the gateway will automatically perform the base station cell switching operation; The gateway sends a base station cell switching command through the AT command sending function (send_at_command) to switch the communication module to flight mode. The command includes the parameter "AT+CFUN=1,1". After sending the base station cell switching command, the sleep function (time.sleep(0.2)) waits for about 200 milliseconds to ensure that the command takes effect. Then, the communication module automatically selects a base station cell with better signal, connects to the network through the network reconnection function (reconnect_network), and reconnects the gateway to the 4G or 5G network mode. S14. Resuming normal business: The gateway calls the preset threshold judgment function again to confirm whether the network environment has returned to normal. If the condition that the signal-to-noise ratio is less than 0 is false, it is determined that the network is normal at this time, and the robot continues to perform its normal business. If the condition that the signal-to-noise ratio is less than 0 is true, the for loop function is used to repeat the operation steps of S13 until the network environment is normal, the robot continues to perform normal business, and reports the results to the cloud after the task is completed. S2, the robot performs tasks in an off-network environment; S21. Before the robot enters the networkless environment or when the network is normal, the cloud will automatically send all the information of the entire task and synchronize it to the HMI end (application scheduling system). The steps for synchronizing the task are as follows: S211. The cloud uses an application programming interface (API interface) to package the task information into data in JSON format. JSON format data is a lightweight data exchange format. S212, through the message queue telemetry transmission protocol (mqtt communication protocol), the cloud synchronously sends these data to the HMI gateway communication module; S213. Use encrypted transmission (such as TLS / SSL) to ensure data security during synchronization; S22, after receiving the task information, the HMI gateway communication module synchronizes the task information to the HMI task management module through the socket application program interface (SocketAPI) cross-process communication. The task information includes: ① task name (taskName); ② task description (taskDescription); ③ task type (taskType), such as leading task, welcoming task, explanation task, etc.); ④ robot action (robotAction); ⑤ the words broadcast during the task (taskWords); ⑥ task execution point (taskStation); ⑦ task start execution time (time); HMI gateway communication module: responsible for establishing a stable communication link between the HMI end and the robot chassis, using the network socket protocol so that it does not rely on the external network and can communicate normally in an environment without a network; when the network is normal, it is responsible for establishing a stable network connection with the cloud, communicating with the external network through the MQTT protocol, and receiving task information from the cloud; HMI task management module: used to parse the task information received from the cloud and organize it into executable behavior instruction sets; S23. When the task meets the triggering conditions, such as reaching the task execution start time, the HMI task management module will schedule and manage the task according to the different behavior information in the task. The specific steps are as follows: S231, task scheduling: when a task is triggered by time or keywords, the HMI terminal decomposes the behavior information in the task according to the complexity and type of the task; S232, using a task scheduling algorithm, such as a task priority queue algorithm, during the decomposition process to ensure that the tasks can be executed efficiently; When using the task scheduling algorithm, the HMI first calculates the task priority (P_i) of different actions in the task, where the task priority (P_i) is determined by a weighted combination of urgency (U_i), task deadline (D_i), and task complexity (C_i), namely: [ P_i = alpha / U_i + beta / D_i +gamma / C_i ] In this formula, P_i represents the task priority, U_i represents the urgency, D_i represents the task deadline, C_i represents the task complexity, (alpha), (beta) and (gamma) represent weight coefficients that can be adjusted according to specific application scenarios, which are used to balance the impact of urgency, task deadline and task complexity on task priority. Finally, the task priority (P_i) of different behaviors in the task is sorted by comparison function (compare), for example, [P_1=robotAction1 (robot action)], [P_2=robotAction2 (robot action 2)], [P_3=taskStation1 (robot task execution point 1)]; The weight coefficient adjustment method in common application scenarios is as follows: ① Urgency priority: Scenario description: In some cases, the urgency of the task is crucial to determining the priority, such as a customer needs the robot to tell him the way to the bathroom immediately; Weight adjustment suggestion: Set (alpha) to a higher value, such as 2 or 3, to ensure that urgency dominates the task priority calculation. At the same time, (beta) and (gamma) can be set to smaller values, such as 0.5 or 1, to reduce the impact of deadline and complexity on priority; ② Deadline priority: Scenario description: When there is a clear deadline, ensuring that the task is completed on time may be more important than urgency or complexity. For example, the robot needs to complete the introduction of the company's products within a specified time. Weight adjustment suggestion: Set (beta) to a higher value, such as 2 or 3, to emphasize the importance of task deadlines. At the same time, (alpha) and (gamma) can be set to smaller values, such as 0.5 or 1, to reduce the impact of urgency and complexity on priority; ③ Complexity first: Scenario description: When handling technically complex or professionally required tasks, ensure that the robot has enough time and resources to solve customer needs; for example, the robot needs to help customers make meeting reservations, then greet customers, and then take customers to the meeting room for a meeting; Weight adjustment suggestion: Set (gamma) to a higher value, such as 2 or 3, to prioritize the complexity of the task. At the same time, (alpha) and (beta) can be set to smaller values, such as 0.5 or 1, to reduce the impact of urgency and deadline on priority; ④Balance considerations: Scenario description: In some tasks, it is necessary to balance urgency, deadlines, and complexity to avoid any one factor having too much impact on the overall project progress; Suggestions for weight adjustment: Set (alpha), (beta), and (gamma) to similar values, such as 1 or 2, to ensure that the influence of the three factors in the priority calculation is relatively balanced; S233, the HMI task management module sends the sorted task priority (P_i) execution information to the robot chassis communication module through the network socket protocol (WebSocket protocol); the robot chassis communication module synchronizes the task information to the robot chassis execution module through the socket application program interface (Socket API) cross-process communication; the robot chassis execution module receives the task information sent by the HMI end, and after successful reception, it parses each different behavior in the task information by calling the message parsing function (stringjsonString), and finally ensures that each behavior information is successfully executed through the for loop function: Robot chassis communication module: responsible for sending the task information decomposed by the HMI end to the chassis execution module, and reporting the task completion status information of the chassis execution module to the HMI end; Robot chassis execution module: responsible for executing the specific task type (taskType) of the robot, such as leading the way, welcoming guests, explaining tasks, etc., robot actions (robotAction), the words broadcast during the task (taskWords), the task execution point (taskStation), and the task start execution time (time); S234 After the robot chassis execution module completes the execution of all behaviors, it synchronizes the task execution status information to the robot chassis communication module through the socket application program interface (Socket API) cross-process communication; the robot chassis communication module feeds back the execution results to the HMI gateway communication module; The S235HMI gateway communication module synchronizes the task execution results to the HMI data storage module through the socket application program interface cross-process communication. The HMI data storage module saves the result information of the task execution. The HMI data storage module is responsible for saving the execution result information of the entire task when the robot is off the Internet.

[0016] The above contents are merely examples and explanations of the structure of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the structure of the present invention or exceed the scope defined by the claims, they should all fall within the protection scope of the present invention.

Claims

1. A method for operating a service robot in an offline state, Features: The following steps are involved: S1. In a weak network environment, the cloud sends tasks to the robot chassis; S11. When the robot performs cloud tasks, the gateway background will continue to send instructions to the 4G module to obtain real-time surrounding network environment data; The gateway backend will call the network information query function to send a network environment query instruction to the 4G module, and obtain network environment data in real time through the network information acquisition function. The acquired data includes information about the current service cell; S12. The gateway determines that the current base station cell network environment is a weak network environment based on the acquired surrounding network environment data; When judging a weak network environment, the gateway judges the acquired signal-to-noise ratio data through a preset threshold judgment function. When the signal-to-noise ratio value is less than 0, the gateway determines that the current network environment is a weak network environment. S13. After determining that the network environment is weak, the gateway will automatically perform the base station cell switching operation; The gateway sends a base station cell switching command through the AT command sending function to switch the communication module to flight mode. After sending the base station cell switching command, the sleep function waits for a corresponding time to ensure that the command takes effect. Then, the communication module automatically selects a base station cell with a better signal and connects to the network through the network reconnection function, so that the gateway reconnects to the 4G or 5G network mode. S14. Resuming normal business: The gateway calls the preset threshold judgment function again to confirm whether the network environment has returned to normal. If the condition that the signal-to-noise ratio is less than 0 is false, it is determined that the network is normal at this time, and the robot continues to perform its normal business; if the condition that the signal-to-noise ratio is less than 0 is true, the for loop function is used to repeat the operation steps of S13 until the network environment is normal, the robot continues to perform normal business, and reports the results to the cloud after the task is completed; S2, the robot performs tasks in an off-network environment; S21. Before the robot enters a networkless environment or when the network is normal, the cloud will automatically send all the information of the entire task and synchronize it to the HMI end; S22, after receiving the task information, the HMI gateway communication module synchronizes the task information to the HMI task management module through the socket application program interface cross-process communication; HMI gateway communication module: responsible for establishing a stable communication link between the HMI end and the robot chassis, using the network socket protocol so that it does not rely on the external network and can communicate normally in an environment without a network; when the network is normal, it is responsible for establishing a stable network connection with the cloud, communicating with the external network through the MQTT protocol, and receiving task information from the cloud; HMI task management module: used to parse the task information received from the cloud and organize it into executable behavior instruction sets; S23. When the task meets the triggering condition, the HMI task management module will schedule and manage the task according to the different behavior information in the task. The specific steps are as follows: S231, task scheduling: when a task is triggered by time or keywords, the HMI terminal decomposes the behavior information in the task according to the complexity and type of the task; S232, using task scheduling algorithms during the decomposition process to ensure that tasks can be executed efficiently; When the task scheduling algorithm adopts the task priority queue algorithm, the HMI end will first calculate the task priority of different actions in the task, where the task priority is determined by a weighted combination of urgency, task deadline, and task complexity: [ P_i = alpha / U_i + beta / D_i +gamma / C_i ] In this formula, P_i represents the task priority, U_i represents the urgency, D_i represents the task deadline, C_i represents the task complexity, alpha, beta and gamma represent weight coefficients that can be adjusted according to specific application scenarios to balance the impact of urgency, task deadline and task complexity on task priority. Finally, the comparison function is used to prioritize different behaviors in the task. S233, the HMI task management module sends the sorted task execution information to the robot chassis communication module through the network socket protocol. The robot chassis communication module synchronizes the task information to the robot chassis execution module through the socket application program interface cross-process communication. The robot chassis execution module receives the task information sent by the HMI end. After successful reception, it parses each different behavior in the task information by calling the message parsing function. Finally, the for loop function is used to ensure that each behavior information is successfully executed: Robot chassis execution module: responsible for executing the robot's task type, robot movements, the words broadcast during the task, the task execution point, and the task start time; Robot chassis communication module: responsible for sending the task information decomposed by the HMI end to the robot chassis execution module, and reporting the task completion status information of the robot chassis execution module to the HMI end; S234 After the robot chassis execution module completes the execution of all behaviors, the task execution status information is synchronized to the robot chassis communication module through the socket application program interface cross-process communication, and the robot chassis communication module feeds back the execution results to the HMI gateway communication module; The S235HMI gateway communication module synchronizes the task execution results to the HMI data storage module through the socket application program interface cross-process communication. The HMI data storage module saves the result information of the task execution. The HMI data storage module is responsible for saving the execution result information of the entire task when the robot is off the Internet.

2. The method for operating the service robot in an offline state according to claim 1, Features: In step S11, the information of the serving cell includes network type, country code, operator code, cell ID and signal-to-noise ratio.

3. The method for operating the service robot in an offline state according to claim 1, Features: In step S13, after sending the base station cell switching instruction, the sleep function waits for 200 milliseconds to ensure that the instruction takes effect.

4. The method for operating the service robot in an offline state according to claim 1, Features: In step S21, the synchronization task steps are as follows: S211, the cloud uses the application programming interface to package the task information into data in JSON format; S212, through the message queue telemetry transmission protocol, the cloud synchronously sends these data to the HMI gateway communication module; S213. Encrypted transmission is used during synchronization to ensure data security.

5. The method for operating the service robot in an offline state according to claim 1, Features: In step S22, the task information synchronized to the HMI task management module includes the task name, task description, task type, robot action, the words broadcast during the task, the task execution point and the task start execution time; Task types include leading tasks, welcoming tasks and explaining tasks.

6. The method for operating the service robot in an offline state according to claim 1, Features: In step S23, the triggering condition satisfied by the task includes reaching the task execution start time.

7. The method for operating the service robot in an offline state according to claim 1, Features: In step S233, the robot chassis execution module is responsible for executing the robot's task types including leading the way, welcoming guests, and explaining tasks.