Summary of the invention
In view of the above-mentioned problems, the present invention provides a kind of platform of internet of things monitoring system and method based on cloud computing.
The purpose of the present invention is realized using following technical scheme:
First aspect present invention provides a kind of platform of internet of things monitoring system based on cloud computing, which includes environment
Monitoring sensing layer, cloud computing layer and application layer, the environmental monitoring sensing layer are connect with cloud computing layer, the cloud computing layer with answer
It is connected with layer signal;The application layer includes mobile terminal and the controlling terminal for controlling home equipment work, the movement
Terminal is wirelessly connected by APP terminal and the controlling terminal;The environmental monitoring sensing layer acquires the environment in monitored region
Data Concurrent is sent to the cloud computing layer;The cloud computing layer is equipped with processor to be stored, be managed to the environmental data
And analysis, and environmental data is sent to the mobile terminal.
Wherein, the home equipment includes air purifier and fresh air interchanger.
A kind of platform of internet of things monitoring system based on cloud computing is provided according to a first aspect of the present invention, it is described mobile whole
End is sent to the controlling terminal by APP terminal and is instructed, to control home equipment work corresponding with the instruction.
A kind of platform of internet of things monitoring system based on cloud computing, the environment number are provided according to a first aspect of the present invention
According to including environment sensing data and corresponding geographic position data, the mobile terminal is by APP terminal to the environmental data
It is visualized.
Wherein, the environment sensing data may include indoor formaldehyde concentration, PM2.5 concentration, smokescope, temperature and humidity
Etc. data.
A kind of platform of internet of things monitoring system based on cloud computing, the visualization are provided according to a first aspect of the present invention
It shows, comprising:
Data lattice are defined, and determine the displaying scale of X-axis;
According to the environment sensing data and the geographic position data, data source configuration, scanning and reading are carried out;
It analyzes storing data and modified chi axis shows scale, and then data in each data lattice of each scale rank of calculating
Quartile;
Data displaying is carried out using quartile figure, the data of displaying include environment sensing data and corresponding geographical location number
According to.
The present embodiment realizes the visual presentation to complicated domestic environment by above-mentioned method for visualizing.
Second aspect of the present invention provides a kind of platform of internet of things monitoring method based on cloud computing, this method comprises:
Cloud computing layer receives the environmental data of environmental monitoring sensing layer acquisition;
The cloud computing layer stores the environmental data, managed and is analyzed, and obtains corresponding to each timing node and ground
Manage the environmental data of position;
The environmental data of each timing node of the correspondence and geographical location is sent to mobile terminal by the cloud computing layer.
A kind of platform of internet of things monitoring method based on cloud computing, the environmental data are provided according to a second aspect of the present invention
Including environment sensing data and corresponding geographic position data, the method also includes:
The cloud computing layer carries out Threshold Analysis to the environment sensing data, when there are environment sensing data to exceed standard
Warning message is sent to the mobile terminal when environment sensing data threshold range.
The above embodiment of the present invention, which passes through, combines sensing, Internet of Things and cloud computing technology, is adopted in real time to domestic environment
Collection and transmission, develop the system for carrying out round-the-clock real-time remote monitoring to domestic environment, control opening for corresponding home equipment
It opens and closes, improve home air quality and realize alarm;Using the powerful processing capacity of cloud computing, magnanimity domestic environment is carried out
Storage, management and the analysis of data, the users such as monitoring department, enterprise or individual can obtain easily to obtain by way of " cloud " and need
The resource wanted.
Specific embodiment
The invention will be further described with the following Examples.
Referring to Fig. 1, first aspect present invention embodiment provides a kind of platform of internet of things monitoring system based on cloud computing,
The system includes environmental monitoring sensing layer 1, cloud computing layer 2 and application layer 3, and the environmental monitoring sensing layer 1 connects with cloud computing layer 2
It connects, the cloud computing layer 2 is connect with 3 signal of application layer;The application layer 3 is including mobile terminal and for controlling home equipment work
The controlling terminal of work, the mobile terminal are wirelessly connected by APP terminal and the controlling terminal;The environmental monitoring sensing layer
The environmental data in 1 the monitored region of acquisition is simultaneously sent to the cloud computing layer 2;The cloud computing layer 2 is equipped with processor to institute
It states environmental data to be stored, managed and analyzed, and environmental data is sent to the mobile terminal.
Wherein, the home equipment includes air purifier and fresh air interchanger.
A kind of platform of internet of things monitoring system based on cloud computing is provided according to a first aspect of the present invention, it is described mobile whole
End is sent to the controlling terminal by APP terminal and is instructed, to control home equipment work corresponding with the instruction.
A kind of platform of internet of things monitoring system based on cloud computing, the environment number are provided according to a first aspect of the present invention
According to including environment sensing data and corresponding geographic position data, the mobile terminal is by APP terminal to the environmental data
It is visualized.
Wherein, the environment sensing data may include indoor formaldehyde concentration, PM2.5 concentration, smokescope, temperature and humidity
Etc. data.
A kind of platform of internet of things monitoring system based on cloud computing, the visualization are provided according to a first aspect of the present invention
It shows, comprising:
Data lattice are defined, and determine the displaying scale of X-axis;
According to the environment sensing data and the geographic position data, data source configuration, scanning and reading are carried out;
It analyzes storing data and modified chi axis shows scale, and then data in each data lattice of each scale rank of calculating
Quartile;
Data displaying is carried out using quartile figure, the data of displaying include environment sensing data and corresponding geographical location number
According to.
The present embodiment realizes the visual presentation to complicated domestic environment by above-mentioned method for visualizing.
As shown in Fig. 2, second aspect of the present invention provides a kind of platform of internet of things monitoring method based on cloud computing, this method
Include:
S01 cloud computing layer receives the environmental data of environmental monitoring sensing layer acquisition;
Cloud computing layer described in S02 stores the environmental data, managed and is analyzed, obtain corresponding to each timing node and
The environmental data in geographical location;
The environmental data of each timing node of the correspondence and geographical location is sent to mobile whole by cloud computing layer described in S03
End.
A kind of platform of internet of things monitoring method based on cloud computing, the environmental data are provided according to a second aspect of the present invention
Including environment sensing data and corresponding geographic position data, the method also includes:
The cloud computing layer carries out Threshold Analysis to the environment sensing data, when there are environment sensing data to exceed standard
Warning message is sent to the mobile terminal when environment sensing data threshold range.
The above embodiment of the present invention, which passes through, combines sensing, Internet of Things and cloud computing technology, is adopted in real time to domestic environment
Collection and transmission, develop the system for carrying out round-the-clock real-time remote monitoring to domestic environment, control opening for corresponding home equipment
It opens and closes, improve home air quality and realize alarm;Using the powerful processing capacity of cloud computing, magnanimity domestic environment is carried out
Storage, management and the analysis of data, the users such as monitoring department, enterprise or individual can obtain easily to obtain by way of " cloud " and need
The resource wanted.
In a kind of above-mentioned platform of internet of things monitoring system and method based on cloud computing, the environmental monitoring perception
Layer 1 includes wireless sensor network, and the wireless sensor network includes multiple sensor nodes, multiple cluster heads and and cloud computing
Cluster is added apart from nearest cluster head in the aggregation node of 2 communication of layer, each sensor node selection;The aggregation node is periodically
Hello message is broadcasted to each cluster head, the hello message includes the location information and direct communication threshold value h of aggregation nodemin,
hmin<ymax, ymaxThe maximum communication distance that can be adjusted for cluster head;After cluster head receives the hello message, if cluster head to converge
The distance of poly- node is not more than hmin, then cluster head selects and aggregation node direct communication;If the distance of cluster head to aggregation node is greater than
hmin, then cluster head selects one as next-hop node in the cluster head in its communication range, directly leads to the next-hop node
Letter;The direct communication threshold value determines according to the following formula:
In formula, yminFor the minimal communications distance that cluster head can be adjusted,For with aggregation node
Distance existThe average initial energy of cluster head in range,For with convergence
The distance of node existsThe average current remaining of cluster head in range, g are preset based on energy consumption
Distance increases the factor, and the value of g meets
Wherein, when the aggregation node reaches the frequency threshold value of setting to the number of each cluster head broadcast hello message, stop
The only broadcast operation of the hello message.
In the present embodiment, each cluster head determines directly or indirectly mode and convergence according to itself distance to aggregation node
Node communication, improves the flexibility of cluster head routing.Direct communication distance threshold is determined according to the actual deployment situation of cluster head
hmin, so that hminSetting closer to actual conditions, be conducive to the routing mode for more reasonably determining cluster head, have as far as possible in guarantee
The transmission energy consumption that wireless sensor network is reduced under the premise of imitating transmission environment data, saves the platform of internet of things based on cloud computing
The monitoring cost of monitoring system.
In a kind of mode that can be realized, cluster head periodically calculates the loading level of oneself and broadcasts to communication range
Other interior cluster heads, the calculation formula of the loading level are as follows:
In formula, UIFor the loading level of cluster head I, QIFor the current remaining of cluster head I, NI(hmin) be and cluster head I distance
No more than hminCluster head quantity;KIFor the sensor node quantity in cluster head I cluster, QθFor the preset unit energy based on cluster management
Consumption;
It is specific to execute when the cluster head selects next-hop node in the cluster head in its communication range:
(1) h is being less than with its distanceminCluster head in determine the cluster head closer apart from aggregation node relative to it, be included into
Alternate node set;
(2) select in alternate node set the smallest cluster head of loading level as next-hop node.
The present embodiment innovatively proposes the loading level index of cluster head, for measuring the current load situation of cluster head,
The present embodiment further provides the working mechanism of cluster head selection next-hop node based on loading level, in the mechanism, cluster head choosing
The smallest cluster head of loading level in alternate node set is selected to be conducive to ensureing electric energy and environmental parameter letter as next-hop node
Under the premise of breath is one-way transmitted to aggregation node, the load of each cluster head is balanced as much as possible, so that the energy of balanced cluster head, is promoted
The performance of wireless sensor network.
In a kind of mode that can be realized, next-hop node periodically calculates the ability reduction coefficient of itself, when ability is rolled over
When subtracting coefficient and reaching preset ability reduction coefficient upper threshold, which sends feedback letter to the cluster head of its upper hop
Breath, so that the cluster head of the upper hop reselects next-hop node;The calculation formula of the ability reduction coefficient are as follows:
In formula, B)For the ability reduction coefficient of next-hop node J, Q)For the current remaining of next-hop node J, M)For
Make the cluster head quantity of next-hop node, Q with next-hop node JτFor the preset coefficient of energy dissipation based on distance, h (J, O) is next
Distance of the hop node J to aggregation node, K)For the sensor node quantity in next-hop node J cluster.
The present embodiment innovatively proposes the concept of ability reduction coefficient, to sense in the energy of next-hop node, cluster
Device number of nodes, the cluster head quantity at a distance from aggregation node and as next-hop node are to consider the factor, are devised
The calculation formula of the ability reduction coefficient.The present embodiment reaches in preset ability reduction coefficient threshold value when ability reduction coefficient
In limited time, the next-hop node to the cluster head of its upper hop send feedback information so that the cluster head of the upper hop reselect it is next
Hop node, advantageously reduces the probability of next-hop node failure, the energy consumption of balanced each cluster head, guarantee environment data forwarding it is reliable
Property.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds
Block is completed, i.e., the internal structure of system is divided into different functional modules, to complete all or part of function described above
Energy.The system of foregoing description and the specific work process of terminal, can refer to corresponding processes in the foregoing method embodiment, herein
It repeats no more.
Through the above description of the embodiments, those skilled in the art can be understood that it should be appreciated that can
To realize the embodiments described herein with hardware, software, firmware, middleware, code or its any appropriate combination.For hardware
It realizes, processor can be realized in one or more the following units: specific integrated circuit, digital signal processor, number letter
Number processing system, field programmable gate array, processor, controller, microcontroller, microprocessor, is set programmable logic device
Count other electronic units or combinations thereof for realizing functions described herein.For software implementations, the part of embodiment or complete
Portion's process can instruct relevant hardware to complete by computer program.When realization, above procedure can be stored in meter
It instructs in calculation machine readable medium or as the one or more on computer-readable medium or code is transmitted.It is computer-readable
Medium includes computer storage media and communication media, and wherein communication media includes convenient for passing from a place to another place
Send any medium of computer program.Storage medium can be any usable medium that computer can access.It is computer-readable
Medium can include but is not limited to random access memory, read-only memory mirror image, band Electrically Erasable Programmable Read-Only Memory or its
His optical disc storage, magnetic disk storage medium or other magnetic-memory systems or it can be used in carrying or storing that there is instruction or number
According to structure type desired program code and can be by any other medium of computer access.
Finally it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than the present invention is protected
The limitation of range is protected, although explaining in detail referring to preferred embodiment to the present invention, those skilled in the art are answered
Work as understanding, it can be with modification or equivalent replacement of the technical solution of the present invention are made, without departing from the reality of technical solution of the present invention
Matter and range.