Wisdom water utilities monitored control system

文档序号:698005 发布日期:2021-05-04 浏览:8次 中文

阅读说明:本技术 一种智慧水务监控系统 (Wisdom water utilities monitored control system ) 是由 邹清川 邹焕鑫 谢日庆 高海杰 杨庆国 张伟瑜 于 2019-10-31 设计创作,主要内容包括:本发明涉及自动化控制领域,尤其一种智慧水务监控系统。一种智慧水务监控系统,其特征在于,其包括数据采集模块1、MCU控制单元2、控制模块3、执行机构4、子站点客户端5、服务器平台接口6、远程控制终端7;所述的数据采集模块1采集数据并通过485总线电性相联MCU控制单元2,所述的MCU控制单元2电性相联控制模块3,所述的控制模块3和执行机构4电性相联;所述的MCU控制单元2与子站点客户端5电性相联,所述的子站点客户端5通过TCP/IP协议同服务器平台接口6建立通讯关系,所述的服务器平台接口6电性相联远程控制终端7;本发明的有益效果是:具有成本低廉,系统扩展性强,大大提升了控制系统智能化水平。(The invention relates to the field of automatic control, in particular to an intelligent water affair monitoring system. An intelligent water affair monitoring system is characterized by comprising a data acquisition module 1, an MCU (microprogrammed control Unit) 2, a control module 3, an execution mechanism 4, a substation client 5, a server platform interface 6 and a remote control terminal 7; the data acquisition module 1 acquires data and is electrically connected with the MCU control unit 2 through a 485 bus, the MCU control unit 2 is electrically connected with the control module 3, and the control module 3 is electrically connected with the actuating mechanism 4; the MCU control unit 2 is electrically connected with a sub-site client 5, the sub-site client 5 establishes a communication relation with a server platform interface 6 through a TCP/IP protocol, and the server platform interface 6 is electrically connected with a remote control terminal 7; the invention has the beneficial effects that: the method has the advantages of low cost and strong system expansibility, and the intelligent level of the control system is greatly improved.)

1. An intelligent water affair monitoring system is characterized by comprising a data acquisition module (1), an MCU control unit (2), a control module (3), an execution mechanism (4), a substation client (5), a server platform interface (6) and a remote control terminal (7); the sewage treatment system is characterized in that the data acquisition module (1) acquires data of a sewage station and is electrically connected with the MCU control unit (2) through a 485 bus, the MCU control unit (2) is electrically connected with the control module (3) through the 485 bus, the control module (3) is electrically connected with the execution mechanism (4) so as to facilitate operation, and the execution mechanism (4) acts on the sewage station and acquires related data through the data acquisition module (1); the MCU control unit (2) is electrically connected with the sub-site client (5) for data conversion, the sub-site client (5) establishes a communication relation with the server platform interface (6) through a TCP/IP protocol, and the server platform interface (6) is electrically connected with the remote control terminal (7) for remote monitoring; the actuating mechanism (4) is motor equipment of a sewage station.

2. The intelligent water affair monitoring system according to claim 1, wherein the data collection module (1) is divided into a sewage data collection module (1) and an equipment data collection module (1).

3. The intelligent water affair monitoring system according to claim 2, wherein the device data acquisition module (1) comprises a current acquisition module and a pressure and temperature monitoring module.

4. The intelligent water affair monitoring system according to claim 1, wherein the sewage data collected by the sewage data collection module (1) includes data of sewage effluent ammonia nitrogen NH3, influent flow FT, dissolved oxygen DO, pool depth H, and the like.

5. The intelligent water affair monitoring system according to claim 1, wherein the motor device data collected by the device data collecting module (1) includes data such as fan pressure P, motor current I, and ambient temperature T.

6. The intelligent water affair monitoring system according to claim 1, wherein the sub-site client (5) is constructed by a raspberry pi as a control core and a raspberry pi embedded system, the sub-site client (5) and the MCU control unit (2) form data conversion, and connect the converted data to the server platform interface (6) for controlling the remote control terminal (7).

7. The intelligent water affair monitoring system according to claim 1, wherein the control module (3) comprises a main control program module, a control method module, a communication method class module, a routing module and a nodejs library module.

8. The intelligent water affair monitoring system according to claim 1, wherein the control module (3) adopts a form of a configuration file to increase or decrease the module.

9. An intelligent water affairs monitoring system according to claims 1 and 9, wherein the control module (3) further comprises a routing module as a slave function module.

Technical Field

The invention relates to the field of automatic control, in particular to an intelligent water affair monitoring system.

Background

Under the continuous development and requirements of new socialist rural areas, the country advocates to protect the green water mountain. Rural ecological protection receives social attention, so more and more rural sewage stations are developed and built. However, many rural sewage treatment stations are relatively remote and dispersed, and sewage treatment equipment and sewage quality parameters lack effective monitoring. Therefore, the site equipment needs to be remotely monitored in an unattended or unattended manner.

The cross-regional remote control is realized by a network technology, and currently, two commonly used remote monitoring methods are available: one is that on the basis of the original control system, a third-party remote module is added, and data interaction is carried out by utilizing network service provided by a remote module manufacturer; and the other type of the system is cooperated with a network operator on the basis of constructing a local control system, and is accessed to a remote network special line to realize data interaction. The mode of adding a third-party remote module needs to use software to edit and process data of each site, and meanwhile, the data is open to a module manufacturer and is unsafe; in rural sewage treatment stations, due to geographical reasons of the stations, some network lines are not easy to construct, and meanwhile, certain cost is needed for accessing each station to a line; moreover, the traditional PLC control system has higher hardware price, so that a remote monitoring system which is easy to construct a network and has lower cost is needed for the construction of rural sewage stations, and the appearance of the raspberry group monitoring system leads the sewage monitoring field to have new development.

For example, chinese patent, patent No. 201710398174.1, patent name: intelligent remote control water affair system, application date: 31/05/2017, and discloses an intelligent water affair technology.

Disclosure of Invention

In order to solve the technical problem, the invention discloses an intelligent water affair monitoring system, which adopts the following technical scheme:

an intelligent water affair monitoring system is characterized by comprising a data acquisition module 1, an MCU (microprogrammed control Unit) 2, a control module 3, an execution mechanism 4, a substation client 5, a server platform interface 6 and a remote control terminal 7; the data acquisition module 1 acquires data of a sewage station and is electrically connected with the MCU control unit 2 through a 485 bus, the MCU control unit 2 is electrically connected with the control module 3 through the 485 bus, the control module 3 is electrically connected with the actuating mechanism 4 so as to facilitate operation, and the actuating mechanism 4 acts on the sewage station and acquires related data through the data acquisition module 1; the MCU control unit 2 is electrically connected with a sub-site client 5 for data conversion, the sub-site client 5 establishes a communication relation with a server platform interface 6 through a TCP/IP protocol, and the server platform interface 6 is electrically connected with a remote control terminal 7 for remote monitoring; the actuating mechanism 4 is a motor device of a sewage station.

The data acquisition module 1 is divided into a sewage data acquisition module 1 and an equipment data acquisition module 1.

The equipment data acquisition module 1 comprises a current acquisition module and a pressure and temperature monitoring module.

The sewage data collected by the sewage data collection module 1 comprises data such as sewage outlet ammonia nitrogen NH3, inlet water flow FT, dissolved oxygen value DO, pool depth H and the like.

The motor device data collected by the device data collection module 1 include data such as fan pressure P, motor current I and ambient temperature T. The sub-site client 5 is constructed by taking a raspberry pi as a control core and through a raspberry pi embedded system, the sub-site client 5 and the MCU control unit 2 form data conversion, the converted data is connected to the server platform interface 6, and then the remote control terminal 7 is controlled.

The control module 3 comprises a main control program module, a control method module, a communication method module, a routing module and a node js library module.

The control module 3 adopts a configuration file form increase and decrease module.

The control module 3 also comprises a routing module as a slave function module.

The invention has the beneficial effects that: compared with the prior art, the invention has the following advantages:

1. the invention utilizes the computer network technology to construct a remote monitoring system, and solves the problem that the equipment in remote areas is unattended or unattended;

2. the invention combines the raspberry pie and the embedded system, has low cost, strong system expansibility, particularly flexible communication, and is not dependent on a third-party module;

3. the invention utilizes a computer data transmission mode, can transmit and process larger data, and particularly processes a large amount of equipment information and water quality data. The intelligent level of the control system is greatly improved.

Drawings

FIG. 1 is a schematic diagram of the structure of the present invention

FIG. 2 is a software framework diagram of the present invention

FIG. 3 is a logical relationship diagram of software

FIG. 4 is a configuration file flow diagram

FIG. 5 is a block diagram showing a module connection process

FIG. 6 is a flow chart of data collection

FIG. 7 is a flow chart of server communication

FIG. 8 is a flowchart of interface operation

Data acquisition module 1, MCU control unit 2, control module 3, actuating mechanism 4, sub-site client 5, server platform interface 6, remote control terminal 7

Detailed Description

Example 1: the invention is described in detail below with reference to the following figures:

the invention is based on a microcomputer raspberry pi as a core hardware frame, and realizes the functions of data acquisition, detection, control and network communication of sewage equipment.

The MCU control unit 2 of the invention adopts intelligent water affair monitoring system software (as shown in figure 2) provided with a Client/Server structure. The system software adopts a newer development platform in recent years, socket is adopted for bottom layer communication, a software monitoring interface is provided, and data processing capacity and mobile terminal expansibility are greatly improved.

The monitoring system is composed of a Server, a Client, a main control module and a submodule. The Server is only used as a data transfer interface, and the main function of the system is a control module 3 (comprising a main control module and sub-modules). The system subfunction adopts modularized encapsulation to enhance expansibility.

In the system, an MCU control unit 2 serves as a Server, a substation Client 5 serves as a Client, and a control module 3 comprises a main control module and sub-modules.

The system software is solidified on the MCU control unit 2 and is divided into two parts, namely a system logic control design and a communication design. The system logic control comprises: data acquisition, data conversion, operating parameters, reading configuration parameters, data processing, control output and the like (as shown in fig. 3); the communication section includes: the Server communicates with the Client, and the Client performs data conversion and reads a converted control command (as shown in fig. 2). The two parts can be designed to operate independently and not to influence each other. Such as when the communication part fails, the control operation of the system is not influenced.

The raspberry group-based sewage remote monitoring system mainly comprises a data acquisition module 1, an MCU (microprogrammed control Unit) 2, a control module 3, an execution mechanism 4, a substation client 5, a server platform interface 6 and a remote control terminal 7;

as shown in fig. 1, the data acquisition module 1 acquires data of a sewage station and data of motor equipment and is communicated with the MCU control unit 2 through a 485 bus. The MCU control unit 2 is electrically connected with the control module 3 through a 485 bus; the control module 3 is electrically connected with the actuating mechanism 4 so as to facilitate operation, the actuating mechanism 4 acts on a sewage station and the data acquisition module 1 acquires relevant data, so the data acquisition module 1 is divided into the sewage data acquisition module 1 and the equipment data acquisition module 1, and the equipment data acquisition module 1 comprises a current acquisition module and a pressure temperature monitoring module (the equipment data acquisition module 1 comprises the current acquisition module so as to acquire data of current I of each motor and can also be provided with corresponding modules according to needs); the sewage data collected by the sewage data collection module 1 comprises data such as sewage outlet ammonia nitrogen NH3, inlet water flow FT, dissolved oxygen value DO, pool depth H and the like, and the motor device data collected by the device data collection module 1 comprises data such as fan pressure P, motor current I and environment temperature T.

The MCU control unit 2 is electrically connected with the sub-site client 5 for data conversion, the sub-site client 5 establishes a communication relation with the server platform interface 6 through a TCP/IP protocol, and the server platform interface 6 is electrically connected with the remote control terminal 7 for remote monitoring; the actuating mechanism 4 is a motor device of a sewage station, and the sewage station is provided with a sewage treatment device and a monitoring device so as to implement operation.

The data acquisition module 1:

description of the data acquisition module 1:

the analog quantity data which the software needs to collect have two types: 4-20mA analog quantity signal and 0-5V analog quantity signal. The configuration files are sewage data parameters of 'analogquantityMaParameters' and device currents of 'ElectrocCurrentsParameters', and the used method is the same as the following module extension configuration.

The data collected by the data collection module 1 has two types: analog quantity data and switching value data, the switching value data being motor device data. The data acquisition method comprises the steps of utilizing a 485 bus to perform polling scanning, establishing a polling command queue, and refreshing data at intervals. For analog quantity data, after the acquisition is completed, the data needs to be subjected to engineering quantity conversion.

During data collection, a polling scan detects the actual presence of a module connected to the system. If the system module is not detected, all registers for collecting data are cleared. The error information output is mainly to detect the error on the bus and then print out the error on the system console. The data acquisition flow is shown in fig. 6.

There are two data acquisition functions, which are respectively analog quantity data acquisition function client. The specific information is as follows:

the analog function reads a word-by-word value, and needs to know the address of the device and the length of the read.

Function name: readholdingregisters (address, length)

Function(s) Analog data acquisition
Prototype
Parameter name Initial value
address Is free of
length Is free of
Return to Is free of

The switching value state reading function is similar to the analog value reading function, and the address of the device and the length needing to be read are also required to be known. But the switching values read are boolean values.

Function name: readcoils (address, length)

The analog quantity is converted into engineering quantity unit after being collected, and the converted data, the maximum range and the minimum range are transmitted according to the requirement of the control system. The function getValue (data, minValue, maxValue) is used.

Function name: getValue (data, minValue, maxValue)

Function(s) Engineering volume data conversion
Prototype Is free of
Parameter name Initial value
data Is free of
minValue Is free of
maxValue Is free of
Return to value

MCU control unit 2:

the MCU control unit 2 is a micro control unit. A Micro Control Unit (MCU), also called a Single Chip Microcomputer (Single Chip Microcomputer) or a Single Chip Microcomputer, is a Chip-level computer formed by appropriately reducing the frequency and specification of a Central Processing Unit (CPU), and integrating peripheral interfaces such as a memory, a counter (Timer), a USB, an a/D converter, a UART, a PLC, a DMA, and the like, and even an LCD driving circuit on a Single Chip, and performing different combination control for different application occasions. The MCU control unit 2 is communicated with the control module 3 through a 485 bus. The MCU control unit 2 is electrically connected with the substation client 5 for data conversion.

The MCU control unit 2 is provided with intelligent water affair monitoring system software with a Client/Server structure, the bottom layer communication of the system software adopts socket, and a software monitoring interface (which can be written into data acquisition software for various programming languages) is provided, so that the data processing capacity and the expansibility of a mobile terminal are greatly improved (see figure 2).

The control module 3:

1. the control module 3 is electrically connected with the actuator 4 for operation; the control module 3 comprises a main control program module, a control method module, a communication method module, a routing module and a node js library module. The control module 3 adopts a configuration file form to increase and decrease modules. The control module 3 also includes a routing module as a slave function module.

2. Respective explanations regarding the control module 3:

the detailed module information table of the system is as follows

Name (R) Brief description of the function
Master control program Implementing system control logic
Control method module For the main control programMethod for packaging
Configuration file For configuring operating parameters and extensions
Communication method module Method for providing encapsulation for Server and Client communication
Routing module Method for providing local area network access operation parameter
node js library module Software underlying support library

2.1 Formal content description about configuration files:

the software using method of the system mainly comprises the steps of using a configuration file and modifying a control function, wherein the configuration file mainly has the main functions of preliminarily configuring the ID and the name of each station, the automatic starting and stopping time of a motor pump and the starting and stopping liquid level, and can be expanded; the modification of the control function needs to be carried out at the corresponding position of the main program, and the logic is changed according to the actual requirement. And after the configuration and the modification, the system can be restarted to operate after the file is saved. The function of which is explained below:

the configuration file name is "SiteConfig", and the parameters are as follows:

{

″ID″:″XXX″,

″name″:″XXX″

}

the ID in the file is the serial number of the site to which the debugging personnel belongs, and the ID is determined by negotiation according to the needs and is numbered according to the sequence of debugging time so as to provide ID identification in network communication.

"name" is the name of the configuration site, typically filled in based on the actual name.

2.2 extended configuration Using add-drop modules for configuration files

The method is mainly used for configuring the switching value module and is used for corresponding actual equipment to the point position of the module. There are two files here, the device name file "appliances", the device point location configuration file "appliances to relayconfig" and the relay module file "RelayParameters". "Equipment" is as follows

[

The fan is arranged on the front end of the fan,

a clean water pump is arranged on the water tank,

"# 1 Lift Pump",

"# 2 Lift Pump",

"# 1 reflux pump",

"# 2 reflux pump",

......

]

the names in the brackets are names corresponding to the motor pumps of the sewage station, the names are filled according to actual needs, the names need to be distinguished, otherwise, the same names can appear at different point positions according to information fed back when software runs. "EquismentToRelayConfig" is as follows:

[{

″ID″:3,

″index″:1,

"name": the fan is arranged on the front end of the fan,

″code″:″fj″},

{″ID″:3,

″index″:2,

"name": a clean water pump is arranged on the water tank,

″code″:″qsb″},

......

in the above parameters "ID" is the module number; "index" is the sequence number of the module's corresponding hardware point; the contents of "name" and "code" are determined by the commissioning personnel, and are typically filled in as per the actual device. Note that the order corresponds one-to-one to the name inside "facilities".

The "RelayParameters" file serves as the basic configuration of the module, as follows:

[

{″ID″:3,

″length″:10,

″address″:″0″,

″type″:0}

]

the parameter ID is the ID number of the module in 485 communication and is preset by a manufacturer or a debugging person;

"length" is the number of points output or input by the module;

"address" is the address starting address, specified by the product manufacturer;

"type" is a register type.

Note that the module can be arbitrarily expanded, and if a module needs to be added, parameters such as { "ID" are filled in parentheses according to the original format: 16, "length": 12, "address": "0 x 0008", "type": 0, and separated by commas.

2.3 operating parameter configuration function description

The configuration file names are 'SiteRunParameter', 'FanlRunTimes' and 'FanlRunTimes', and the configuration file names are respectively used for configuring a liquid level parameter, a temperature parameter and a primary fan operation time parameter of the site automatic operation. The meaning of the parameters can be determined according to the English name of the configuration file, and the change of the parameters can realize the change of the program automatic operation logic. Such as "SiteRunParameter"

{

"ID": 0,// Module ID

"clean PumpStopValue": 1,// clear water pump automatic stop liquid level/m

"clean PumpStartValue": 2,// clean water pump automatic start liquid level/m

"hostppumpstpvalue 1": 1,// 1# lift pump automatic stop liquid level/m

"hostpumpstartvalue 1": 1.5,// 1# lift pump automatic start liquid level/m

"hostppumpstpvalue 2": 1,// 2# lift pump automatic stop liquid level/m

"hostpumpstartvalue 2": 1.6,// 2# lift pump automatic start liquid level/m

"fanStopTemperture": 28,// radiator fan off temperature/° c

"fanStartTemperature": 35,// radiator fan activation temperature/° c

......

}

2.4 control logic modification of functional Specifications

If the existing automatic control function is not satisfactory and needs to be modified, a program needs to be opened by using software VS code in the raspberry dispatching system, the program is modified in a main program app.js, the program is saved after the modification, and the system is restarted.

The software adopted by the system provides a file configuration function so as to improve the flexibility and the expansibility of the system. Including site parameter configuration, operation parameter configuration, and extension module configuration (see fig. 4). The above parameter configuration needs to modify the configuration file manually, and the configuration file can be changed according to actual requirements. Note that the system needs to be saved and restarted after the modification.

The external module and the system are connected by adopting a 485 bus. The system can be Windows or Linux and is connected with the module through a USB-to-serial port. Different serial paths need to be set when different systems are selected. The serial port setting function block is as follows:

function name: client. connected RTU ()

According to the information after the module configuration, after the module is connected to the bus, the system can read the state of the module according to the configuration information and start and stop the module output according to the program requirement. The control flow is shown in FIG. 5:

the functions needed to be used by the control module 3 program output in fig. 5 are divided into two types:

(1) switch Relay (index, t, callback) using 485 bus communication mode;

(2) open (), which directly drives hardware output;

the Gpio.open () function in the system is only packaged as a software module for standby. The scan read module of fig. 5 is illustrated in detail in the data acquisition module.

Function name: switchRelay (index, t, callback)

Function(s) Control module 3 output
Prototype Is free of
Parameter name Initial value
index 0
t false
Return to callback

The actuating mechanism 4:

the executing mechanism 4 works in the sewage station and the data acquisition module 1 acquires relevant data, the executing mechanism 4 is motor equipment of the sewage station, the motor equipment data reflects the current equipment running state, and the control system judges faults according to the state; and the environment temperature T monitors the temperature and controls the start and stop of the cooling fan.

Substation client 5:

the sub-site client 5 establishes a communication relationship with the server platform interface 6 through a TCP/IP protocol. The sub-site client 5 is constructed by taking a raspberry as a control core and through a raspberry embedded system, the sub-site client 5 and the MCU control unit 2 form data conversion, the converted data is connected to the server platform interface 6, and then the remote control terminal 7 is controlled.

Server platform interface 6: the server platform interface 6 is electrically connected with the remote control terminal 7 for remote monitoring

The interface mainly refers to an interface of software, and the Client terminal provides an interface name. And continuously receiving the instruction from the Server end in the process of communicating with the Server end. The instructions are directly used as interface objects and provide upper software access for control.

The Client monitors the command data sent by the Server (receives the interface data), then continuously analyzes the data, and judges the interface attribute and controls (writes data and captures data) after analyzing the data (as shown in fig. 8).

Description of communication function of the substation client 5 and the server platform interface 6:

after the data conversion, the data needs to be sent to the server. The system communication adopts Socket and server connection. The Client communication establishing process firstly establishes a monitoring port number and a server IP and then monitors data. In addition, in order to improve the fault recovery capability and fault tolerance rate of the system, the received packet data needs to be detected, and once the failure that the data cannot be received within a certain time is found, the data should be reported and response is made.

Here, a socket is an eventemiter (i.e., the core module of the programming software itself, which is an asynchronous driver framework). It may trigger "connect", "end", "timeout", "drain", "close" events. Thus, it is natural to have "error" as another event that can be triggered.

Therefore, the communication mechanism required by us can be established according to the driving framework. The specific communication flow is shown in fig. 7:

the communication functions used were tcpclient.connect (serverPort, serverp, function () { }) and tcpclient.on. The method is mainly used for setting network parameters and connecting.

Function name: tcpclient. connect (serverPort, serverp, function () { })

Function(s) Network connection
Prototype net.Socket()
Parameter name Initial value
serverPort Is free of
serverIP Is free of
function() Is free of
Return to Callback function ()

Function name: tcpClient. on (string, function () { })

Function(s) Network connection
Prototype net.Socket()
Parameter name Initial value
string Is free of
function() Is free of
Return to Callback function ()

The remote control terminal 7:

the control of the actuating mechanism 4 can be realized through remote data communication, for example, the motor equipment data reflects the current equipment running state, and the control system judges the fault according to the state; and the environment temperature T monitors the temperature and controls the start and stop of the cooling fan. Such as a display screen, a computer or a smart phone.

Sewage station:

the sewage station is provided with sewage treatment equipment and monitoring equipment so as to implement operation.

The operation principle process of the system is as follows:

because the actuating mechanism 4 and the sewage station equipment are electrically connected with the data acquisition module 1, the data acquisition module 1 acquires sewage quality data and equipment operation data of the sewage station and is connected to the MCU control unit 2 through a 485 bus; the related data reaching the MCU control unit 2 enters the sub-site client 5 through data conversion, and real-time monitoring can be realized because the sub-site client 5 and the server platform interface 6 are in two-way communication by using TCP/IP (transmission control protocol/Internet protocol), and the server platform interface 6 and the remote control terminal 7 are also in two-way communication. The data command sent by the remote control terminal 7 reaches the substation client 5 through the server platform interface 6 (reserved interface for facilitating the access of a third party monitoring platform), enters the MCU control unit 2 through data conversion, and then is sent to the execution mechanism 4 by the control module 3 to complete the operation of the corresponding command.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种分析仪器显示面板

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!