CN107102101B - Gas synchronous acquisition method - Google Patents
Gas synchronous acquisition method Download PDFInfo
- Publication number
- CN107102101B CN107102101B CN201710250506.1A CN201710250506A CN107102101B CN 107102101 B CN107102101 B CN 107102101B CN 201710250506 A CN201710250506 A CN 201710250506A CN 107102101 B CN107102101 B CN 107102101B
- Authority
- CN
- China
- Prior art keywords
- acquisition
- synchronous
- equipment
- acquisition equipment
- command
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N33/00—Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
- G01N33/0004—Gaseous mixtures, e.g. polluted air
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
Landscapes
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Food Science & Technology (AREA)
- Combustion & Propulsion (AREA)
- Computer Networks & Wireless Communication (AREA)
- Medicinal Chemistry (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Mobile Radio Communication Systems (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention discloses a method and a device for synchronously collecting gas, wherein the method comprises the following steps: the method comprises the steps that a first acquisition device sends a synchronous acquisition command to a second acquisition device, the synchronous acquisition command comprises a lead code and a command frame, the second acquisition device receives the lead code, the second acquisition device receives the command frame after the second acquisition device receives the lead code, and the second acquisition device synchronously acquires gas concentration data according to the command frame. According to the synchronous gas acquisition method and device, the first acquisition equipment sends the synchronous acquisition command to the second acquisition equipment, the second acquisition equipment acquires the lead code and receives the synchronous code and the command frame according to the obtained lead code, and the second acquisition equipment acquires the gas concentration data according to the command frame, so that the second acquisition equipment and the first acquisition equipment acquire the whole gas concentration data of one area synchronously, and the condition of the whole gas concentration data of one area can be reflected better.
Description
Technical Field
The invention relates to the field of gas collection, in particular to a method and a device for synchronously collecting gas.
Background
With the continuous development of the wireless sensor network technology, the gas acquisition system based on the wireless sensor network technology is popularized and applied in public places such as warehouses, workshops and the like, but at present, gas acquisition equipment on the market cannot cooperate with other adjacent acquisition equipment, so that data acquired by the gas acquisition equipment can only reflect a certain specific condition of an acquisition area and cannot reflect the whole condition of one acquisition area.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a method and a device for synchronously acquiring gas, which can solve the problem that data acquired by gas acquisition equipment can only reflect a certain specific condition of an acquisition area and can not reflect the whole condition of one acquisition area.
The purpose of the invention is realized by adopting the following technical scheme:
the method comprises the steps that a first acquisition device sends a synchronous acquisition command to a second acquisition device, the second acquisition device is a plurality of devices, and the synchronous acquisition command comprises a lead code and a command frame;
the second acquisition equipment receives the lead code, and when the second acquisition equipment finishes receiving the lead code, the second acquisition equipment receives the command frame;
and the second acquisition equipment synchronously acquires gas concentration data according to the command frame.
Further, the synchronous acquisition command further comprises a synchronization code, the synchronization code is located after the preamble, and the synchronization code is located before the command frame.
Further, before a first acquisition device sends a synchronous acquisition command to a second acquisition device, the method also comprises setting timing awakening time of the second acquisition device and the first acquisition device, and the second acquisition device and the first acquisition device are automatically in an awakening state after the time length of the timing awakening time.
Further, the second acquisition device receives the preamble, specifically, a device in an awake state in the second acquisition device receives the preamble, and a device in a sleep state in the second acquisition device enters the awake state after the timed awake time duration and receives the preamble.
Further, before the first acquisition device sends the synchronous acquisition command to the second acquisition device, the method further comprises the steps that when the first acquisition device is in the awakening state, the first acquisition device acquires gas concentration data and judges whether the gas concentration data exceeds a gas concentration threshold value, if yes, the synchronous acquisition command is sent to the second acquisition device, and if not, the first acquisition device continues to enter the dormant state.
Further, after the second acquisition device synchronously acquires the gas concentration data according to the command frame, the second acquisition device and the first acquisition device transmit the acquired gas concentration data to the gateway device, and the gateway device transmits the gas concentration data to the background monitoring center.
Further, after the second collection device and the first collection device transmit the collected gas concentration data to the gateway device, the second collection device and the first collection device continue to be in a dormant state.
According to a second aspect of embodiments of the present disclosure, there is provided a gas collection device, the device comprising: the device comprises a processor, a radio frequency module, a key board, an LCD display screen, a sensor interface and a power interface, wherein the processor is connected with the radio frequency module, the processor is connected with the key board, the processor is connected with the LCD display screen, the processor is connected with the sensor interface, and the sensor interface, the radio frequency module and the LCD display screen are respectively connected with the power interface.
Compared with the prior art, the invention has the beneficial effects that: according to the synchronous gas acquisition method and device, the first acquisition equipment sends a synchronous acquisition command to the second acquisition equipment, the second acquisition equipment receives the lead code and receives the synchronous code and the command frame, and the second acquisition equipment acquires gas concentration data according to the command frame, so that the second acquisition equipment and the first acquisition equipment acquire the whole gas concentration data of one area synchronously, and the condition of the whole gas concentration data of one area can be reflected better.
Drawings
Fig. 1 is a flow chart of a gas synchronous collection method according to a preferred embodiment of the invention.
Fig. 2 is a data position relationship diagram of a gas synchronous acquisition method in a preferred embodiment of the invention.
Fig. 3 is a connection diagram of a gas synchronous collecting device according to a preferred embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and specific embodiments, and it should be noted that, in the premise of no conflict, the following described embodiments or technical features may be arbitrarily combined to form a new embodiment:
the invention provides a synchronous gas acquisition method, which has multiple acquisition in a certain areaThe device comprises any acquisition device, other acquisition devices, a first acquisition device, a second acquisition device, a master device and a slave device, wherein the first acquisition device is assigned to any one acquisition device, the other acquisition devices are assigned to the second acquisition device, the first acquisition device is the master device, the second acquisition device is the slave device, when only two acquisition devices exist in the area, the number of the second acquisition devices is the other one except the first acquisition device, and when a plurality of acquisition devices exist in the area, the second acquisition devices are the other plurality of devices. The timing awakening time of the first acquisition equipment and the timing awakening time of the second acquisition equipment are set, so that the first acquisition equipment and the second acquisition equipment are in an awakening state and a dormant state alternately, the equipment is in the awakening state when the gas concentration does not need to be acquired, the power consumption of the equipment is reduced, and the running cost is saved; the second acquisition equipment and the first acquisition equipment are automatically in an awakening state after the time length of the timing awakening time, and the timing awakening time of the first acquisition equipment is T1The timing wake-up time of the second acquisition equipment is T2The time of the first acquisition equipment in the dormant state is T1Then, the first acquisition equipment is in a wake-up state, and the second acquisition equipment is in a dormant state for T2And then the second acquisition equipment is in an awakening state.
As shown in fig. 1, the method has the following steps:
step 10: collecting gas concentration data by first collecting equipment; when the first acquisition equipment is in the awakening state, the first acquisition equipment acquires gas concentration data.
Step 20: and the first acquisition equipment judges whether the gas concentration data exceeds a gas concentration threshold value, if so, the step 30 is continued, if not, the first acquisition equipment continues to enter a dormant state to wait for the next awakening state, and when the second acquisition equipment is in the awakening state again, the step 10 is continuously executed.
Step 30: the first acquisition equipment sends a synchronous acquisition command to the second acquisition equipment, the first acquisition equipment sends the synchronous acquisition command data to the second acquisition equipment through the broadcast data channel, and the equipment in the second acquisition equipment can receive the synchronous acquisition command sent by the broadcast channel; the synchronous acquisition command comprises a lead code, a synchronous code and a command frame, wherein the lead code is binary code, and the lead code is transmittedTime is T3Let T3Greater than 2T2When the lead code is sent to the second acquisition equipment, if the second acquisition equipment is in a dormant state, the dormant time of the second acquisition equipment passes through T2And when the mobile terminal enters the wake-up state, the preamble sent by the first acquisition equipment can still be received.
Step 40: the second acquisition device receives the lead code sent by the first acquisition device, the device in the wake-up state in the second acquisition device receives the lead code sent by the first acquisition device, the lead code may be binary alternate code or binary random code body without cycle, as shown in fig. 2, the transmission time T of the lead code3The method can be divided into a starting time Q1, a transmission ending time point is Q, a preamble transmission time T3 is a difference value between the transmission ending time point Q and a starting time Q1, Q2, Q3, Q4 are arbitrary time points in the preamble transmission time process, not all time points, when a first acquisition device sends a preamble to a second acquisition device, a device in the awake state in the second acquisition device can immediately receive the preamble from the starting time Q1, the device in the sleep state in the second acquisition device enters the awake state again after a timed awake time duration, that is, the preamble is received from any time point between Q1-Q, for example, the preamble is received from the time point Q2 or Q3 or Q4, the reception time of the preamble by the device which wakes up again into the awake state again is a time period from the preamble reception starting time to the preamble transmission ending time point Q, the end times of the preamble reception by all the devices in the second acquisition device are the same.
Step 50: the second acquisition device receives the command frame sent by the first acquisition device, when the second acquisition device receives the synchronization code sent by the first acquisition device, the second acquisition device finishes receiving the preamble code, as shown in fig. 2, the synchronization code is located behind the preamble code, the synchronization code is located simultaneously before the command frame, and the synchronization code does not belong to the preamble code, when the devices receiving the preamble code at different time points in step 40 receive the synchronization code at time point Q, the second acquisition device finishes receiving the preamble code at the same time, when the second acquisition device receives the synchronization code sent by the first acquisition device and finishes receiving, all the devices in the second acquisition device immediately receive the command frame sent by the first acquisition device, if the devices receiving the preamble code at different times in step 40 do not receive the synchronization code, the second acquisition device continues receiving the preamble code, the second capture device is now unable to receive the command frame of the first capture device.
Step 60: the second acquisition equipment synchronously acquires gas concentration data according to the command frame, and a plurality of pieces of equipment in the second acquisition equipment synchronously acquire the gas concentration data according to the command frame.
Step 70: the first collecting device and the second collecting device send collected gas concentration data to the background monitoring center, after the second collecting device collects the gas concentration data, the first collecting device and the second collecting device send the collected gas concentration data to the gateway device, the gateway device sends the gas concentration data to the background monitoring center, and the background monitoring center can obtain the concentration data of different gases in the area at the same time.
According to the gas synchronous acquisition method provided by the invention, the first acquisition equipment sends a synchronous acquisition command to the second acquisition equipment, the second acquisition equipment receives the lead code and receives the synchronous code and the command frame, and the second acquisition equipment acquires gas concentration data according to the command frame, so that the second acquisition equipment and the first acquisition equipment acquire the gas concentration data synchronously to obtain the whole gas concentration data of one area, and the condition of the whole gas concentration data of one area can be reflected better.
Based on the above synchronous acquisition method, this embodiment further provides a synchronous acquisition device, as shown in fig. 3, the device includes a processor, a radio frequency module, a keypad, an LCD display screen, a sensor interface, and a power interface, the processor is connected to the radio frequency module through an SPI interface and performs data communication, the processor controls the radio frequency module to operate and receives and transmits data through the radio frequency module, and the radio frequency module adopts a 433MHz communication frequency band; the processor is connected with the key board through a common IO pin and used for processing a button event on the case board; the processor is connected with the LCD display screen and controls the LCD display screen to display, and the LCD display screen is used for displaying the value of the current collected gas sensor and displaying the wireless network number setting, the equipment ID setting, the equipment communication frequency band configuration, the equipment communication transmitting power, the equipment wireless communication modulation mode, the equipment sensor interface communication baud rate, the equipment sensor collection period, the equipment sensor threshold value and the like; the processor is connected with the sensor interface, the processor acquires gas concentration data in the external sensor through the sensor interface, and the type of the sensor interface is RS 485; the sensor interface, the radio frequency module and the LCD display screen are respectively connected with the power interface.
According to the synchronous gas acquisition device, the first acquisition equipment sends a synchronous acquisition command to the second acquisition equipment, the second acquisition equipment acquires the lead code and receives the synchronous code and the command frame, and the second acquisition equipment acquires gas concentration data according to the command frame, so that the second acquisition equipment and the first acquisition equipment acquire the gas concentration data synchronously to obtain the whole gas concentration data of one area, and the condition of the whole gas concentration data of one area can be reflected better.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.
Claims (6)
1. A synchronous gas collection method is characterized by comprising the following steps:
the method comprises the steps that a first acquisition device sends a synchronous acquisition command to a second acquisition device, the second acquisition device is a plurality of devices, and the synchronous acquisition command comprises a lead code and a command frame;
the second acquisition equipment receives the lead code, and when the second acquisition equipment finishes receiving the lead code, the second acquisition equipment receives the command frame;
the second acquisition equipment synchronously acquires gas concentration data according to the command frame;
the method comprises the steps that before a first acquisition device sends a synchronous acquisition command to a second acquisition device, the timing awakening time of the second acquisition device and the timing awakening time of the first acquisition device are set, and the second acquisition device and the first acquisition device are automatically in an awakening state after the timing awakening time; the transmission time of the preamble is greater than twice the timing wake-up time of the second acquisition device.
2. The synchronous gas collection method of claim 1, wherein: the synchronous acquisition command further comprises a synchronous code, the synchronous code is positioned after the lead code, and the synchronous code is positioned before the command frame.
3. The synchronous gas collection method of claim 1, wherein: the second acquisition device receives the lead code, specifically, a device in an awake state in the second acquisition device receives the lead code, and a device in a sleep state in the second acquisition device enters the awake state after the timed awake time duration and receives the lead code.
4. The synchronous gas collection method of claim 1, wherein: before a synchronous acquisition command is sent to second acquisition equipment by first acquisition equipment, the method further comprises the steps that when the first acquisition equipment is in an awakening state, the first acquisition equipment acquires gas concentration data and judges whether the gas concentration data exceeds a gas concentration threshold value, if yes, the synchronous acquisition command is sent to the second acquisition equipment, and if not, the first acquisition equipment continues to enter a dormant state.
5. The synchronous gas collection method of claim 4, wherein: after the second acquisition equipment synchronously acquires gas concentration data according to the command frame, the second acquisition equipment and the first acquisition equipment transmit the acquired gas concentration data to gateway equipment, and the gateway equipment transmits the gas concentration data to a background monitoring center.
6. The synchronous gas collection method of claim 5, wherein: after the second acquisition equipment and the first acquisition equipment transmit the acquired gas concentration data to gateway equipment, the second acquisition equipment and the first acquisition equipment are continuously in a dormant state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710250506.1A CN107102101B (en) | 2017-04-17 | 2017-04-17 | Gas synchronous acquisition method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710250506.1A CN107102101B (en) | 2017-04-17 | 2017-04-17 | Gas synchronous acquisition method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107102101A CN107102101A (en) | 2017-08-29 |
CN107102101B true CN107102101B (en) | 2020-03-24 |
Family
ID=59656340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710250506.1A Active CN107102101B (en) | 2017-04-17 | 2017-04-17 | Gas synchronous acquisition method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107102101B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109839149A (en) * | 2018-12-29 | 2019-06-04 | 深圳洲斯移动物联网技术有限公司 | Power control method, temperature-humidity detecting device and temperature/humiditydetection detection system |
CN111431631B (en) * | 2020-03-23 | 2022-02-18 | 深圳和而泰数据资源与云技术有限公司 | Bidirectional communication method, receiving equipment, sending equipment and communication system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101087220A (en) * | 2006-06-09 | 2007-12-12 | 中国科学院软件研究所 | Dormancy monitoring method for MAC layer of wireless sensor network |
CN101849427A (en) * | 2007-11-06 | 2010-09-29 | 高通股份有限公司 | Method and apparatus for preamble creation and communication in a wireless communication network |
CN102355753A (en) * | 2011-11-15 | 2012-02-15 | 江南大学 | Museum environment monitoring system based on wireless sensor network (WSN) |
CN102833285A (en) * | 2011-06-15 | 2012-12-19 | 中兴通讯股份有限公司 | Node sleeping method and node sleeping device |
CN103763297A (en) * | 2006-12-19 | 2014-04-30 | Lg电子株式会社 | Method and base station for transmitting synchronizing signals, method and terminal for receiving synchronizing signals |
CN104267634A (en) * | 2014-09-05 | 2015-01-07 | 上海应用技术学院 | Wireless synchronous collecting system |
CN104883723A (en) * | 2015-05-07 | 2015-09-02 | 深圳洲斯移动物联网技术有限公司 | Wireless communication system based on wireless sensors |
CN105472715A (en) * | 2015-11-17 | 2016-04-06 | 珠海中慧微电子股份有限公司 | Low power consumption wireless network realization method based on Lora wireless modules |
-
2017
- 2017-04-17 CN CN201710250506.1A patent/CN107102101B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101087220A (en) * | 2006-06-09 | 2007-12-12 | 中国科学院软件研究所 | Dormancy monitoring method for MAC layer of wireless sensor network |
CN103763297A (en) * | 2006-12-19 | 2014-04-30 | Lg电子株式会社 | Method and base station for transmitting synchronizing signals, method and terminal for receiving synchronizing signals |
CN101849427A (en) * | 2007-11-06 | 2010-09-29 | 高通股份有限公司 | Method and apparatus for preamble creation and communication in a wireless communication network |
CN102833285A (en) * | 2011-06-15 | 2012-12-19 | 中兴通讯股份有限公司 | Node sleeping method and node sleeping device |
CN102355753A (en) * | 2011-11-15 | 2012-02-15 | 江南大学 | Museum environment monitoring system based on wireless sensor network (WSN) |
CN104267634A (en) * | 2014-09-05 | 2015-01-07 | 上海应用技术学院 | Wireless synchronous collecting system |
CN104883723A (en) * | 2015-05-07 | 2015-09-02 | 深圳洲斯移动物联网技术有限公司 | Wireless communication system based on wireless sensors |
CN105472715A (en) * | 2015-11-17 | 2016-04-06 | 珠海中慧微电子股份有限公司 | Low power consumption wireless network realization method based on Lora wireless modules |
Also Published As
Publication number | Publication date |
---|---|
CN107102101A (en) | 2017-08-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102740427B (en) | Method for awakening wireless sensor, wireless sensor and wireless sensor system | |
CN111836277B (en) | Lora communication method, lora node and Lora communication system | |
CN109862068A (en) | A kind of LORA data acquisition control system based on TDMA | |
CN105474673A (en) | Direct control signaling in a wireless communication system | |
EP1473880A3 (en) | Method for setting sleep interval in a broadband wireless access communication system | |
EP2922314A1 (en) | A method and technical equipment for short range data transmission | |
CN107102101B (en) | Gas synchronous acquisition method | |
CN108696921A (en) | The cognitive sensor network media access control method intercepted based on broadcast preamble | |
CN111955049A (en) | State control method, device, communication equipment and storage medium | |
CN109392078B (en) | Signal detection and transmission method and device, and remote user equipment | |
CN112333766B (en) | Wireless communication method, system, terminal communication equipment and electronic equipment | |
CN113347691B (en) | Data transmission method and device | |
CN104221461A (en) | Telecommunications apparatus and method for searching a predefined signature sequence | |
CN115604796A (en) | Data transmission method, system, device and storage medium | |
CN114765837B (en) | Power saving processing method, device and equipment | |
CN111212395B (en) | Sensor data transmission method and system based on low-power-consumption Bluetooth module | |
CN105792389A (en) | Scanning method and system for use in coexistence of dual modes and single channel | |
CN112425211B (en) | Communication method and device, network equipment, user equipment and storage medium | |
WO2018171087A1 (en) | Wireless wake up method, control device and station device | |
CN108738125B (en) | Method, device, access point and station for wireless local area network time synchronization | |
CN109121190B (en) | Communication method and device of wireless local area network, access point equipment and site equipment | |
CN105228176A (en) | A kind of sensing node operational mode switching method of lightweight radio sensing network | |
WO2024125431A1 (en) | Wake-up signal transmission processing method and apparatus, terminal, and device | |
WO2024125506A1 (en) | Signal detection method, signal transmission method, apparatus, terminal, and transmitting end | |
CN215734315U (en) | Ad-hoc network communication system based on hybrid modulation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |