Summary of the invention
The objective of the invention is reliability and ease for use in order to improve laboratory environment and monitoring of tools, propose a kind of laboratory environment and equipment wireless monitoring warning system, realized the configurable and ease for use of equipment by design intelligent wireless probe (hereinafter to be referred as wireless probe); Realized the convenience of system layout by short-distance wireless communication technology; By using global system for mobile communications (Global System for Mobile Communication is called for short GSM) module to realize the diversity and the reliability of type of alarm; Realized the real-time of wireless probe parameter update by on-line parameter table simultaneous techniques.
A kind of laboratory environment and equipment wireless monitoring warning system that the present invention proposes, it is characterized in that, this system comprises n wireless probe, 1 base-station node, 1 PC and is arranged on wherein the watchdog routine of establishment in advance, 1 gsm module and user mobile phone that n is a positive integer; Wherein, wireless probe passes through the short-distance wireless communication protocol networking, and connects with base-station node, and base-station node inserts PC by serial ports, and gsm module inserts PC by USB interface, PC operation monitoring program; A described n wireless probe is equipped with different types of sensor, is used to monitor corresponding physical quantity, and reports to the police according to default alert if; The wireless probe information that described base-station node is used for receiving sends to PC, and reports to the police according to default alert if; The watchdog routine of described PC and operation realizes functions such as probe management, system configuration, data storage, chart demonstration, alarming and managing; Described gsm module inserts PC by the USB mouth, sends note or call under the control of watchdog routine, and return the user and answer state; Described user mobile phone is used to receive short message alarm and warning by telephone information.
The course of work of the present invention is: wireless probe is configured into the line data collection according to supervisory system, and send the data to base-station node according to predetermined period, alert event takes place after, wireless probe uses sound or the flicker of LED lamp to report to the police according to alert if, base-station node receives this data, can use sound or the flicker of LED lamp to report to the police according to the alert if of respective wireless probe equally, the base station is transmitted to PC after receiving data, watchdog routine storage data, draw a diagram, generate alert event, and call or send the user mobile phone of note to appointment according to default alert if, the mobile phone of recording user is charged to database after answering the result.
Characteristics of the present invention and effect
The first, realized the configurable and ease for use of equipment by design intelligent wireless probe;
Wireless probe can work alone among the present invention, moves at equipment, can play a role equally in the transportation; Wireless probe contains single-chip microcomputer, can change parameter at any time according to user's needs, and range of application is more extensive.
The second, realized the convenience of system layout by short-distance wireless communication technology;
Wireless probe uses Zigbee short-distance wireless communication protocol networking among the present invention, and connects with base-station node, the restriction that the use of wireless technology can omit and connect up, and it is more convenient to make equipment install;
Three, the diversity and the reliability of type of alarm have been realized by gsm module;
Adopted the alarm module of gsm module rather than encapsulation, manage by watchdog routine, can the warning object be set separately to each incident of each kind equipment, type of alarm (as note, note+phone, sound, LED lamp), and can recording user mobile phone state (shut down, answer, hang up, no signal etc.), realize breadboard refinement management.
Four, realized the real-time of wireless probe parameter update by on-line parameter table simultaneous techniques
Among the present invention, watchdog routine is provided with systematic parameter and each device parameter, and parameter list at first is buffered in base-station node, and wireless probe upgrades self parameter when sending data, need not probe and keep constantly connecting, under the situation of low energy consumption, satisfied probe parameter reliability of updating and real-time.
Embodiment
The present invention proposes a kind of laboratory environment and equipment wireless monitoring warning system, reaches embodiment in conjunction with the accompanying drawings and is described in detail as follows:
A kind of laboratory environment that the present invention proposes and equipment wireless monitoring warning system structure are formed as shown in Figure 1, native system comprises n wireless probe, 1 base-station node, 1 PC and is arranged on wherein the watchdog routine of establishment in advance, 1 gsm module and user mobile phone that n is a positive integer; Wherein, wireless probe is by short-distance wireless communication agreement (as the Zigbee agreement) networking, and connect with base-station node, base-station node links to each other with PC by serial ports, gsm module links to each other with PC by the USB mouth, PC operation monitoring program, user mobile phone are set up by GSM network and gsm module and are got in touch; A described n wireless probe is equipped with different types of sensor, is used to monitor corresponding physical quantity, and according to pre-conditioned warning; The wireless probe information that described base-station node is used for receiving sends to PC, and according to pre-conditioned warning; The watchdog routine of described PC and operation realizes functions such as probe management, system configuration, data storage, chart demonstration, alarming and managing; Described gsm module sends note or calls under the control of watchdog routine, and returns the user and answer state, and described user mobile phone is used to receive short message alarm and warning by telephone information.
The monitoring flow process of PC of the present invention comprises system's setting, data processing, event handling three parts, wherein,
System's setting comprises setting user information and (comprises name and phone number in the monitoring flow process of the present invention, after alert event takes place promptly to this user to send short messages, the mode of making a phone call is reported to the police), the threshold value of respectively popping one's head in of setting in real time (stores the PC database into and is published to base-station node, wireless probe upgrades threshold value automatically with the base-station node communication time), the temperature sensor threshold value of surveying liquid nitrogen container temperature and liquid level in the present embodiment is set to-180 to-195 ℃, the temperature sensor threshold value of surveying indoor temperature is set to 25 to 32 ℃, the humidity sensor threshold value of surveying indoor humidity is set to 40% to 80%, temperature sensor threshold value value of establishing of surveying refrigerator temperature is 3 to 5 ℃, the humidity sensor threshold value of surveying refrigerator humidity is set to 20% to 60%, the C02 sensor threshold value of surveying C02 incubator C02 concentration is set to 5% to 8%, type of alarm (note or phone add note, and this parameter is kept in the database of PC) of each alert event (as exceed threshold value be a kind of alert event) etc. is set.
Flow chart of data processing may further comprise the steps shown in Fig. 2 (a) in the monitoring flow process of the present invention:
1) PC receives the raw data that base-station node is sent from serial ports;
2) raw data is converted to the internal system data layout;
3) judge that whether the data after the conversion exceed current threshold value, then forward step 4) to if exceed, otherwise forward step 1) to;
4) generate alert event, and alert event is added in the alert event formation, forward step 1) to.
The event handling flow process may further comprise the steps shown in Fig. 2 (b) in the monitoring flow process of the present invention:
1) checks the alert event formation;
2), otherwise forward step 1) to if there is incident pending then forward step 3) in the alert event formation;
3) according to article one incident (as make a phone call, send short messages) in the type of alarm processing events formation that is provided with;
4) generate above-mentioned incident result (as the user receive calls, hang up the telephone, do not answer, note sends the information that successfully waits), forward step 1) to.
The embodiment of each building block of the present invention constitutes and the position is set and is described in detail as follows:
PC that comprises among the present invention and base-station node, gsm module put together, and base-station node is connected to PC by serial ports, and gsm module is connected to PC by the USB mouth.In the present embodiment wireless probe comprise according to measurement liquid nitrogen liquid level and the wireless probe of temperature of function mounting on liquid nitrogen container, be installed in temperature, humidity in the measuring chamber on the wall wireless probe, be installed in temperature, humidity in the measurement refrigerator on the refrigerator wireless probe, be installed in the wireless probe of the measurement C02 concentration on the C02 incubator; Also can use but be not limited to measure one or more wireless probes of pH value, wind speed etc., be used to realize comprehensive monitoring laboratory environment and equipment.
Gsm module embodiment selects the DG-U1A gsm module that has USB interface for use among the present invention;
PC embodiment among the present invention adopts Pentium 4 above main frames, the above operation of 1GHz dominant frequency, and internal memory 512MB,
Hard disk free space 200MB; Watchdog routine wherein adopts Visual C++2005 to work out;
Each wireless probe is formed embodiment as shown in Figure 3 among the present invention.This wireless probe comprises LED lamp, hummer, sensor, controller, short-distance wireless communication module, battery, external power supply and power management module; Wherein, controller respectively with sensor, the short-distance wireless communication module is two-way is connected, the LED lamp links to each other with the output terminal of controller respectively with hummer, battery, external power supply link to each other with the input end of power management module respectively, and the output terminal of power management module links to each other with sensor, controller, short-distance wireless communication module respectively.
It is Temperature Humidity Sensor SHT10 (being used in the incubator and indoor temperature and humidity measurement) and temperature sensor PT100 (being used for level detection and temperature detection in the liquid nitrogen container) that the sensor of above-mentioned wireless probe embodiment uses, also can use but be not limited in the sensors such as CO2, pH value, wind speed one or more, be used to realize comprehensive monitoring laboratory environment and equipment;
Above-mentioned wireless probe embodiment short-distance and medium-distance wireless communication module and controller adopt the integrated chip CC2430 that supports the Zigbee agreement; Controller is used for heat transfer agent is sampled, and whether alarms functions such as stored parameter according to threshold decision; Wireless communication module is used to send the data to base-station node and reaches from the base-station node undated parameter;
The power management module of present embodiment adopts chip CN3051, is in charge of battery and external power supply;
Adopt chargeable lithium cell as power supply among the above-mentioned wireless probe embodiment, probe was preferentially selected external power supply for use when external power supply was enabled.
Each wireless probe workflow of above-mentioned wireless probe embodiment may further comprise the steps as shown in Figure 4:
1) self check after wireless probe powers on;
2) after self check is passed through, check whether there is the Zigbee network, if exist then at first add network;
3) controller of wireless probe carries out continuous sampling and average according to default sample frequency to sensor, once samples in 60s in the present embodiment, and 32 data of at every turn sampling average;
4) judge whether wireless probe has added network, if added then change step 5), if add then change step 7);
5) forwarding step 3) in the mean value of sampled data to base-station node, and wait for that base-station node responds, if notice has sample frequency and threshold value to upgrade in responding, then change step 6) otherwise the commentaries on classics step 7);
6) obtain new sample frequency and threshold value, the former sample frequency and the threshold value of update controller stored are changeed step 7);
7) when the mean value of sampled data in the step 3) exceeds current threshold value, the wireless probe controller changes step 3) after starting sound and light alarm, otherwise the step 3) of directly walking around.
Base-station node embodiment of the present invention forms as shown in Figure 5.This node comprises LED lamp, hummer, controller, short-distance wireless communication module, serial port chip, battery, external power supply and power management module; Wherein, controller respectively with serial port chip, the short-distance wireless communication module is two-way is connected, the LED lamp links to each other with the output terminal of controller respectively with hummer, battery, external power supply link to each other with the input end of power management module respectively, and the output terminal of power management module links to each other with serial port chip, controller, short-distance wireless communication module respectively.
The short-range wireless communication module of above-mentioned base-station node and controller are the same with wireless probe, and present embodiment is selected the CC2430 chip for use; The serial port chip purpose is to realize the both-way communication of base-station node and PC, and present embodiment is selected the max3232 chip for use;
The power management module of above-mentioned base-station node is identical with wireless probe, management battery and external power supply; Present embodiment adopts chargeable lithium cell as power supply, and the wireless video node was preferentially selected external power supply for use when external power supply was enabled.
The base-station node workflow of present embodiment may further comprise the steps as shown in Figure 6:
1) self check after base-station node powers on;
2) base-station node is connected to PC;
3) set up the Zigbee network;
4) receive the wireless probe data, this data forwarding is arrived PC;
5) according to the wireless probe address information, judge whether wireless probe needs to upgrade sample frequency and threshold value, if, change step 6), otherwise, step 7) changeed;
6) send new sample frequency and threshold value to wireless probe, change step 7);
7) whether the data of judging received wireless probe exceed threshold value, if exceed, then change step 4) behind the sound and light alarm, otherwise directly change step 4).