Building environment long distance control system and method for supervising thereof based on Internet of Things
Technical field
The present invention relates to remote monitoring, relate in particular to a kind of building environment long distance control system and method for supervising thereof based on Internet of Things.
Background technology
Along with human society enters information age of high speed development, network, infotech fast development, network size sharply expands, and the number of devices such as server in the large-scale machine room of enterprises and institutions, storage, network also constantly increase.In the case of increasing, the multiple machine room of the environmental unit that machine room is supporting may be relatively far apart, the maintenance management pattern of traditional machine room " special messenger is on duty, timing inspection " is difficult to meet the requirement of enterprises and institutions' informatization.Because the operation of the equipment such as machine room server, network produces a large amount of heats, fails the many factors such as the aging circuit found in time, may cause the webserver delay machine or storage loss of data, thereby affect people's productive life.Therefore, how to change traditional computer lab management pattern, monitoring, good these network equipments of management, especially in the situation that occurring that may jeopardize equipment normally works, take in time effective safeguard procedures, avoid causing serious economic loss, become network device management personnel problem in the urgent need to address.
Publication number is the Chinese patent application of CN189203A, a kind of unattended equipment room Power and environment centralized monitoring method is disclosed, this method for supervising related the environment monitored of monitoring unit and dynamic date by data acquisition and control module, intelligent air condition subsystem, intelligent power subsystem gathers, after processing, industrial computer passes to communication server through router and fire wall to internet and GSM/GPRS modulator-demodular unit, be transferred to database and workstation through LAN (Local Area Network) again, the long-range data of checking each machine room of workstation maintainer, and be transferred to data acquisition and control module to passing control command under field terminal unit through industrial computer, intelligent air condition subsystem, intelligent power subsystem is controlled its operation, that is to say, communication server is by GSM/GPRS modulator-demodular unit, the router of Internet or dedicated fibre optical network and fire wall, obtain from each field terminal unit, and be saved in database server by internal network, the control command of workstation is sent to corresponding field terminal unit in time.Therefore, the environmental data collecting of field terminal unit and monitoring channel and watch-dog control channel are same passages.Be non-open type to the control of on-site supervision object, once need control machine room control object, must arrive the issue of carrying out control command on the workstation of Surveillance center, this timely disposal to monitored object is very unfavorable.
Summary of the invention
The object of the invention is to overcome the deficiency of above-mentioned prior art, a kind of building environment long distance control system and method for managing and monitoring thereof based on Internet of Things is provided
Above-mentioned purpose is achieved by following technical proposals.
A building environment long distance control system based on Internet of Things, comprising:
Sensor assembly, is located in each machine room, in order to gather the environmental monitoring parameter of setting;
Local monitor computing machine, in order to receive and to transmit described monitoring parameter to the webserver, and this monitoring parameter of Storage and Processing, judge whether monitoring parameter exceedes threshold value, as exceed threshold value, send alerting signal by network;
Bus control unit, in order to connecting sensor module and local monitor computing machine;
The webserver, in order to the monitoring parameter receiving from each local monitor computing machine is input to database, and provides and browses and operation interface to the network terminal;
Computer lab management personnel mobile phone, the alerting signal of sending in order to receive network, to the driver module sending controling instruction of monitored device;
The network terminal, uses so that computer lab management personnel check the monitoring parameter of machine room and the driver module sending controling instruction to monitored device at any time by network;
Master controller, in order to receive the described steering order of network or artificial input, and sends to this instruction the driver module of corresponding monitored device;
The driver module of monitored device, is connected in network, receives the instruction that corresponding master controller sends, and according to instruction, correlation parameter is adjusted to operation.
It is characterized in that of described environment long distance control system, described sensor assembly comprises temperature sensing module, humidity sensor module, smog sensing module and power-off sensing module.
It is characterized in that of described environment long distance control system, described bus control unit comprises, RS485 bus controller and RS232/485 converter, the input end of RS485 bus controller connects described sensing module, output terminal connects the input end of described RS232/485 converter, and the output terminal of RS232/485 converter connects described local monitor computing machine.
It is characterized in that of described environment long distance control system, described master controller is the Single Chip Microcomputer (SCM) system that embeds tele-control system and be provided with RJ45 interface.
The webserver method for supervising of long distance control system, comprising:
Registrant's authentication;
Check corresponding to the various kinds of sensors module operation conditions in a certain machine room by machine room;
Category is checked the sensor assembly operation conditions corresponding to a certain classification in supervisory system;
Back-stage management, comprising: check and adjust management information and check and adjust database number.
The webserver method for supervising of described long distance control system is characterised in that:
Described sensor assembly operation conditions comprises real-time monitoring parameter curve and the historical prison monitoring parameter curve that the corresponding monitoring parameter of each sensing module and time form.
It is characterized in that of the webserver method for supervising of described long distance control system:
Described check and adjust management information comprise, contact person, machine room, school district, role of manager checking and adjusting;
Described check and adjust database number comprise, the checking and adjusting of database volume.
Network-side method for supervising comprises:
Open the serial ports of acquisition monitoring parameter, and judge whether described serial ports is opened;
After described serial ports is opened, IP address, login name and the login password of configuration reading database, connect with the webserver;
To sensor assembly acquisition monitoring parameter;
By the monitoring parameter gathering and the threshold value comparison of setting;
If monitoring parameter is not within the scope of setting threshold, by the SMS messaging alarm platform of network startup local monitor computing machine, SMS messaging alarm platform sends alerting signal to computer lab management personnel mobile phone, and by the parameter read-in database of this collection.
As open, according to the setting of the sensor assembly of this local monitor computing machine place machine room, the webserver carries out corresponding database configuration and is connected, and sets corresponding threshold value according to sensor die block type;
The invention has the advantages that:
(1) the present invention, in the time that system is moved, by the system end setting threshold immediately of C/S model, can adjust threshold value in time;
(2) system expandability is strong, can expand as required, the machine room disperseing is detected in real time, and can realize concentrated monitoring;
(3) system based on C/S model is arranged on local monitor computing machine, has realized the data that collect in sensor are inserted in the database of the webserver, facilitates monitoring parameter check and process.
(4) system based on B/S pattern is arranged on the webserver, has saved special deploying client software, has alleviated system maintenance work, facilitates the upgrading of system.(5) can in the system based on B/S pattern, see real-time dynamicly the real-time change of building environment, keeper also can have a better understanding to building environment at remote port, when building environment breaks down while causing parameter to exceed threshold value, system can be passed through the automatic notification of contacts of mobile phone short messages, and is resolved as early as possible.
Brief description of the drawings
Fig. 1 is the structural representation of system of the present invention.
Fig. 2 is the monitoring management process flow diagram based on C/S model.
Fig. 3 is the runnable interface of the monitoring and control management software based on C/S model.
Fig. 4 carries out the configuration of alarm mobile phone number on the monitoring and control management software runnable interface of C/S model.
Fig. 5 is the monitoring management process flow diagram based on B/S pattern.
Fig. 6 is the shown monitoring management system login page of the network terminal.
Fig. 7 is the management system functional structure chart of environmental parameter monitor based on B/S pattern.
Fig. 8 is the management function structural drawing of main school district network computer machine room.
Fig. 9 is main school district network computer machine room temperature, the dynamic real-time curve of humidity.
Figure 10 is main school district network computer machine room Temperature history
Figure 11 is classification functional structure chart.
Figure 12 is the main interface of back-stage management.
Figure 13 is that contact person checks interface.
Figure 14 adds contact person interface.
Figure 15 is that machine room is checked interface.
Figure 16 adds machine room interface.
Figure 17 is that interface is checked in school district.
Figure 18 adds interface, school district.
Figure 19 is that user checks interface.
Figure 20 adds user interface.
Figure 21 is that database volume is checked interface.
Figure 22 is database volume administration interface.
Figure 23 is that system derives misdata interface by Excel.
Embodiment
Contrast Fig. 1, system of the present invention comprises the driver module of sensor assembly, local monitor computing machine, bus control unit, the webserver, computer lab management personnel mobile phone, the network terminal, master controller and monitored device.This system is divided into three parts according to the Networks Layered Model of Internet of Things: monitor node, main controlled node and remote monitoring terminal.Monitor node is as the sensing layer of Internet of Things, and main controlled node is as the network layer of Internet of Things, and monitor terminal is as the application layer of Internet of Things.
The sensor assembly of monitor node is arranged in each machine room, each machine room arranges corresponding sensor assembly as required, such as temperature sensor module, humidity sensor module, smoke transducer module, current sensor module, voltage sensor module and power-off sensor assembly, in order to gather corresponding parameter, monitor with the environment in machine room and power status.
Each sensor assembly corresponding in machine room is connected with the local monitor computing machine in this machine room by bus control unit, integrated each sensor data acquisition based on C#.NET is installed in local monitor computer operating system, alarm threshold value is set, data this locality or remote storage, the software control platform of the functions such as managerial personnel's cell-phone number arranges, this software platform is the remote control administrative system based on C/S model, be convenient to computer lab management person and carry out related management operation by supervisory control comuter, the SMS messaging being provided by operator is also installed in supervisory control comuter operating system and has sent platform.
Local monitor computing machine in bus control unit and this machine room has connected and composed main controlled node.The bus control unit of the present embodiment comprises RS485 bus controller and RS232/485 converter, the input end of RS485 bus controller connects corresponding sensing module, output terminal connects the input end of described RS232/485 converter, and the output terminal of RS232/485 converter connects described local monitor computing machine.First the signal of each sensor assembly collection is converted to RS-485 level through RS-485 bus controller, then is calculated and be connected with local monitor by RS-232/RS-485 converter.Local monitor computing machine is connected on network, environmental monitoring parameter in Real-time Collection machine room, and in real time to webserver transmitting, monitoring parameter, this monitoring parameter of Storage and Processing simultaneously, environmental monitoring parameter comprises temperature, humidity, smog degree, electric current and voltage etc.Local monitor computing machine is according to the monitoring parameter threshold value of setting, judge the ambient condition in machine room, when monitoring parameter exceedes threshold value, send to alerting signal to network according to predefined computer lab management personnel cell-phone number by SMS messaging alarm platform, related data is sent on managerial personnel's mobile phone immediately, and managerial personnel's mobile phone operates related sensor module by mobile phone sending controling instruction, for example, open air conditioner, or turn off power supply, or the current/voltage of power supply is regulated.
The remote supervision system of SQL database management software and the Web webserver based on C#.NET is installed in the webserver, this system is B/S pattern (Browser/Server, be browser/server, realize by IE browser at user job interface).The webserver is used for the monitoring parameter receiving from each local monitor computing machine to be input to database, and provides and browse and operation interface to the network terminal.In daily servicing, managerial personnel can, by the terminal of any accessible internet or personal mobile phone, check the each environmental parameter of machine room by network at any time.
In each machine room, be provided with master controller, this master controller is the single-chip microcomputer that embeds the remote control administrative system of the Web webserver, described remote control administrative system is by the transplanting uIP embedded TCP/IP stack of increasing income, make computer lab management personnel can utilize web browser login embedded web server, realize the control to the network equipment.Single-chip microcomputer is connected with internet by RJ45 interface, to receive the steering order of network (as mobile phone) or artificial input (as inputted from supervisory control comuter).This single-chip microcomputer is connected with the driver module of the monitored device in this machine room by data line, with transmission network or manually send steering order, and this instruction is sent to the driver module of corresponding monitored device, form calculator room equipment control channel, by this passage, the operation that steering order control driver module is correlated with.Steering order has switching signal, controls driver module and carries out relevant switching manipulation, for example operation to power switch; There is non-switching signal, for example, before powered-down, make the write operation of corresponding stored device to parameter current.
Local monitor computer operating system in system of the present invention has been installed based on C/S model (Client/Server, it is client/server, some functions are placed on the upper execution of FEP (being client computer), other functions are placed on that backend machine (being server) is upper to be carried out) monitoring and control management software, system is carried out to monitoring management by local monitor computing machine, its process flow diagram as shown in Figure 5.Computer lab management personnel enter remote control administrative system by local monitor computing machine, carry out following management process:
S10. managerial personnel open the serial ports of acquisition monitoring parameter;
S11. local monitor computing machine judges whether described serial ports is opened;
As do not open S12-1., system prompt: debug serial port, computer lab management personnel debug serial ports, and system enters the S11 step that again judges whether serial ports is opened;
S12-2. as opened, system is according to the setting of the sensor assembly of this local monitor computing machine place machine room, carry out corresponding database configuration and be connected by the webserver, and set corresponding threshold value according to sensor die block type, acquisition monitoring parameter is sent to the webserver;
S13. system prompt is selected manually to gather or automatically gather.Manually drainage pattern mainly can make user gather and respective handling for the return data of single-sensor, verificating sensor function.
S14. system is by the parameter gathering and the threshold value comparison of setting;
S14-1. as within the scope of setting threshold, by the parameter read-in database of this collection;
S14-2. if not within the scope of setting threshold, by the SMS messaging alarm platform of network startup local monitor computing machine, SMS messaging alarm platform sends alerting signal to computer lab management personnel mobile phone, and by the parameter read-in database of this collection.
The monitoring and control management software runnable interface of C/S model as shown in Figure 3.Software interface mainly comprises the configuration combobox (for example " alarm threshold value " configuration combobox) of associated monitoring parameter acquisition button (for example " temperature detection " button) and acquisition parameter, the configuration (in database server setting and network computer) of database server, configuration, the real-time demonstration of data and the room system mount message of each school district of alarm mobile phone number (being computer lab management person's mobile phone).User enters alarm mobile phone number allocation window by " SetNum " button of clicking in " configuration of alarm mobile phone number " frame.Be used for checking and configuring current alarm mobile phone number by clicking " check/read " button in this window, as shown in Figure 4.The form of alarm mobile phone number is: name+phone number+type of alarm (1/0)+Data Enter time.Type of alarm is 1 or 0, and in the time that type is 1, system software is just configured to alarm mobile phone number by this number." interpolation " button is used for depositing the information such as alarm mobile phone number in database server.Phone number " deletion " button is used for making user to delete corresponding phone number information, only need input corresponding name when deletion.Configure after the information of this part, click the main interface of " exiting " button retrieval system software.
NetWork Operting System in system of the present invention has been installed based on B/S pattern monitoring and control management software, and system is carried out to monitoring management by the network terminal, its process flow diagram as shown in Figure 5.Computer lab management personnel are by the network terminal, and for example mobile phone or network enter this monitoring management system (its system login page is as Fig. 6), browse system operation situation of the present invention and carry out corresponding back-stage management, and the main monitoring management flow process of system is as follows:
S20. registrant's authentication, for example user name, the corresponding login password of administrator role, do not meet the prompting that login identity person system shows " mistake ", the person of meeting enters the remote control administrative system comprising by machine room is checked, the main interface of back-stage management is checked and entered to category, refers to Fig. 7;
S21-1. enter by machine room and check, check the monitoring parameter of the sensor in each machine room, Ji Zhu school district, server room, the main school district of for example Nantong University, open elegant school district, clock show school district, the monitoring parameter state of the each sensor in the network computer machine room of school district, Qidong, the monitoring parameter state of each sensor assembly in example main school district network computer room as shown in Figure 8, each sensor assembly is expressed with real-time curve and history curve that corresponding monitoring parameter and time form, example real time temperature as shown in Figure 9, historical temperature parameter curve shown in humidity parameter curve and Figure 10.
S21-2. enter category and check, each classification is expressed by real-time curve and history curve, temperature curve classification as shown in figure 11.
S21-3. enter back-stage management, back-stage management content comprises: check and adjust management data and check and adjust database data two classes, the main interface of back-stage management of B/S pattern monitoring and control management software is as Figure 12, and the contact management's menu on the main interface of back-stage management, computer lab management menu, campus management menu, Role Management menu belong to checks and adjust management data class.And database volume Administration menu belongs to adjustment database data class; The content of each menu is specific as follows:
(1) contact management's menu, click " checking " under contact management, can draw contact person's information, contact person is added and (can be added at the system end based on C/S model by keeper, also can add at B/S end), for after building environment parameter is not in threshold range, system sends note from these contact persons of trend, notifies them to process accordingly.As shown in figure 13, also can modify in the above and delete; Click and add, can add new contact person, as shown in figure 14.
(2) computer lab management menu, click " checking " under computer lab management, can draw the information of machine room, as a machinery room environmental monitoring system, the management of machine room is necessary, the machine room of a school is variable (as: machine room title, interpolation machine room and deletion machine room etc.), checks machine room as shown in figure 15, also can modify in the above and delete; Click and add, can select corresponding school district to add new machine room, as shown in figure 16.
(3) campus management menu, click is checked, can draw the information of school district, school is a large colony, may divide and have multiple school districts, need to safeguard school district, as shown in figure 17 in the time that school district merges or increase school district.Also can modify in the above and delete; Click and add, can select corresponding school district to add new school district, as shown in figure 18.
(4) Role Management menu, click is checked, can draw user profile, while login, need to input user name due to native system, password and identity are selected, all must maintenance accordingly it, as shown in figure 19.Also can modify in the above and delete; Click and add, can select corresponding role to add new user, as shown in figure 20.
(5) database volume Administration menu: click " checking table capacity ", can draw the respective attributes of each table in database, because data acquisition in the system based on C/S model is by automatic mode, so the value collecting can may reach very large at short notice, so can check table capacity, thereby carry out associative operation, as shown in figure 20.Click " associative operation ", there will be the associative operation of table [measurements], as shown in figure 21.Click associative operation and obtain the reference time data in table [measurements], the statistics of misdata in the time period that selection need to be deleted and table.After the time period of selecting to need to delete, click " confirming to delete ", delete successfully, if the time of input is wrong, occur corresponding prompting.Click " deriving Excel ", system derives wrong data by the mode of Office excel automatically, as shown in figure 22.Click and confirm to delete, delete these wrong data.