CN104320803A - Data monitoring and fault diagnosis method based on Zigbee node redundancy - Google Patents
Data monitoring and fault diagnosis method based on Zigbee node redundancy Download PDFInfo
- Publication number
- CN104320803A CN104320803A CN201410616776.6A CN201410616776A CN104320803A CN 104320803 A CN104320803 A CN 104320803A CN 201410616776 A CN201410616776 A CN 201410616776A CN 104320803 A CN104320803 A CN 104320803A
- Authority
- CN
- China
- Prior art keywords
- node
- zigbee
- wireless network
- configuration software
- data
- 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.)
- Pending
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 22
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000003745 diagnosis Methods 0.000 title claims abstract description 18
- 230000007246 mechanism Effects 0.000 claims abstract description 9
- 230000005540 biological transmission Effects 0.000 claims abstract description 6
- 238000004891 communication Methods 0.000 claims description 11
- 238000013515 script Methods 0.000 claims description 7
- 238000012360 testing method Methods 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 abstract description 4
- 241001508691 Martes zibellina Species 0.000 abstract 1
- 230000006870 function Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000013480 data collection Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000009977 dual effect Effects 0.000 description 2
- UGFAIRIUMAVXCW-UHFFFAOYSA-N Carbon monoxide Chemical compound [O+]#[C-] UGFAIRIUMAVXCW-UHFFFAOYSA-N 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000004397 blinking Effects 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000003861 dual diagnosis Methods 0.000 description 1
- 239000003546 flue gas Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000004092 self-diagnosis Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
技术领域 technical field
本发明涉及Zigbee无线组网技术,具体涉及到现场设备与组态软件的无线通信技术,无线节点的故障诊断技术以及TCL地址轮询软件与组态软件的集成技术。 The present invention relates to Zigbee wireless networking technology, in particular to the wireless communication technology of field equipment and configuration software, the fault diagnosis technology of wireless nodes and the integration technology of TCL address polling software and configuration software.
背景技术 Background technique
目前,很多企业中的现场设备与工控机之间大都采用“终端节点-中继节点-中心节点”这样单路径的无线通信方式,只能保证无线网络在短时间内的正常运行,同时一旦出现故障,无法及时而准确查出故障节点的位置,给系统维修带来极大的困难,因此,由Zigbee节点组成的无线网络能否可靠运行关乎到整个生产的经济效益和安全问题,而网络的合理组建和增设节点故障诊断机制是保证系统最终稳定运行的重要前提。 At present, the single-path wireless communication method of "terminal node-relay node-central node" is mostly used between field devices and industrial computers in many enterprises, which can only ensure the normal operation of the wireless network in a short period of time. Failure, the location of the faulty node cannot be detected timely and accurately, which brings great difficulties to system maintenance. Therefore, whether the wireless network composed of Zigbee nodes can operate reliably is related to the economic benefits and safety issues of the entire production, and the network's Reasonable establishment and addition of node fault diagnosis mechanism is an important prerequisite to ensure the final stable operation of the system.
发明内容 Contents of the invention
本发明目的是解决企业现有无线网络存在运行不稳定和维修困难的问题,提出了一种无线网络的组建、监测和故障自诊断方法,该方法基于Zigbee节点冗余技术,借助DDE通信协议、组态软件和TCL脚本语言,建立了现场设备与组态软件的无线通信,形成了一种可靠的无线节点故障诊断机制。 The purpose of the present invention is to solve the problem of unstable operation and difficult maintenance in the existing wireless network of the enterprise, and proposes a method for establishing, monitoring and fault self-diagnosis of the wireless network. The method is based on Zigbee node redundancy technology, with the help of DDE communication protocol, The configuration software and TCL scripting language establish the wireless communication between field devices and configuration software, forming a reliable wireless node fault diagnosis mechanism.
本发明采用的技术方案是: The technical scheme adopted in the present invention is:
基于Zigbee节点冗余的数据监测和故障诊断方法,包括如下步骤:A data monitoring and fault diagnosis method based on Zigbee node redundancy, comprising the following steps:
第1步 建立具有冗余路径的Zigbee无线网络; Step 1 Establish a Zigbee wireless network with redundant paths;
具体是对Zigbee无线网络中的中心节点、中继节点和终端节点做冗余; Specifically, the central node, relay node and terminal node in the Zigbee wireless network are redundant;
第2步 通过该无线网络将终端设备采集的数据依据DDE协议传输到上位机的组态软件,实施监测; Step 2 Through the wireless network, the data collected by the terminal equipment is transmitted to the configuration software of the upper computer according to the DDE protocol, and the monitoring is carried out;
所述组态软件支持DDE设备连接,通过组态界面有无数据显示,测试现场设备与上位机的无线通信是否正常,否则重新配置无线节点; The configuration software supports the connection of DDE equipment, and whether there is data display through the configuration interface, tests whether the wireless communication between the field equipment and the upper computer is normal, or reconfigures the wireless node;
第3步 建立基于TCL脚本语言和组态软件的故障诊断机制;; Step 3 Establish a fault diagnosis mechanism based on TCL scripting language and configuration software;
具体包括以下步骤: Specifically include the following steps:
(1)在无线网络的上位机部分,需要增设一个Zigbee节点,该节点具备接收状态信号的功能; (1) In the upper computer part of the wireless network, a Zigbee node needs to be added, which has the function of receiving status signals;
(2)基于TCL脚本的地址轮询方式可以生成无线节点状态日志文件,以txt的格式保存在固定的路径下; (2) The address polling method based on TCL scripts can generate wireless node status log files, which are saved in a fixed path in txt format;
(3)组态软件在线读取无线节点状态日志文件。 (3) The configuration software reads the wireless node status log file online.
the
本发明的优点和有益效果:Advantages and beneficial effects of the present invention:
通过上述本发明采用的技术方案可以看出,基于Zigbee节点冗余的无线网络,可以实现现场设备与上位机之间的远程通信,解决了企业现场设备采集的数据需要远程在线监测的问题,同时由TCL地址轮询和组态监测两种方式建立了Zigbee节点双重故障诊断机制,保证了整个无线网络的安全可靠运行,使节点维护更加方便。 It can be seen from the above-mentioned technical scheme adopted by the present invention that the wireless network based on Zigbee node redundancy can realize the remote communication between the field equipment and the upper computer, and solve the problem that the data collected by the field equipment of the enterprise needs remote online monitoring. The Zigbee node dual fault diagnosis mechanism is established by TCL address polling and configuration monitoring, which ensures the safe and reliable operation of the entire wireless network and makes node maintenance more convenient.
the
附图说明 Description of drawings
图1是本发明的流程示意图; Fig. 1 is a schematic flow sheet of the present invention;
图2是本发明组建的Zigbee无线网络结构图; Fig. 2 is the Zigbee wireless network structural diagram that the present invention sets up;
图3是本发明创建的基于TCL的无线节点状态监测界面。 Fig. 3 is the TCL-based wireless node status monitoring interface created by the present invention.
the
具体实施方式 Detailed ways
为了使本发明的目的、技术方案和优点更为清楚,下面结合附图和实施例对本发明作进一步详细的描述。 In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.
请参阅图1所示,本发明提出了一种基于Zigbee节点冗余的数据监测和故障诊断方法。 Referring to Fig. 1, the present invention proposes a data monitoring and fault diagnosis method based on Zigbee node redundancy.
该方法包括如下步骤: The method comprises the steps of:
第1步 建立具有冗余路径的Zigbee无线网络;具体是对Zigbee无线网络中的中心节点、中继节点和终端节点做冗余; The first step is to establish a Zigbee wireless network with redundant paths; specifically, to make redundant central nodes, relay nodes and terminal nodes in the Zigbee wireless network;
在本实施例中,组建的Zigbee无线网络结构如图2所示,该网络的无线节点由中心节点、中继节点和终端节点组成。中心节点负责数据的汇总,分为两类节点,一类为状态信号监测节点,另一类为现场采集数据接收节点,它由节点a、b和c组成,这3个节点分别与上位机连接,选用数传功能的SZ02型号模块:节点a配置为中心节点类型,广播发送模式,负责接收现场采集数据;节点b配置为中心节点类型,广播发送模式,做节点a的冗余;节点c配置为中继节点类型,协议发送模式,负责轮询各个无线节点的地址,实时监测无线模块的运行状态。中继节点负责远距离无线数据的转接,由节点d、e、f和g组成,选用数采功能的SZ06型号模块,这4个节点都配置成中继路由类型,广播发送模式。该无线网络选择了两个节点(节点d和f)进行无线网络覆盖,节点e和g分别作中继节点冗余。终端节点主要用于现场采集数据的无线传输,由节点h和i组成,这两个节点通过串口与不同类型的终端设备连接,选用数传功能的SZ02型号模块,两节点都配置成终端节点类型,广播发送模式,其中节点h做节点i的冗余。 In this embodiment, the structure of the established Zigbee wireless network is shown in FIG. 2 , and the wireless nodes of the network are composed of a central node, a relay node and a terminal node. The central node is responsible for data collection, which is divided into two types of nodes, one is the status signal monitoring node, and the other is the on-site data collection receiving node, which is composed of nodes a, b and c, and these three nodes are respectively connected to the host computer , select the SZ02 model module with data transmission function: node a is configured as a central node type, broadcast sending mode, and is responsible for receiving on-site collected data; node b is configured as a central node type, broadcast sending mode, and is redundant for node a; node c is configured It is a relay node type and a protocol sending mode, which is responsible for polling the addresses of each wireless node and monitoring the operating status of the wireless module in real time. The relay node is responsible for the transfer of long-distance wireless data. It is composed of nodes d, e, f and g. The SZ06 model module with data acquisition function is selected. These 4 nodes are configured as relay routing type and broadcast sending mode. The wireless network selects two nodes (nodes d and f) for wireless network coverage, and nodes e and g are respectively used as relay nodes for redundancy. The terminal node is mainly used for wireless transmission of on-site data collection. It is composed of nodes h and i. These two nodes are connected to different types of terminal equipment through serial ports. The SZ02 model module with data transmission function is selected, and both nodes are configured as terminal node types. , broadcast transmission mode, in which node h is the redundancy of node i. the
第2步 通过该无线网络将终端设备采集的数据依据DDE协议传输到上位机的组态软件,实施监测;所述组态软件支持DDE设备连接,通过组态界面有无数据显示,测试现场设备与上位机的无线通信是否正常,否则重新配置无线节点; Step 2 Through the wireless network, the data collected by the terminal equipment is transmitted to the configuration software of the upper computer according to the DDE protocol, and the monitoring is carried out; the configuration software supports the connection of DDE equipment, and whether there is data displayed through the configuration interface is used to test the field equipment Whether the wireless communication with the upper computer is normal, otherwise reconfigure the wireless node;
第3步 建立基于TCL脚本语言和组态软件的故障诊断机制; Step 3 Establish a fault diagnosis mechanism based on TCL script language and configuration software;
具体操作包括以下步骤: The specific operation includes the following steps:
(1)在无线网络的上位机部分,需要增设一个Zigbee节点,具备接收状态信号的功能; (1) In the upper computer part of the wireless network, a Zigbee node needs to be added to have the function of receiving status signals;
(2)基于TCL脚本的地址轮询方式可以生成无线节点状态日志文件,以txt的格式保存在固定的路径下; (2) The address polling method based on TCL scripts can generate wireless node status log files, which are saved in a fixed path in txt format;
(3)组态软件在线读取无线节点状态日志文件。 (3) The configuration software reads the wireless node status log file online.
本发明找到了Zigbee无线节点的故障诊断方法:采用轮询无线节点地址的方式,对所有无线节点的设备地址进行定时查询,查询到地址信息的节点会向中心节点(图2中的节点c)返回响应信息,出现故障的节点不会返回任何响应信息,最终达到区分故障节点和正常节点,并根据设备地址准确定位故障节点的目的。 The present invention has found a fault diagnosis method for Zigbee wireless nodes: by polling the addresses of wireless nodes, the equipment addresses of all wireless nodes are regularly inquired, and the nodes that inquire about the address information will report to the central node (node c in Figure 2) Response information is returned, and the faulty node will not return any response information, and finally achieve the purpose of distinguishing the faulty node from the normal node, and accurately locating the faulty node according to the device address.
本发明在此诊断方法的基础上,通过采用TCL脚本的地址轮询方式生成了日志文件,以便组态软件实时查询,最终形成了Zigbee节点双重故障诊断机制。 On the basis of the diagnosis method, the present invention generates a log file by adopting the address polling mode of the TCL script, so that the configuration software can inquire in real time, and finally forms a Zigbee node double fault diagnosis mechanism.
下面结合具体应用案例对本发明做进一步描述。 The present invention will be further described below in conjunction with specific application cases.
企业中的烟气采集设备与工控机之间通过图2的Zigbee无线网络建立无线通信,工控机上的组态软件通过DDE协议读取中心节点(图2中的节点a)接收到的采集数据,达到了数据远程监测的目的;基于TCL脚本的地址轮询方式兼具状态显示和数据校验两项功能,它通过节点c向各个无线节点发送地址轮询数据包,根据获取的地址响应数据包显示各个节点的对应状态,监测界面如图3所示,当节点02运行正常时,对应指示灯为蓝色闪烁,当其他节点出现故障时,对应指示灯为红色静止,这些监测结果都以文本的方式保存在无线节点状态日志文件中,供工作人员定时查阅,同时还能在线校验响应数据包的完整性和准确性,根据校验结果实时监测无线通信的稳定状况;组态软件一方面用来监测无线传输过来的采集数据,另一方面用来实时查看无线节点状态日志。这样就实现了采集数据远程监测和节点状态双重诊断的目的。 The flue gas collection equipment in the enterprise and the industrial computer establish wireless communication through the Zigbee wireless network in Figure 2, and the configuration software on the industrial computer reads the collected data received by the central node (node a in Figure 2) through the DDE protocol. The purpose of data remote monitoring is achieved; the address polling method based on TCL script has two functions of status display and data verification. It sends address polling data packets to each wireless node through node c, and responds to data packets according to the obtained address Display the corresponding status of each node. The monitoring interface is shown in Figure 3. When node 02 is operating normally, the corresponding indicator light is blinking blue. When other nodes fail, the corresponding indicator light is red and static. These monitoring results are displayed in text It can be saved in the wireless node status log file in the way of the wireless node, which can be checked regularly by the staff. At the same time, the integrity and accuracy of the response data packet can be verified online, and the stability of the wireless communication can be monitored in real time according to the verification result; on the one hand, the configuration software It is used to monitor the collected data transmitted wirelessly, and on the other hand, it is used to view the status log of wireless nodes in real time. In this way, the purpose of remote monitoring of data collection and dual diagnosis of node status is realized.
本发明基于Zigbee节点冗余的无线网络,可以实现现场设备与上位机之间的稳定通信,解决了现场设备采集的数据需要远程在线监CL地址轮询和组态监测两种方式建立了Zigbee节点双重故障诊断机制,保证了整个无线网络的安全可测的问题,同时由T靠运行。 The present invention is based on a wireless network with Zigbee node redundancy, which can realize stable communication between field devices and host computers, and solves the need for remote online monitoring of data collected by field devices. CL address polling and configuration monitoring are two ways to establish Zigbee nodes. The dual fault diagnosis mechanism ensures the safety of the entire wireless network and can be tested for problems, while running by T.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410616776.6A CN104320803A (en) | 2014-11-05 | 2014-11-05 | Data monitoring and fault diagnosis method based on Zigbee node redundancy |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410616776.6A CN104320803A (en) | 2014-11-05 | 2014-11-05 | Data monitoring and fault diagnosis method based on Zigbee node redundancy |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104320803A true CN104320803A (en) | 2015-01-28 |
Family
ID=52375955
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410616776.6A Pending CN104320803A (en) | 2014-11-05 | 2014-11-05 | Data monitoring and fault diagnosis method based on Zigbee node redundancy |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104320803A (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102739456A (en) * | 2012-07-13 | 2012-10-17 | 西南交通大学 | Wired and wireless hot backup redundancy multi-master communication method, and field gateway module |
| CN103826253A (en) * | 2014-02-26 | 2014-05-28 | 江苏林洋电子股份有限公司 | ZigBee network coordinator redundancy backup method |
-
2014
- 2014-11-05 CN CN201410616776.6A patent/CN104320803A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102739456A (en) * | 2012-07-13 | 2012-10-17 | 西南交通大学 | Wired and wireless hot backup redundancy multi-master communication method, and field gateway module |
| CN103826253A (en) * | 2014-02-26 | 2014-05-28 | 江苏林洋电子股份有限公司 | ZigBee network coordinator redundancy backup method |
Non-Patent Citations (2)
| Title |
|---|
| 李明河等: "基于ZigBee的污水处理监控系统设计与实现", 《新技术》 * |
| 赵丽: "基于TCL脚本的自动化测试工具的研究与实现", 《信息化研究》 * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102111310B (en) | CDN equipment status monitoring method | |
| CN105700510B (en) | The disperse errors detection method and CAN communication system of CAN communication system | |
| CN107342809B (en) | Method and device for service performance monitoring and fault location | |
| US20100121951A1 (en) | Method and arrangement for diagnosing networks including field bus systems | |
| CN106936616A (en) | Backup communication method and apparatus | |
| CN102325036A (en) | Fault diagnosis method for network system, system and device | |
| CN109586959A (en) | A kind of method and device of fault detection | |
| CN104065508A (en) | Application service health examination method, device and system | |
| CN102665237B (en) | Simulative Ir interface protocol conformance testing device and interoperability testing method | |
| CN110932887A (en) | BMC debugging method, system and device | |
| CN104076808A (en) | Fault diagnosis system and method for industrial control equipment | |
| CN106452880B (en) | Network wiring detection method and device | |
| JP5503600B2 (en) | Failure management system and failure management method | |
| CN112751720B (en) | Train backbone network system, fault detection method and storage medium | |
| US8681645B2 (en) | System and method for coordinated discovery of the status of network routes by hosts in a network | |
| CN104950832B (en) | Steel plant's control system | |
| CN102946335A (en) | Network condition detection method and network condition detection system | |
| CN108289050B (en) | Ring network control system and control method for transmitter | |
| CN100461737C (en) | Resilient grouping ring node internal connection fault handling method and device | |
| CN104320803A (en) | Data monitoring and fault diagnosis method based on Zigbee node redundancy | |
| CN104468211A (en) | Nuclear power station numerical control system platform communication failure diagnostic system and method | |
| CN112468336A (en) | Network quality monitoring and early warning method, device, terminal and storage medium | |
| JP2013058943A (en) | Fault monitoring determination device, fault monitoring determination method, and program | |
| JP2011097226A (en) | Network monitoring system | |
| CN105591787A (en) | Root cause analysis (RCA) method in network, apparatus, and 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 | ||
| CB02 | Change of applicant information |
Inventor after: Ni Jianyun Inventor after: Dong Zihao Inventor after: Chen Zaiping Inventor after: Jia Chao Inventor after: Cheng Bin Inventor before: Chen Zaiping Inventor before: Dong Zihao Inventor before: Ni Jianyun Inventor before: Jia Chao Inventor before: Cheng Bin |
|
| CB03 | Change of inventor or designer information | ||
| WD01 | Invention patent application deemed withdrawn after publication | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150128 |