CN109495396A - Environmental quality detection device and its data transmission method, environmental monitoring system - Google Patents

Environmental quality detection device and its data transmission method, environmental monitoring system Download PDF

Info

Publication number
CN109495396A
CN109495396A CN201710812624.7A CN201710812624A CN109495396A CN 109495396 A CN109495396 A CN 109495396A CN 201710812624 A CN201710812624 A CN 201710812624A CN 109495396 A CN109495396 A CN 109495396A
Authority
CN
China
Prior art keywords
resource utilization
environmental quality
threshold value
system resource
gateway system
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.)
Pending
Application number
CN201710812624.7A
Other languages
Chinese (zh)
Inventor
叶国欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.
Original Assignee
Midea Group Co Ltd
Midea Smart Home Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Midea Group Co Ltd, Midea Smart Home Technology Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201710812624.7A priority Critical patent/CN109495396A/en
Publication of CN109495396A publication Critical patent/CN109495396A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present invention provides a kind of environmental quality detection device and its data transmission method, environmental monitoring system and machine readable storage medium, belongs to environmental monitoring field.The environmental quality detection device includes: detection module, for detecting environmental quality index;Receiving module, for receiving the gateway system resource utilization S of network locating for the environmental quality detection device;Threshold setting module, for data sending threshold value Ve to be arranged according to the gateway system resource utilization S;And data transmission blocks, for when the absolute value of the difference of environmental quality index is greater than the data sending threshold value Ve twice before and after the detection module detects, the environmental quality index of detection after transmission time.Technical solution provided in an embodiment of the present invention can improve as the case where resource overload leads to system crash and system resource caused by improvement is transmitted across slowly as data is not fully utilized the case where reducing user experience effect.

Description

Environmental quality detection device and its data transmission method, environmental monitoring system
Technical field
The present invention relates to environmental monitoring field, more particularly to a kind of environmental quality detection device and its transmission side data Method, further, the invention further relates to a kind of environmental monitoring systems.
Background technique
With the development of the times with the progress of science and technology, today's society has been an intelligentized society.Internet of Things conduct A kind of emerging technology being concerned, application are gradually gained popularity the welcome with people.
Expanding economy is often with different degrees of air pollution.If not monitored and being administered, people rely Yu Shengcun Environment will be more and more severe.In some specific places, the office building or house such as just fitted up, there are more harmful gas Body volatile matter, influences people's physical and mental health, and environmental monitoring system comes into being.
Be used widely at present with the environmental monitoring system of network savvy, networking technology include it is a variety of, below with It is illustrated for ZigBee.Environmental quality detection device examines the harmful substance such as PM2.5, formaldehyde etc. of air after being powered It surveys, the data that then will test are uploaded to the intelligent gateway for supporting ZigBee in real time, and then reach on APP, push away in time to user Send current air mass information.
At present as the sensor power consumption of the substances such as PM2.5, formaldehyde is larger, alternating current continued power is generallyd use, is continued to intelligence It can the real-time air quality information of gateway push.The big advantage of the one of ZigBee is exactly to support hundreds of equipment while accessing same Network achievees the purpose that while monitoring.When the data that environmental quality detection device detects change a lot (front and back monitor value Greater than given threshold), then data are uploaded to intelligent gateway, and then push to APP.For example, setting threshold value that PM2.5 is reported as 5. Assuming that the value that last time monitors is 50, if the 2nd value monitored is greater than 55 or less than 45, equipment updates current to gateway Data;If monitor value is in (45,55) section, then update is not reported.
The local resource of intelligent gateway is relatively fixed, but the quantity variance of the environmental quality detection device in heterogeneous networks It is very big.Another feature of ZigBee is low rate, for some big systems, if the detection of hundreds of environmental quality is set It is standby fairly frequently to upload data to the same intelligent gateway, network congestion certainly will be will cause, had especially for some resources The intelligent gateway of limit is more likely to cause system resource to overflow or even expendable collapse.If system data update is very slow, Especially some mini systems, then can not link scene in time, cause user APP that can not obtain information in time, will be greatly reduced use Family experience effect.
Summary of the invention
The purpose of the embodiment of the present invention is that providing one kind can improve in order to overcome drawbacks described above existing in the prior art The case where system crash is led to as resource overload and as data be transmitted across it is slow caused by system resource cannot abundant benefit The case where with user experience effect is reduced.
To achieve the goals above, first aspect of the embodiment of the present invention provides a kind of environmental quality detection device, the environment Quality detection apparatus includes:
Detection module, for detecting environmental quality index;
Receiving module, for receiving the gateway system resource utilization S of network locating for the environmental quality detection device;
Threshold setting module, for data sending threshold value Ve to be arranged according to the gateway system resource utilization S;And
Data transmission blocks, for before and after the detection module detects the difference of environmental quality index twice it is exhausted When being greater than the data sending threshold value Ve to value, the environmental quality index of time detection after transmission.
Preferably, the threshold setting module increases the data in the gateway system resource utilization S > 70% Sending threshold value Ve;
In gateway system resource utilization S >=30% and≤70%, the data sending threshold value Ve is not carried out Adjustment;And
In the gateway system resource utilization S < 30%, reduce the data sending threshold value Ve.
Preferably, the threshold setting module is one or more of for performing the following operations:
In the gateway system resource utilization S > 90%, the data sending threshold value Ve=V is set0+α×β× (S-0.5);
In gateway system resource utilization S > 70% and≤90%, the data sending threshold value Ve=V is set0+ β×(S-0.5);
In gateway system resource utilization S >=30% and≤70%, it is V that the data sending threshold value, which is arranged,0;With And
In the gateway system resource utilization S < 30%, the data sending threshold value Ve=V is set0-β×(0.5- S);
Wherein, α is the coefficient greater than 1, and β is weighting coefficient, and the value range of β is 0~2, V0Threshold is sent for primary data Value.
Preferably, the gateway system resource utilization S is gateway system resource utilization S flat within a setting period Mean value.
Second aspect of the embodiment of the present invention provides a kind of data transmission method of environmental quality detection device, the environmental quality Detection device is for detecting environmental quality index, which comprises
Receive the gateway system resource utilization S of network locating for the environmental quality detection device;
According to the gateway system resource utilization S, data sending threshold value Ve is set;And
When the absolute value of the difference of environmental quality index is greater than the data sending threshold value Ve twice before and after detecting, The environmental quality index of time detection after transmission.
Preferably, described to include: according to gateway system resource utilization S setting data sending threshold value Ve
In the gateway system resource utilization S > 70%, increase the data sending threshold value Ve;
In gateway system resource utilization S >=30% and≤70%, the data sending threshold value Ve is not carried out Adjustment;And
In the gateway system resource utilization S < 30%, reduce the data sending threshold value Ve.
Preferably, the method also includes:
In the gateway system resource utilization S > 90%, the data sending threshold value Ve=V is set0+α×β× (S-0.5);And/or
In gateway system resource utilization S > 70% and≤90%, the data sending threshold value Ve=V is set0+ β×(S-0.5);And/or
In gateway system resource utilization S >=30% and≤70%, it is V that the data sending threshold value, which is arranged,0; And/or
In the gateway system resource utilization S < 30%, the data sending threshold value Ve=V is set0-β×(0.5- S);
Wherein, α is the coefficient greater than 1, and β is weighting coefficient, and the value range of β is 0~2, V0Threshold is sent for primary data Value.
Preferably, the gateway system resource utilization S is gateway system resource utilization S flat within a setting period Mean value.
The third aspect of the embodiment of the present invention provides a kind of environmental monitoring system, and the environmental monitoring system includes:
Intelligent gateway, for sending gateway system resource utilization S;
Environmental quality detection device described in first aspect according to embodiments of the present invention, for receiving the gateway system money Source utilization rate S and the environmental quality index for sending detection to the intelligent gateway according to the gateway system resource utilization S.
Fourth aspect of the embodiment of the present invention provides a kind of machine readable storage medium, stores on the machine readable storage medium There is instruction, which is used for so that machine executes environmental quality detection device described in second aspect according to embodiments of the present invention Data transmission method.
Technical solution provided in an embodiment of the present invention has the following beneficial effects:
Number can be arranged according to gateway system resource utilization S in environmental quality detection device provided in an embodiment of the present invention According to sending threshold value Ve;So as to dynamically adjust and change the frequency for sending data, and then can be in gateway system resource benefit When with rate S higher, with the environmental quality index that lower frequency reception inputs, and when gateway system resource utilization S is lower With the environmental quality index that higher frequency reception inputs, so as to effectively inhibit due to a large amount of environmental quality detection device frequencies Network congestion caused by data is uploaded to the same intelligent gateway numerously, is improved since resource overload leads to the feelings of system crash Condition, furthermore it is also possible to improve as data be transmitted across it is slow caused by system resource be not fully utilized and reduce user experience effect The case where fruit.
The other feature and advantage of the embodiment of the present invention will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is to further understand for providing to the embodiment of the present invention, and constitute part of specification, under The specific embodiment in face is used to explain the present invention embodiment together, but does not constitute the limitation to the embodiment of the present invention.Attached In figure:
Fig. 1 is the schematic block diagram for the environmental quality detection device that one embodiment of the invention provides;
Fig. 2 is the flow chart of the data transmission method for the environmental quality detection device that one embodiment of the invention provides;
Fig. 3 be another embodiment of the present invention provides environmental quality detection device data transmission method flow chart;
Fig. 4 is the flow chart of the data transmission method for the environmental quality detection device that further embodiment of this invention provides;
Fig. 5 is the schematic block diagram for the environmental monitoring system that one embodiment of the invention provides.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the embodiment of the present invention.It should be understood that this Locate described specific embodiment and be merely to illustrate and explain the present invention embodiment, is not intended to restrict the invention embodiment.
Refering to fig. 1, first aspect of the embodiment of the present invention provides a kind of environmental quality detection device, and environmental quality detection is set Standby includes detection module, receiving module, threshold setting module and data transmission blocks.Wherein, detection module is for detecting environment Performance figure, the environmental quality index can for example refer to for the concentration of the harmful substance such as PM2.5 or formaldehyde etc. in air Mark;Receiving module is used to receive the gateway system resource utilization S of network locating for the environmental quality detection device;Threshold value setting Module is used to that data sending threshold value Ve to be arranged according to the gateway system resource utilization S;Data transmission blocks are used for described The front and back that detection module detects twice the difference of environmental quality index absolute value be greater than the data sending threshold value Ve when, hair Send the environmental quality index of rear detection.
It can be seen from the above description that data sending threshold value Ve setting is bigger, data transmission blocks send environment matter The frequency of volume index is higher, since data sending threshold value Ve is arranged according to gateway system resource utilization, data hair It send threshold value Ve that can generate corresponding dynamic with different gateway system resource utilization S to adjust.It specifically, can be in gateway When resource utilization ratio S higher, with the environmental quality index that lower frequency reception inputs, and in the gateway system utilization of resources The environmental quality index inputted when rate S is lower with higher frequency reception, so as to effectively inhibit due to a large amount of environmental qualities Detection device continually to the same intelligent gateway upload data caused by network congestion, improve due to resource overload cause be The case where system collapse, furthermore it is also possible to improve as data be transmitted across it is slow caused by system resource be not fully utilized reduction The case where user experience effect.
In system initialization, a primary data sending threshold value V is set0, when the environmental quality that front and back detects twice The absolute value of the difference of index is greater than V0When, after transmission then the secondary environmental quality index detected passes through intelligence to intelligent gateway Energy gateway is sent to user APP, so as to user APP more new data.Intelligent gateway is periodically to all environmental qualities inspection in network Measurement equipment broadcasts that the bigger expression current gateway resource of current gateway system resource utilization S, S is more nervous, and the value range of S is 0~100%.
In a preferred embodiment, the threshold setting module can be in the following way according to the gateway system resource benefit With rate S, the data sending threshold value Ve is set:
In gateway system resource utilization S > 70%, increase data sending threshold value Ve;Specifically, in the feelings of S > 70% Under condition, illustrate that gateway resource is nervous at this time, the environmental quality detection device in network is more, and data transmit-receive is frequent, at this point, relatively Increase the data sending threshold value Ve of environmental quality detection device in current data sending threshold value Ve, can reduce environmental quality detection Equipment sends the frequency of data to intelligent gateway, to alleviate system loading;
In gateway system resource utilization S >=30% and≤70%, illustrate that gateway resource is reasonably utilized, currently The setting of data sending threshold value Ve is reasonable, at this point, not being adjusted to current data sending threshold value Ve;
In gateway system resource utilization S < 30%, indicating that gateway resource is well-to-do, the equipment in network is less, at this point, Data sending threshold value Ve suitably can be reduced relative to current data sending threshold value Ve, increase environmental quality detection device to intelligent network The frequency for sending data is closed, and then improves the timeliness that data update.
By the above-mentioned means, how the data of the environmental quality detection device no matter accessed in network change, it can be by net It closes resource utilization ratio S effectively to maintain between 30% to 70%, and then improves since resource overload leads to system crash The case where or improve as data be transmitted across it is slow caused by system resource be not fully utilized and reduce user experience effect Situation.
Under normal circumstances, the quantity for accessing the environmental quality detection device of intelligent gateway is relatively fixed, in system initialization Afterwards, primary data sending threshold value is arranged to V0, environment matter that every environmental quality detection device is detected in front and back twice Volume index is greater than V0In the case where, the environmental quality index that time is detected after transmission to intelligent gateway.Intelligent gateway, which receives, to be corresponded to Environmental quality index, and regularly to environmental quality detection device send current gateway resource utilization ratio S.In this base On plinth,
When gateway system resource utilization S >=30% and≤70%, illustrate primary data sending threshold value V0Setting is reasonable, Data sending threshold value Ve is not adjusted, i.e. holding data sending threshold value Ve=V0, environmental quality detection device is according to the threshold Value V0Send data.
As gateway system resource utilization S < 30%, illustrate that gateway resource is well-to-do, primary data sending threshold value V0Setting It is excessive, at this point, can be relative to primary data sending threshold value V0Reducing data sending threshold value Ve specifically can pass through formula Ve= V0Data sending threshold value Ve is arranged in-β × (0.5-S), wherein β is weighting coefficient, the value range of β is 0~2, it is preferable that β Generally taking initial value is 1, and taking for β is then adjusted in the range of 0~2 according to the gateway system resource utilization S actually returned Value.
As gateway system resource utilization S > 70%, illustrate gateway resource anxiety, primary data sending threshold value V0Setting It is too small, at this point, can be relative to primary data sending threshold value V0Increasing data sending threshold value Ve specifically can pass through formula Ve=V0 Data sending threshold value Ve is arranged in+β × (S-0.5), wherein β is weighting coefficient, the value range of β is 0~2, it is preferable that β mono- As take initial value be 1, the value of β is then adjusted in the range of 0~2 according to the gateway system resource utilization S actually returned.
In some cases, emergency case may also occur in intelligent gateway or environmental quality detection device, and gateway is caused to provide Source epitonos, such as S > 90% at a certain moment, as S > 90%, intelligent gateway is tight to all environmental quality detection devices Anxious broadcast S, environmental quality detection device promptly adjusts data sending threshold value Ve after receiving urgent broadcast, and adjustment amplitude needs to increase Add, specifically, the data sending threshold value Ve=V is set0+α×β×(S-0.5);Wherein, α is the coefficient greater than 1, and β is to add Weight coefficient, the value range of β are 0~2, it is preferable that the value of β is 1.
It further, can be above-mentioned by adjusting when the quantity of the environmental quality detection device accessed in network changes V in calculation formula0Value change current data sending threshold value Ve.
In a preferred embodiment, the gateway system resource utilization S is gateway system resource utilization S in a setting Average value in period.Specifically, intelligent gateway sends current gateway to environmental quality detection device according to certain frequency f Resource utilization ratio S, includes computing module in environmental quality detection device, which connects every setting time T calculating Receive the average value of module received all gateway system resource utilizations in setting time T Wherein, n be the receiving module received all gateway system resource utilizations in setting time T number, n=T × F, Sn ' it is n-th of gateway system resource utilization that receiving module receives in setting time T;Threshold setting module is according to The average value that computing module is calculatedBe arranged data sending threshold value Ve, setting method with it is similar above, herein no longer It repeats.
In one embodiment, the value range for inputting frequency f for example can be 1/6 time per hour~1/24 time per small When.The value range of setting time T for example can be 6 hours~24 hours, and setting time T > 1/f.
It should be noted that if number is arranged according to average value of the gateway system resource utilization S within a setting period According to sending threshold value Ve, then when emergency case occur in intelligent gateway or environmental quality detection device, i.e., in S > 90%, immediately Adjust current data sending threshold value Ve=V0+ α × β × (S-0.5), without waiting for setting time T.
In a preferred embodiment, in order to guarantee user's APP data update timeliness, setting data sending threshold value Ve have There is minimum value Vmin, in addition, in order to avoid gateway resource is overstretched, setting data are sent from the point of view of gateway resource Threshold value Ve has maximum value Vmax;The specific value of maximum value and minimum value is related to the concrete type of environmental quality index, example Such as, (the unit ug/m by taking environmental quality index is PM2.5 as an example3), Vmin value for example can be for 1~2, Vmax value for example It can be 18~23;(the unit ug/m by taking environmental quality index is formaldehyde as an example3), Vmin value for example can be 9~12, Vmax value for example can be 58~63.
Summarizing above-mentioned environmental quality detection device provided in an embodiment of the present invention can be seen that the tune of data sending threshold value Ve Section occurs mainly on following timing node:
1. after 1 collection period of system electrification (i.e. above-mentioned setting time T);
2. environmental quality detection device quantity increases or decreases system by a relatively large margin in operation;
3. due to occurring emergency case in above-mentioned 1 and 2, to cause data sending threshold value Ve to adjust not in place, so that gateway system Resource utilization S is still unable to get reasonable utilization;
4. emergency case, which occur, in intelligent gateway or environmental quality detection device leads to gateway resource epitonos.
Referring to Fig.2, based on the environmental quality detection device that first aspect of the embodiment of the present invention provides, the embodiment of the present invention the Two aspects provide a kind of data transmission method of environmental quality detection device, and the environmental quality detection device is for detecting environment matter Volume index, this method comprises: receiving the gateway system resource utilization S of network locating for the environmental quality detection device;According to Data sending threshold value Ve is arranged in the gateway system resource utilization S;And the environmental quality index twice before and after detecting The absolute value of difference when being greater than the data sending threshold value Ve, the environmental quality index of detection after transmission time.
Since data sending threshold value Ve is arranged according to gateway system resource utilization, data sending threshold value Ve Corresponding dynamic can be generated with different gateway system resource utilization S to adjust.It specifically, can be in gateway system resource It is and lower in gateway system resource utilization S with the environmental quality index that lower frequency reception inputs when utilization rate S higher When with higher frequency reception input environmental quality index, so as to effectively inhibit due to a large amount of environmental quality detection devices Network congestion caused by data continually is uploaded to the same intelligent gateway, is improved since resource overload leads to system crash Situation, furthermore it is also possible to improve as data be transmitted across it is slow caused by system resource be not fully utilized and reduce user experience The case where effect.
In system initialization, a primary data sending threshold value V is set0, when the environmental quality that front and back detects twice The absolute value of the difference of index is greater than V0When, after transmission then the secondary environmental quality index detected passes through intelligence to intelligent gateway Energy gateway is sent to user APP, so as to user APP more new data.Intelligent gateway is periodically to all environmental qualities inspection in network Measurement equipment broadcasts that the bigger expression current gateway resource of current gateway system resource utilization S, S is more nervous, and the value range of S is 0~100%.
Refering to Fig. 3, in a preferred embodiment, can be set in the following way according to the gateway system resource utilization S Set the data sending threshold value Ve:
In gateway system resource utilization S > 70%, increase data sending threshold value Ve;Specifically, in the feelings of S > 70% Under condition, illustrate that gateway resource is nervous at this time, the environmental quality detection device in network is more, and data transmit-receive is frequent, at this point, increasing The current data sending threshold value Ve of environmental quality detection device can reduce environmental quality detection device to intelligent gateway and send number According to frequency, to alleviate system loading;
In gateway system resource utilization S >=30% and≤70%, illustrate that gateway resource is reasonably utilized, currently The setting of data sending threshold value Ve is reasonable, at this point, not being adjusted to current data sending threshold value Ve;
In gateway system resource utilization S < 30%, indicating that gateway resource is well-to-do, the equipment in network is less, at this point, Current data sending threshold value Ve can suitably be reduced, increase the frequency that environmental quality detection device sends data to intelligent gateway, into And improve the timeliness of data update.
By the above-mentioned means, how the data of the environmental quality detection device no matter accessed in network change, it can be by net It closes resource utilization ratio S effectively to maintain between 30% to 70%, and then improves since resource overload leads to system crash The case where or improve as data be transmitted across it is slow caused by system resource be not fully utilized and reduce user experience effect Situation.
Refering to Fig. 4, under normal circumstances, the quantity for accessing the environmental quality detection device of intelligent gateway is relatively fixed, is being After system initialization, primary data sending threshold value is arranged to V0, every environmental quality detection device detects in front and back twice Environmental quality index be greater than V0In the case where, the environmental quality index that time is detected after transmission to intelligent gateway.Intelligent gateway Corresponding environmental quality index is received, and regularly sends current gateway resource utilization ratio to environmental quality detection device S.On this basis,
When gateway system resource utilization S >=30% and≤70%, illustrate primary data sending threshold value V0Setting is reasonable, Data sending threshold value Ve is not adjusted, i.e. holding data sending threshold value Ve=V0, environmental quality detection device is according to the threshold Value V0Send data.
As gateway system resource utilization S < 30%, illustrate that gateway resource is well-to-do, primary data sending threshold value V0Setting It is excessive, at this point, can be relative to primary data sending threshold value V0Reducing data sending threshold value Ve specifically can pass through formula Ve= V0Data sending threshold value Ve is arranged in-β × (0.5-S), wherein β is weighting coefficient, the value range of β is 0~2, it is preferable that β Generally taking initial value is 1, and taking for β is then adjusted in the range of 0~2 according to the gateway system resource utilization S actually returned Value.
As gateway system resource utilization S > 70%, illustrate gateway resource anxiety, primary data sending threshold value V0 setting It is too small, at this point, can be relative to primary data sending threshold value V0Increasing data sending threshold value Ve specifically can pass through formula Ve=V0 Data sending threshold value Ve is arranged in+β × (S-0.5), wherein β is weighting coefficient, the value range of β is 0~2, it is preferable that β mono- As take initial value be 1, the value of β is then adjusted in the range of 0~2 according to the gateway system resource utilization S actually returned.
With continued reference to Fig. 4, in some cases, burst feelings may also occur in intelligent gateway or environmental quality detection device Condition leads to gateway resource epitonos at a certain moment, such as S > 90%, and as S > 90%, intelligent gateway is to all environment Quality detection apparatus urgent broadcast S, environmental quality detection device promptly adjust data sending threshold value Ve after receiving urgent broadcast, And adjustment amplitude needs to increase, and specifically, the data sending threshold value Ve=V is arranged0+α×β×(S-0.5);Wherein, α be greater than 1 coefficient, β are weighting coefficient, and the value range of β is 0~2, it is preferable that the value of β is 1.
It further, can be above-mentioned by adjusting when the quantity of the environmental quality detection device accessed in network changes V in calculation formula0Value change current data sending threshold value Ve.
In a preferred embodiment, the gateway system resource utilization S is gateway system resource utilization S in a setting Average value in period.Specifically, intelligent gateway sends current gateway to environmental quality detection device according to certain frequency f Resource utilization ratio S, environmental quality detection device calculate received all nets in setting time T every setting time T Close the average value of resource utilization ratio SWherein, n is that environmental quality detection device exists The number of received all gateway system resource utilization S, n=T × f, Sn in setting time T ' it is that environmental quality detection is set Standby n-th of the gateway system resource utilization received in setting time T;Then according to the average valueData are set and send threshold Value Ve, specific setting method can be likely to occur emergency case according to above, such as in intelligent gateway or environmental quality detection device, Data sending threshold value is set
In one embodiment, the value range for inputting frequency f for example can be 1/6 time per hour~1/24 time per small When.The value range of setting time T for example can be 6 hours~24 hours, and setting time T > 1/f.
It should be noted that if number is arranged according to average value of the gateway system resource utilization S within a setting period According to sending threshold value Ve, then when emergency case occur in intelligent gateway or environmental quality detection device, i.e., in S > 90%, immediately Adjust current data sending threshold value Ve=V0+ α × β × (S-0.5), without waiting for setting time T.
In a preferred embodiment, in order to guarantee user's APP data update timeliness, setting data sending threshold value Ve have There is minimum value Vmin, in addition, in order to avoid gateway resource is overstretched, setting data are sent from the point of view of gateway resource Threshold value Ve has maximum value Vmax;The specific value of maximum value and minimum value is related to the concrete type of environmental quality index, example Such as, (the unit ug/m by taking environmental quality index is PM2.5 as an example3), Vmin value for example can be for 1~2, Vmax value for example It can be 18~23;(the unit ug/m by taking environmental quality index is formaldehyde as an example3), Vmin value for example can be 9~12, Vmax value for example can be 58~63.
The data transmission method for summarizing above-mentioned environmental quality detection device provided in an embodiment of the present invention can be seen that data The adjusting of sending threshold value Ve occurs mainly on following timing node:
1. after 1 collection period of system electrification (i.e. above-mentioned setting time T);
2. environmental quality detection device quantity increases or decreases system by a relatively large margin in operation;
3. due to occurring emergency case in above-mentioned 1 and 2, to cause data sending threshold value Ve to adjust not in place, so that gateway system Resource utilization S is still unable to get reasonable utilization;
4. emergency case, which occur, in intelligent gateway or environmental quality detection device leads to gateway resource epitonos
Refering to Fig. 5, the third aspect of the embodiment of the present invention provides a kind of environmental monitoring system, which includes: Intelligent gateway and environmental quality detection device, wherein environmental quality detection device is according to first aspect of the embodiment of the present invention Environmental quality detection device, after system electrification operation, intelligent gateway regularly sends to environmental quality detection device current Gateway system resource utilization S, environmental quality detection device are arranged according to the gateway system resource utilization S that intelligent gateway is sent Data sending threshold value Ve, and environmental quality index is uploaded to intelligent gateway according to the data sending threshold value Ve, send data Method is as it was noted above, details are not described herein again.
In addition, it will be appreciated by those skilled in the art that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make Obtain all or part of the steps that single-chip microcontroller, chip or processor (processor) execute each embodiment the method for the application. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The optional embodiment of the embodiment of the present invention is described in detail in conjunction with attached drawing above, still, the embodiment of the present invention is simultaneously The detail being not limited in above embodiment can be to of the invention real in the range of the technology design of the embodiment of the present invention The technical solution for applying example carries out a variety of simple variants, these simple variants belong to the protection scope of the embodiment of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lance In the case where shield, it can be combined in any appropriate way.In order to avoid unnecessary repetition, the embodiment of the present invention pair No further explanation will be given for various combinations of possible ways.
In addition, any combination can also be carried out between a variety of different embodiments of the embodiment of the present invention, as long as it is not The thought of the embodiment of the present invention is violated, equally should be considered as disclosure of that of the embodiment of the present invention.

Claims (10)

1. a kind of environmental quality detection device, which is characterized in that the environmental quality detection device includes:
Detection module, for detecting environmental quality index;
Receiving module, for receiving the gateway system resource utilization S of network locating for the environmental quality detection device;
Threshold setting module, for data sending threshold value Ve to be arranged according to the gateway system resource utilization S;And
Data transmission blocks, for the absolute value of the difference of environmental quality index twice before and after the detection module detects When greater than the data sending threshold value Ve, the environmental quality index of time detection after transmission.
2. environmental quality detection device according to claim 1, which is characterized in that
The threshold setting module increases the data sending threshold value Ve in the gateway system resource utilization S > 70%;
In gateway system resource utilization S >=30% and≤70%, the data sending threshold value Ve is not adjusted; And
In the gateway system resource utilization S < 30%, reduce the data sending threshold value Ve.
3. environmental quality detection device according to claim 2, which is characterized in that the threshold setting module is for executing One or more of operation below:
In the gateway system resource utilization S > 90%, the data sending threshold value Ve=V is set0+α×β×(S- 0.5);
In gateway system resource utilization S > 70% and≤90%, the data sending threshold value Ve=V is set0+β× (S-0.5);
In gateway system resource utilization S >=30% and≤70%, it is V that the data sending threshold value, which is arranged,0;And
In the gateway system resource utilization S < 30%, the data sending threshold value Ve=V is set0-β×(0.5-S);
Wherein, α is the coefficient greater than 1, and β is weighting coefficient, and the value range of β is 0~2, V0For primary data sending threshold value.
4. environmental quality detection device described in any one of -3 claims according to claim 1, which is characterized in that the net Closing resource utilization ratio S is average value of the gateway system resource utilization S within a setting period.
5. a kind of data transmission method of environmental quality detection device, which refers to for detecting environmental quality Number, which is characterized in that the described method includes:
Receive the gateway system resource utilization S of network locating for the environmental quality detection device;
According to the gateway system resource utilization S, data sending threshold value Ve is set;And
When the absolute value of the difference of environmental quality index is greater than the data sending threshold value Ve twice before and after detecting, send The environmental quality index of secondary detection afterwards.
6. the data transmission method of environmental quality detection device according to claim 5, which is characterized in that described according to institute Stating gateway system resource utilization S setting data sending threshold value Ve includes:
In the gateway system resource utilization S > 70%, increase the data sending threshold value Ve;
In gateway system resource utilization S >=30% and≤70%, the data sending threshold value Ve is not adjusted; And
In the gateway system resource utilization S < 30%, reduce the data sending threshold value Ve.
7. the data transmission method of environmental quality detection device according to claim 6, which is characterized in that the method is also Include:
In the gateway system resource utilization S > 90%, the data sending threshold value Ve=V is set0+α×β×(S- 0.5);And/or
In gateway system resource utilization S > 70% and≤90%, the data sending threshold value Ve=V is set0+β× (S-0.5);And/or
In gateway system resource utilization S >=30% and≤70%, it is V that the data sending threshold value, which is arranged,0;And/or
In the gateway system resource utilization S < 30%, the data sending threshold value Ve=V is set0-β×(0.5-S);
Wherein, α is the coefficient greater than 1, and β is weighting coefficient, and the value range of β is 0~2, V0For primary data sending threshold value.
8. the data transmission method of the environmental quality detection device according to any one of claim 5-7, feature exist In,
The gateway system resource utilization S is average value of the gateway system resource utilization S within a setting period.
9. a kind of environmental monitoring system, which is characterized in that the environmental monitoring system includes:
Intelligent gateway, for sending gateway system resource utilization S;
Environmental quality detection device described in any one of -4 according to claim 1, for receiving the gateway system resource Utilization rate S and the environmental quality index for sending detection to the intelligent gateway according to the gateway system resource utilization S.
10. a kind of machine readable storage medium, it is stored with instruction on the machine readable storage medium, which is used for so that machine Execute the data transmission method of the environmental quality detection device according to any one of claim 5-8.
CN201710812624.7A 2017-09-11 2017-09-11 Environmental quality detection device and its data transmission method, environmental monitoring system Pending CN109495396A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710812624.7A CN109495396A (en) 2017-09-11 2017-09-11 Environmental quality detection device and its data transmission method, environmental monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710812624.7A CN109495396A (en) 2017-09-11 2017-09-11 Environmental quality detection device and its data transmission method, environmental monitoring system

Publications (1)

Publication Number Publication Date
CN109495396A true CN109495396A (en) 2019-03-19

Family

ID=65687562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710812624.7A Pending CN109495396A (en) 2017-09-11 2017-09-11 Environmental quality detection device and its data transmission method, environmental monitoring system

Country Status (1)

Country Link
CN (1) CN109495396A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120134347A1 (en) * 2010-11-26 2012-05-31 Snu R&Db Foundation Routing method for wireless mesh networks and wireless mesh network system using the same
CN104168601A (en) * 2014-07-25 2014-11-26 京信通信***(中国)有限公司 Wireless network congestion control method and apparatus
CN105323158A (en) * 2014-07-31 2016-02-10 三星电子株式会社 System and method of controlling data transmission of external apparatus connected to gateway
CN105468501A (en) * 2015-11-17 2016-04-06 浪潮(北京)电子信息产业有限公司 Performance monitoring method and device of Linux system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120134347A1 (en) * 2010-11-26 2012-05-31 Snu R&Db Foundation Routing method for wireless mesh networks and wireless mesh network system using the same
CN104168601A (en) * 2014-07-25 2014-11-26 京信通信***(中国)有限公司 Wireless network congestion control method and apparatus
CN105323158A (en) * 2014-07-31 2016-02-10 三星电子株式会社 System and method of controlling data transmission of external apparatus connected to gateway
CN105468501A (en) * 2015-11-17 2016-04-06 浪潮(北京)电子信息产业有限公司 Performance monitoring method and device of Linux system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘艳秋等: "无线mesh网中基于速率自适应的拥塞控制", 《2011云计算与信息技术应用学术会议》 *
徐晓斌: "基于群体智能的WSN信任管理关键技术研究", 《中国优秀博硕士学位论文全文数据库》 *
陈晓栋等: "基于780MHz频段的温室无线传感器网络的设计及试验", 《农业工程学报》 *

Similar Documents

Publication Publication Date Title
Xia et al. Adaptive GTS allocation in IEEE 802.15. 4 for real-time wireless sensor networks
CN100596363C (en) Distance-finding method between center node and equipment node in beacon wireless personal area network
CN103338462B (en) Network capacity extension method and apparatus
US9729418B2 (en) Method for heterogeneous network policy based management
CN106954229A (en) Hybrid channel loading statistical method based on SPMA
Zhu et al. Computation offloading for workflow in mobile edge computing based on deep Q-learning
CN102869079A (en) Method for adjusting regular sleep period of terminal node in self-adaptive manner
CN103582088A (en) Base station cooperation sleep/rouse method and system
CN103200598A (en) Wireless sensor network clustering method based on particle swarm optimization
CN110062450A (en) Method, apparatus, equipment and the readable storage medium storing program for executing of the base station 5G energy saving
Wei et al. Power allocation in HetNets with hybrid energy supply using actor-critic reinforcement learning
CN111800829B (en) LoRaWAN communication self-adaptive rate adjustment method, system and network server
CN107918410A (en) A kind of Intelligent household water-saving method and system based on response at different level mechanism
Kiyani et al. Prolonging life time of wireless sensor network
CN103024908A (en) Method for self-adaptive adjustment on symbol occupation amount of PDCCH (Physical Downlink Control Channel)
CN109495396A (en) Environmental quality detection device and its data transmission method, environmental monitoring system
Silva et al. A Cluster-based Approach to provide Energy-Efficient in WSN
CN108495363A (en) A kind of router control method and system
CN103118396A (en) Method for managing small community networks and base station
CN105451320B (en) A kind of Automatic adjustment method of router transmission power
Anand et al. Game action based power management for multiplayer online game
Abou El Seoud et al. Monitoring electromagnetic pollution using wireless sensor networks
CN114980287B (en) Intelligent energy-saving method and device for multi-band wireless network equipment
Song et al. Mitigating energy holes based on transmission range adjustment in wireless sensor networks
Liu et al. Tradeoff Analysis between Spectrum Efficiency and Energy Efficiency in Heterogeneous Networks (HetNets) Using Bias Factor.

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
TA01 Transfer of patent application right

Effective date of registration: 20200608

Address after: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Applicant after: MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant before: MIDEA SMART HOME TECHNOLOGY Co.,Ltd.

Applicant before: MIDEA GROUP Co.,Ltd.

TA01 Transfer of patent application right
CB02 Change of applicant information

Address after: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Applicant after: Meizhi Optoelectronic Technology Co.,Ltd.

Address before: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Applicant before: MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20190319

RJ01 Rejection of invention patent application after publication