Method for monitoring working state of data acquisition gateway
By combining the data dump function of the data acquisition gateway with a conventional relational database, the monitoring system software analyzes the status of the gateway, solving the problems of high monitoring cost and slow response speed in the existing technology, and achieving faster fault diagnosis and repair efficiency.
Patent Information
- Application Number
- CN202410723885.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-27
AI Technical Summary
In the existing technology, in the working status monitoring of the data collection gateway, additional additional monitoring equipment increases the cost, and results in insufficient early warning response speed and low fault repair efficiency. Especially in the on-site environment of steel companies, data burst processing pressure and network There is a serious waste of resources.
By combining the data collection gateway with conventional relational databases and monitoring system software, and using the data dump function of the data collection gateway, the quality stamp, time and code name of specific parameters are periodically dumped to the server, and the monitoring system Regularly access the database to determine the status of the gateway. If the quality stamp is abnormal, it is determined that the gateway is abnormal and an alarm signal is sent through the audio output device.
It reduces monitoring costs, improves fault warning response speed and repair efficiency, and avoids server-side data burst processing pressure and waste of network resources.
Smart Images

Figure CN118714034A
Abstract
Description
Technical Field
[0001] The invention relates to a method for monitoring the working state of a data acquisition gateway applied to a data acquisition platform of a steel enterprise, belonging to the technical field of monitoring. Background Art
[0002] At the production site of the steel industry, the scope of application of data acquisition gateways is gradually expanding with the construction of information automation. Users will connect various data generated by a large number of terminal devices to the data acquisition gateway, and display and apply the data through calculation, analysis, real-time monitoring and other means. At the same time, they can also promptly detect abnormal working conditions of terminal equipment and issue alarms.
[0003] As an important role in information collection, information processing, and information transmission, the data acquisition gateway has an important connection and hub status in connecting perception networks and traditional communication networks. In order to avoid the impact of data acquisition gateway failures, it is necessary to monitor the status of the data acquisition gateway. It is also particularly important to quickly and effectively determine whether the data acquisition gateway is online and whether it is working normally.
[0004] The usual practice is to set up interconnected socket modules and tcp modules on the server side; start the socket service through the socket module to establish a socket connection between the server side and the data acquisition gateway socket module; start the tcp service through the tcp module to monitor the tcp request of the data acquisition gateway; the data acquisition gateway sends a tcp long connection request to the tcp module, establishes a tcp long connection with the tcp module, and the data acquisition gateway periodically sends heartbeat information to the server side; if the server side detects that a certain number of heartbeat packets are lost, it is considered that the data acquisition gateway has lost the connection with the server side, that is, the gateway is considered to be offline and the working condition is abnormal.
[0005] At present, when the working status of the data acquisition gateway is abnormal, the abnormality diagnosis is mainly carried out by using specific remote tools to analyze the data acquisition gateway log or on-site investigation. However, the data acquisition gateway log function is limited by the gateway hardware configuration and firmware implementation. Not all data acquisition gateways have the log recording function, and on-site investigation is costly and inefficient.
[0006] The existing common practice is to deploy and install a large number of application modules such as data state judgment modules, data information receiving modules and data information analysis modules on both ends of the server and the data acquisition gateway to package, verify, parse and compare the data collected by the data acquisition gateway. The physical performance requirements of the relevant equipment are extremely high. These additional monitoring devices increase the monitoring cost of the data acquisition gateway. Through the socket module and TCP module, etc., long connections such as socket and TCP are opened for communication. The server sets a scheduled task and periodically monitors the working status of each data acquisition gateway through active access, or each data acquisition gateway sends specific data information to the server periodically. Among them, the data information uploaded by the data acquisition gateway includes all the time-series point data information under the gateway; the number of these points is usually in the order of three thousand to five thousand, or even more. The server performs integrity analysis on the data information uploaded by the data acquisition gateway, including: counting the total number of timing point data information received from a single gateway within the set time, and counting the total number of configurations corresponding to the timing point data information of a single gateway within the set time based on the configuration information stored in itself; through parsing, comparison, analysis, etc., the reporting completeness of the timing point data information uploaded by a single data acquisition gateway is determined to determine the working status of the gateway.
[0007] The invention patent with application number 202111512222.8 discloses a gateway data anomaly diagnosis method and device, the method comprising: determining whether the gateway is in a normal data state, if the gateway is in a normal data state, receiving the data information reported by the gateway, performing integrity analysis and / or correctness analysis on the received data information reported by the gateway, and determining whether there is a data anomaly in the process of the gateway collecting and reporting data information based on the analysis results. The gateway data anomaly diagnosis method provided in this application can diagnose the data anomaly that may occur in the process of the gateway collecting and reporting data information, without the need for on-site inspection by operation and maintenance engineers, which is more convenient and improves the efficiency of diagnosing gateway data anomalies.
[0008] On the other hand, steel enterprises will be equipped with dozens to hundreds of data collection gateways on site. Therefore, the above two methods of large-scale data information transmission can easily cause explosive data processing pressure on the server side and occupation and waste of network resources, resulting in insufficient early warning response speed and reduced fault repair efficiency. Summary of the invention
[0009] The purpose of the present invention is to provide a method for monitoring the working status of a data acquisition gateway in view of the drawbacks of the prior art, so as to reduce the monitoring cost of the data acquisition gateway and improve the early warning response speed and repair efficiency of faults.
[0010] The problem described in the present invention is solved by the following technical solution: A method for monitoring the working status of a data acquisition gateway, wherein the method connects a data acquisition gateway installed on site, a server installed with a conventional relational database and a client computer installed with monitoring system software into a local area network through a bus, each data acquisition gateway selects N data sources connected to it, selects a parameter from the real-time data collected by each data source, and uses the data dump function of the data acquisition gateway to periodically dump the quality stamps of the N parameters, the current time and the code name of the data acquisition gateway to the conventional relational database on the server side; the monitoring system periodically accesses the conventional relational database on the server side, and determines whether the data acquisition gateway is normal through the information dumped each time by the data acquisition gateway.
[0011] The above-mentioned method for monitoring the working status of the data acquisition gateway, the specific method in which the monitoring system determines whether the data acquisition gateway is normal through the information dumped by the data acquisition gateway each time is as follows: a. The monitoring system periodically accesses the regular relational database on the server to detect whether the data dumped by the data collection gateway exists; b. If the data dumped by the data acquisition gateway exists, the working state of the data acquisition gateway is judged to be normal according to the quality stamp of the N parameters dumped by the acquisition gateway. The specific judgment method is: if the quality stamps of the N parameters are all abnormal values, the working state of the data acquisition gateway is judged to be abnormal, otherwise the working state of the data acquisition gateway is judged to be normal; c. If the data dumped by the data acquisition gateway does not exist, use the following method to determine the working status of the data acquisition gateway: ① The monitoring system waits for the data acquisition gateway to dump data within the preset waiting period; ② If the monitoring system obtains the data dumped by the data acquisition gateway during the waiting period, determine whether the working status of the data acquisition gateway is normal according to the method in step b; ③ If the monitoring system does not obtain any data dumped by the data acquisition gateway during the waiting period, the monitoring system bypasses the server and directly accesses the data acquisition gateway through the local area network, obtains the quality stamp information of the corresponding gateway according to the pre-configured access parameters, and then judges whether the working status of the data acquisition gateway is normal based on the quality stamp of the gateway. The specific judgment method is: if the quality stamp of the gateway is a normal value, then the working status of the data acquisition gateway is judged to be normal; if the quality stamp of the gateway is an abnormal value, then the working status of the data acquisition gateway is judged to be abnormal.
[0012] In the above-mentioned method for monitoring the working status of the data acquisition gateway, the client computer is equipped with an external audio output device. If the monitoring system determines that the working status of the data acquisition gateway is abnormal, the client computer outputs a voice alarm signal through the audio output device to prompt the staff to deal with the equipment failure in time.
[0013] The method for monitoring the working status of the above-mentioned data acquisition gateway, the method for generating the quality stamp of each parameter in the real-time data collected by the data acquisition gateway is as follows: the data acquisition gateway obtains real-time data and timestamp from the data source. If both the real-time data and the timestamp are normal, the quality stamp is a normal value, otherwise the quality stamp is an abnormal value.
[0014] In the above-mentioned method for monitoring the working status of the data acquisition gateway, the monitoring system records the abnormal working status of the data acquisition gateway, which facilitates the tracking and analysis of abnormal events afterwards.
[0015] In the above-mentioned method for monitoring the working status of the data acquisition gateway, the conventional relational database installed on the server is SQL server 2012. Beneficial Effects
[0016] The present invention determines whether the working status of the data acquisition gateway is normal according to the information dumped by the data acquisition gateway each time, which can avoid the server from bearing the pressure of data burst processing, reduce the occupation and waste of network resources, thereby reducing the monitoring cost of the data acquisition gateway and improving the early warning response speed and repair efficiency of faults. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The present invention will be further described below in conjunction with the accompanying drawings.
[0018] Figure 1 It is a schematic diagram of the structure of the hardware network system adopted by the present invention; Figure 2 is a flow chart of the present invention; Figure 3 It is a data example screenshot of a field data acquisition gateway when the working status of the data acquisition gateway is monitored using the present invention. DETAILED DESCRIPTION
[0019] The present invention provides a method for monitoring the working status of a data acquisition gateway, which is used to solve the problems in the process of monitoring the working status of the data acquisition gateway, that the additional monitoring equipment leads to increased monitoring costs and insufficient early warning response speed, the monitoring process is complicated and not intelligent enough, and the fault repair time is long.
[0020] See also Figure 1 The hardware network system used in the present invention includes the following four parts: 1. Data collection gateway The data acquisition gateway is installed on site to collect, process and transmit data information; 2. A normal server The server is installed with a regular relational database, and has configured basic information and environment such as database auto-start, connection account, connection port, etc. 3. Client computer The client computer is installed with monitoring system software and equipped with external audio output equipment for voice alarm prompts; 4. Bus The bus connects all data acquisition gateways, servers, and client computers on site to form a complete internal LAN.
[0021] See also Figure 2 The present invention provides a method for monitoring the working status of a data acquisition gateway as follows: Each data collection gateway selects N (N is a natural number) data sources connected to it, in this embodiment, N=3, selects a parameter from the real-time data collected by each data source, and uses the data collection gateway's own data dump function to periodically dump the quality stamp of the three parameters, the current time and the code name of the data collection gateway to the regular relational database on the server side; The real-time data and timestamps obtained by the data acquisition gateway from multiple devices, PLC, OPC and other data sources can reach millisecond level, such as Figure 3 As shown, through observation, it is found that if both the real-time data and the timestamp are normal, the quality stamp will display the normal value "Good", and if any of the values of the real-time data and the timestamp is abnormal, the quality stamp will display the abnormal value "Bad", so three different data sources with representativeness and characteristics under the data acquisition gateway are selected (Note: In actual production on site, in order to ensure production and safety, some instruments and meters will maintain 7x24 hours of operation and stability. These instrument and meter data require long-term online data collection, such as the "voltage" information of smart meters. Therefore, after the data acquisition gateway collects these data, these data are representative and characteristic). Each data source selects a parameter that is representative and characteristic of itself, and uses the data dump function of the data acquisition gateway to periodically dump the quality stamps, current time and the code name of the data acquisition gateway of these three parameters to the regular relational database on the server side; The monitoring system of the client computer periodically accesses the regular relational database on the server side, and determines whether the data acquisition gateway is normal through the information dumped by the data acquisition gateway each time. The specific method is as follows: a. The monitoring system periodically accesses the regular relational database on the server to detect whether the data dumped by the data collection gateway exists; b. If the data dumped by the data acquisition gateway exists, the working status of the data acquisition gateway is judged to be normal according to the quality stamp of the three parameters dumped by the acquisition gateway. The specific judgment method is as follows: In a conventional relational database on the server side, the quality stamps of the three parameters dumped by each data acquisition gateway each time may appear in the following eight situations: 1. "Good / Good / Good"; 2. "Bad / Good / Good"; 3. "Good / Bad / Good"; 4. "Good / Good / Bad"; 5. "Bad / Bad / Good"; 6. "Bad / Good / Bad"; 7. "Good / Bad / Bad"; 8. "Bad / Bad / Bad"; Through observation and experiment, it is found that only when the result is "Bad / Bad / Bad", the working state of the gateway is abnormal. Although 1 to 2 "Bad" values appear in the remaining results, it is due to the interference of a certain device on site or other factors such as network fluctuations and delays, and does not mean that there is a problem with the working state of the data acquisition gateway itself; therefore, after the monitoring system software obtains the data, if the quality stamps of the three parameters are all abnormal values "Bad", it is judged that the working state of the data acquisition gateway is abnormal, otherwise it is judged that the working state of the data acquisition gateway is normal; c. If the data dumped by the data acquisition gateway does not exist, there may be the following three reasons: 1. There is a network connection problem or the data acquisition gateway is powered off and crashed, and the regular relational database on the server cannot obtain the latest dump data; 2. There is a network blockage or data delay, and the regular relational database on the server cannot obtain the latest dump data; 3. Because there is a time blind spot between the time period of the data acquisition gateway dump and the access period of the monitoring system software, the monitoring system software may also be unable to obtain the latest dump data within this period. At this time, the monitoring system software uses the following method to determine the working status of the data acquisition gateway: ① The monitoring system starts the delayed waiting algorithm and waits for the data acquisition gateway to dump data within the preset waiting period; ② If the monitoring system obtains the data dumped by the data acquisition gateway within the waiting period, the delay waiting algorithm is turned off, and then the working status of the data acquisition gateway is determined to be normal according to the method in step b; ③ If the monitoring system does not obtain any data dumped by the data acquisition gateway during the waiting period, the delayed waiting algorithm is turned off, and the monitoring system bypasses the server and directly accesses the data acquisition gateway through the local area network. According to the pre-configured access parameters, the quality stamp information of the corresponding gateway is obtained, and then the working status of the data acquisition gateway is judged to be normal based on the quality stamp of the gateway: if the quality stamp of the gateway is a normal value, the working status of the data acquisition gateway is judged to be normal; if the quality stamp of the gateway is an abnormal value, the working status of the data acquisition gateway is judged to be abnormal; e. If the working status of the data acquisition gateway is abnormal, the client computer will output a voice alarm signal through the external audio output device to prompt the staff to deal with the equipment failure in time.
[0022] The different abnormal situation results obtained according to each algorithm are recorded to facilitate the tracking and analysis of abnormal events afterwards.
[0023] The number of data acquisition gateways and client computers is determined according to the actual application scenario. The present invention adopts the most common conventional relational database SQL server 2012, which can directly or indirectly receive the dump data of the data acquisition gateway. The parameters of the data acquisition gateway dump are not limited to three.
[0024] Compared with the prior art, the present invention avoids the open-and-close approach of setting a scheduled task on the server side, and periodically monitors the working status of each data acquisition gateway by active access, or each data acquisition gateway sends specific information to the server side regularly and periodically. Instead, it combines active dumping of data acquisition gateways, conventional relational databases, and monitoring system software algorithm analysis to reduce the explosive data processing pressure on the server side and the occupation and waste of network resources, thereby greatly improving the early warning response speed.
Claims
1. A method for monitoring the working status of a data acquisition gateway, characterized in that: The method connects a data acquisition gateway installed on site, a server installed with a conventional relational database and a client computer installed with monitoring system software into a local area network through a bus; each data acquisition gateway selects N data sources connected to it, selects a parameter from the real-time data collected by each data source, and uses the data dump function of the data acquisition gateway to periodically dump the quality stamps of the N parameters, the current time and the code name of the data acquisition gateway to the conventional relational database on the server side; the monitoring system periodically accesses the conventional relational database on the server side, and determines whether the data acquisition gateway is normal based on the information dumped each time by the data acquisition gateway.
2. A method for monitoring the working status of a data acquisition gateway according to claim 1, characterized in that: The specific method by which the monitoring system determines whether the data acquisition gateway is normal through the information dumped by the data acquisition gateway each time is as follows: a. The monitoring system periodically accesses the regular relational database on the server to detect whether the data dumped by the data collection gateway exists; b. If the data dumped by the data acquisition gateway exists, the working state of the data acquisition gateway is judged to be normal according to the quality stamp of the N parameters dumped by the acquisition gateway. The specific judgment method is: if the quality stamps of the N parameters are all abnormal values, the working state of the data acquisition gateway is judged to be abnormal, otherwise the working state of the data acquisition gateway is judged to be normal; c. If the data dumped by the data acquisition gateway does not exist, use the following method to determine the working status of the data acquisition gateway: ① The monitoring system waits for the data acquisition gateway to dump data within the preset waiting period; ② If the monitoring system obtains the data dumped by the data acquisition gateway during the waiting period, determine whether the working status of the data acquisition gateway is normal according to the method in step b; ③ If the monitoring system does not obtain any data dumped by the data acquisition gateway during the waiting period, the monitoring system bypasses the server and directly accesses the data acquisition gateway through the local area network, obtains the quality stamp information of the corresponding gateway according to the pre-configured access parameters, and then judges whether the working status of the data acquisition gateway is normal based on the quality stamp of the gateway. The specific judgment method is: if the quality stamp of the gateway is a normal value, then the working status of the data acquisition gateway is judged to be normal; if the quality stamp of the gateway is an abnormal value, then the working status of the data acquisition gateway is judged to be abnormal.
3. The method for monitoring the working status of a data acquisition gateway according to claim 1, characterized in that: The client computer is equipped with an external audio output device. If the monitoring system determines that the working state of the data acquisition gateway is abnormal, the client computer outputs a voice alarm signal through the audio output device to prompt the staff to deal with the equipment failure in time.
4. The method for monitoring the working status of a data acquisition gateway according to claim 1 is characterized in that: The method for generating the quality stamp of each parameter in the real-time data collected by the data collection gateway is as follows: the data collection gateway obtains real-time data and timestamp from the data source. If both the real-time data and the timestamp are normal, the quality stamp is a normal value, otherwise the quality stamp is an abnormal value.
5. The method for monitoring the working status of a data acquisition gateway according to claim 1, characterized in that: The monitoring system records abnormal working conditions of the data acquisition gateway, which facilitates the tracking and analysis of abnormal events afterwards.
6. The method for monitoring the working status of a data acquisition gateway according to claim 1, characterized in that: The conventional relational database installed on the server is SQL server 2012.
Citation Information
Patent Citations
Gateway number abnormity diagnosis method and device
CN114205259A
Cited By
LED lamp state monitoring method and system
CN120499895A
A method and system for LED lamp status monitoring
CN120499895B
