Information identifying and screening method for communication between master machine and slave machine of robot

By identifying fixed forms of head frames and tail frames in master-slave robot communication and filtering effective information, the problems of low communication efficiency and many error messages in the prior art are solved, and higher information recognition accuracy and transmission efficiency are achieved.

CN119427347APending Publication Date: 2025-02-14GUANGZHOU CITY UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411478334.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The communication control between existing master-slave robots is inefficient and prone to communication errors due to the lack of information identification and screening.

Method used

An information identification and screening method is adopted to gradually identify effective information head frames and tail frames by identifying fixed forms of total information head frames and tail frames, and then filter and output effective information.

Benefits of technology

It effectively prevents the inclusion of error information during communication, improves the accuracy of information identification between master and slave robots, and improves the error tolerance and efficiency of information transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119427347A_ABST
    Figure CN119427347A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication data processing, in particular to an information identifying and screening method for robot master-slave communication, which comprises the following steps of: identifying a total information header frame in continuously transmitted communication information; continuously receiving the communication information after the total information header frame and storing the communication information in a first cache until a total information tail frame corresponding to the total information header frame is identified; taking communication information between the total information head frame and the total information tail frame as a to-be-identified character string, and transferring the to-be-identified character string into a second cache; identifying an effective information header frame in the to-be-identified character string in a manner of sequentially identifying characters one by one; continuously storing the character string to be identified after the effective information header frame into a third cache until an effective information tail frame corresponding to the effective information header frame is identified; and converting the character string to be identified between the effective information head frame and the effective information tail frame into effective information and outputting the effective information. According to the invention, the accuracy of information identification between the master robot group and the slave robot group and the fault-tolerant rate and efficiency of information transmission are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication data processing, and in particular to an information identification and screening method for robot master-slave communication. Background Art

[0002] The rapid development of robotics technology has expanded its application scenarios. In environments that require exploration and data collection, master-slave robots can complete tasks quickly and efficiently.

[0003] Generally, a master-slave robot consists of a host and multiple slaves. The controller controls the host through the controller. After receiving the information, the host transmits the information to the slaves, thereby realizing group control. In such a scenario, information screening and identification is very important in the communication between the controller and the master and slaves. If information identification and screening is not performed, the data communication of the master-slave group will have problems such as single transmission content, low efficiency, and easy generation of error information. Summary of the invention

[0004] The present invention aims to solve the technical problems of low efficiency and easy communication errors caused by the lack of information identification and screening in the existing communication control between master and slave robots.

[0005] In order to solve the above technical problems, the present invention provides an information identification and screening method for robot master-slave communication, the information identification and screening method comprising the following steps:

[0006] S1. Identify the total information header frame in the continuously transmitted communication information;

[0007] S2, continuously receiving the communication information after the total information header frame and storing it in the first cache until a total information tail frame corresponding to the total information header frame is identified;

[0008] S3, transferring the communication information between the total information header frame and the total information tail frame as a character string to be identified to a second cache;

[0009] S4, identifying a valid information header frame in the character string to be identified by identifying each character one by one;

[0010] S5, continuously storing the character string to be identified after the valid information header frame in a third cache until a valid information tail frame corresponding to the valid information header frame is identified;

[0011] S6. Convert the character string to be identified between the valid information header frame and the valid information tail frame into valid information and output it.

[0012] Furthermore, in step S1, the communication information in byte form is converted into ackii code form, and then the communication information in ackii code form is converted into a preset coding form, and then the total information header frame is identified.

[0013] Furthermore, the preset encoding form is a character form or an 8-bit integer form.

[0014] Furthermore, the total information header frame and the total information tail frame are both fixed frame formats of the preset encoding form.

[0015] Furthermore, in step S6, the character string to be identified between the valid information header frame and the valid information tail frame is integrated into numbers in character form, and is forcibly converted into the valid information in integer form through atoi() function.

[0016] Furthermore, after the total information tail frame corresponding to the total information header frame is identified from the communication information in step S2, if the total information header frame is identified again, the first cache is cleared.

[0017] Furthermore, in step S5, after the valid information tail frame corresponding to the valid information header frame is identified from the character string to be identified, if the valid information header frame is identified again, the second cache is cleared.

[0018] The beneficial effect achieved by the present invention is that a method for information identification and screening for robot master-slave communication is proposed. This method prevents the mixing of erroneous information during the communication process through fixed-form head and tail frame recognition, thereby improving the accuracy of information recognition between master and slave robot groups; at the same time, based on the recognition and conversion of valid information in the head and tail frames, the fault tolerance and efficiency of information transmission can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic flow chart of the steps of an information identification and screening method for robot master-slave communication provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0021] Please refer to Figure 1 , Figure 1 1 is a schematic flow chart of the steps of an information identification and screening method for robot master-slave communication provided by an embodiment of the present invention, wherein the information identification and screening method comprises the following steps:

[0022] S1. Identify the total information header frame in the continuously transmitted communication information;

[0023] S2, continuously receiving the communication information after the total information header frame and storing it in the first cache until a total information tail frame corresponding to the total information header frame is identified;

[0024] S3, transferring the communication information between the total information header frame and the total information tail frame as a character string to be identified to a second cache;

[0025] S4, identifying a valid information header frame in the character string to be identified by identifying each character one by one;

[0026] S5, continuously storing the character string to be identified after the valid information header frame in a third cache until a valid information tail frame corresponding to the valid information header frame is identified;

[0027] S6. Convert the character string to be identified between the valid information header frame and the valid information tail frame into valid information and output it.

[0028] Specifically, in step S1, the communication information in byte form is converted into ackii code form, and then the communication information in ackii code form is converted into a preset coding form, and then the total information header frame is identified.

[0029] The preset encoding form is a character form or an 8-bit integer form.

[0030] The total information header frame and the total information tail frame are both fixed frame formats of the preset coding form. In the embodiment of the present invention, since steps S1-S3 only need to identify communication information that meets the communication characteristics between robots, the embodiment of the present invention designs the total information header frame and the total information tail frame in fixed frame formats. In this way, other erroneous information that does not belong to the communication between robots in the environment can be prevented from mixing.

[0031] In step S6, the character string to be identified between the valid information header frame and the valid information tail frame is integrated into numbers in character form, and is forcibly converted into the valid information in integer form through atoi() function.

[0032] In the embodiment of the present invention, since the possible valid information is stored as a string after step S3, after the identification of the valid information, in order to obtain the complete robot communication data, it is necessary to integrate the string to be identified containing the valid information into a number in the form of characters, and obtain an integer format through forced conversion, so as to facilitate subsequent robot execution. In this way, different valid information can be separated independently after identification, that is, the method of the embodiment of the present invention can make the data types between the master-slave robot and the control end richer after valid information identification and screening, and can transmit multiple contents in one communication, and ensure that each data information is independent of each other.

[0033] In the embodiment of the present invention, after the total information tail frame corresponding to the total information header frame is identified from the communication information in step S2, if the total information header frame is identified again, the first cache is cleared.

[0034] Step S5: After the valid information tail frame corresponding to the valid information header frame is identified from the character string to be identified, if the valid information header frame is identified again, the second cache is cleared.

[0035] Both the first cache and the second cache are used to store the data to be processed in the process of valid information identification, so long-term storage is not required. Since the embodiment of the present invention designs information identification based on head and tail frames, when the tail frame of a possible data frame is identified and the previous data has been subsequently called or stored, then identifying a head frame can be considered as the next information identification process. Therefore, the first and second caches need to be cleared to carry out the next information identification and screening process.

[0036] The beneficial effect achieved by the present invention is that a method for information identification and screening for robot master-slave communication is proposed. This method prevents the mixing of erroneous information during the communication process through fixed-form head and tail frame recognition, thereby improving the accuracy of information recognition between master and slave robot groups; at the same time, based on the recognition and conversion of valid information in the head and tail frames, the fault tolerance and efficiency of information transmission can be improved.

[0037] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0038] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0039] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0040] The embodiments of the present invention are described above in conjunction with the accompanying drawings. What is disclosed is only the preferred embodiment of the present invention. However, the present invention is not limited to the above-mentioned specific implementation manner. The above-mentioned specific implementation manner is only illustrative rather than restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms and equivalent changes without departing from the scope of protection of the purpose of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A method for identifying and screening information for robot master-slave communication, characterized in that: The information identification and screening method comprises the following steps: S1. Identify the total information header frame in the continuously transmitted communication information; S2, continuously receiving the communication information after the total information header frame and storing it in the first cache until a total information tail frame corresponding to the total information header frame is identified; S3, transferring the communication information between the total information header frame and the total information tail frame as a character string to be identified to a second cache; S4, identifying a valid information header frame in the character string to be identified by identifying each character one by one; S5, continuously storing the character string to be identified after the valid information header frame in a third cache until a valid information tail frame corresponding to the valid information header frame is identified; S6. Convert the character string to be identified between the valid information header frame and the valid information tail frame into valid information and output it.

2. The information identification and screening method for robot master-slave communication according to claim 1, characterized in that: In step S1, the communication information in byte form is converted into ackii code form, and then the communication information in ackii code form is converted into a preset coding form, and then the total information header frame is identified.

3. The information identification and screening method for robot master-slave communication according to claim 2, characterized in that: The preset encoding form is a character form or an 8-bit integer form.

4. The information identification and screening method for robot master-slave communication according to claim 2, characterized in that: The total information header frame and the total information tail frame are both fixed frame formats of the preset encoding form.

5. The information identification and screening method for robot master-slave communication according to claim 1, characterized in that: In step S6, the character string to be identified between the valid information header frame and the valid information tail frame is integrated into numbers in character form, and is forcibly converted into the valid information in integer form through atoi() function.

6. The information identification and screening method for robot master-slave communication according to claim 1, characterized in that: In step S2, after the total information tail frame corresponding to the total information header frame is identified from the communication information, if the total information header frame is identified again, the first cache is cleared.

7. The information identification and screening method for robot master-slave communication according to claim 1, characterized in that: Step S5: After the valid information tail frame corresponding to the valid information header frame is identified from the character string to be identified, if the valid information header frame is identified again, the second cache is cleared.