Summary of the invention
The present invention will solve to such an extent that technical matters is, Radio Transmission Technology, gas detection technology, multiple sensors application technology and Computer Control Technology are combined, face the dangerous practical problems of toxic and harmful poisoning for petroleum and petrochemical industry personnel operation, provide a kind of Portable toxicity gas controlling device and method thereof, for the operating personnel provides novel individual protection instrument.
For solving the problems of the technologies described above, the invention provides a kind of Portable toxicity gas wireless monitoring device, comprise central monitoring unit and a plurality of detecting instrument,
Described central monitoring unit is used for monitoring management;
Described detecting instrument, be portable set, it further comprises: power module, poisonous gas sensor, signal conditioning circuit, Temperature Humidity Sensor, acceleration transducer, wireless communication module, alarm module, display module, Keysheet module, microprocessor and peripheral circuit thereof.
Described Portable toxicity gas wireless monitoring device may further include clock date module and GPS module.
Described power module further is provided with input end and output terminal;
Described input end links to each other with battery;
Described output terminal can be changed output high pressure, middle pressure, three kinds of power supplys of low pressure;
Described high-voltage power supply output is connected to the power supply port of poisonous gas sensor and signal conditioning circuit;
Described middle voltage source output is connected to the power supply port of alarm module;
Described low-tension supply output is connected to the power supply port of microprocessor, display module, Keysheet module, Temperature Humidity Sensor, acceleration transducer, clock date module, GPS module and wireless communication module.
The signal output of described poisonous gas sensor assembly is connected to described signal conditioning circuit input end;
Described signal conditioning circuit output terminal is connected to the AD translation interface of described microprocessor;
Described acceleration transducer is connected to the spi bus of described microprocessor;
Described wireless communication module, GPS module output terminal are connected respectively to the different UART interfaces of described microprocessor;
Described Temperature Humidity Sensor is connected with described microprocessor by IO mouth Simulation with I 2C bus;
Described display module, alarm module, Keysheet module are connected respectively to the IO interface of microprocessor;
Further be provided with SMA type antennal interface on the described wireless communication module, directly be connected with external antenna.
Described microprocessor is preferably low-power chip MSP430F249.
The mode of operation of described microprocessor is preferably interrupt mode, after initialization is finished, microprocessor just enters low-power consumption mode, timer interrupts waking up microprocessor, microprocessor is started working, judge whether time-delay meets setting value, if meet data and processing and the transmission that just gathers each sensor, send warning according to data processed result.
The mode of operation of described Keysheet module is preferably interrupt mode, and when triggering keyboard, microprocessor is waken up, and carries out the operation of corresponding function.
Described power module, poisonous gas sensor, signal conditioning circuit, Temperature Humidity Sensor, acceleration transducer, wireless communication module, clock date module, GPS module, alarm module and display module can both be controlled its duty by microprocessor, are in dormant state at non-triggered time microprocessor.
Described wireless module preferably adopts the dynamic transmission adjusting working mode, sent one group of data every 5~200 seconds, when the half of detectable concentration value above the preset alarm value, instrument sends frequency linear increase along with concentration raises of data, until reach the full speed operation frequency of one group of data of per second.
For solving the problems of the technologies described above, the present invention also provides a kind of method of operating of described Portable toxicity gas wireless monitoring device, may further comprise the steps:
The first step, the AD converter of the system clock of initialization microprocessor, microprocessor IO port, alarm module, Keysheet module, display module, microprocessor, the UART port of microprocessor, clock date module, Temperature Humidity Sensor, and open the microprocessor interruption;
Second step reads the standard time of GPS module to the clock date modular calibration;
In the 3rd step, show welcome message, latitude and longitude information, humiture information, acceleration information;
In the 4th step, microprocessor reads the date and time information in the clock date module;
The 5th goes on foot, and reads the temperature and humidity information of humiture module;
The 6th goes on foot, and reads latitude and longitude information and the validity flag of GPS module;
The 7th goes on foot, and reads the acceleration information of acceleration module;
The 8th goes on foot, and reads the poisonous gas concentration information of poisonous gas sensor assembly;
The 9th step, comparison gas concentration numerical value and alarm setting value: if gas concentration value greater than default concentration alarming value, the microprocessor driven alarm module sends warning, enters for the tenth step after the warning; If gas concentration value is less than or equal to default concentration alarming value then directly entered for the tenth step;
The tenth step, relatively timing time and Preset Time time-delay, if timing greater than time-delay, the timing zero clearing, microprocessor control wireless communication module sends every detection data;
In the 11 step, display instrument master interface shows every detection data;
Then, the 4th step of circular flow is rapid step by step to the tenth;
If circular flow the 4th step to the tenth step by step in the rapid process key-press module be triggered, then:
The described triggering of microprocessor judges is need to enter the calibrating sensors function or enter the alarm settings function:
If enter the calibrating sensors function, then read zero gas AD value, storage zero gas calibration value, input gas nominal value, read gas AD value, storage gas calibration value; Return the circulation in the 4th step to the 11 step after becoming afterwards;
If enter the alarming value function is set, then accepts alarming value and store alarms value; Return afterwards the circulation in the 4th step to the 11 step;
After then driving the alarm module stop alarm, warning function returned for the 4th step to the 11 circulation that goes on foot if enter to eliminate.
Portable toxicity gas controlling device of the present invention can provide the comprehensive monitoring to operating personnel's activity, not only can detect and warning function for operating personnel self provides, and also can allow the supervisor of pulpit understand at any time operating personnel's state.Existing detector only can detect the volumetric concentration value of a certain or several poisonous gas, and when surpassing the warning limit value prompting user, and apparatus of the present invention and detection method thereof are except the concentration value that detects poisonous gas, also detect and the activity attitude of monitoring user, environmental baseline of living in, user's geographical location information, the data that gather are more comprehensive, and data can be real-time transmitted in the central monitoring unit in the pulpit by wireless communication module, check for the regulator.When causing danger situation, the regulator can analyze diverse location immediately, and different personnel's state rationally judges, and sends commander and control command, has greatly improved the ability and the correctness of making response and ageing of grasping field condition.
Embodiment
The present invention relates to a kind of portable instrument and method thereof, in order to reduce electric quantity consumption and to prolong service time of battery, the microprocessor that uses adopts low-power chip MSP430F249, and interrupt mode is adopted in program design, after initialization is finished, microprocessor just enters low-power consumption mode, timer interrupts waking microprocessor up, and microprocessor is started working, and judges whether time-delay meets setting value, if meet the data and processing and the transmission that just gather various sensors, send warning according to data processed result.Processing for key-press input also is to adopt interrupt mode, and when user's operation keyboard, microprocessor is waken up, and carries out the operation of corresponding function.Various external connection modules can be controlled its duty by microprocessor, all are in dormant state at the other times microprocessor, and other peripheral hardwares all are arranged to the lowest power consumption state by microprocessor, greatly save electricity consumption.Wireless module power dissipation ratio when sending data is larger, in order to reduce power consumption, instrument adopts the dynamic transmission regulation technology, the transmission frequency of instrument acquiescence is one group of data of transmission in per 30 seconds, a half that surpasses the preset alarm value when the detectable concentration value, instrument sends frequency linear increase along with concentration raises of data, until reach the full speed operation frequency of one group of data of per second.Design can guarantee to reduce power consumption at most of time at ordinary times like this, does not omit again important data.The present invention is with acceleration transducer, can be stop, falling down or normally patrol and examine (make an inspection tour and check technology and equipment situation) by the data judgement personnel that accelerate, the detected value that cooperates concentration data, can judge whether the user intoxication accident occurs for the supervisor, cooperate gps data can find the position that the poisoner is present, multiple related data is in conjunction with effectively offering help for the operating personnel.The portable instrument that patent of the present invention relates to has the man-machine interfaces such as LCD screen and keyboard input, and instrument ID is by program Lookup protocol when the initialization.
In one embodiment of the present invention, provide a kind of Portable toxicity gas wireless monitoring device, comprised central monitoring unit and a plurality of detecting instrument,
Described central monitoring unit is used for monitoring management;
Described detecting instrument, be portable set, it further comprises: power module, poisonous gas sensor, signal conditioning circuit, Temperature Humidity Sensor, acceleration transducer, wireless communication module, alarm module, display module, Keysheet module, microprocessor and peripheral circuit thereof.
Described Portable toxicity gas wireless monitoring device may further include clock date module and GPS module.
Described power module further is provided with input end and output terminal;
Described input end links to each other with battery;
Described output terminal can be changed output high pressure, middle pressure, three kinds of power supplys of low pressure;
Described high-voltage power supply output is connected to the power supply port of poisonous gas sensor and signal conditioning circuit;
Described middle voltage source output is connected to the power supply port of alarm module;
Described low-tension supply output is connected to the power supply port of microprocessor, display module, Keysheet module, Temperature Humidity Sensor, acceleration transducer, clock date module, GPS module and wireless communication module.
The signal output of described poisonous gas sensor assembly is connected to described signal conditioning circuit input end;
Described signal conditioning circuit output terminal is connected to the AD translation interface of described microprocessor;
Described acceleration transducer is connected to the spi bus of described microprocessor;
Described wireless communication module, GPS module output terminal are connected respectively to the different UART interfaces of described microprocessor;
Described Temperature Humidity Sensor is connected with described microprocessor by IO mouth Simulation with I 2C bus;
Described display module, alarm module, Keysheet module are connected respectively to the IO interface of microprocessor;
Further be provided with SMA type antennal interface on the described wireless communication module, directly be connected with external antenna.
Described microprocessor is preferably low-power chip MSP430F249.
The mode of operation of described microprocessor is preferably interrupt mode, after initialization is finished, microprocessor just enters low-power consumption mode, timer interrupts waking up microprocessor, microprocessor is started working, judge whether time-delay meets setting value, if meet data and processing and the transmission that just gathers each sensor, send warning according to data processed result.
The mode of operation of described Keysheet module is preferably interrupt mode, and when triggering keyboard, microprocessor is waken up, and carries out the operation of corresponding function.
Described power module, poisonous gas sensor, signal conditioning circuit, Temperature Humidity Sensor, acceleration transducer, wireless communication module, clock date module, GPS module, alarm module and display module can both be controlled its duty by microprocessor, are in dormant state at non-triggered time microprocessor.
Described wireless module preferably adopts the dynamic transmission adjusting working mode, sent one group of data every 5~200 seconds, when the half of detectable concentration value above the preset alarm value, instrument sends frequency linear increase along with concentration raises of data, until reach the full speed operation frequency of one group of data of per second.
In another embodiment of the present invention, a kind of method of operating of described Portable toxicity gas wireless monitoring device also is provided, may further comprise the steps:
The first step, the AD converter of the system clock of initialization microprocessor, microprocessor IO port, alarm module, Keysheet module, display module, microprocessor, the UART port of microprocessor, clock date module, Temperature Humidity Sensor, and open the microprocessor interruption;
Second step reads the standard time of GPS module to the clock date modular calibration;
In the 3rd step, show welcome message, latitude and longitude information, humiture information, acceleration information;
In the 4th step, microprocessor reads the date and time information in the clock date module;
The 5th goes on foot, and reads the temperature and humidity information of humiture module;
The 6th goes on foot, and reads latitude and longitude information and the validity flag of GPS module;
The 7th goes on foot, and reads the acceleration information of acceleration module;
The 8th goes on foot, and reads the poisonous gas concentration information of poisonous gas sensor assembly;
The 9th step, comparison gas concentration numerical value and alarm setting value: if gas concentration value greater than default concentration alarming value, the microprocessor driven alarm module sends warning, enters for the tenth step after the warning; If gas concentration value is less than or equal to default concentration alarming value then directly entered for the tenth step;
The tenth step, relatively timing time and Preset Time time-delay, if timing greater than time-delay, the timing zero clearing, microprocessor control wireless communication module sends every detection data;
In the 11 step, display instrument master interface shows every detection data;
Then, the 4th step of circular flow is rapid step by step to the tenth;
If circular flow the 4th step to the tenth step by step in the rapid process key-press module be triggered, then:
The described triggering of microprocessor judges is need to enter the calibrating sensors function or enter the alarm settings function:
If enter the calibrating sensors function, then read zero gas AD value, storage zero gas calibration value, input gas nominal value, read gas AD value, storage gas calibration value; Return the circulation in the 4th step to the 11 step after becoming afterwards;
If enter the alarming value function is set, then accepts alarming value and store alarms value; Return afterwards the circulation in the 4th step to the 11 step;
After then driving the alarm module stop alarm, warning function returned for the 4th step to the 11 circulation that goes on foot if enter to eliminate.
Another embodiment of the present invention comprises central monitoring unit and portable mobile wireless detecting instrument, as depicted in figs. 1 and 2.The portable mobile wireless detecting instrument is made of power module, Liquid Crystal Module, Keysheet module, Temperature Humidity Sensor module, poisonous gas sensor assembly, acceleration sensor module, GPS module, alarm module, wireless communication module, clock date module, microprocessor module.Single assembly uses No. 5 powered battery of 4 joints, and battery is powered to disparate modules respectively through three kinds of different voltages of output behind the power module.Microprocessor MSP430F249 is responsible for the detection and output control of various environmental parameters, Liquid Crystal Module is connected to the IO mouth of microprocessor in the concurrent working mode, the keyboard load module is connected to the IO mouth of microprocessor through resistor network, the humiture module is connected to the IO mouth of microprocessor with I2C bus serial communication mode, poisonous gas sensor assembly output terminal is connected to the AD conversion port of microprocessor behind signal conditioning circuit, the GPS module is connected to the UART mouth of microprocessor with serial communication mode, alarm module divides audible alarm and vibrations to report to the police, hummer, vibration motor drives triode control by the pin of the IO mouth of microprocessor, wireless communication module is connected to another UART mouth of microprocessor with serial communication mode, the interruption of clock date module and communication signal line are connected to microprocessor IO mouth, the collection of simulant signal module is by sampling resistor, the several parts of voltage follow and filtering form, and its output is connected to the AD conversion mouth of microprocessor.Microprocessor receives the interruption from keyboard load module, Temperature Humidity Sensor, acceleration transducer, GPS module, wireless communication module, clock date module and internal clocking, in interrupt service routine, judge it is the interruption that is caused by which module, then change corresponding handling procedure over to.Read keyboard state, humiture data, acceleration information, gps data, clock and date data and be shown on the Liquid Crystal Module and temporary transient storage, send alarm when concentration data surpasses setting value driving alarm module.If internal clocking interrupts then delaying time counting.When the cycle of default setting satisfies or microprocessor when receiving request of data from central monitoring unit by wireless module, microprocessor is combined into the communication character string with the data of storing and sends to wireless communication module, and wireless communication module sends data or the data retransmission that receives is gone out.Receive data is responsible in the central monitoring unit, the serial data that identification is sent by different detecting instruments during receive data is also resolved, according to the different parameters after resolving, display graphics sign on the planimetric map or as required in list box the form with text or trend map show data.Set some logic Rule of judgment in the central monitoring unit computing machine, when logical condition is satisfied in the combination of data, send information to the regulator, the regulator checks data, when thinking certain dangerous situation, send instruction or the different detecting instrument carrier of message notifying by central monitoring unit to instrument, and can take other warnings or rescue measure.
In the again embodiment of the present invention, Portable toxicity gas wireless monitoring device is comprised of detecting instrument and central monitoring unit two parts, as depicted in figs. 1 and 2.Embodiment can be comprised of a central monitoring unit and several detecting instruments.Detecting instrument is portably used by the operating personnel, and central monitoring unit places the pulpit to be managed by the regulator.
Instrument General Implementing structure as shown in Figure 1, detecting instrument comprises power module, poisonous gas sensor (adopting the H2S sensor in the example) and signal conditioning circuit, Temperature Humidity Sensor, acceleration transducer, wireless communication module, GPS module, clock date module, alarm module, display module, Keysheet module, microprocessor and peripheral circuit thereof; Its annexation is: battery output is connected to the power module input end, power module conversion output 12V, 5V, three kinds of power supplys of 3.3V.12V output is connected to the poisonous gas sensor and amplifies sampling module power supply port, 5V output is connected to alarm module power supply port, and 3.3V output is connected to microprocessor, liquid crystal display, keyboard input, Temperature Humidity Sensor, acceleration transducer, GPS module, clock date module, wireless communication module power supply port; The signal output of poisonous gas sensor assembly is connected to the signal condition input end, and the signal conditioning circuit output terminal is connected to the AD translation interface of microprocessor; Acceleration transducer is connected to the spi bus of microprocessor; Wireless communication module, GPS module output terminal are connected respectively to the different UART interfaces of microprocessor; Temperature Humidity Sensor is connected with microprocessor by common IO mouth Simulation with I 2C bus; Display module, alarm module, keyboard, date clock module are connected to the common IO interface of microprocessor; SMA type antennal interface is arranged on the wireless module, directly connect external antenna.
Central monitoring unit structure such as Fig. 2, battery output is connected to wireless module power supply port, and SMA type antennal interface is directly connected to external antenna on the wireless module, and the wireless module serial ports is connected to the serial line interface of supervisory control comuter.
The function declaration of each parts of instrument example is as follows:
Detecting instrument uses No. 5 powered battery of 4 joints, and the process power module produces respectively 3.3V, 5V, 12V voltage is powered to each functional module of instrument.
Fig. 3 a is the 3.3V reduction voltage circuit, adopts chip LT1707 to finish battery to the 3.3V step-down, and circuit is comprised of input filter, output filtering, dividing potential drop feedback unit.The battery output terminal connects three pins of VIN, RUN, SYNC of LT1707, is connected with input filter capacitor C7 simultaneously; Chip I TH pin is through capacitor C 8 ground connection, and the SW end connects inductance L 1 and filter capacitor C9 output 3.3V voltage, and the VFB end connects the common port of R12 and R13.
Fig. 3 b is the 5V mu balanced circuit, adopts chip LT1613 to finish battery to the 5V voltage stabilizing, and circuit is comprised of input filter, output filtering and dividing potential drop feedback unit.Input filter comprises inductance L 3 and capacitor C 15, and the battery output terminal connects the common port of L3 and C15, connects simultaneously the input end of LT1613; Chip SW end connects C16, C17, D5, L4 consist of output filter circuit; R19 connects with R20 and consists of bleeder circuit, and common port connects chip FB port, and the other end of R19 connects the 5V Voltage-output.
Fig. 3 c is the 12V booster circuit, adopts chip LT1613 to finish battery and boosts to 12V, and circuit is comprised of input filter, output filtering and partial pressure unit.The battery output terminal connects input filter capacitor C11, inductance L 2 and chip input end VIN; Chip SW end connects stabilivolt D4, C13 and consists of output protection circuit; R15, R16 and R17 consist of the dividing potential drop feedback circuit, connect respectively the FB end, with the 12V voltage output end.
The poisonous gas sensor that this example adopts is the hydrogen sulfide sensor of ALPHA SENSOR, measurement range 0~100ppm, peak value 500ppm, 2 years life-spans, resolution 100nA/ppm, precision 0.03ppm, the standard current signal of output 4-20mA.
Microprocessor is the core devices of instrument detecting instrument, is responsible for communication, data acquisition and conversion and user's IO interface with each module.This example adopts the microprocessor of 16 bit MSP430F249 of Texas Instruments.Major parameter has: operating voltage 1.8~3.6V; 62.5ns the instruction cycle; 12-Bit high-precision AD converter on the sheet; 4 road serial line interfaces, wherein two-way can work in SPI or I2C pattern; Integrated 60KB Flash on the sheet, 2KB RAM; Three kinds of mode of operations are provided, are shorter than 1us switching time.
Fig. 4 is microprocessor and function module circuit connection layout.
Download debugging interface and be connected with RESET, TCK, TMS, TDI, the TDO port of microprocessor, the realization program is downloaded and on-line debugging;
Toxic gas sensor interface circuit series connection sampling resistor R48, output 0.4~2.0V voltage is connected with R51 after the process amplifier is followed, and the R51 other end connects the P60 port of microprocessor; , connect simultaneously diode D15 and capacitor C 46;
The Keysheet module circuit is comprised of four buttons and 8 resistance, and common end grounding after 4 button parallel connections, the other end are connected in series respectively two resistance to the 3.3V high level, and the common port of resistance is connected to the P14 of microprocessor, P15, P16 and P17 port;
Display module adopts 12864 lattice lcds, and 14 to 25 pin connect 9 electric capacity, and 6~13 pin connect respectively the P20 of microprocessor~P27 port, form data stream, 1~5 pin connects respectively P66, P67, P57, P56, the P55 of microprocessor, 26 with are connected P54 and the P50 that connects respectively microprocessor
These connect the demonstration of control liquid crystal;
The date time module adopts chip PCF8583, chip 1 pin with are connected pin and connect crystal oscillator Y3, VDD connects C37, D11, D12,7 pin connect the interruptive port P13 of microprocessor, 5 pin and 6 pin are connected to microprocessor P32 and P31 port behind pull-up resistor R32 and R33;
Wireless module TXD, RXD are connected with the serial ports of microprocessor through P35, P34, and the MODE mouth is connected with microprocessor P45 port, and RESET is connected with ground through reset switch;
Temperature and humidity measurement adopts the Switzerland SHT11 of SENSIRION company humiture module, and major parameter has: operating voltage 2.4~5.5V, and humidity measurement precision ± 3.0%, temperature measurement accuracy ± 0.4% adopts the I2C digital output interface.The DATA mouth is connected with microprocessor P30, connects simultaneously to draw resistance R 28, and the SCK mouth is connected with microprocessor P33 port;
GPS module RXA and TXA respectively connect microprocessor P36 and P37 port, form serial communication;
Alarm module is made of diode D9, triode, current-limiting resistance R30 and hummer, is connected microprocessor P44 port after D9 and the R30 series connection, Q1 base stage and D9 anodic bonding, and grounded collector, emitter connects an end of hummer, another termination of hummer 5V power supply;
Acceleration module 11 pin, 10 pin, 12 pin connect respectively microprocessor P51, P52, P53 port, finish data transmission by spi bus, and 2 pin, 3 pin and the pin of being connected connect respectively microprocessor P63, P12, P64 port.
As shown in Figure 5, for the detecting instrument software workflow instrument among the present invention power on after successively initialization microprocessor system clock, microprocessor IO port, alarm module, Keysheet module, LCD MODULE, microprocessor AD converter, microprocessor UART port, clock date module, humiture module, open microprocessor and interrupt; Then read the standard time of GPS to the clock date modular calibration; The 3rd step showed welcome message, latitude and longitude information, humiture information, acceleration information; The 4th step microprocessor reads the date and time information in the clock date module; The 5th step was read the temperature and humidity information of humiture module; The 6th step was read latitude and longitude information and the validity flag of GPS module; The 7th step was read the acceleration information of acceleration module; The 8th step was read the poisonous gas concentration information of poisonous gas sensor assembly; The 9th step, comparison gas concentration numerical value and alarm setting value, if gas concentration value is greater than default concentration alarming value, the microprocessor driven alarm module sends warning, otherwise directly entered for the tenth step, relatively timing time and Preset Time time-delay is if timing is greater than time-delay, the timing zero clearing, microprocessor control wireless communication module sends every data; The 11 step display instrument master interface shows every detection data; Then, program loop moved for the 4th step to the tenth a one-step process.If there is button to press in operational process, it is need to enter the calibrating sensors function or enter the alarm settings function that program is judged.If enter the calibrating sensors function, then program is carried out " read zero gas AD value ", " storage zero gas calibration value ", " input gas nominal value ", " reading gas AD value " successively, " storing the gas calibration value " returns circulation after finishing; If enter the alarming value function is set, then program is carried out " accepting alarming value " successively, " store alarms value " returns circulation after finishing; After then driving the alarm module stop alarm, warning function returns circulation if enter to eliminate.
The above only is preferred embodiment of the present invention, is not to be the restriction of the present invention being made other form, and any those skilled in the art may utilize the technology contents of above-mentioned announcement to be changed or be modified as the equivalent embodiment of equivalent variations.But every technical solution of the present invention content that do not break away from according to any simple modification, equivalent variations and the remodeling that technical spirit of the present invention is done above example, still belongs to the protection domain of technical solution of the present invention.
All are above-mentioned to be the primary device for carrying out said of this intellecture property, does not set restriction and implements this new device and detection method and/or method of operating with other form.Those skilled in the art will utilize this important information, foregoing be revised, to realize similar implementation status.But all are based on modification of the present invention or transform new method, belong to the right of reservation.