CN105006122A - Wireless interface communication protocol of automatic inspection robot - Google Patents

Wireless interface communication protocol of automatic inspection robot Download PDF

Info

Publication number
CN105006122A
CN105006122A CN201510372749.3A CN201510372749A CN105006122A CN 105006122 A CN105006122 A CN 105006122A CN 201510372749 A CN201510372749 A CN 201510372749A CN 105006122 A CN105006122 A CN 105006122A
Authority
CN
China
Prior art keywords
byte
data
message frame
inspection robot
field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510372749.3A
Other languages
Chinese (zh)
Other versions
CN105006122B (en
Inventor
姚信威
潘小刚
王万良
王超超
李伟琨
钟礼斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN201510372749.3A priority Critical patent/CN105006122B/en
Publication of CN105006122A publication Critical patent/CN105006122A/en
Application granted granted Critical
Publication of CN105006122B publication Critical patent/CN105006122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Manipulator (AREA)
  • Communication Control (AREA)

Abstract

本发明公开了一种自动巡检机器人无线接口通讯协议,该无线接口通讯协议提供了一种主/从机消息帧结构,通讯过程中控制台为主机,自动巡检机器人为从机,消息帧的传输严格服从主/从应答机制。在通讯协议中,主机消息帧根据实际需要分别定义了起始位、地址域、功能域(包括功能模块编码、方法编码、数据长度)、数据域、错误检测域。从机消息帧分别定义了:起始位、地址域、功能域(包括被访问功能模块编码、被访问方法编码、数据长度、状态位)、数据域、错误检测域。本发明提出了一种有效的自动巡检机器人无线接口通讯协议,保证了控制台和巡检机器人之间的有效通信,控制不仅提供发送足够的控制信息,还能获取巡检机器人的实时信息和状态反馈。

The present invention discloses a wireless interface communication protocol for an automatic inspection robot. The wireless interface communication protocol provides a master/slave message frame structure. During the communication process, the control console is the host and the automatic inspection robot is the slave. The transmission of the message frame strictly obeys the master/slave response mechanism. In the communication protocol, the host message frame defines the start bit, address field, function field (including function module code, method code, data length), data field, and error detection field according to actual needs. The slave message frame defines: start bit, address field, function field (including accessed function module code, accessed method code, data length, status bit), data field, and error detection field. The present invention proposes an effective wireless interface communication protocol for an automatic inspection robot, which ensures effective communication between the control console and the inspection robot. The control not only provides sufficient control information, but also obtains real-time information and status feedback of the inspection robot.

Description

一种自动巡检机器人无线接口通讯协议A wireless interface communication protocol for automatic inspection robot

技术领域 technical field

本发明涉及一种自动巡检机器人与主机控制台之间的无线接口通讯协议。 The invention relates to a wireless interface communication protocol between an automatic inspection robot and a host console.

背景技术 Background technique

随着装备技术、计算机网络科学的进步,现代化的超高压、特高压输变电系统工程正朝着大规模、复杂化的方向发展,而新电压等级、新技术的大量应用使传统的运行、操作、维护等方式与方法面临着新的挑战,如设备部件/子系统数量众多、交联关系复杂以及部件缺陷的待观测项目数量庞大等等,如何进一步适应新形势下的小水电变电站运行,采用新技术、新手段以减轻变电站值班人员的运行维护负担,有效保障设备安全可靠运行,成为今后所面临的主要问题。 With the advancement of equipment technology and computer network science, modern ultra-high voltage and ultra-high voltage power transmission and transformation system projects are developing in the direction of large-scale and complex, and the large-scale application of new voltage levels and new technologies makes traditional operation, Methods and methods of operation and maintenance are facing new challenges, such as a large number of equipment components/subsystems, complex cross-linking relationships, and a large number of items to be observed for component defects, etc. How to further adapt to the operation of small hydropower substations under the new situation, Adopting new technologies and means to reduce the burden of operation and maintenance on duty personnel in substations and effectively guarantee the safe and reliable operation of equipment has become the main problem in the future.

现有的巡检方式和技术与电力生产的安全性要求相比仍有相当的距离。变电站智能巡检机器人的应用范围主要是无人值守或少人值守的变电站,可有效替代人工完成变电站高压变电设备的巡检作业。应用智能巡检机器人进行巡检作业,不仅可以减少因人员疏忽、漏检等带来的设备损失,提高电网的运行质量,而且可以减少供电系统的人员投入,降低人员成本。变电站设备巡检智能机器人主要应用在远离城镇、地理条件复杂多样的自然环境中。由于在这种环境中人工巡检工作十分艰辛,并且很难保证工作质量,只有采用先进的巡检方式和工具,才可以适当的减短巡检周期,及时发现存在的缺陷,更有效地消除事故隐患,确保电力系统的安全稳定运行。 There is still a considerable distance between the existing inspection methods and technologies and the safety requirements of power production. The scope of application of the substation intelligent inspection robot is mainly unattended or few-person-attended substations, which can effectively replace manual inspections of high-voltage substation equipment in substations. The application of intelligent inspection robots for inspection operations can not only reduce equipment losses caused by personnel negligence and missed inspections, improve the operation quality of the power grid, but also reduce personnel investment in the power supply system and reduce personnel costs. Substation equipment inspection intelligent robots are mainly used in natural environments far away from towns and with complex and diverse geographical conditions. Since manual inspection work is very difficult in this environment, and it is difficult to guarantee the quality of work, only by adopting advanced inspection methods and tools can the inspection cycle be appropriately shortened, existing defects can be found in time, and the defects can be eliminated more effectively. accident hazards and ensure the safe and stable operation of the power system.

而智能巡检机器人,是为适应智能化小水电变电站以及无人值守小水电变电站发展需求,全面提高变电站智能化水平而研制开发。它以智能巡检机器人为核心,整合机器人技术、电力设备非接触检测技术、多传感器融合技术、模式识别技术、导航定位技术以及物联网技术等,能够实现变电站全天候、全方位、全自主智能巡检和监控,有效降低劳动强度,降低变电站运维成本,提高正常巡检作业和管理的自动化和智能化水平。为智能变电站和无人值守变电站提供创新型的技术检测手段和全方位的安全保障,更快地推进变电站无人值守的进程。 The intelligent inspection robot is developed to meet the development needs of intelligent small hydropower substations and unattended small hydropower substations, and to comprehensively improve the intelligence level of substations. It takes the intelligent inspection robot as the core, integrates robot technology, power equipment non-contact detection technology, multi-sensor fusion technology, pattern recognition technology, navigation positioning technology and Internet of Things technology, etc., and can realize all-weather, all-round and fully autonomous intelligent inspection of substations Inspection and monitoring can effectively reduce labor intensity, reduce substation operation and maintenance costs, and improve the automation and intelligence level of normal inspection operations and management. Provide innovative technical detection methods and comprehensive security guarantees for smart substations and unattended substations, and accelerate the process of unattended substations.

发明内容 Contents of the invention

本发明为了解决巡检机器人与控制台之间的无线通讯问题,提供了一种主/从机消息帧结构,通讯过程中,控制台为主机,自动巡检机器人为从机,在通讯协议中,消息帧的传输严格服从主/从应答机制的无线接口通讯协议。 In order to solve the problem of wireless communication between the inspection robot and the console, the present invention provides a master/slave message frame structure. During the communication process, the console is the master, and the automatic inspection robot is the slave. In the communication protocol , the transmission of the message frame strictly obeys the wireless interface communication protocol of the master/slave response mechanism.

本发明的技术方案:一种自动巡检机器人无线接口通讯协议,包括以下步骤: The technical scheme of the present invention: an automatic inspection robot wireless interface communication protocol, comprising the following steps:

1)主机控制台根据实际需要配置主机控制台消息帧,消息帧结构包括:2字节起始位、1字节地址域、3字节功能域、N字节数据域、1字节错误检测域,2字节起始位分别写入起始标志1、起始标志2,并将需要发送指令的自动巡检机器人ID写入地址域当中,通知自动巡检机器人,主机控制台将开始发送消息帧; 1) The host console configures the host console message frame according to actual needs. The message frame structure includes: 2-byte start bit, 1-byte address field, 3-byte function field, N-byte data field, and 1-byte error detection field, the 2-byte start bit is written into the start flag 1 and the start flag 2 respectively, and the ID of the automatic inspection robot that needs to send the command is written into the address field, and the automatic inspection robot is notified that the host console will start sending message frame;

2)主机控制台根据具体功能需要配置功能域;从通讯设置模块、指令设置模块、数据输出模块等模块中选择需要调用的模块;主机控制台将对应的“模块编码”写入消息帧中功能域的第1字节,同时,寻找到相应的“方法编号”及与“方法编号”对应的“数据长度”,将“方法编码”“数据长度”先后写入消息帧中功能域的第2、3字节中,消息帧根据“数据长度”分配数据域的大小,将各数据参数写入数据域中; 2) The host console configures the function domain according to the specific function needs; select the module to be called from the communication setting module, command setting module, data output module and other modules; the host console writes the corresponding "module code" into the message frame function At the same time, find the corresponding "method number" and the "data length" corresponding to the "method number", and write the "method code" and "data length" into the second byte of the function field in the message frame , 3 bytes, the message frame allocates the size of the data field according to the "data length", and writes each data parameter into the data field;

3)根据校验和=起始标志1+起始标志2+节点ID +模块编号+方法编号+数据长度+参数1+…+参数N的计算方法计算“错误检测域”,并将其写入消息帧中;主机控制台消息帧配置完毕准备发送给自动巡检机器人。 3) Calculate the "error detection domain" according to the calculation method of checksum = start flag 1 + start flag 2 + node ID + module number + method number + data length + parameter 1 +... + parameter N, and write it into the message frame; the host console message frame is configured and ready to be sent to the automatic inspection robot.

4)自动巡检机器人在接收到主机控制台的消息帧后,依次解析功能域中 “模块编码”“方法编码”“数据长度”中的信息,若“数据长度”不为0X00,则进一步解析数据域中信息,并根据具体信息及时调整该自动巡检机器人各模块功能的开闭;若要求自动巡检机器人需要返回应答消息帧给主机控制台,自动巡检机器人反馈的应答消息帧结构包括:2字节起始位、1字节地址域、4字节功能域、N字节数据域、1字节错误检测域; 4) After the automatic inspection robot receives the message frame from the host console, it will analyze the information in the "module code", "method code" and "data length" in the functional domain in sequence. If the "data length" is not 0X00, it will further analyze information in the data domain, and timely adjust the opening and closing of each module function of the automatic inspection robot according to the specific information; if the automatic inspection robot needs to return a response message frame to the host console, the response message frame structure fed back by the automatic inspection robot includes : 2-byte start bit, 1-byte address field, 4-byte function field, N-byte data field, 1-byte error detection field;

5)根据“模块编码”和“方法编码”重写自动巡检机器人应答消息帧功能域中的“数据长度”,并将“状态位”信息写入功能域的第4字节中,若自动巡检机器人当前状态信息正常则写入0X00,否则写入0X01,并将自动巡检机器人各数据参数写入数据域中; 5) According to the "module code" and "method code", rewrite the "data length" in the functional field of the automatic inspection robot response message frame, and write the "status bit" information into the fourth byte of the functional field. If the current status information of the inspection robot is normal, write 0X00, otherwise write 0X01, and write each data parameter of the automatic inspection robot into the data field;

6)根据校验和=起始标志1+起始标志2+节点ID +模块编号+方法编号+数据长度+状态位+参数1+ … +参数 N的计算方法计算“错误检测域”,将其写入自动巡检机器人应答消息帧中发送给主机控制台。 6) Calculate the "error detection domain" according to the calculation method of checksum = start flag 1 + start flag 2 + node ID + module number + method number + data length + status bit + parameter 1 + ... + parameter N, and set It is written into the automatic inspection robot response message frame and sent to the host console.

优选地,所述步骤1)的3字节功能域中1字节表示功能模块编码、1字节表示方法编码、1字节表示数据长度。 Preferably, in the 3-byte functional field of step 1), 1 byte represents the functional module code, 1 byte represents the method code, and 1 byte represents the data length.

优选地,所述步骤1)中起始标志1为0X55,其中0X表示十六进制,起始标志2为0XAA。 Preferably, in the step 1), the start flag 1 is 0X55, where 0X represents hexadecimal, and the start flag 2 is 0XAA.

优选地,所述步骤3)和步骤6)的参数N中的N表示参数数量。 Preferably, N in the parameter N of step 3) and step 6) represents the number of parameters.

优选地,所述步骤4的4字节功能域中1字节表示被访问功能模块编码、1字节表示被访问方法编码、1字节表示数据长度、1字节表示状态位。 Preferably, in the 4-byte functional field in step 4, 1 byte represents the code of the accessed function module, 1 byte represents the code of the accessed method, 1 byte represents the data length, and 1 byte represents the status bit.

本发明中消息帧的具体划分如下: The concrete division of message frame among the present invention is as follows:

主机发送的消息帧为:2字节起始位、1字节地址域、3字节功能域(其中1字节表示功能模块编码、1字节表示方法编码、1字节表示数据长度)、N字节数据域、1字节错误检测域。 The message frame sent by the host is: 2-byte start bit, 1-byte address field, 3-byte function field (where 1 byte represents the function module code, 1 byte represents the method code, and 1 byte represents the data length), N-byte data domain, 1-byte error detection domain.

从机反馈的应答消息帧为:2字节起始位、1字节地址域、4字节功能域(其中1字节表示被访问功能模块编码、1字节表示被访问方法编码、1字节表示数据长度、1字节表示状态位)、N字节数据域、1字节错误检测域。 The response message frame fed back by the slave is: 2-byte start bit, 1-byte address field, 4-byte function field (where 1 byte represents the code of the accessed function module, 1 byte represents the code of the accessed method, and 1 byte Section means data length, 1 byte means status bit), N byte data field, 1 byte error detection field.

起始位:长度为2字节,它的作用是通知目标节点消息帧开始发送,在主机和从机中,起始位的数据是相同的,2字节分别为起始标志1(0X55)、起始标志2(0XAA)。 Start bit: The length is 2 bytes. Its function is to notify the target node to start sending the message frame. In the master and slave, the data of the start bit is the same, and the 2 bytes are the start flag 1 (0X55) , Start flag 2 (0XAA).

地址域:长度为1字节,地址域包含了消息帧的地址信息。在主机发送的消息帧中,地址域确定了唯一的目标从机;在从机发送的消息帧中,地址域向主机反馈了消息帧的来源,即本机地址ID。 Address field: the length is 1 byte, and the address field contains the address information of the message frame. In the message frame sent by the host, the address field determines the only target slave; in the message frame sent by the slave, the address field feeds back the source of the message frame to the host, that is, the local address ID.

功能域:主/从机的功能域略有不同,主机消息帧的功能域包含了 “功能模块编码”、“方法编码”、“数据长度”;从机消息帧的功能域包含了 “功能模块编码”、“方法编码”、“数据长度”、“状态位”。其中,“数据长度”反映了本消息帧要发送数据域中参数的个数,参数的个数由“功能模块编码”和“方法编码”决定;“功能模块编码”在主从机中的功能不同,对于主机,“功能模块编码”决定访问目标节点的“功能模块”。在一个设备节点中,可能存在多个功能模块,例如在“逻辑控制器”中可能存在“输入输出模块”、“模数转换模块”、“通讯模块”等,对于从机,“功能模块编码”代表了本机被访问的功能模块;“方法编号”在主机中决定了访问目标节点的“功能模块”的具体功能,“方法编号”0X60-0X6F为异步读取段,“方法编号”0X70-0X7F为异步写入段。对于“输入输出功能模块”可以存在若干操作方法,例如“设置端口方向”、“输出数据到端口”、“由端口读取数据”等,对于从机,“方法编号”反映了被访问的方法。“状态位”只存在于从机当中,反应了从机当前的状态信息。 Functional domain: The functional domains of the master/slave are slightly different. The functional domain of the master message frame includes "function module code", "method code" and "data length"; the functional domain of the slave machine message frame contains "function module Encoding", "Method Encoding", "Data Length", "Status Bit". Among them, "data length" reflects the number of parameters in the data field to be sent in this message frame, and the number of parameters is determined by "function module code" and "method code"; the function of "function module code" in the master and slave Different, for the host, the "function module code" decides to access the "function module" of the target node. In a device node, there may be multiple functional modules, for example, in the "logic controller", there may be "input and output modules", "analog-to-digital conversion modules", "communication modules", etc. "Represents the function module being accessed by this machine; "method number" determines the specific function of the "function module" of the access target node in the host, "method number" 0X60-0X6F is an asynchronous read segment, and "method number" 0X70 -0X7F is an asynchronous write segment. For the "input and output function module", there can be several operation methods, such as "setting the port direction", "output data to the port", "read data from the port", etc. For the slave, the "method number" reflects the method being accessed . The "status bit" only exists in the slave and reflects the current status information of the slave.

数据域:在主机中数据域表示的是传递了要传递给目标设备的某个模块的方法的参数。参数的长度由“功能域”中的成员“数据长度”决定。对于从机,“数据域”传递了主机访问的某个模块的方法的反馈参数。对于不需要参数的方法访问,“数据域”的长度可以为“0”。 Data field: In the host, the data field represents the parameters passed to the method of a certain module of the target device. The length of the parameter is determined by the member "data length" in the "functional domain". For the slave, the "data field" passes the feedback parameters of the method of a module accessed by the master. For method accesses that do not require parameters, the length of the "data field" can be "0".

由于该通讯协议是一种异步通讯协议,在不同模块中,数据域与功能域配合配置实现异步通信功能,模块共分为三类,分别为:通讯设置模块、指令设置模块、数据输出模块,各模块消息帧配置信息如下: Since the communication protocol is an asynchronous communication protocol, in different modules, the data domain and the functional domain are configured together to realize the asynchronous communication function. The modules are divided into three categories, namely: communication setting module, command setting module, and data output module. The message frame configuration information of each module is as follows:

1、通讯设置模块,“模块编码”0X01,共有以下4种配置信息: 1. The communication setting module, "module code" 0X01, has the following 4 kinds of configuration information:

(1)配置通讯数据:“方法编号”70,“数据长度”长度0X04,数据域共包含四种数据,每种数据长度为1字节,分别为:数据广播开关配置、通信波特率配置、数据刷新速率配置(20-100赫兹)、输出数据开关。 (1) Configure communication data: "method number" 70, "data length" length 0X04, the data field contains four kinds of data, each data length is 1 byte, respectively: data broadcast switch configuration, communication baud rate configuration , Data refresh rate configuration (20-100 Hz), output data switch.

数据广播开关配置0X00,则关闭数据广播;数据广播开关配置0X01时,则开启数据广播。 When the data broadcast switch is configured with 0X00, the data broadcast is turned off; when the data broadcast switch is configured with 0X01, the data broadcast is turned on.

通信波特率配置参数共有0X00、0X01、0X02、0X03、0X04、0X05六种,分别对应波特率9600、14400、19200、38400、57600、115200比特每秒。 There are six communication baud rate configuration parameters: 0X00, 0X01, 0X02, 0X03, 0X04, and 0X05, corresponding to baud rates of 9600, 14400, 19200, 38400, 57600, and 115200 bits per second.

数据输出开关长度为1字节,共有8个比特位,每比特位对应不同的输出数据,从高到低依次为:控制姿态及航向角数据输出、控制温度计数据输出、控制磁场计补偿数据输出、控制加速度计补偿数据输出、控制陀螺仪补偿数据输出、控制磁场计裸数据输出、控制加速度计裸数据输出、控制陀螺仪裸数据输出。对应比特位为0时,关闭该项数据输出,比特位为1时,开启该项数据输出。 The length of the data output switch is 1 byte, and there are 8 bits in total. Each bit corresponds to different output data. The order from high to low is: control attitude and heading angle data output, control thermometer data output, control magnetic field meter compensation data output , Control accelerometer compensation data output, control gyroscope compensation data output, control magnetometer bare data output, control accelerometer bare data output, control gyroscope bare data output. When the corresponding bit is 0, the data output of this item is turned off, and when the bit is 1, the data output of this item is turned on.

(2)重新设置地址域:“方法编号”71,“数据长度”0X01,消息帧中只包含需重新设置的地址域的1字节数据。 (2) Reset the address field: "method number" 71, "data length" 0X01, the message frame only contains 1-byte data of the address field that needs to be reset.

(3)读取通信配置信息:“方法编号”60,主机发送“数据长度”0X00,从机应答消息帧中“数据长度”0X04,包含4类配置信息,分别为:数据广播开关配置、通信波特率配置、数据刷新速率配置(20—100Hz)、输出数据开关,每类信息各占1字节。 (3) Read the communication configuration information: "method number" 60, the host sends "data length" 0X00, and the "data length" 0X04 in the slave response message frame contains 4 types of configuration information, which are: data broadcast switch configuration, communication Baud rate configuration, data refresh rate configuration (20-100Hz), output data switch, each type of information occupies 1 byte.

(4)读取当前模块地址域:“方法编号”61,主机发送“数据长度”0X00,从机应答消息帧中“数据长度”0X01,包含一类数据:当前模块地址。 (4) Read the current module address field: "method number" 61, the host sends "data length" 0X00, and the "data length" 0X01 in the slave response message frame contains one type of data: the current module address.

2、指令设置模块,“模块编码”0X02,共有以下7种配置信息: 2. Command setting module, "module code" 0X02, has the following 7 kinds of configuration information:

(1)要求重新初始对准:“方法编号”70,“数据长度”0X00,从机无需返回消息帧。 (1) Re-initial alignment is required: "method number" 70, "data length" 0X00, the slave does not need to return a message frame.

(2)恢复出厂设置:“方法编号”71,“数据长度”0X00,从机无需返回消息帧。 (2) Restore factory settings: "method number" 71, "data length" 0X00, the slave does not need to return message frames.

(3)设置加速度计参考矢量:“方法编号”72,“数据长度”0X00,从机无需返回消息帧。 (3) Set the accelerometer reference vector: "method number" 72, "data length" 0X00, the slave does not need to return a message frame.

(4)设置磁场计参考矢量:“方法编号”73,“数据长度”0X00,从机无需返回消息帧。 (4) Set the reference vector of the magnetometer: "method number" 73, "data length" 0X00, the slave does not need to return a message frame.

(5)配置信息写入缓存Flash:“方法编号”60,主机发送消息帧中“数据长度”0X00,从机需返回包含状态信息的应答消息帧,写入正常则“状态位”0X00,写入失败则“状态位”0X01,应答消息帧中“数据长度”0X00。 (5) Configuration information is written into the cache Flash: "method number" 60, "data length" 0X00 in the message frame sent by the master, the slave needs to return a response message frame containing status information, if the write is normal, the "status bit" 0X00, write If the input fails, the "status bit" is 0X01, and the "data length" in the response message frame is 0X00.

(6)要求陀螺仪传感器重新校正零点:“方法编号”61,主机发送消息帧中“数据长度”0X00,从机需返回包含状态信息的应答消息帧,校正完毕则“状态位”0X00,否则“状态位”0X01,应答消息帧中“数据长度”0X00。 (6) Require the gyroscope sensor to recalibrate the zero point: "method number" 61, "data length" 0X00 in the message frame sent by the host, and the slave needs to return a response message frame containing status information, and the "status bit" 0X00 after calibration is completed, otherwise "Status bit" 0X01, "data length" 0X00 in the response message frame.

(7)要求数据单次输出:“方法编号”74,“数据长度”0X00,该配置信息只在禁用数据广播时有效,一次性输出所有输出开关所配置数据。 (7) Single output of data is required: "method number" 74, "data length" 0X00, this configuration information is only valid when data broadcasting is disabled, and the data configured by all output switches is output at one time.

3、数据输出模块,“模块编码”0X03,共有以下5种配置信息: 3. The data output module, "module code" 0X03, has the following 5 kinds of configuration information:

(1)陀螺仪补偿数据输出:“方法编号”63,“数据长度”0X06,6字节数据依次为:short型(二进制补码)陀螺仪X轴补偿数据H位、short型(二进制补码)陀螺仪X轴补偿数据L位、short型(二进制补码)陀螺仪Y轴补偿数据H位、short型(二进制补码)陀螺仪Y轴补偿数据L位、short型(二进制补码)陀螺仪Z轴补偿数据H位、short型(二进制补码)陀螺仪Z轴补偿数据L位。拼接H、L位数据成short型数据,输出数据单位0.1deg/s(角速度单位,度/秒)。如X轴陀螺仪输出0X0003,则输出数据为。 (1) Gyroscope compensation data output: "method number" 63, "data length" 0X06, 6-byte data in sequence: short type (two-complement code) gyroscope X-axis compensation data H bit, short type (two-complement code ) Gyroscope X-axis compensation data L bit, short type (two complement code) gyroscope Y-axis compensation data H bit, short type (two complement code) gyroscope Y-axis compensation data L bit, short type (two complement code) gyroscope Gyroscope Z-axis compensation data H bit, short type (two complement code) gyroscope Z-axis compensation data L bit. Splicing H and L bit data into short data, the output data unit is 0.1deg/s (angular velocity unit, degree/second). If the X-axis gyroscope outputs 0X0003, the output data is.

(2)加速度计补偿数据输出:“方法编号”64,“数据长度”0X06,6字节数据依次为:short型(二进制补码)加速度计X轴补偿数据H位、short型(二进制补码)加速度计X轴补偿数据L位、short型(二进制补码)加速度计Y轴补偿数据H位、short型(二进制补码)加速度计Y轴补偿数据L位、short型(二进制补码)加速度计Z轴补偿数据H位、short型(二进制补码)加速度计Z轴补偿数据L位。拼接H、L位数据成short型数据,输出数据单位0.1mg(加速度单位,毫伽)。如X轴加速度计输出0X0064,则输出数据为。 (2) Accelerometer compensation data output: "method number" 64, "data length" 0X06, 6-byte data in sequence: short type (two-complement code) accelerometer X-axis compensation data H bit, short type (two-complement code ) Accelerometer X-axis compensation data L bit, short type (two’s complement) accelerometer Y-axis compensation data H bit, short type (two’s complement) accelerometer Y-axis compensation data L bit, short type (two’s complement) acceleration H bit of Z-axis compensation data of meter, L bit of Z-axis compensation data of short type (two’s complement code) accelerometer. Splicing H and L bit data into short data, the output data unit is 0.1mg (acceleration unit, milligal). If the X-axis accelerometer outputs 0X0064, the output data is.

(3)磁场计补偿数据输出:“方法编号”65,“数据长度”0X06,6字节数据依次为:short型(二进制补码)磁场计X轴补偿数据H位、short型(二进制补码)磁场计X轴补偿数据L位、short型(二进制补码)磁场计Y轴补偿数据H位、short型(二进制补码)磁场计Y轴补偿数据L位、short型(二进制补码)磁场计Z轴补偿数据H位、short型(二进制补码)磁场计Z轴补偿数据L位。拼接H、L位数据成short型数据,输出数据单位0.1mGs(磁场单位,毫高斯)。如X轴磁场计输出0XFEA2,则输出数据为。 (3) Magnetic field meter compensation data output: "method number" 65, "data length" 0X06, 6-byte data in sequence: short type (two complement code) magnetic field meter X-axis compensation data H bit, short type (two complement code ) Magnetometer X-axis compensation data L bit, short type (two complement code) magnetometer Y axis compensation data H bit, short type (two complement code) magnetometer Y axis compensation data L bit, short type (two complement code) magnetic field Z-axis compensation data H bit, short type (two-complement code) magnetometer Z-axis compensation data L bit. Splicing H and L bit data into short data, the output data unit is 0.1mGs (magnetic field unit, milligauss). If the X-axis magnetic field meter outputs 0XFEA2, the output data is.

(4)温度传感器数据输出:“方法编号”66,“数据长度”0X02,2字节数据依次为:short型(二进制补码)温度传感器数据H位、short型(二进制补码)温度传感器数据L位。拼接H、L位数据成short型数据,输出数据单位0.01℃(摄氏度)。如温度传感器数据输出0X09DD,则输出数据为。 (4) Temperature sensor data output: "method number" 66, "data length" 0X02, 2 bytes of data are: short type (two complement code) temperature sensor data H bit, short type (two complement code) temperature sensor data L bit. Splicing H and L bit data into short data, the output data unit is 0.01°C (Celsius). If the temperature sensor data outputs 0X09DD, the output data is.

(5)航向、姿态解算数据输出:“方法编号”67,“数据长度”0X06,6字节数据依次为:short型(二进制补码)滚转数据H位、short型(二进制补码)滚转数据L位、short型(二进制补码)俯仰数据H位、short型(二进制补码)俯仰数据L位、short型(二进制补码)航向数据H位、short型(二进制补码)航向数据L位。拼接H、L位数据成short型数据,输出数据单位0.01deg(航向单位,角度)。如X轴滚转输出0XFEA2,则输出数据为,Y轴俯仰输出0X051E,则输出数据为,Z轴航向输出0X00C8,则输出数据为。 (5) Heading and attitude calculation data output: "method number" 67, "data length" 0X06, 6-byte data in turn: short type (two complement code) roll data H bit, short type (two complement code) Roll data L bit, short type (two complement code) pitch data H bit, short type (two complement code) pitch data L bit, short type (two complement code) heading data H bit, short type (two complement code) heading Data L bits. Splicing H and L bit data into short data, the output data unit is 0.01deg (heading unit, angle). For example, if the X-axis rolls and outputs 0XFEA2, the output data is 0X051E for the Y-axis pitch, and the output data is 0X00C8 for the Z-axis heading.

错误检测域:在主机和从机中错误检测域的作用是相同的,用于检测消息帧的传送是否存在错误。“错误检测域”的成员是“校验和”。校验和等于本消息帧中全部成员相加的低8位。对于主机,校验和=起始标志1+ 起始标志 2+节点ID +模块编号+方法编号+数据长度+参数1+ … +参数 N;对于从机,校验和=起始标志1+起始标志2+节点ID +模块编号+方法编号+数据长度+状态位+参数1+ … +参数 N。 Error detection domain: The role of the error detection domain in the master and the slave is the same, and it is used to detect whether there is an error in the transmission of the message frame. A member of the "Error Detection Domain" is the "Checksum". The checksum is equal to the low 8 bits of all members in this message frame. For master, checksum = start flag 1 + start flag 2 + node ID + module number + method number + data length + parameter 1 + ... + parameter N; for slave, checksum = start flag 1+ Start flag 2 + node ID + module number + method number + data length + status bit + parameter 1 + ... + parameter N.

本发明自动巡检机器人无线接口通讯协议实现步骤: Implementation steps of the wireless interface communication protocol of the automatic inspection robot of the present invention:

(1)首先,主机控制台根据实际需要配置主机消息帧,消息帧结构包括:2字节起始位、1字节地址域、3字节功能域(其中1字节表示功能模块编码、1字节表示方法编码、1字节表示数据长度)、N字节数据域、1字节错误检测域。起始标志位,分别写入起始标志1(0X55)、起始标志2(0XAA)。并将需要发送指令的自动巡检机器人ID写入地址域当中,作用是通知从机,主机消息帧将开始发送。主机控制台根据具体功能需要配置功能域。从通讯设置模块、指令设置模块、数据输出模块等模块中选择需要调用的模块。主机将对应的“模块编码”写入消息帧中功能域的第1字节。同时,寻找到相应的“方法编号”及与“方法编号”对应的“数据长度”,将 “方法编码”“数据长度”先后写入消息帧中功能域的第2、3字节中。消息帧根据“数据长度”分配数据域的大小,将各数据参数写入数据域中。根据校验和=起始标志1+ 起始标志 2+节点ID +模块编号+方法编号+数据长度+参数1+ … +参数 N的计算方法计算“错误检测域”,并将其写入消息帧中。主机消息帧配置完毕准备发送给从机。 (1) First, the host console configures the host message frame according to actual needs. The message frame structure includes: 2-byte start bit, 1-byte address field, and 3-byte function field (where 1 byte represents the function module code, 1 Byte represents method encoding, 1 byte represents data length), N byte data field, 1 byte error detection field. Start flag bit, respectively write start flag 1 (0X55), start flag 2 (0XAA). Write the ID of the automatic inspection robot that needs to send instructions into the address field, and the function is to notify the slave that the master message frame will start sending. The host console configures functional domains according to specific functional requirements. Select the module to be called from the communication setting module, instruction setting module, data output module and other modules. The host writes the corresponding "module code" into the first byte of the function field in the message frame. At the same time, find the corresponding "method number" and the "data length" corresponding to the "method number", and write the "method code" and "data length" into the 2nd and 3rd bytes of the function field in the message frame. The message frame allocates the size of the data field according to the "data length", and writes each data parameter into the data field. Calculate the "error detection domain" according to the calculation method of checksum = start flag 1 + start flag 2 + node ID + module number + method number + data length + parameter 1 + ... + parameter N, and write it into the message in frame. The master message frame is configured and ready to be sent to the slave.

(2)其次,从机在接收到主机的消息帧后,依次解析功能域中 “模块编码”“方法编码”“数据长度”中的信息,若“数据长度”不为0X00,则进一步解析数据域中信息,并根据具体信息及时调整该从机各模块功能的开闭。若要求从机需要返回应答消息帧给主机,从机反馈的应答消息帧结构包括:2字节起始位、1字节地址域、4字节功能域(1字节被访问功能模块编码、1字节被访问方法编码、1字节数据长度、1字节状态位)、N字节数据域、1字节错误检测域。根据“模块编码”和“方法编码”重写从机应答消息帧功能域中的“数据长度”,并将“状态位”信息写入功能域的第4字节中,若从机当前状态信息正常则写入0X00,否则写入0X01。并将从机各数据参数写入数据域中。根据校验和=起始标志1+起始标志2+节点ID +模块编号+方法编号+数据长度+状态位+参数1+ … +参数 N的计算方法计算“错误检测域”,将其写入从机应答消息帧中发送给主机。 (2) Secondly, after receiving the message frame from the master, the slave will analyze the information in the "module code", "method code" and "data length" in the functional domain in turn. If the "data length" is not 0X00, then further analyze the data information in the domain, and timely adjust the opening and closing of the functions of each module of the slave according to the specific information. If the slave needs to return a response message frame to the master, the structure of the response message frame fed back by the slave includes: 2-byte start bit, 1-byte address field, 4-byte function field (1 byte for the code of the accessed function module, 1 byte accessed method encoding, 1 byte data length, 1 byte status bit), N byte data field, 1 byte error detection field. According to the "module code" and "method code", rewrite the "data length" in the function field of the response message frame of the slave machine, and write the "status bit" information into the fourth byte of the function field, if the current state information of the slave machine If normal, write 0X00, otherwise write 0X01. And write each data parameter of the slave into the data field. Calculate the "error detection domain" according to the calculation method of checksum = start flag 1 + start flag 2 + node ID + module number + method number + data length + status bit + parameter 1 + ... + parameter N, and write it sent to the master in the response message frame of the incoming slave.

本发明的技术构思为:针对巡检机器人无线传输的特性,为了保证控制信息及返回信息的准确性,采用了基于主/从机消息结构的异步通信方式,将控制信息分布到各类模块当中,并根据具体的控制信息要求,将相应的“方法编号”写入消息帧中,并配以相对应的“数据长度”。从机在收到主机消息帧后,解析对应的模块和方法信息,如需返回应答消息帧,则将状态位等数据信息写入其中,并计算错误检测域。 The technical concept of the present invention is: in view of the wireless transmission characteristics of the inspection robot, in order to ensure the accuracy of the control information and the returned information, an asynchronous communication method based on the master/slave message structure is adopted to distribute the control information to various modules. , and according to the specific control information requirements, write the corresponding "method number" into the message frame, and match it with the corresponding "data length". After receiving the host message frame, the slave machine parses the corresponding module and method information. If it needs to return the response message frame, it writes data information such as status bits into it, and calculates the error detection field.

本发明的有益效果主要表现在:利用主/从机消息结构设计了一种用于控制台和巡检机器人之间的无线接口通讯协议,通过本发明可以提供控制台和巡检机器人之间的有效通信,保证提供足够的控制信息的同时,也能获取巡检机器人的实时信息和信号反馈。 The beneficial effects of the present invention are mainly manifested in that a wireless interface communication protocol between the console and the inspection robot is designed by using the master/slave message structure, and the communication protocol between the console and the inspection robot can be provided by the present invention. Effective communication ensures that sufficient control information is provided and at the same time, real-time information and signal feedback of the inspection robot can be obtained.

附图说明 Description of drawings

图1为主机无线通讯消息帧形成示意图; Fig. 1 is a schematic diagram of forming a host wireless communication message frame;

图2为从机无线通讯应答消息帧形成示意图。 FIG. 2 is a schematic diagram of formation of a slave wireless communication response message frame.

具体实施方式 Detailed ways

下面对本发明作进一步描述。 The present invention will be further described below.

参照图1~图2,一种自动巡检机器人无线接口通讯协议,是基于主/从机消息帧结构的异步通信协议,消息帧的传输严格服从主/从应答机制,无线接口通讯协议包括以下步骤: Referring to Figures 1 to 2, a wireless interface communication protocol for automatic inspection robots is an asynchronous communication protocol based on the master/slave message frame structure. The transmission of message frames is strictly subject to the master/slave response mechanism. The wireless interface communication protocol includes the following step:

(1)首先,主机控制台根据实际需要配置主机消息帧,消息帧结构包括:2字节起始位、1字节地址域、3字节功能域(1字节功能模块编码、1字节方法编码、1字节数据长度)、N字节数据域、1字节错误检测域。起始标志位,分别写入起始标志1(0X55)、起始标志2(0XAA)。并将需要发送指令的自动巡检机器人ID写入地址域当中,作用是通知从机,主机消息帧将开始发送。主机控制台根据具体功能需要配置功能域。从通讯设置模块、指令设置模块、数据输出模块等模块中选择需要调用的模块。主机将对应的“模块编码”写入消息帧中功能域的第1字节。同时,寻找到相应的“方法编号”及与“方法编号”对应的“数据长度”,将 “方法编码”“数据长度”先后写入消息帧中功能域的第2、3字节中。消息帧根据“数据长度”分配数据域的大小,将各数据参数写入数据域中。根据校验和=起始标志1+ 起始标志 2+节点ID +模块编号+方法编号+数据长度+参数1+ … +参数 N的计算方法计算“错误检测域”,并将其写入消息帧中。主机消息帧配置完毕准备发送给从机。 (1) First, the host console configures the host message frame according to the actual needs. The message frame structure includes: 2-byte start bit, 1-byte address field, 3-byte function field (1-byte function module code, 1-byte method encoding, 1-byte data length), N-byte data field, and 1-byte error detection field. Start flag bit, respectively write start flag 1 (0X55), start flag 2 (0XAA). Write the ID of the automatic inspection robot that needs to send instructions into the address field, and the function is to notify the slave that the master message frame will start sending. The host console configures functional domains according to specific functional requirements. Select the module to be called from the communication setting module, command setting module, data output module and other modules. The host writes the corresponding "module code" into the first byte of the function field in the message frame. At the same time, find the corresponding "method number" and the "data length" corresponding to the "method number", and write the "method code" and "data length" into the 2nd and 3rd bytes of the functional field in the message frame. The message frame allocates the size of the data field according to the "data length", and writes each data parameter into the data field. Calculate the "error detection domain" according to the calculation method of checksum = start flag 1 + start flag 2 + node ID + module number + method number + data length + parameter 1 + ... + parameter N, and write it into the message in frame. The master message frame is configured and ready to be sent to the slave.

(2)其次,从机在接收到主机的消息帧后,依次解析功能域中 “模块编码”“方法编码”“数据长度”中的信息,若“数据长度”不为0X00,则进一步解析数据域中信息,并根据具体信息及时调整该从机各模块功能的开闭。若要求从机需要返回应答消息帧给主机,从机反馈的应答消息帧结构包括:2字节起始位、1字节地址域、4字节功能域(其中1字节表示被访问功能模块编码、1字节表示被访问方法编码、1字节表示数据长度、1字节表示状态位)、N字节数据域、1字节错误检测域。根据“模块编码”和“方法编码”重写从机应答消息帧功能域中的“数据长度”,并将“状态位”信息写入功能域的第4字节中,若从机当前状态信息正常则写入0X00,否则写入0X01。并将从机各数据参数写入数据域中。根据校验和=起始标志1+起始标志2+节点ID +模块编号+方法编号+数据长度+状态位+参数1+ … +参数 N的计算方法计算“错误检测域”,将其写入从机应答消息帧中发送给主机。 (2) Secondly, after receiving the message frame from the master, the slave will analyze the information in the "module code", "method code" and "data length" in the functional domain in turn. If the "data length" is not 0X00, then further analyze the data information in the domain, and timely adjust the opening and closing of the functions of each module of the slave according to the specific information. If the slave needs to return a response message frame to the master, the structure of the response message frame fed back by the slave includes: a 2-byte start bit, a 1-byte address field, and a 4-byte function field (where 1 byte represents the accessed function module Encoding, 1 byte indicates the code of the accessed method, 1 byte indicates the data length, 1 byte indicates the status bit), N byte data field, 1 byte error detection field. According to the "module code" and "method code", rewrite the "data length" in the function field of the response message frame of the slave machine, and write the "status bit" information into the fourth byte of the function field, if the current state information of the slave machine If normal, write 0X00, otherwise write 0X01. And write each data parameter of the slave into the data field. Calculate the "error detection domain" according to the calculation method of checksum = start flag 1 + start flag 2 + node ID + module number + method number + data length + status bit + parameter 1 + ... + parameter N, and write it sent to the master in the response message frame of the incoming slave.

图1展示了控制台与自动巡检器人进行无线通讯过程中,控制台作为主机发送消息帧的配置过程。首先依次将起始标志位、目的机器人ID写入主机消息帧中。其次根据实际需要,选择对应功能的“模块编码”及“方法编号”,并寻找到与“方法编号”对应的“数据长度”。依次将“数据长度”“模块编码”“方法编号”写入消息帧功能域中。若“数据长度”不为0X00,则将相关参数依次写入数据域中。最后将校验和写入错误检测域中。主机消息帧配置完毕根据目的机器人ID准备发送给目的巡检机器人。 Figure 1 shows the configuration process of the console as the host sending message frames during the wireless communication process between the console and the automatic inspection robot. First, write the start flag bit and the destination robot ID into the host message frame in sequence. Secondly, according to the actual needs, select the "module code" and "method number" of the corresponding function, and find the "data length" corresponding to the "method number". Write the "data length", "module code" and "method number" into the message frame function field in turn. If the "data length" is not 0X00, then write the relevant parameters into the data field in sequence. Finally, the checksum is written into the error detection field. After the host message frame is configured, it is ready to be sent to the target inspection robot according to the target robot ID.

图2展示了控制台与自动巡检机器人进行无线通讯过程中。自动巡检机器人作为从机发送应答消息帧的配置过程。首先依次将起始标志位、本机机器人ID写入从机消息帧中。其次根据主机消息帧中“模块编码”“方法编码”寻找对应的 “数据长度”。依次将“数据长度”“模块编码”“方法编号”写入消息帧功能域中。若从机当前能够正确的返回该机数据信息,则“状态位”写入0X00,否则写入0X01。若“数据长度”不为0X00,则将相关参数依次写入数据域中。最后将校验和写入错误检测域中。从机应答消息帧配置完毕后准备将其发送给控制台。 Figure 2 shows the process of wireless communication between the console and the automatic inspection robot. The process of automatically inspecting the robot as a slave machine to send a response message frame. First, write the start flag bit and the local robot ID into the message frame of the slave machine in sequence. Secondly, find the corresponding "data length" according to the "module code" and "method code" in the host message frame. Write the "data length", "module code" and "method number" into the message frame function field in turn. If the slave machine can correctly return the data information of the machine at present, the "status bit" is written into 0X00, otherwise it is written into 0X01. If the "data length" is not 0X00, then write the relevant parameters into the data field in sequence. Finally, the checksum is written into the error detection field. After the configuration of the slave reply message frame is ready to send it to the console.

Claims (5)

1.一种自动巡检机器人无线接口通讯协议,其特征在于:其包括以下步骤: 1. A wireless interface communication protocol for an automatic inspection robot, characterized in that: it may further comprise the steps: 1)主机控制台根据实际需要配置主机控制台消息帧,消息帧结构包括:2字节起始位、1字节地址域、3字节功能域、N字节数据域、1字节错误检测域,2字节起始位分别写入起始标志1、起始标志2,并将需要发送指令的自动巡检机器人ID写入地址域当中,通知自动巡检机器人,主机控制台将开始发送消息帧; 1) The host console configures the host console message frame according to actual needs. The message frame structure includes: 2-byte start bit, 1-byte address field, 3-byte function field, N-byte data field, and 1-byte error detection field, the 2-byte start bit is written into the start flag 1 and the start flag 2 respectively, and the ID of the automatic inspection robot that needs to send the command is written into the address field, and the automatic inspection robot is notified that the host console will start sending message frame; 2)主机控制台根据具体功能需要配置功能域;从通讯设置模块、指令设置模块、数据输出模块等模块中选择需要调用的模块;主机控制台将对应的“模块编码”写入消息帧中功能域的第1字节,同时,寻找到相应的“方法编号”及与“方法编号”对应的“数据长度”,将“方法编码”“数据长度”先后写入消息帧中功能域的第2、3字节中,消息帧根据“数据长度”分配数据域的大小,将各数据参数写入数据域中; 2) The host console configures the function domain according to the specific function needs; select the module to be called from the communication setting module, command setting module, data output module and other modules; the host console writes the corresponding "module code" into the message frame function At the same time, find the corresponding "method number" and the "data length" corresponding to the "method number", and write the "method code" and "data length" into the second byte of the function field in the message frame , 3 bytes, the message frame allocates the size of the data field according to the "data length", and writes each data parameter into the data field; 3)根据校验和=起始标志1+起始标志2+节点ID +模块编号+方法编号+数据长度+参数1+…+参数N的计算方法计算“错误检测域”,并将其写入消息帧中;主机控制台消息帧配置完毕准备发送给自动巡检机器人; 3) Calculate the "error detection domain" according to the calculation method of checksum = start flag 1 + start flag 2 + node ID + module number + method number + data length + parameter 1 +... + parameter N, and write it into the message frame; the host console message frame is configured and ready to be sent to the automatic inspection robot; 4)自动巡检机器人在接收到主机控制台的消息帧后,依次解析功能域中 “模块编码”“方法编码”“数据长度”中的信息,若“数据长度”不为0X00,则进一步解析数据域中信息,并根据具体信息及时调整该自动巡检机器人各模块功能的开闭;若要求自动巡检机器人需要返回应答消息帧给主机控制台,自动巡检机器人反馈的应答消息帧结构包括:2字节起始位、1字节地址域、4字节功能域、N字节数据域、1字节错误检测域; 4) After the automatic inspection robot receives the message frame from the host console, it will analyze the information in the "module code", "method code" and "data length" in the functional domain in sequence. If the "data length" is not 0X00, it will further analyze information in the data domain, and timely adjust the opening and closing of each module function of the automatic inspection robot according to the specific information; if the automatic inspection robot needs to return a response message frame to the host console, the response message frame structure fed back by the automatic inspection robot includes : 2-byte start bit, 1-byte address field, 4-byte function field, N-byte data field, 1-byte error detection field; 5)根据“模块编码”和“方法编码”重写自动巡检机器人应答消息帧功能域中的“数据长度”,并将“状态位”信息写入功能域的第4字节中,若自动巡检机器人当前状态信息正常则写入0X00,否则写入0X01,并将自动巡检机器人各数据参数写入数据域中; 5) According to the "module code" and "method code", rewrite the "data length" in the functional field of the automatic inspection robot response message frame, and write the "status bit" information into the fourth byte of the functional field. If the current status information of the inspection robot is normal, write 0X00, otherwise write 0X01, and write each data parameter of the automatic inspection robot into the data field; 6)根据校验和=起始标志1+起始标志2+节点ID +模块编号+方法编号+数据长度+状态位+参数1+ … +参数 N的计算方法计算“错误检测域”,将其写入自动巡检机器人应答消息帧中发送给主机控制台。 6) Calculate the "error detection domain" according to the calculation method of checksum = start flag 1 + start flag 2 + node ID + module number + method number + data length + status bit + parameter 1 + ... + parameter N, and set It is written into the automatic inspection robot response message frame and sent to the host console. 2.根据权利要求1所述的一种自动巡检机器人无线接口通讯协议,其特征在于:所述步骤1)的3字节功能域中1字节表示功能模块编码、1字节表示方法编码、1字节表示数据长度。 2. A wireless interface communication protocol for an automatic inspection robot according to claim 1, characterized in that: in the 3-byte functional domain of step 1), 1 byte represents the functional module code, and 1 byte represents the method code , 1 byte indicates the data length. 3. 根据权利要求1所述的一种自动巡检机器人无线接口通讯协议,其特征在于:所述步骤1)中起始标志1为0X55,其中0X表示十六进制,起始标志2为0XAA。 3. A wireless interface communication protocol for an automatic inspection robot according to claim 1, characterized in that: in the step 1), the initial symbol 1 is 0X55, where 0X represents hexadecimal, and the initial symbol 2 is 0XAA. 4. 根据权利要求1所述的一种自动巡检机器人无线接口通讯协议,其特征在于:所述步骤3)和步骤6)的参数N中的N表示参数数量。 4. A wireless interface communication protocol for an automatic inspection robot according to claim 1, characterized in that: N in the parameter N in the step 3) and step 6) represents the number of parameters. 5. 根据权利要求1所述的一种自动巡检机器人无线接口通讯协议,其特征在于:所述步骤4的4字节功能域中1字节表示被访问功能模块编码、1字节表示被访问方法编码、1字节表示数据长度、1字节表示状态位。 5. A wireless interface communication protocol for an automatic inspection robot according to claim 1, characterized in that: in the 4-byte functional domain of step 4, 1 byte represents the code of the accessed functional module, and 1 byte represents the code of the accessed function module. Access method encoding, 1 byte indicates data length, and 1 byte indicates status bit.
CN201510372749.3A 2015-07-01 2015-07-01 Wireless interface communication method for automatic inspection robot Active CN105006122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510372749.3A CN105006122B (en) 2015-07-01 2015-07-01 Wireless interface communication method for automatic inspection robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510372749.3A CN105006122B (en) 2015-07-01 2015-07-01 Wireless interface communication method for automatic inspection robot

Publications (2)

Publication Number Publication Date
CN105006122A true CN105006122A (en) 2015-10-28
CN105006122B CN105006122B (en) 2018-07-10

Family

ID=54378776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510372749.3A Active CN105006122B (en) 2015-07-01 2015-07-01 Wireless interface communication method for automatic inspection robot

Country Status (1)

Country Link
CN (1) CN105006122B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105938651A (en) * 2016-06-06 2016-09-14 浙江工业大学 Method for underground pipeline robot wired communication protocol
CN106302798A (en) * 2016-08-31 2017-01-04 杭州申昊科技股份有限公司 A kind of substation inspection communication system
CN107966984A (en) * 2017-10-16 2018-04-27 太仓爱森思电子电器有限公司 A kind of sweeping robot control system and communications protocol
CN109756503A (en) * 2019-01-15 2019-05-14 浙江广播电视大学萧山学院(萧商学院) A kind of communications protocol design method of fire-fighting robot
CN110942605A (en) * 2019-12-30 2020-03-31 芜湖哈特机器人产业技术研究院有限公司 Communication method for scheduling control
CN112653663A (en) * 2020-10-20 2021-04-13 同方电子科技有限公司 Information exchange protocol method
CN114500328A (en) * 2022-01-20 2022-05-13 深圳市迈睿迈特环境科技有限公司 Data communication method, device and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002185479A (en) * 2000-12-15 2002-06-28 Sharp Corp Data transfer method
CN101521952A (en) * 2009-04-10 2009-09-02 华中科技大学 Device for realizing wireless sensor network access protocol
CN101931642A (en) * 2009-07-17 2010-12-29 大连理工计算机控制工程有限公司 Communication management method for multi-network control system
CN102215263A (en) * 2011-06-07 2011-10-12 邱柏康 Data transmission and remote control method for self-organizing wireless internet of things (IoT) system
CN103825870A (en) * 2012-11-19 2014-05-28 苏州工业园区新宏博通讯科技有限公司 Communication method of universal communication protocol generator
CN103856466A (en) * 2012-12-06 2014-06-11 苏州工业园区新宏博通讯科技有限公司 Acquisition terminal device capable of configuring protocols automatically

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002185479A (en) * 2000-12-15 2002-06-28 Sharp Corp Data transfer method
CN101521952A (en) * 2009-04-10 2009-09-02 华中科技大学 Device for realizing wireless sensor network access protocol
CN101931642A (en) * 2009-07-17 2010-12-29 大连理工计算机控制工程有限公司 Communication management method for multi-network control system
CN102215263A (en) * 2011-06-07 2011-10-12 邱柏康 Data transmission and remote control method for self-organizing wireless internet of things (IoT) system
CN103825870A (en) * 2012-11-19 2014-05-28 苏州工业园区新宏博通讯科技有限公司 Communication method of universal communication protocol generator
CN103856466A (en) * 2012-12-06 2014-06-11 苏州工业园区新宏博通讯科技有限公司 Acquisition terminal device capable of configuring protocols automatically

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105938651A (en) * 2016-06-06 2016-09-14 浙江工业大学 Method for underground pipeline robot wired communication protocol
CN106302798A (en) * 2016-08-31 2017-01-04 杭州申昊科技股份有限公司 A kind of substation inspection communication system
CN107966984A (en) * 2017-10-16 2018-04-27 太仓爱森思电子电器有限公司 A kind of sweeping robot control system and communications protocol
CN109756503A (en) * 2019-01-15 2019-05-14 浙江广播电视大学萧山学院(萧商学院) A kind of communications protocol design method of fire-fighting robot
CN110942605A (en) * 2019-12-30 2020-03-31 芜湖哈特机器人产业技术研究院有限公司 Communication method for scheduling control
CN112653663A (en) * 2020-10-20 2021-04-13 同方电子科技有限公司 Information exchange protocol method
CN114500328A (en) * 2022-01-20 2022-05-13 深圳市迈睿迈特环境科技有限公司 Data communication method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN105006122B (en) 2018-07-10

Similar Documents

Publication Publication Date Title
CN105006122B (en) Wireless interface communication method for automatic inspection robot
JP6581550B2 (en) Substation control system, control method thereof, and intelligent electronic device
CN103616591B (en) A simulation device and simulation method for the characteristics of a smart substation merging unit
CN104820403A (en) EtherCAT bus-based eight-shaft robot control system
CN110879565A (en) Dual-computer redundancy control system and redundancy control/fault monitoring method and device thereof
CN105643624A (en) Machine vision control method, robot controller and robot control system
US8510463B2 (en) Systems and methods for facilitating communication with a fieldbus device
CN103760810A (en) Remote measuring terminal controller
CN103419199A (en) Teaching system based on open type welding robot
CN104112872B (en) Tension synchronous controller of power lithium ion square double-needle battery winding machine
CN104659918A (en) Smart grid information management device fused with IEC (international electrotechnical commission) 61850 protocol
CN102426447A (en) Wireless network monitoring system of welding production workshop
CN107643770A (en) A kind of telescope control system and method
CN105955202B (en) The network-based economical embedded five-axle numerical control system of one kind and its control method
US8631174B2 (en) Systems, methods, and apparatus for facilitating communications between an external controller and fieldbus devices
CN105093042A (en) Intelligent transformer station telemechanical system test device based on telemechanical system CID
CN103448062B (en) A kind of robot control method based on Powerlink
CN206960964U (en) A kind of underwater robot attitude regulation control system based on sliding formwork control
CN102117067B (en) Real-time monitoring device for field bus link based on ARM (Advanced RISC Machines)
CN104298636A (en) Embedded communication service system
Kang et al. Control system for granary ventilation based on embedded networking and Qt technology
CN114228083A (en) Industrial Control Systems and Injection Molding Machines
CN210895108U (en) EtherCAT bus four-axis parallel mechanical arm control system
Jiao et al. Application of the real-time EtherCAT in steel plate loading and unloading system
CN211590119U (en) EtherCAT bus triaxial parallel mechanical arm control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant