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 at petroleum and petrochemical industry personnel operation, provide a kind of portable poisonous gas monitoring 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 poisonous 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 poisonous 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;
Voltage source output is connected to the power supply port of alarm module in described;
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 the external antenna.
Described microprocessor is preferably low-power consumption 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,, send warning according to data processed result if meet data and the processing and the transmission of just gathering each sensor.
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 dynamic transmission to regulate mode of operation, sent one group of data every 5~200 seconds, when the half of detectable concentration value above default alarming value, instrument sends data frequency linear increase along with concentration raises, until the full speed operation frequency that reaches 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 poisonous 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;
In second step, the standard time of reading the GPS module is 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 the 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, circular flow the 4th goes on foot the tenth rapid step by step;
Key-press module is triggered in the tenth rapid step by step process if go on foot in circular flow the 4th, then:
The described triggering of microprocessor judges is need 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 4th after becoming afterwards and go on foot the 11 circulation that goes on foot;
If enter the alarming value function is set, then accepts alarming value and store alarms value; Return the 4th afterwards and go on foot the 11 circulation that goes on foot;
Eliminate warning function and then drive and return the 4th circulation that went on foot for the 11 step after alarm module stops to report to the police if enter.
The portable poisonous gas monitoring 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 operating personnel's state at any time.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 monitor user's activity attitude, environmental baseline of living in, user's geographical location information, the data of gathering 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 is rationally made judgement, sends commander and control command, has improved the ability and the correctness of making response and ageing of grasping field condition greatly.
Embodiment
The present invention relates to a kind of portable instrument and method thereof, in order to reduce electric quantity consumption and to prolong battery service time, the microprocessor that uses adopts low-power consumption 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 data and the processing and the transmission of just gathering various sensors, send warning according to data processed result.For button input processing 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, save electricity consumption greatly.Wireless module power consumption when sending data is bigger, 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 default alarming value when the detectable concentration value, instrument sends data frequency linear increase along with concentration raises, until the full speed operation frequency that reaches one group of data of per second.Design can guarantee to reduce power consumption in most of times at ordinary times like this, did not omit important data again.The present invention has acceleration transducer, can be stop, falling down or normally patrol and examine (making an inspection tour and check technology and equipment situation) by the data judgement personnel that quicken, the detected value that cooperates concentration data, can judge whether the user intoxication accident takes place for the supervisor, cooperate gps data can find the position that the poisoner is present, multiple related data binding energy is effectively offered help for the operating personnel.The portable instrument that patent of the present invention relates to has man-machine interfaces such as LCD screen and keyboard input, and instrument ID is provided with when the initialization automatically by program.
In one embodiment of the present invention, provide a kind of portable poisonous 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 poisonous 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;
Voltage source output is connected to the power supply port of alarm module in described;
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 the external antenna.
Described microprocessor is preferably low-power consumption 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,, send warning according to data processed result if meet data and the processing and the transmission of just gathering each sensor.
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 dynamic transmission to regulate mode of operation, sent one group of data every 5~200 seconds, when the half of detectable concentration value above default alarming value, instrument sends data frequency linear increase along with concentration raises, until the full speed operation frequency that reaches one group of data of per second.
In another embodiment of the present invention, a kind of method of operating of described portable poisonous 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;
In second step, the standard time of reading the GPS module is 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 the 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, circular flow the 4th goes on foot the tenth rapid step by step;
Key-press module is triggered in the tenth rapid step by step process if go on foot in circular flow the 4th, then:
The described triggering of microprocessor judges is need 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 4th after becoming afterwards and go on foot the 11 circulation that goes on foot;
If enter the alarming value function is set, then accepts alarming value and store alarms value; Return the 4th afterwards and go on foot the 11 circulation that goes on foot;
Eliminate warning function and then drive and return the 4th circulation that went on foot for the 11 step after alarm module stops to report to the police if enter.
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 are formed, 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 causes by which module, change corresponding handling procedure then 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 sends to wireless communication module with the synthetic communication word symbol of the data set of storage string, and wireless communication module sends data or the data forwarding that receives is gone out.Data are responsible for receiving in the central monitoring unit, the serial data that identification is sent by different detecting instruments when receiving data is also resolved, according to the different parameters after resolving, display graphics sign on the planimetric map or as required in list box with the form video data of text or trend map.Set some logic determines conditions 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 embodiment more of the present invention, portable poisonous gas wireless monitoring device is made up of detecting instrument and central monitoring unit two parts, as depicted in figs. 1 and 2.Embodiment can be made up 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 is totally implemented structure as shown in Figure 1, and 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 the 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 the external antenna on the wireless module, and the wireless module serial ports is connected to the serial line interface of supervisory control comuter.
Each functions of components of instrument example is described as follows:
Detecting instrument uses No. 5 powered battery of 4 joints, and the process power module produces 3.3V, 5V respectively, 12V voltage powers for 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 made up of input filtering, 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 made up of input filtering, output filtering and dividing potential drop feedback unit.Input filtering comprises inductance L 3 and capacitor C 15, and the battery output terminal connects the common port of L3 and C15, connects the input end of LT1613 simultaneously; Chip SW end connects C16, C17, D5, L4 constitute output filter circuit; R19 connects with R20 and constitutes bleeder circuit, and common port connects chip FB port, and the other end of R19 connects the output of 5V voltage.
Fig. 3 c is the 12V booster circuit, adopts chip LT1613 to finish battery and boosts to 12V, and circuit is made up of input filtering, 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 constitutes output protection circuit; R15, R16 and R17 constitute 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 normalized 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; Integrated 12 high-precision A converters 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 followed the back through amplifier and is connected with R51, and the R51 other end connects the P60 port of microprocessor; , connect diode D15 and capacitor C 46 simultaneously;
The Keysheet module circuit is made up of four buttons and 8 resistance, and common end grounding after 4 button parallel connections, the other end are connected in series two resistance respectively 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 the P20~P27 port of microprocessor respectively, form data stream, 1~5 pin connects P66, P67, P57, P56, the P55 of microprocessor respectively, and 26 and 27 are connected the P54 and the P50 of microprocessor respectively
These connect the demonstration of control liquid crystal;
The date time module adopts chip PCF8583, and chip 1 pin is connected crystal oscillator Y3 with 2 pin, and VDD connects C37, D11, D12, and 7 pin connect the interruptive port P13 of microprocessor, and 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 is connected microprocessor P36 and P37 port respectively with TXA, forms 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, and the Q1 base stage is connected with the D9 anode, grounded collector, and emitter connects an end of hummer, another termination of hummer 5V power supply;
Acceleration module 11 pin, 10 pin, 12 pin connect microprocessor P51, P52, P53 port respectively, finish data transmission by spi bus, and 2 pin, 3 pin and 13 pin are connected microprocessor P63, P12, P64 port respectively.
As shown in Figure 5, for the detecting instrument software workflow instrument among the present invention power on after the clock of initialization microprocessor system successively, microprocessor IO port, alarm module, Keysheet module, LCD MODULE, microprocessor AD converter, microprocessor UART port, clock date module, humiture module, open microprocessor and interrupt; The standard time of reading GPS then is 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 the 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 is moved the 4th and is gone on foot the tenth a one-step process.If there is button to press in operational process, it is need 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; Eliminate warning function and then drive and return circulation after alarm module stops to report to the police if enter.
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.