WO2018165969A1 - System and method for detecting environmental monitoring remote communication fault based on single-chip microcomputer - Google Patents
System and method for detecting environmental monitoring remote communication fault based on single-chip microcomputer Download PDFInfo
- Publication number
- WO2018165969A1 WO2018165969A1 PCT/CN2017/077020 CN2017077020W WO2018165969A1 WO 2018165969 A1 WO2018165969 A1 WO 2018165969A1 CN 2017077020 W CN2017077020 W CN 2017077020W WO 2018165969 A1 WO2018165969 A1 WO 2018165969A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- platform
- chip microcomputer
- central
- error
- information
- Prior art date
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 38
- 238000004891 communication Methods 0.000 title claims abstract description 34
- 230000007613 environmental effect Effects 0.000 title claims abstract description 28
- 238000000034 method Methods 0.000 title claims abstract description 15
- 230000004044 response Effects 0.000 claims description 44
- 238000012546 transfer Methods 0.000 claims description 13
- 238000001514 detection method Methods 0.000 claims description 11
- 238000012360 testing method Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 claims description 4
- 238000012423 maintenance Methods 0.000 abstract 1
- 238000005516 engineering process Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000008439 repair process Effects 0.000 description 2
- 230000004888 barrier function Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
Definitions
- the invention belongs to the technical field of environmental monitoring, and is specifically a fault detection system and a detection method for environmental monitoring remote communication based on single chip microcomputer.
- the wireless sensor network technology is used to establish an environmental monitoring system for remote monitoring and management.
- the troubleshooting of communication failures is a problem that needs to be resolved in time.
- the present invention provides an environmental monitoring remote communication fault detection system and a detection method based on a single chip microcomputer.
- a fault detection system for environmental monitoring remote communication based on single chip microcomputer which comprises a central single chip microcomputer, a central error reporting device, a platform single chip microcomputer, and a platform error reporting device; the central error reporting device is connected with the central single chip microcomputer through a data line, the The platform MCU is in communication connection with the central MCU, and the platform error reporting device is in communication connection with the platform MCU.
- the central single-chip microcomputer is configured to send the attempt information to the platform single-chip microcomputer according to the defined file transfer protocol timing, and receive the response information sent by the platform single-chip microcomputer, and record that the response information is not received because the response information is not received.
- the central error reporting device is configured to send an error signal according to an error instruction sent by the central single chip microcomputer;
- the platform microcontroller is configured to receive the attempt information sent by the central single chip, and after receiving the attempt information, send a response message to the central single chip, and also record that the attempt is not received.
- the platform error reporting device is configured to send an error signal according to an error instruction sent by the platform single chip microcomputer.
- the central single-chip microcomputer is a single-chip computer of a remote monitoring center host
- the platform single-chip computer is a single-chip computer for monitoring the environmental monitoring platform of the station.
- the central single-chip microcomputer and the platform single-chip microcomputer respectively comprise a communication module, and the central single-chip microcomputer and the platform single-chip microcomputer communicate with each other through a communication module.
- the invention also provides a method for detecting remote communication faults based on single-chip microcomputer, comprising the following processes:
- the attempted information is received by the platform microcontroller.
- the platform MCU receives the attempt information, and sends response information according to the attempt information
- the platform MCU According to the number of times the platform MCU continuously receives no attempt information, by the The platform MCU sends an error instruction, and starts the platform error reporting device to report an error;
- the central single chip receives the response information sent by the platform single chip microcomputer
- the central single-chip microcomputer According to the number of times that the central single-chip microcomputer does not receive the response information continuously, the central single-chip microcomputer sends an error instruction, and starts the center error reporting device to report an error.
- the platform MCU when the platform MCU continuously receives no attempt information for more than the set MAX_TIES, the platform MCU sends an error instruction;
- the central single-chip microcomputer sends an error instruction
- the MAX_TIES is an integer greater than one.
- the recorded number of failed attempts due to failure to receive the attempt information is zero;
- the central MCU When the central MCU receives the response information, the recorded number of failed attempts due to failure to receive the response information is zeroed.
- the invention provides a single-chip based environmental monitoring remote communication fault detection system and a detection method, which can conveniently and quickly perform fault inquiry, and report errors through different error reporting devices, and can timely find the fault location, and can quickly and timely repair and repair. To ensure smooth communication of the entire environment monitoring remote control system.
- the environment monitoring remote communication fault system based on single chip microcomputer comprises a central single chip microcomputer, a central error reporting device, a platform single chip microcomputer, a platform error reporting device; the central error reporting device is connected with the central single chip computer through a data line, and the platform single chip microcomputer and the The central single-chip microcomputer performs communication connection, and the platform error reporting device communicates with the platform single-chip microcomputer.
- the central single-chip microcomputer is configured to send the attempt information to the platform single-chip microcomputer according to the defined file transfer protocol timing, and is further configured to receive the response information sent by the platform single-chip microcomputer, and record the number of attempts to fail because the response information is not received, and according to the attempt The number of failures, sending an error instruction to the central error reporting device;
- the central error reporting device is configured to issue an error signal according to an error instruction sent by the central single chip microcomputer;
- the platform single-chip microcomputer is configured to receive the attempt information sent by the central single-chip microcomputer, and after receiving the trial information, send a response message to the central single-chip microcomputer, and record the number of attempts to fail because the trial information is not received, and according to the number of failed attempts,
- the platform error reporting device sends an error instruction
- the platform error reporting device is configured to issue an error signal according to an error instruction sent by the platform single chip microcomputer.
- the central single-chip microcomputer is a single-chip computer of a remote monitoring center host
- the platform single-chip computer is a single-chip computer for monitoring an environmental monitoring platform of a station.
- the central MCU When the host of the remote monitoring center fails, the central MCU will also fail, and it cannot send the attempt information to the platform MCU. If the environmental monitoring platform fails, the platform MCU will also fail, and the response message cannot be sent to the central MCU.
- the central MCU and the platform MCU communicate wirelessly through the communication module, which can be EnOcean, Zigbee, Z-Wave and Bluetooth.
- the invention also resides in an environmental monitoring remote communication fault detection method based on a single chip microcomputer, comprising:
- the file transfer protocol is selected as the XModem file transfer protocol; the XModem protocol can be used directly in other device communications that follow this protocol. In LabWindows, the actual XModem application is hidden from the user. As long as the PC and other devices use the XModem protocol, the LabMode XModem function is used in file transfer.
- the functions are XModemConfig, XModemSend and XModemReceive.
- the central MCU sends the attempt information at a certain time interval, and the platform MCU does not receive the attempt information within the specified time interval and is regarded as an attempt failure.
- the central single-chip computer and the platform single-chip microcomputer communicate with each other through wireless communication methods to transmit the test information to each other.
- the central single-chip microcomputer is a single-chip computer of a remote monitoring center host
- the platform single-chip computer is a single-chip computer for monitoring an environmental monitoring platform of a station.
- the platform single-chip microcomputer receives the trial information, indicating that the central single-chip microcomputer is in a normal working state, that is, the remote monitoring center host is normal.
- the central MCU will also fail, and the attempt information cannot be sent normally.
- the platform MCU will not receive the attempt information, indicating that the remote monitoring center host has failed.
- the platform MCU If the platform MCU receives the attempt information, it will send a response message according to the attempt message and pass it to the central MCU.
- the platform MCU sends an error instruction, and starts the platform error device to report the error;
- the platform MCU When the platform MCU receives the attempted information, the number of failed attempts to record the failure due to the failure to receive the attempt information is zero. Only when the number of times the platform MCU has not received the trial information continuously reaches a certain value, it is possible to explain the remote monitoring center. If the host fails, you need to start the platform error reporting device to report the error.
- the central single chip receives the response information sent by the platform single chip microcomputer
- the platform MCU is a single-chip computer of the environmental monitoring platform, when the environmental monitoring platform is normal, the platform MCU is normal, can receive the test information normally, and send the response message. Therefore, if the central MCU receives the response message, the platform MCU is in normal. The working state, that is, the environmental monitoring platform is normal. When the environmental monitoring platform fails, the platform MCU also fails at the same time, the response message cannot be sent normally, and the central MCU will not receive the response message, indicating that the environmental monitoring platform is faulty. The same is true for temporary faults, which are excluded by recording the number of attempts to fail because no response information is received.
- the central single-chip microcomputer According to the number of times the central single-chip microcomputer does not receive the response information continuously, the central single-chip microcomputer sends an error instruction, and the center error reporting device is started to report the error.
- the record is not The number of times the attempt to receive the response message failed
- the central MCU When the central MCU receives the response message, the number of attempts to fail due to the failure to receive the response message is zero. Only the number of times the central MCU has not received the response message continuously indicates that the host is actually faulty. Therefore, when the platform is faulty, When the number of times that the single-chip microcomputer does not receive the trial information is greater than the set MAX_TIES, the platform single-chip microcomputer sends an error instruction; if the number of consecutive times that the central single-chip microcomputer does not receive the response information is greater than the set MAX_TIES, the central single-chip microcomputer sends an error instruction; The set MAX_TIES is an integer greater than 1.
- the central error reporting device reports an error
- the platform error reporting device reports an error.
- the error reporting method is different, and it can be judged from the error signal whether the host or the display is faulty.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
A system and method for detecting an environmental monitoring remote communication fault based on a single-chip microcomputer. The system comprises: a central single-chip microcomputer, a central error-reporting apparatus, a platform single-chip microcomputer and a platform error-reporting apparatus, wherein the central error-reporting apparatus and the central single-chip microcomputer are connected by means of a data line, the platform single-chip microcomputer establishes a communication connection with the central single-chip microcomputer, and the platform error-reporting apparatus establishes a communication connection with the platform single-chip microcomputer. With the system and method for detecting an environmental monitoring remote communication fault based on a single-chip microcomputer, a fault can be conveniently and quickly queried, and errors are reported by means of different error-reporting apparatuses, so that the location of the fault can be discovered in a timely manner, and maintenance can be carried out quickly and in a timely manner, thereby ensuring the smooth communication of the entire environmental monitoring remote control system.
Description
本发明属于环境监控技术领域,具体为基于单片机的环境监测远程通讯故障检测系统和检测方法。The invention belongs to the technical field of environmental monitoring, and is specifically a fault detection system and a detection method for environmental monitoring remote communication based on single chip microcomputer.
随着我国居民生活水平和环保意识的不断提高,环境质量的好坏对于人们而言显得更加重要。因此,建立一个实用、便捷的环境数据监测管理系统以实现环境数据监测的全面需求,是现如今必须重视的问题。环境数据监测的主要内容包括温度、湿度、紫外线、噪音、SO2、NO2等。目前我国环境数据监测网络建设不足的情况为背景,利用无线传感网络技术建立一种环境监测系统,用于能远程进行监控和管理。但是在建立远程监测系统中,通讯故障的排查是一项需要及时解决的问题。With the continuous improvement of the living standards and environmental awareness of our residents, the quality of the environment is even more important for people. Therefore, the establishment of a practical and convenient environmental data monitoring and management system to achieve the comprehensive needs of environmental data monitoring is a problem that must be paid attention to now. The main contents of environmental data monitoring include temperature, humidity, ultraviolet light, noise, SO 2 , NO 2 and so on. At present, the situation of insufficient construction of environmental data monitoring network in China is the background. The wireless sensor network technology is used to establish an environmental monitoring system for remote monitoring and management. However, in the establishment of a remote monitoring system, the troubleshooting of communication failures is a problem that needs to be resolved in time.
发明内容Summary of the invention
根据上述技术,本发明提供一种基于单片机的环境监测远程通讯故障检测系统和检测方法。According to the above technology, the present invention provides an environmental monitoring remote communication fault detection system and a detection method based on a single chip microcomputer.
具体的技术方案为:The specific technical solution is:
首先提供一种基于单片机的环境监测远程通讯故障检测系统,包括中心单片机、中心报错装置、平台单片机、平台报错装置;所述的中心报错装置与所述的中心单片机通过数据线连接,所述的平台单片机与所述的中心单片机进行通信连接,所述的平台报错装置与所述的平台单片机进行通信连接。Firstly, a fault detection system for environmental monitoring remote communication based on single chip microcomputer is provided, which comprises a central single chip microcomputer, a central error reporting device, a platform single chip microcomputer, and a platform error reporting device; the central error reporting device is connected with the central single chip microcomputer through a data line, the The platform MCU is in communication connection with the central MCU, and the platform error reporting device is in communication connection with the platform MCU.
具体的,所述的中心单片机,用于根据定义的文件传输协议定时向平台单片机发送尝试信息,并接收所述的平台单片机发送的应答信息,并记录由于没有收到所述的应答信息而尝试失败的次数,并根据
所述的尝试失败的次数,向中心报错装置发送报错指令;Specifically, the central single-chip microcomputer is configured to send the attempt information to the platform single-chip microcomputer according to the defined file transfer protocol timing, and receive the response information sent by the platform single-chip microcomputer, and record that the response information is not received because the response information is not received. The number of failures, and based on
The number of times the attempt fails, and sends an error instruction to the central error reporting device;
所述的中心报错装置,用于根据所述的中心单片机发送的报错指令,发出报错信号;The central error reporting device is configured to send an error signal according to an error instruction sent by the central single chip microcomputer;
所述的平台单片机,用于接收所述的中心单片机发送的尝试信息,并在接收到所述的尝试信息后,向所述的中心单片机发送应答信息,还记录由于没有收到所述的尝试信息而尝试失败的次数,并根据所述的尝试失败的次数,向平台报错装置发送报错指令;The platform microcontroller is configured to receive the attempt information sent by the central single chip, and after receiving the attempt information, send a response message to the central single chip, and also record that the attempt is not received. The number of attempts to fail the information, and according to the number of failed attempts, sends an error instruction to the platform error reporting device;
所述的平台报错装置,用于根据所述的平台单片机发送的报错指令,发出报错信号。The platform error reporting device is configured to send an error signal according to an error instruction sent by the platform single chip microcomputer.
进一步的,所述的中心单片机为远程监控中心主机的单片机,所述的平台单片机为监测站点的环境监测平台的单片机。Further, the central single-chip microcomputer is a single-chip computer of a remote monitoring center host, and the platform single-chip computer is a single-chip computer for monitoring the environmental monitoring platform of the station.
进一步的,所述的中心单片机和所述的平台单片机分别包括通讯模块,所述的中心单片机和所述的平台单片机之间通过通讯模块进行无线通讯连接。Further, the central single-chip microcomputer and the platform single-chip microcomputer respectively comprise a communication module, and the central single-chip microcomputer and the platform single-chip microcomputer communicate with each other through a communication module.
还在于,提供一种基于单片机的环境监测远程通讯故障检测方法,包括以下过程:The invention also provides a method for detecting remote communication faults based on single-chip microcomputer, comprising the following processes:
定义文件传输协议,由中心单片机根据所述的文件传输协议定时发送尝试信息;Defining a file transfer protocol, and the central MCU periodically sends the test information according to the file transfer protocol;
由平台单片机接收所述的尝试信息。The attempted information is received by the platform microcontroller.
还包括以下过程:It also includes the following process:
如果,所述的平台单片机接收到所述的尝试信息,根据所述的尝试信息发送应答信息;If the platform MCU receives the attempt information, and sends response information according to the attempt information;
如果,所述的平台单片机没有接收到所述的尝试信息,记录由于没有收到所述的尝试信息而尝试失败的次数;If the platform microcontroller does not receive the attempted information, recording the number of attempts to fail because the attempted information is not received;
根据所述的平台单片机连续没接收到尝试信息的次数,由所述的
平台单片机发送报错指令,启动平台报错装置进行报错;According to the number of times the platform MCU continuously receives no attempt information, by the
The platform MCU sends an error instruction, and starts the platform error reporting device to report an error;
中心单片机接收由平台单片机发送的应答信息;The central single chip receives the response information sent by the platform single chip microcomputer;
如果,所述的中心单片机没有接收到所述的应答信息,记录由于没有收到所述的应答信息而尝试失败的次数;If the central microcontroller does not receive the response message, recording the number of attempts to fail due to not receiving the response message;
根据所述的中心单片机连续没接收到应答信息的次数,由所述的中心单片机发送报错指令,启动中心报错装置进行报错。According to the number of times that the central single-chip microcomputer does not receive the response information continuously, the central single-chip microcomputer sends an error instruction, and starts the center error reporting device to report an error.
其中,当所述的平台单片机连续没有接收到尝试信息的次数大于设定的MAX_TIES时,由所述的平台单片机发送报错指令;Wherein, when the platform MCU continuously receives no attempt information for more than the set MAX_TIES, the platform MCU sends an error instruction;
如果,所述的中心单片机连续没接收到应答信息的次数大于设定的MAX_TIES,由所述的中心单片机发送报错指令;If the number of times that the central single-chip microcomputer does not receive the response information continuously is greater than the set MAX_TIES, the central single-chip microcomputer sends an error instruction;
所述的,MAX_TIES为大于1的整数。The MAX_TIES is an integer greater than one.
进一步的,所述的平台单片机接收到所述的尝试信息时,记录的由于没有收到尝试信息而尝试失败的次数归零;Further, when the platform MCU receives the attempt information, the recorded number of failed attempts due to failure to receive the attempt information is zero;
所述的中心单片机接收到所述的应答信息时,记录的由于没有收到应答信息而尝试失败的次数归零。When the central MCU receives the response information, the recorded number of failed attempts due to failure to receive the response information is zeroed.
本发明提供的基于单片机的环境监测远程通讯故障检测系统和检测方法,可以方便快捷的进行故障的查询,并通过不同的报错装置进行报错,可以及时的发现故障的位置,能快速及时的进行检修,确保整个环境监测远程控制系统的通讯顺畅。The invention provides a single-chip based environmental monitoring remote communication fault detection system and a detection method, which can conveniently and quickly perform fault inquiry, and report errors through different error reporting devices, and can timely find the fault location, and can quickly and timely repair and repair. To ensure smooth communication of the entire environment monitoring remote control system.
下面将结合实施例对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions of the present invention will be clearly and completely described in the following with reference to the embodiments. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例1
Example 1
基于单片机的环境监测远程通讯故障系统,包括中心单片机、中心报错装置、平台单片机、平台报错装置;所述的中心报错装置与所述的中心单片机通过数据线连接,所述的平台单片机与所述的中心单片机进行通信连接,所述的平台报错装置与所述的平台单片机进行通信连接。The environment monitoring remote communication fault system based on single chip microcomputer comprises a central single chip microcomputer, a central error reporting device, a platform single chip microcomputer, a platform error reporting device; the central error reporting device is connected with the central single chip computer through a data line, and the platform single chip microcomputer and the The central single-chip microcomputer performs communication connection, and the platform error reporting device communicates with the platform single-chip microcomputer.
中心单片机,用于根据定义的文件传输协议定时向平台单片机发送尝试信息,还用于接收所述的平台单片机发送的应答信息,并记录由于没有收到应答信息而尝试失败的次数,并根据尝试失败的次数,向中心报错装置发送报错指令;The central single-chip microcomputer is configured to send the attempt information to the platform single-chip microcomputer according to the defined file transfer protocol timing, and is further configured to receive the response information sent by the platform single-chip microcomputer, and record the number of attempts to fail because the response information is not received, and according to the attempt The number of failures, sending an error instruction to the central error reporting device;
中心报错装置,用于根据中心单片机发送的报错指令,发出报错信号;The central error reporting device is configured to issue an error signal according to an error instruction sent by the central single chip microcomputer;
平台单片机,用于接收中心单片机发送的尝试信息,并在接收到尝试信息后,向中心单片机发送应答信息,还记录由于没有收到尝试信息而尝试失败的次数,并根据尝试失败的次数,向平台报错装置发送报错指令;The platform single-chip microcomputer is configured to receive the attempt information sent by the central single-chip microcomputer, and after receiving the trial information, send a response message to the central single-chip microcomputer, and record the number of attempts to fail because the trial information is not received, and according to the number of failed attempts, The platform error reporting device sends an error instruction;
平台报错装置,用于根据平台单片机发送的报错指令,发出报错信号。The platform error reporting device is configured to issue an error signal according to an error instruction sent by the platform single chip microcomputer.
所述的中心单片机是远程监控中心主机的单片机,所述的平台单片机是监测站点的环境监测平台的单片机。当远程监控中心主机出现故障时,中心单片机也会出现故障,就不能向平台单片机发送尝试信息,而如果环境监测平台出现了故障,平台单片机也会出现故障,就不能向中心单片机发送应答信息。中心单片机和平台单片机之间通过通讯模块进行无线通讯连接,可以为EnOcean、Zigbee,Z-Wave和Bluetooth等方法。The central single-chip microcomputer is a single-chip computer of a remote monitoring center host, and the platform single-chip computer is a single-chip computer for monitoring an environmental monitoring platform of a station. When the host of the remote monitoring center fails, the central MCU will also fail, and it cannot send the attempt information to the platform MCU. If the environmental monitoring platform fails, the platform MCU will also fail, and the response message cannot be sent to the central MCU. The central MCU and the platform MCU communicate wirelessly through the communication module, which can be EnOcean, Zigbee, Z-Wave and Bluetooth.
实施例2
Example 2
本发明还在于,基于单片机的环境监测远程通讯故障检测方法,包括:The invention also resides in an environmental monitoring remote communication fault detection method based on a single chip microcomputer, comprising:
(1)定义文件传输协议,由中心单片机根据文件传输协议定时发送尝试信息;(1) defining a file transfer protocol, and the central MCU periodically sends the test information according to the file transfer protocol;
由平台单片机接收所述的尝试信息;Receiving the attempted information by the platform microcontroller;
文件传输协议选为XModem文件传输协议;XModem协议能够直接在其他遵循这个协议的设备通信中使用。在LabWindows中,实际的XModem应用对用户隐藏了。只要PC和其他设备使用XModem协议,在文件传输中就使用LabWindows的XModem函数。函数是XModemConfig,XModemSend和XModemReceive。The file transfer protocol is selected as the XModem file transfer protocol; the XModem protocol can be used directly in other device communications that follow this protocol. In LabWindows, the actual XModem application is hidden from the user. As long as the PC and other devices use the XModem protocol, the LabMode XModem function is used in file transfer. The functions are XModemConfig, XModemSend and XModemReceive.
中心单片机以一定的时间间隔发送尝试信息,平台单片机在规定的时间间隔内没接收到尝试信息就视为尝试失败。The central MCU sends the attempt information at a certain time interval, and the platform MCU does not receive the attempt information within the specified time interval and is regarded as an attempt failure.
中心单片机和平台单片机之间通过无线通信方法进行尝试通讯,相互传递尝试信息。The central single-chip computer and the platform single-chip microcomputer communicate with each other through wireless communication methods to transmit the test information to each other.
(2)如果,平台单片机接收到尝试信息,根据尝试信息发送应答信息;(2) If the platform MCU receives the attempt information, the response message is sent according to the attempt information;
如果,平台单片机没接收到尝试信息,记录由于没有收到尝试信息而尝试失败的次数;If the platform microcontroller does not receive the attempt information, the number of times the attempt fails due to not receiving the attempt information;
所述的中心单片机是远程监控中心主机的单片机,所述的平台单片机是监测站点的环境监测平台的单片机。当远程监控中心主机正常时,中心单片机就是正常的,能够根据文件传输协议正常发送尝试信息,因此平台单片机接收到尝试信息,说明中心单片机是正常工作状态,即远程监控中心主机正常。当远程监控中心主机出现故障时,中心单片机也会出现故障,不能正常发送尝试信息,平台单片机就不会接收到尝试信息,说明远程监控中心主机出现故障。但是当发生的故
障是短时间的,单片机在短时间内可以恢复正常工作状态,因此,当记录由于没有收到尝试信息而尝试失败的次数,以判断单片机的故障是否暂时的。The central single-chip microcomputer is a single-chip computer of a remote monitoring center host, and the platform single-chip computer is a single-chip computer for monitoring an environmental monitoring platform of a station. When the remote monitoring center host is normal, the central single-chip microcomputer is normal, and the test information can be normally sent according to the file transfer protocol. Therefore, the platform single-chip microcomputer receives the trial information, indicating that the central single-chip microcomputer is in a normal working state, that is, the remote monitoring center host is normal. When the host of the remote monitoring center fails, the central MCU will also fail, and the attempt information cannot be sent normally. The platform MCU will not receive the attempt information, indicating that the remote monitoring center host has failed. But when it happens
The barrier is short-lived, and the microcontroller can resume normal operation in a short period of time. Therefore, when the number of attempts to fail due to the failure to receive the trial information is recorded, it is judged whether the failure of the single-chip microcomputer is temporary.
如果平台单片机接收到尝试信息,就会根据尝试信息发送应答信息,并传递给中心单片机。If the platform MCU receives the attempt information, it will send a response message according to the attempt message and pass it to the central MCU.
(3)根据平台单片机连续没接收到尝试信息的次数,由平台单片机发送报错指令,启动平台报错装置进行报错;(3) According to the number of times the platform MCU has not received the trial information continuously, the platform MCU sends an error instruction, and starts the platform error device to report the error;
平台单片机接收到所述的尝试信息时,记录的由于没有收到尝试信息而尝试失败的次数归零,只有平台单片机连续没接收到尝试信息的次数累计到一定数值,才有可能说明远程监控中心主机出现故障,此时需要启动平台报错装置进行报错。When the platform MCU receives the attempted information, the number of failed attempts to record the failure due to the failure to receive the attempt information is zero. Only when the number of times the platform MCU has not received the trial information continuously reaches a certain value, it is possible to explain the remote monitoring center. If the host fails, you need to start the platform error reporting device to report the error.
(4)中心单片机接收由平台单片机发送的应答信息;(4) The central single chip receives the response information sent by the platform single chip microcomputer;
如果,所述的中心单片机没接收到所述的应答信息,记录由于没有收到所述的应答信息而尝试失败的次数;If the central microcontroller does not receive the response message, recording the number of attempts to fail due to not receiving the response message;
由于平台单片机是环境监测平台的单片机,所以环境监测平台正常时,平台单片机就是正常的,能够正常接收尝试信息,并发送应答信息,因此,如果,中心单片机接收到应答信息,说明平台单片机处于正常工作状态,即环境监测平台正常。当环境监测平台出现故障时,平台单片机也同时出现故障,就不能正常发送应答信息,同时中心单片机不会接收到应答信息,说明环境监测平台出现故障。同样对于暂时性的故障要进行排除,通过记录由于没有收到应答信息而尝试失败的次数,进行排除。Since the platform MCU is a single-chip computer of the environmental monitoring platform, when the environmental monitoring platform is normal, the platform MCU is normal, can receive the test information normally, and send the response message. Therefore, if the central MCU receives the response message, the platform MCU is in normal. The working state, that is, the environmental monitoring platform is normal. When the environmental monitoring platform fails, the platform MCU also fails at the same time, the response message cannot be sent normally, and the central MCU will not receive the response message, indicating that the environmental monitoring platform is faulty. The same is true for temporary faults, which are excluded by recording the number of attempts to fail because no response information is received.
(5)根据中心单片机连续没接收到应答信息的次数,由中心单片机发送报错指令,启动中心报错装置进行报错。(5) According to the number of times the central single-chip microcomputer does not receive the response information continuously, the central single-chip microcomputer sends an error instruction, and the center error reporting device is started to report the error.
如果,所述的中心单片机没有接收到所述的应答信息,记录由于没有
收到所述的应答信息而尝试失败的次数;If the central microcontroller does not receive the response message, the record is not
The number of times the attempt to receive the response message failed;
中心单片机接收到应答信息时,记录的由于没有收到应答信息而尝试失败的次数为零,只有中心单片机连续没接收到应答信息的次数过多,才说明主机真的出现故障,所以,当平台单片机连续没接收到尝试信息的次数大于设定的MAX_TIES时,由平台单片机发送报错指令;如果,中心单片机连续没接收到应答信息的次数大于设定的MAX_TIES,由中心单片机发送报错指令;其中,设定的MAX_TIES为大于1的整数。When the central MCU receives the response message, the number of attempts to fail due to the failure to receive the response message is zero. Only the number of times the central MCU has not received the response message continuously indicates that the host is actually faulty. Therefore, when the platform is faulty, When the number of times that the single-chip microcomputer does not receive the trial information is greater than the set MAX_TIES, the platform single-chip microcomputer sends an error instruction; if the number of consecutive times that the central single-chip microcomputer does not receive the response information is greater than the set MAX_TIES, the central single-chip microcomputer sends an error instruction; The set MAX_TIES is an integer greater than 1.
因此,当远程监控中心主机出现故障时,中心报错装置进行报错,而当环境监测平台出现故障时,平台报错装置进行报错。报错方式不同,能从报错信号判断是主机还是显示器出现的故障。Therefore, when the remote monitoring center host fails, the central error reporting device reports an error, and when the environmental monitoring platform fails, the platform error reporting device reports an error. The error reporting method is different, and it can be judged from the error signal whether the host or the display is faulty.
已经出于解释和说明的目的而提供了对本发明示例性实施例的上述说明。并非意在穷举或将本发明限制于所披露的精确形式。显然,许多修改和变型对于本领域的技术人员来说要成为显而易见的。选择和描述实施例是为了便于更好地理解本发明的原理及其实际应用,从而使本领域的其它技术人员能够理解本发明的各种示例性实施例及适用于特定预期用途的各种变型。其意图在于用前面的权利要求书及其等同内容来限定本发明的范围。
The above description of the exemplary embodiments of the present invention has been provided for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Obviously, many modifications and variations will be apparent to those skilled in the art. The embodiment was chosen and described in order to facilitate a better understanding of the principles of the invention and the application of the embodiments of the invention . It is intended that the scope of the invention be defined by the claims
Claims (8)
- 基于单片机的环境监测远程通讯故障检测系统,其特征在于:包括中心单片机、中心报错装置、平台单片机、平台报错装置;所述的中心报错装置与所述的中心单片机通过数据线连接,所述的平台单片机与所述的中心单片机进行通信连接,所述的平台报错装置与所述的平台单片机进行通信连接。The environment monitoring remote communication fault detection system based on single chip microcomputer comprises: a central single chip microcomputer, a central error reporting device, a platform single chip microcomputer, a platform error reporting device; the central error reporting device is connected with the central single chip microcomputer through a data line, the The platform MCU is in communication connection with the central MCU, and the platform error reporting device is in communication connection with the platform MCU.
- 根据权利要求1所述的基于单片机的环境监测远程通讯故障检测系统,其特征在于:The system for monitoring a remote communication fault detection based on a single chip according to claim 1, wherein:所述的中心单片机,用于根据定义的文件传输协议定时向平台单片机发送尝试信息,并接收所述的平台单片机发送的应答信息,并记录由于没有收到所述的应答信息而尝试失败的次数,并根据所述的尝试失败的次数,向中心报错装置发送报错指令;The central single-chip microcomputer is configured to send the attempt information to the platform single-chip microcomputer according to the defined file transfer protocol timing, and receive the response information sent by the platform single-chip microcomputer, and record the number of attempts to fail because the response information is not received. And sending an error instruction to the central error reporting device according to the number of failed attempts;所述的中心报错装置,用于根据所述的中心单片机发送的报错指令,发出报错信号;The central error reporting device is configured to send an error signal according to an error instruction sent by the central single chip microcomputer;所述的平台单片机,用于接收所述的中心单片机发送的尝试信息,并在接收到所述的尝试信息后,向所述的中心单片机发送应答信息,还记录由于没有收到所述的尝试信息而尝试失败的次数,并根据所述的尝试失败的次数,向平台报错装置发送报错指令;The platform microcontroller is configured to receive the attempt information sent by the central single chip, and after receiving the attempt information, send a response message to the central single chip, and also record that the attempt is not received. The number of attempts to fail the information, and according to the number of failed attempts, sends an error instruction to the platform error reporting device;所述的平台报错装置,用于根据所述的平台单片机发送的报错指令,发出报错信号。The platform error reporting device is configured to send an error signal according to an error instruction sent by the platform single chip microcomputer.
- 根据权利要求1所述的基于单片机的环境监测远程通讯故障检测系统,其特征在于,所述的中心单片机为远程监控中心主机的单片机,所述的平台单片机为监测站点的环境监测平台的单片机。The system according to claim 1, wherein the central single-chip microcomputer is a single-chip computer of a remote monitoring center host, and the platform single-chip computer is a single-chip computer for monitoring an environmental monitoring platform of the station.
- 根据权利要求1所述的基于单片机的环境监测远程通讯故障检测系统,其特征在于,所述的中心单片机和所述的平台单片机分别包 括通讯模块,所述的中心单片机和所述的平台单片机之间通过通讯模块进行无线通讯连接。The system for monitoring a remote communication fault detection based on a single chip according to claim 1, wherein the central single chip microcomputer and the platform single chip device respectively comprise The communication module includes a wireless communication connection between the central single chip computer and the platform single chip microcomputer through a communication module.
- 基于单片机的环境监测远程通讯故障检测方法,其特征在于,包括以下过程:The method for detecting remote communication faults based on single-chip microcomputer is characterized in that it comprises the following processes:定义文件传输协议,由中心单片机根据所述的文件传输协议定时发送尝试信息;Defining a file transfer protocol, and the central MCU periodically sends the test information according to the file transfer protocol;由平台单片机接收所述的尝试信息。The attempted information is received by the platform microcontroller.
- 根据权利要求5所述的基于单片机的环境监测远程通讯故障检测方法,其特征在于,还包括以下过程:The method according to claim 5, wherein the method further comprises the following process:如果,所述的平台单片机接收到所述的尝试信息,根据所述的尝试信息发送应答信息;If the platform MCU receives the attempt information, and sends response information according to the attempt information;如果,所述的平台单片机没有接收到所述的尝试信息,记录由于没有收到所述的尝试信息而尝试失败的次数;If the platform microcontroller does not receive the attempted information, recording the number of attempts to fail because the attempted information is not received;根据所述的平台单片机连续没接收到尝试信息的次数,由所述的平台单片机发送报错指令,启动平台报错装置进行报错;According to the number of times that the platform single-chip microcomputer does not receive the trial information continuously, the platform single-chip microcomputer sends an error instruction, and starts the platform error reporting device to report an error;中心单片机接收由平台单片机发送的应答信息;The central single chip receives the response information sent by the platform single chip microcomputer;如果,所述的中心单片机没有接收到所述的应答信息,记录由于没有收到所述的应答信息而尝试失败的次数;If the central microcontroller does not receive the response message, recording the number of attempts to fail due to not receiving the response message;根据所述的中心单片机连续没接收到应答信息的次数,由所述的中心单片机发送报错指令,启动中心报错装置进行报错。According to the number of times that the central single-chip microcomputer does not receive the response information continuously, the central single-chip microcomputer sends an error instruction, and starts the center error reporting device to report an error.
- 根据权利要求6所述的基于单片机的环境监测远程通讯故障检测方法,其特征在于,当所述的平台单片机连续没有接收到尝试信息的次数大于设定的MAX_TIES时,由所述的平台单片机发送报错指令;The method for detecting a remote communication fault based on a single-chip microcomputer according to claim 6, wherein when the number of times that the platform single chip microcomputer does not receive the trial information continuously is greater than the set MAX_TIES, the platform microcontroller transmits Error instruction如果,所述的中心单片机连续没接收到应答信息的次数大于设定 的MAX_TIES,由所述的中心单片机发送报错指令;所述的,MAX_TIES为大于1的整数。If the number of times that the central single-chip microcomputer does not receive the response information continuously is greater than the setting MAX_TIES, the central microcontroller sends an error instruction; said MAX_TIES is an integer greater than 1.
- 根据权利要求4所述的基于单片机的环境监测远程通讯故障检测方法,其特征在于,所述的平台单片机接收到所述的尝试信息时,记录的由于没有收到尝试信息而尝试失败的次数归零;The method for detecting a fault of an environmental monitoring remote communication based on a single chip according to claim 4, wherein when the platform MCU receives the attempt information, the number of attempts to fail due to failure to receive the trial information is returned. zero;所述的中心单片机接收到所述的应答信息时,记录的由于没有收到应答信息而尝试失败的次数归零。 When the central MCU receives the response information, the recorded number of failed attempts due to failure to receive the response information is zeroed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/077020 WO2018165969A1 (en) | 2017-03-17 | 2017-03-17 | System and method for detecting environmental monitoring remote communication fault based on single-chip microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/077020 WO2018165969A1 (en) | 2017-03-17 | 2017-03-17 | System and method for detecting environmental monitoring remote communication fault based on single-chip microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018165969A1 true WO2018165969A1 (en) | 2018-09-20 |
Family
ID=63522797
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/077020 WO2018165969A1 (en) | 2017-03-17 | 2017-03-17 | System and method for detecting environmental monitoring remote communication fault based on single-chip microcomputer |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2018165969A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030182416A1 (en) * | 2002-03-19 | 2003-09-25 | Nec Corporation | Computer monitoring system, computer monitoring method and computer monitoring program |
CN202948099U (en) * | 2012-11-20 | 2013-05-22 | 山西省电力公司大同供电分公司 | Power distribution fault detection system of two-way wireless communication |
CN103893867A (en) * | 2012-12-27 | 2014-07-02 | 北京谊安医疗系统股份有限公司 | Failure warning system and method for respirators |
CN204598109U (en) * | 2015-06-01 | 2015-08-26 | 申瓯通信设备有限公司 | Alarm reporting telephone system |
CN106175936A (en) * | 2016-08-31 | 2016-12-07 | 北京术锐技术有限公司 | A kind of operating robot fully operational status fault detection method |
CN106370949A (en) * | 2016-08-31 | 2017-02-01 | 北京术锐技术有限公司 | Operation robot incomplete running state fault detection method |
-
2017
- 2017-03-17 WO PCT/CN2017/077020 patent/WO2018165969A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030182416A1 (en) * | 2002-03-19 | 2003-09-25 | Nec Corporation | Computer monitoring system, computer monitoring method and computer monitoring program |
CN202948099U (en) * | 2012-11-20 | 2013-05-22 | 山西省电力公司大同供电分公司 | Power distribution fault detection system of two-way wireless communication |
CN103893867A (en) * | 2012-12-27 | 2014-07-02 | 北京谊安医疗系统股份有限公司 | Failure warning system and method for respirators |
CN204598109U (en) * | 2015-06-01 | 2015-08-26 | 申瓯通信设备有限公司 | Alarm reporting telephone system |
CN106175936A (en) * | 2016-08-31 | 2016-12-07 | 北京术锐技术有限公司 | A kind of operating robot fully operational status fault detection method |
CN106370949A (en) * | 2016-08-31 | 2017-02-01 | 北京术锐技术有限公司 | Operation robot incomplete running state fault detection method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107967801A (en) | A kind of energy measurement data online acquisition and monitoring method and system | |
JP6078893B2 (en) | Pan-tilt-zoom device identification method, pan-tilt-zoom device, camera, and pan-tilt-zoom device control system | |
CN102420699B (en) | Equipment number distribution method of digital radio frequency remote system and system thereof | |
CN112689028A (en) | Method for realizing automatic address allocation based on RS485 | |
CN101094121B (en) | Method, system and device for detecting Ethernet link between non-directly connected devices | |
CN108933692B (en) | Data transmission method of Internet of things gateway, first gateway and dual-computer hot standby system | |
CN104468776B (en) | A kind of method and aggregation node for realizing sensor network data transmission | |
CN205105252U (en) | Fire control thing networking transmission equipment | |
CN108683578A (en) | A ring network communication test method and test system for an in-situ device | |
CN111949456A (en) | A serial port protocol automatic test system and method based on configuration update | |
CN107369327A (en) | Intersection traffic whistle control system and method based on the buses of RS 485 | |
CN103428040A (en) | Method and system for automatically detecting auxiliary computer in-place information and host computer | |
CN107918375A (en) | A kind of equipment high in the clouds monitoring management system | |
CN204258835U (en) | Internet of Things control system safety device | |
CN104880222A (en) | 3G wireless communication-based secondary equipment state monitoring system | |
CN101170443B (en) | GPRS-based digital monitoring and alarm issuing device | |
CN107342789A (en) | A kind of group-net communication method of cable anti-theft monitoring system | |
CN103645417B (en) | A kind of pure internet access-prepositioneddata data acquisition method | |
CN203241747U (en) | A Redundant Design IoT System | |
WO2018165969A1 (en) | System and method for detecting environmental monitoring remote communication fault based on single-chip microcomputer | |
CN103914362B (en) | A kind of serial ports self checking method, circuit and device | |
CN203416290U (en) | Internet of Things system by redundancy design | |
CN110174881A (en) | A kind of distributed control means and system | |
CN103019202A (en) | Redundant front-end processor (FEP) standby interface state on-line detecting method | |
TWI715822B (en) | City network control signal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17900974 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17900974 Country of ref document: EP Kind code of ref document: A1 |