A communication dispatcher suitable for a service robot and a control method thereof

By designing a communication scheduler in the service robot, real-time monitoring and priority configuration can automatically cut off low-priority branches and cache data, solving the problem of increased response time and load rate caused by the increase in nodes, and achieving efficient and stable communication. Management ensures the real-time and security of priority communication.

CN112606003BInactive Publication Date: 2024-09-17SHANDONG CHUANGZE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011209540.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-03
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, as the number of nodes in the internal electrical control structure of the service robot increases, the response time and load rate of the bus increase, resulting in safety risks, and the communication volume is large during state switching, which affects efficiency.

Method used

A communication scheduler is designed, including a bus interface, bus monitoring unit, branch line control unit, logical switch group and branch line buffer unit. Through real-time monitoring of bus communication, priority configuration and mode configuration, it automatically cuts off low-priority branches and caches data and restore connections when appropriate, optimize communication protocols and bus types, and reduce bus load rates.

Benefits of technology

It reduces heartbeat feedback, reduces the bus load rate, improves response time, ensures that high-priority communications have bus control, enhances communication stability and real-time performance, and reduces the communication volume during state switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112606003B
    Figure CN112606003B
Patent Text Reader

Abstract

A communication dispatcher suitable for a service robot and a control method thereof belong to the technical field of robot communication dispatching. The present invention provides a communication dispatcher suitable for a service robot and a control method thereof with high safety, fast response time and low load rate. In the communication dispatcher of the present invention, a logic switch group is used to control the on and off of a branch, a bus monitoring unit is used to monitor the communication signal of the bus, a branch control unit is used to control the on and off of a branch, and a branch buffer unit is used to store the communication information on the disconnected branch. In the control method of the communication dispatcher, the bus monitoring unit monitors the communication on the bus in real time and determines whether there is a timeout in the communication of the current node; the branch control unit controls the on and off of the branch autonomously or according to the instruction of the bus monitoring unit; the branch buffer unit automatically receives the data in the disconnected branch and stores it in a cache. The present invention is mainly used to control the communication of the bus.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of robot communication dispatching, and in particular relates to a communication dispatcher suitable for a service robot and a control method thereof. Background Art

[0002] With the continuous development of technology, the application fields of service robots are becoming more and more extensive. In the face of more and more application requirements, the service robots themselves integrate more and more functional modules, whether it is sensor units, actuator units or control units, the number and complexity of these units have increased a lot compared with the early days of the industry. The electrical control structure inside the robot usually uses a bus structure, but no matter which bus it is, the increase in nodes on the bus will inevitably lead to an increase in the bus load rate and the response time of the nodes, especially for the communication of some important units. If the bus control cannot be obtained in time due to other nodes, it will cause response delays and even safety risks.

[0003] Therefore, there is a need for a communication dispatcher and a control method thereof suitable for a service robot with high safety, fast response time and low load rate. Summary of the invention

[0004] In view of the defects of the existing bus, such as increased response time, increased load rate and safety risks caused by an increase in nodes, the present invention provides a communication dispatcher suitable for a service robot with high safety, fast response time and low load rate and a control method thereof.

[0005] The technical solution of the present invention is as follows:

[0006] The present invention relates to a communication dispatcher suitable for a service robot, which comprises a bus interface, a bus monitoring unit, a branch line control unit, a logic switch group, a branch line buffer unit and N branch line interfaces.

[0007] The logic switch group is used to control the on and off of N branches, and one side of the logic switch group is connected in pairs;

[0008] One end of the bus interface is bidirectionally connected to one end of the logic switch group, and the N branch line interfaces are bidirectionally connected to the N endpoints on the other side of the logic switch group respectively;

[0009] The bus monitoring unit is used to monitor the communication signal of the bus, the input end of the bus monitoring unit is connected between the bus interface and the switch group, and the output end of the bus monitoring unit is connected to the input end of the branch control unit;

[0010] The branch control unit is used to receive the control signal of the bus monitoring unit and control the on and off of the N branches according to the control signal, the input end of the branch control unit is connected to the bus interface, and the output end of the branch control unit is connected to one end of the logic switch group;

[0011] The branch line buffer unit is used to store communication information on the disconnected branch line. The input end of the branch line buffer unit is connected to the output end of the branch line control unit. The output end of the branch line buffer unit is respectively connected between N branch line interfaces and N endpoints of the logic switch group.

[0012] Further: the bus monitoring unit includes a priority configuration unit, a mode configuration unit and a monitoring patrol unit,

[0013] The priority configuration unit is used to configure the priorities of N branches;

[0014] The mode configuration unit is used to configure different working modes according to the priority situation, and transmit the working mode to the branch control unit;

[0015] The monitoring and inspection unit is used to monitor the communication information of the bus in real time.

[0016] Furthermore: the monitoring and inspection unit is implemented by a transceiver.

[0017] Furthermore: the working modes configured by the mode configuration unit include idle state, normal mode, sleep mode, low power mode, charging mode, emergency stop mode, error mode and shutdown mode.

[0018] Furthermore: the bus monitoring unit is specifically an MCU processor.

[0019] Furthermore: the branch line control unit and the branch line buffer unit are both implemented by transceivers.

[0020] Furthermore: N is a positive integer.

[0021] The present invention provides a control method for a communication dispatcher applicable to a service robot, comprising the following steps:

[0022] S1. The bus monitoring unit monitors the communication on the bus in real time. If communication information is detected on the bus, the bus monitoring unit records the current communication node information, calculates the interval time between two adjacent communications of the current communication node, and determines whether the communication of the current node has timed out according to a preset threshold;

[0023] S2. When the bus monitoring unit monitors that a certain node has timed out, the monitoring unit sends a heartbeat query command to the node to test whether the node responds normally. If the node does not respond, it means that the node is abnormal, and the bus monitoring unit outputs a warning signal;

[0024] S3, the bus monitoring unit sorts the N branches in order from high to low priority, and when the branch control unit detects that the current branch has communication behavior, it automatically cuts off the branch with a lower priority than the branch;

[0025] S4. When the bus monitoring unit detects that a branch has communication, it sends an instruction to the branch control unit, and the branch control unit controls the on and off of N branches according to the instruction;

[0026] S5, the branch buffer unit automatically receives the data in the branches cut off in S3 and S4 and stores them in the cache;

[0027] S6. When the branch control unit detects that the communication behavior of the current branch has ended or receives an instruction from the bus control unit, the branch control unit automatically detects whether there is cached communication data in the branch buffer unit. If so, the data is sent to the bus and the connection of each branch node is restored. If not, the connection of each branch node is directly restored.

[0028] Further: in S3, the bus monitoring unit configures priorities for the N branches and sorts the N branches according to the priorities; and configures different working modes according to the priorities, and transmits the working modes to the branch control unit.

[0029] The beneficial effects of the present invention are:

[0030] The present invention relates to a communication scheduler and control method for a service robot. In terms of control mode, the heartbeat feedback of each node is reduced, and the scheduler is used to monitor the communication instead, and active inspection and error reporting are performed after the node expires. At the same time, each node on the bus needs to support the state control mode. According to the application of the service robot, the working state of the robot after operation is summarized. Each node may have different configurations under different working states of the robot, and these configurations are no longer set through the bus, but each node performs self-configuration after obtaining the working state contained in the broadcast frame. Reduce the number of nodes setting communication when the robot switches states. The present invention designs a control mode for the service robot from the control mode, which can reduce the number of communication frames when the service robot switches states and in terms of heartbeat management. A bus scheduler is designed, which can reduce the bus load rate and improve the real-time response by selecting a suitable bus type and optimizing the communication protocol. The bus is graded in hardware communication, which can effectively reduce the bus load rate for service robots with higher complexity, and at the same time ensure that the communication with high priority has the bus control right, reducing the response time. Make the overall communication more stable and timely. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 This is the functional block diagram of the scheduler hardware;

[0032] Figure 2 This is a schematic diagram of the hardware circuit connection of the scheduler;

[0033] Figure 3 This is the control schematic diagram of the scheduler;

[0034] Figure 4 It is a signal diagram of monitoring bus;

[0035] Figure 5 It is the workflow diagram of the scheduler bus monitoring unit;

[0036] Figure 6 This is the workflow diagram of the scheduler branch control. DETAILED DESCRIPTION

[0037] The technical solution of the present invention is further described below in conjunction with the embodiments, but is not limited thereto. Any modification or equivalent replacement of the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention should be included in the protection scope of the present invention.

[0038] Example 1

[0039] Combination Figure 1-Figure 6This embodiment is described. In this embodiment, a communication dispatcher suitable for a service robot is involved in this embodiment, which includes a bus interface, a bus monitoring unit, a branch control unit, a logic switch group, a branch buffer unit and N branch interfaces. The communication dispatcher is first connected in parallel in the bus and includes multiple on-off controllable hardware communication interfaces. These interfaces can all be connected to the bus, but with different priorities (configurable), and interfaces of different priority levels will be connected to different bus branches according to the application situation.

[0040] The logic switch group is used to control the on and off of N branches, and one side of the logic switch group is connected in pairs;

[0041] One end of the bus interface is bidirectionally connected to one end of the logic switch group, and the N branch line interfaces are bidirectionally connected to the N endpoints on the other side of the logic switch group respectively; the hardware block diagram of the scheduler is as follows Figure 1 and Figure 2 As shown, except for the power supply part, the scheduler's external interface is divided into a bus interface and a branch line interface.

[0042] The bus monitoring unit is used to monitor the communication signal of the bus, the input end of the bus monitoring unit is connected between the bus interface and the switch group, and the output end of the bus monitoring unit is connected to the input end of the branch control unit;

[0043] The branch control unit is used to receive the control signal of the bus monitoring unit and control the on and off of the N branches according to the control signal, the input end of the branch control unit is connected to the bus interface, and the output end of the branch control unit is connected to one end of the logic switch group;

[0044] The branch line buffer unit is used to store communication information on the disconnected branch line, the input end of the branch line buffer unit is connected to the output end of the branch line control unit, and the output end of the branch line buffer unit is respectively connected between N branch line interfaces and N endpoints of the logic switch group. N is a positive integer. The bus monitoring unit is specifically an MCU processor.

[0045] Example 2

[0046] This embodiment is described in conjunction with Example 1. In this embodiment, the communication scheduler applicable to a service robot involved in this embodiment, the bus monitoring unit includes a priority configuration unit, a mode configuration unit and a monitoring inspection unit.

[0047] The priority configuration unit is used to configure the priorities of N branches;

[0048] The mode configuration unit is used to configure different working modes according to the priority situation, and transmit the working mode to the branch control unit;

[0049] The monitoring and inspection unit is used to monitor the communication information of the bus in real time.

[0050] Example 3

[0051] This embodiment is explained in conjunction with Example 2. In this embodiment, the communication scheduler applicable to a service robot involved in this embodiment, the monitoring and inspection unit is implemented by a transceiver. The scheduler will always monitor the bus. When a high-priority bus branch communication is detected, the scheduler can selectively cut off the connection between other low-priority communication interfaces and the bus according to the configured working mode. At the same time, the scheduler will cache the communication data of the cut-off communication interface. After detecting that the high-priority bus branch communication is completed, the scheduler will send the cached message to the bus and restore the connection between other low-priority communication interfaces and the bus.

[0052] Example 4

[0053] This embodiment is explained in conjunction with Example 2. In this embodiment, the communication scheduler applicable to a service robot involved in this embodiment, the working modes configured by the mode configuration unit include idle state, normal mode, sleep mode, low power mode, charging mode, emergency stop mode, error mode and shutdown mode. In view of the application of the service robot, all the working links of the robot are comprehensively considered, and several working state modes of the robot are summarized: idle state, normal mode, sleep mode, low power mode, charging mode, emergency stop mode, error mode and shutdown mode. Of course, these modes can be increased or decreased according to the usage. Generally speaking, the service robot needs to configure the nodes when the mode changes, especially some actuator units. This process may cause a large amount of communication in a short time, so this embodiment proposes a control mode that can solve this problem well. Each node supports the state / mode switching function. When the state / mode of the robot changes, the master control only needs to send a broadcast packet to inform each node of the change of state / mode. After each node detects it, it changes the state according to the setting and completes the configuration. Through this mechanism, 90% of the communication volume of the robot during state conversion can be reduced, and the load rate of the bus in this process can be reduced.

[0054] Example 5

[0055] This embodiment is explained in conjunction with Example 1. In this embodiment, the communication scheduler for a service robot involved in this embodiment, the branch line control unit and the branch line buffer unit are both implemented by a transceiver. Another key function of the scheduler is branch line control, which can ensure that the communication with high priority can absolutely occupy the control right of the bus within a period of time without being interfered by other nodes. It is especially suitable for use in systems with high real-time performance.

[0056] Example 6

[0057] This embodiment is described in conjunction with Embodiment 1. In this embodiment, a control method for a communication dispatcher applicable to a service robot involved in this embodiment includes the following steps:

[0058] S1. The bus monitoring unit monitors the communication on the bus in real time. If communication information is monitored on the bus, the bus monitoring unit records the current communication node information. The bus monitoring unit calculates the interval time between two adjacent communications of the current communication node, and determines whether the communication of the current node has timed out according to the preset threshold value; the monitoring unit will monitor the communication on the bus all the time. Once there is communication on the bus, the monitoring unit will record the node that initiates the communication (the communication content must include the node information that initiates the communication). After that, the monitor will determine whether this node has timed out according to the configuration, and the basis for judgment is mainly based on the time between the two intervals.

[0059] S2. When the bus monitoring unit detects that a certain node has timed out, the monitoring unit sends a heartbeat query command to the node to test whether the node responds normally. If the node does not respond, it means that the node is abnormal, and the bus monitoring unit outputs a warning signal; monitors the messages of each node on the bus, and performs statistics, and actively patrols the timed nodes. If there is no response during the patrol, the node is considered abnormal and the main control node is notified; general sensor nodes will periodically send back data, but the actuator may not necessarily have such periodic behavior. If a node is found to exceed the set timeout period, the monitoring unit will send a heartbeat query command, and the corresponding node will respond. If the node responds normally, it means that the node is in a normal state. If the node does not respond, the node is abnormal. The listener will report to the main control. The working process of the bus monitoring unit is as follows: Figure 5 Such a mechanism can reduce about 80% of the heartbeat communication, which is very helpful in improving the bus load rate.

[0060] S3, the bus monitoring unit sorts the N branches in order from high to low priority, and when the branch control unit detects that the current branch has communication behavior, it automatically cuts off the branch with a lower priority than the branch; the workflow of the branch is as follows Figure 6 As shown. First, the branch control unit supports two working modes to control the branch. One is active control, which detects that a branch with a high priority has communication behavior and automatically cuts off other low-priority channels.

[0061] S4. When the bus monitoring unit detects that a branch line has communication, it sends instructions to the branch line control unit, and the branch line control unit controls the on and off of N branches according to the instructions; it supports priority control, and when a high-priority branch line interface or a corresponding instruction is monitored, the access of other branches can be controlled from the hardware. Another type is passive control, in which the main control sends instructions to the scheduler to control the on and off of the branch line interface. If there is communication in the disconnected branch line interface, it will be uniformly received by the branch line buffer unit and stored in the cache.

[0062] S5, the branch line buffer unit automatically receives the data in the branches cut off in S3 and S4 and stores them in the cache; the communication messages on the disconnected branch line will be stored in the branch line buffer unit.

[0063] S6. When the branch control unit detects that the communication behavior of the current branch has ended or receives an instruction from the bus control unit, the branch control unit automatically detects whether there is cached communication data in the branch buffer unit. If so, the data is sent to the bus and the connection of each branch node is restored. If not, the connection of each branch node is directly restored. When the high-priority branch ends the communication or the corresponding instruction, the scheduler sends the data of the buffer unit to the bus and restores the disconnected branch. When the branch communication behavior ends (the end can be detected by timeout or determined by the communication protocol), or when the control instruction of the master is received, the branch control unit will detect whether there is cached communication data in the cache unit. If so, the data in the cache will be sent to the bus and the connection of each branch node will be restored. This mechanism can ensure that high-priority communication obtains 100% of the bus usage rights, and there will be no situation where it is occupied by other nodes. And the information of other disconnected nodes will not be lost. This mechanism is very suitable for the application of high-real-time control systems.

[0064] Example 7

[0065] This embodiment is explained in conjunction with Example 1. In this embodiment, the present embodiment involves a control method for a communication scheduler suitable for a service robot. In S3, the bus monitoring unit configures priorities for N branches and sorts the N branches according to the priorities; and configures different working modes according to the priorities, and transmits the working modes to the branch control unit.

Claims

1. A communication dispatcher suitable for a service robot, characterized in that: It includes a bus interface, a bus monitoring unit, a branch control unit, a logic switch group, a branch buffer unit and N branch interfaces. The logic switch group is used to control the on and off of N branches, and one side of the logic switch group is connected in pairs; One end of the bus interface is bidirectionally connected to one end of the logic switch group, and the N branch line interfaces are bidirectionally connected to the N endpoints on the other side of the logic switch group respectively; The bus monitoring unit is used to monitor the communication signal of the bus, the input end of the bus monitoring unit is connected between the bus interface and the switch group, and the output end of the bus monitoring unit is connected to the input end of the branch control unit; The branch control unit is used to receive the control signal of the bus monitoring unit and control the on and off of the N branches according to the control signal. The input end of the branch control unit is connected to the bus interface, and the output end of the branch control unit is connected to one end of the logic switch group. The branch line buffer unit is used to store communication information on the disconnected branch line. The input end of the branch line buffer unit is connected to the output end of the branch line control unit. The output end of the branch line buffer unit is respectively connected between N branch line interfaces and N endpoints of the logic switch group.

2. A communication dispatcher suitable for a service robot according to claim 1, characterized in that: The bus monitoring unit includes a priority configuration unit, a mode configuration unit and a monitoring and inspection unit. The priority configuration unit is used to configure the priorities of N branches; The mode configuration unit is used to configure different working modes according to the priority situation, and transmit the working mode to the branch control unit; The monitoring and inspection unit is used to monitor the communication information of the bus in real time.

3. A communication dispatcher suitable for a service robot according to claim 2, characterized in that: The monitoring and inspection unit is implemented by a transceiver.

4. A communication dispatcher suitable for a service robot according to claim 2, characterized in that: The working modes configured by the mode configuration unit include an idle state, a normal mode, a sleep mode, a low power consumption mode, a charging mode, an emergency stop mode, an error mode and a shutdown mode.

5. A communication dispatcher suitable for a service robot according to claim 1, characterized in that: The bus monitoring unit is specifically an MCU processor.

6. A communication dispatcher suitable for a service robot according to claim 1, characterized in that: The branch line control unit and the branch line buffer unit are both implemented by using a transceiver.

7. A communication dispatcher suitable for a service robot according to claim 1, characterized in that: Said N is a positive integer.

8. A control method for a communication dispatcher of a service robot, characterized in that: It includes the following steps: S1. The bus monitoring unit monitors the communication on the bus in real time. If communication information is detected on the bus, the bus monitoring unit records the current communication node information, calculates the interval time between two adjacent communications of the current communication node, and determines whether the communication of the current node has timed out according to a preset threshold; S2. When the bus monitoring unit monitors that a certain node has timed out, the monitoring unit sends a heartbeat query command to the node to test whether the node responds normally. If the node does not respond, it means that the node is abnormal, and the bus monitoring unit outputs a warning signal; S3, the bus monitoring unit sorts the N branches in order from high to low priority, and when the branch control unit detects that the current branch has communication behavior, it automatically cuts off the branch with a lower priority than the branch; S4. When the bus monitoring unit detects that a branch has communication, it sends an instruction to the branch control unit, and the branch control unit controls the on and off of N branches according to the instruction; S5, the branch buffer unit automatically receives the data in the branches cut off in S3 and S4 and stores them in the cache; S6. When the branch control unit detects that the communication behavior of the current branch has ended or receives an instruction from the bus control unit, the branch control unit automatically detects whether there is cached communication data in the branch buffer unit. If so, the data is sent to the bus and the connection of each branch node is restored. If not, the connection of each branch node is directly restored.

9. A control method for a communication dispatcher of a service robot according to claim 8, characterized in that: In S3, the bus monitoring unit configures priorities for the N branches and sorts the N branches according to the priorities; and configures different working modes according to the priorities, and transmits the working modes to the branch control unit.