CN109587649A - A kind of data communications method based on cloud service, apparatus and system - Google Patents
A kind of data communications method based on cloud service, apparatus and system Download PDFInfo
- Publication number
- CN109587649A CN109587649A CN201811527724.6A CN201811527724A CN109587649A CN 109587649 A CN109587649 A CN 109587649A CN 201811527724 A CN201811527724 A CN 201811527724A CN 109587649 A CN109587649 A CN 109587649A
- Authority
- CN
- China
- Prior art keywords
- cluster head
- data
- neighbours
- cloud service
- user terminal
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/38—Services specially adapted for particular environments, situations or purposes for collecting sensor information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
Abstract
The present invention provides a kind of data communications method based on cloud service, apparatus and system, the method comprise the steps that module receives and stores the data of acquisition from radio sensor network monitoring module to cloud service module by wireless communication;The cloud service module receives the ID authentication request comprising key and identity sent by the user terminal in local device module;The cloud service module authenticates the user terminal according to the ID authentication request, it establishes and communicates to connect with the user terminal after the authentication has been successful, wherein when the cloud service module finds the identity in its database and the verifying key is correct, judgement is authenticated successfully;The data of the received acquisition are compared the cloud service module with the normal data prestored, whether it is abnormal with the data of the determination acquisition, when the data of the acquisition are abnormal, abnormal data are sent to the user terminal established communication by the cloud service module.
Description
Technical field
The present invention relates to cloud service technical fields, and in particular to a kind of data communications method based on cloud service, device and
System.
Background technique
With the development of science and technology, the personal monitoring of early stage is eliminated substantially, traditional way is exactly to send someone to each
Monitoring region holds the detection device data inputting that is monitored, and will acquire to relevant system, this monitoring method efficiency
It is low, at high cost, and user can not get required data in real time.
With the development of computer technology and wireless sensor network technology, the wireless monitor in extensive area is provided
Possible ways and means.Wireless sensor network is the net being made of a large amount of wireless sensor nodes with self-organizing mode
Network, it has, and sensor node density is high, network topology change is frequent and node power, computing capability and data storage capacities
The features such as limited, so that wireless sensor network is led in environmental monitoring military affairs, medical treatment & health, family intelligent monitoring and other business
Domain has a wide range of applications.However, the finite energy of existing wireless sensor network because sensor node, still remains
More defect.
Summary of the invention
In view of the above-mentioned problems, the present invention provides a kind of data communications method based on cloud service, apparatus and system.
The purpose of the present invention is realized using following technical scheme:
First aspect present invention embodiment provides a kind of data communications method based on cloud service, this method comprises:
Module receives and stores the number of acquisition from radio sensor network monitoring module to cloud service module by wireless communication
According to;
It includes key and identity that the cloud service module, which is received by the user terminal transmission in local device module,
ID authentication request;
The cloud service module authenticates the user terminal according to the ID authentication request, after the authentication has been successful
It establishes and communicates to connect with the user terminal, wherein when the cloud service module finds the identity in its database
And the verifying key it is correct when, judgement authenticates successfully;
The data of the received acquisition are compared the cloud service module with the normal data prestored, to determine
Whether the data for stating acquisition are abnormal, and when the data of the acquisition are abnormal, the cloud service module is by abnormal number
According to being sent to the user terminal established communication;
Wherein, the radio sensor network monitoring module includes single aggregation node, multiple sensor nodes and more
A cluster head, the selection of each sensor node apart from nearest cluster head be added cluster, the cloud service module and the aggregation node into
Row data communication;The sensor node is responsible for carrying out the acquisition of data, and the cluster head is responsible for collecting each sensor node in cluster
The data of acquisition, each cluster head select the mode and the remittance of direct communication or indirect communication according to the distance to aggregation node
Poly- node communication, the direct communication are that the data of the acquisition of collection are directly sent to the aggregation node, institute by cluster head
It states indirect communication and the data of the received acquisition is sent to next-hop node for cluster head, described in being forwarded as next-hop node
The data of acquisition, until the data of the acquisition are sent to aggregation node.
In a kind of mode that can be realized of first aspect present invention embodiment, verified to the user terminal
After success, the method also includes:
The cloud service module detects the number that the user terminal sends ID authentication request, asks when sending authentication
When the number asked is greater than preset threshold, refusal establishes connection with the user terminal.
In a kind of mode that can be realized of first aspect present invention embodiment, verified to the user terminal
After success, the method also includes:
The access request of the cloud service module response user terminal, provides the operation interface of the data of storage to the use
Family terminal;
The cloud service module responds operation of the user terminal based on the operation interface.
Second aspect of the present invention embodiment provides a kind of data communication equipment based on cloud service, which includes:
Receiving submodule is communicated with wireless communication module, for module by wireless communication from wireless sensor network
Monitoring modular receives the data of acquisition, is also used to receive and be asked by the authentication that the user terminal in local device module is sent
It asks;
Sub-module stored, for storing the data of the acquisition;
Submodule is verified, for verifying according to the ID authentication request to the user terminal, wherein when described
When verifying submodule finds the identity and the correct verifying key in the database, judgement is authenticated successfully;
Control submodule, for verifying submodule the user terminal is proved to be successful after, control sending submodule with
The user terminal establishes communication connection;
Submodule is handled, for the data of the acquisition to be compared with the normal data prestored, to adopt described in determination
Whether the data of collection are abnormal;
Sending submodule, for abnormal data being sent to and are established with it when the data of the acquisition being abnormal
The user terminal of communication;
Wherein, the radio sensor network monitoring module includes single aggregation node, multiple sensor nodes and more
A cluster head, the selection of each sensor node apart from nearest cluster head be added cluster, the cloud service module and the aggregation node into
Row data communication;The sensor node is responsible for carrying out the acquisition of data, and the cluster head is responsible for collecting each sensor node in cluster
The data of acquisition, when the distance between cluster head and aggregation node are less than the upper limit at a distance from setting, sensor node selection is direct
The mode of communication;Otherwise, the mode of cluster head selection indirect communication, the direct communication are cluster head directly by the acquisition of collection
Data be sent to the aggregation node, the indirect communication is that the data of the received acquisition are sent to next-hop by cluster head
Node, to forward the data of the acquisition by next-hop node, until the data of the acquisition are sent to aggregation node.
In a kind of mode that can be realized of second aspect of the present invention embodiment, the verifying submodule is to the use
After family terminal is proved to be successful, the verifying submodule is also used to:
The number that the user terminal sends ID authentication request is detected, when the number for sending ID authentication request is greater than in advance
If when threshold value, refusal establishes connection with the user terminal.
In a kind of mode that can be realized of first aspect present invention embodiment, the verifying submodule is to the use
After family terminal is proved to be successful, the access request of the control submodule response user terminal controls the transmission submodule
Block provides the operation interface of the data of storage to the user terminal;
The control submodule responds operation of the user terminal based on the operation interface.
The third aspect of the present invention embodiment provides a kind of data communication system based on cloud service, the system comprises with
In executing the cloud service module of the data communications method based on cloud service, wireless communication module, local device module as described above
And radio sensor network monitoring module.
Wherein, include at least one user terminal in the local device module, pass through between each user terminal
Zigbee or Wifi carries out networking and communication.
Wherein, the user terminal includes Android device, iOS device, personal computer, embedded board and page visitor
At least one of family end.
The above embodiment of the present invention is based on wireless sensor network technology, realizes the wireless communication of data and to data
Processing in real time uses manpower and material resources sparingly without wiring;It, can more effectively more by the interaction of cloud service module and user terminal
Data needed for user are presented to the user in real time;By carrying out authentication to user terminal, data-privacy is realized
Protection.
Detailed description of the invention
The present invention will be further described with reference to the accompanying drawings, but the embodiment in attached drawing is not constituted to any limit of the invention
System, for those of ordinary skill in the art, without creative efforts, can also obtain according to the following drawings
Other attached drawings.
Fig. 1 is a kind of process signal of data communications method based on cloud service of an illustrative embodiment of the invention
Figure;
Fig. 2 is a kind of structural representation frame of data communication equipment based on cloud service of an illustrative embodiment of the invention
Figure;
Fig. 3 is a kind of structural representation frame of data communication system based on cloud service of an illustrative embodiment of the invention
Figure.
Appended drawing reference:
Receiving submodule 1, verifying submodule 3, control submodule 4, processing submodule 5, sends submodule at sub-module stored 2
Block 6, cloud service module 10, wireless communication module 20, local device module 30, radio sensor network monitoring module 40.
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 data communications method based on cloud service, this method
Include:
First aspect present invention embodiment provides a kind of data communications method based on cloud service, this method comprises:
Module from radio sensor network monitoring module receives and stores acquisition to S01 cloud service module by wireless communication
Data;Wherein, the radio sensor network monitoring module includes single aggregation node, multiple sensor nodes and multiple clusters
Cluster is added apart from nearest cluster head in head, each sensor node selection, and the cloud service module is counted with the aggregation node
According to communication;The sensor node is responsible for carrying out the acquisition of data, and the cluster head is responsible for collecting each sensor node acquisition in cluster
Data, each cluster head according to aggregation node distance selection direct communication or indirect communication mode and the convergence section
Point communication, the direct communication is that the data of the acquisition of collection are directly sent to the aggregation node by cluster head, between described
It connects letter and the data of the received acquisition is sent to next-hop node for cluster head, to forward the acquisition by next-hop node
Data, until the data of the acquisition are sent to aggregation node.
It includes key and identity mark that cloud service module described in S02, which is received by the user terminal transmission in local device module,
The ID authentication request of knowledge.
Cloud service module described in S03 authenticates the user terminal according to the ID authentication request, certification at
It establishes and communicates to connect with the user terminal after function, wherein when the cloud service module finds the identity in its database
Identify and verify the key it is correct when, judgement authenticate successfully.
The data of the received acquisition are compared cloud service module described in S04 with the normal data prestored, with true
Whether the data of the fixed acquisition are abnormal, and when the data of the acquisition are abnormal, the cloud service module will be abnormal
Data be sent to the user terminal established communication.
In a kind of mode that can be realized of first aspect present invention embodiment, verified to the user terminal
After success, the method also includes:
The cloud service module detects the number that the user terminal sends ID authentication request, asks when sending authentication
When the number asked is greater than preset threshold, refusal establishes connection with the user terminal.
In a kind of mode that can be realized of first aspect present invention embodiment, verified to the user terminal
After success, the method also includes:
The access request of the cloud service module response user terminal, provides the operation interface of the data of storage to the use
Family terminal;
The cloud service module responds operation of the user terminal based on the operation interface.
As shown in Fig. 2, second aspect of the present invention embodiment provides a kind of data communication equipment based on cloud service, the dress
It sets and includes:
Receiving submodule 1, communicates with wireless communication module, for module by wireless communication from wireless sensor network
Monitoring modular receives the data of acquisition, is also used to receive and be asked by the authentication that the user terminal in local device module is sent
It asks;
Sub-module stored 2, for storing the data of the acquisition;
Submodule 3 is verified, for verifying according to the ID authentication request to the user terminal, wherein when described
When verifying submodule 3 finds the identity and the correct verifying key in the database, judgement is authenticated successfully;
Control submodule 4, for controlling sending submodule 6 after verifying submodule 3 is proved to be successful the user terminal
It establishes and communicates to connect with the user terminal;
Submodule 5 is handled, for the data of the acquisition to be compared with the normal data prestored, to adopt described in determination
Whether the data of collection are abnormal;
Sending submodule 6, for abnormal data being sent to and are established with it when the data of the acquisition being abnormal
The user terminal of communication;
Wherein, the radio sensor network monitoring module includes single aggregation node, multiple sensor nodes and more
A cluster head, the selection of each sensor node apart from nearest cluster head be added cluster, the cloud service module and the aggregation node into
Row data communication;The sensor node is responsible for carrying out the acquisition of data, and the cluster head is responsible for collecting each sensor node in cluster
The data of acquisition, when the distance between cluster head and aggregation node are less than the upper limit at a distance from setting, sensor node selection is direct
The mode of communication;Otherwise, the mode of cluster head selection indirect communication, the direct communication are cluster head directly by the acquisition of collection
Data be sent to the aggregation node, the indirect communication is that the data of the received acquisition are sent to next-hop by cluster head
Node, to forward the data of the acquisition by next-hop node, until the data of the acquisition are sent to aggregation node.
In a kind of mode that can be realized of second aspect of the present invention embodiment, the verifying submodule 3 is to described
After user terminal is proved to be successful, the verifying submodule 3 is also used to:
The number that the user terminal sends ID authentication request is detected, when the number for sending ID authentication request is greater than in advance
If when threshold value, refusal establishes connection with the user terminal.
In a kind of mode that can be realized of first aspect present invention embodiment, the verifying submodule 3 is to described
After user terminal is proved to be successful, the control submodule 4 responds the access request of user terminal, controls transmission
Module 6 provides the operation interface of the data of storage to the user terminal;
The control submodule 4 responds operation of the user terminal based on the operation interface.
As shown in figure 3, the third aspect of the present invention embodiment provides a kind of data communication system based on cloud service, it is described
System includes for executing the cloud service module 10 of the data communications method based on cloud service as described above, wireless communication module
20, local device module 30 and radio sensor network monitoring module 40.
Wherein, include at least one user terminal in the local device module 30, lead between each user terminal
It crosses Zigbee or Wifi and carries out networking and communication.
Wherein, the user terminal includes Android device, iOS device, personal computer, embedded board and page visitor
At least one of family end.
The above embodiment of the present invention is based on wireless sensor network technology, realizes the wireless communication of data and to data
Processing in real time uses manpower and material resources sparingly without wiring;It, can more effectively more by the interaction of cloud service module and user terminal
Data needed for user are presented to the user in real time;By carrying out authentication to user terminal, data-privacy is realized
Protection.
In the data communications method based on cloud service of above-described embodiment, device and system, cluster head selects next-hop section
It is specific to execute when point:
(1) the data transmission Superiority Value of itself is calculated when each cluster head is initial:
In formula, QiIndicate that the data of cluster head i transmit Superiority Value, d (i, sink) is distance of the cluster head i to aggregation node, d
(i, k) is distance of the cluster head i to its k-th of neighbours' cluster head, niFor neighbours' cluster head number that cluster head i has, λ is the weight of setting
Coefficient, and 0 < λ < 0.5, neighbours' cluster head are the cluster head in cluster head i communication range;
(2) cluster head and each neighbours' cluster head carry out information exchange, construct the list of neighbours' cluster head, obtain the data of each neighbours' cluster head
Transmission advantage value information, and store the corresponding position into neighbours' cluster head list;When selecting next-hop node, cluster head is under
Column formula calculates the weight of each neighbours' cluster head, and selects the maximum neighbours' cluster head of weight as next-hop node:
In formula, WABIndicate the weight of neighbours' cluster head B of cluster head A, QABSuperiority Value is transmitted for the data of neighbours' cluster head B,
D (A, B) is distance of the cluster head A to neighbours' cluster head B, EBFor the current remaining of neighbours' cluster head B, EminIt is default
Minimum energy value, VBFor using neighbours' cluster head B as the cluster head quantity of next-hop node, nBFor neighbours' cluster head B's
Neighbours' cluster head quantity, ω are the regulation coefficient of setting;σ1、σ2For the weight coefficient and σ of setting1+σ2=1.
The present embodiment innovatively sets the calculation formula of the data transmission Superiority Value of cluster head, which is based on cluster
Head and the positional relationship between surrounding cluster head, aggregation node carry out data transmission the calculating of Superiority Value, can preferably measure cluster
Position advantage situation when head forwarding data determines that next-hop node provides basic data reference for subsequent cluster head, thus favorably
The efficiency of next-hop node is determined in raising cluster head;Energy of the present embodiment based on neighbours' cluster head, position and by other clusters
Head be elected to be three factors of next-hop node, innovatively set the calculation formula of weight, the calculation formula enable to energy,
Position more has bigger probability for neighbours' cluster head of advantage to carry out data forwarding, and the calculation formula is provided with decaying
CoefficientIt enables to cluster head when selecting next-hop node, avoids as far as possible same with other multiple cluster head selections
Neighbours' cluster head is as next-hop node, to be conducive to the load of balanced periphery neighbours cluster head, improves the reliability of data routing.
In one embodiment, when initial, cluster head is constructed in cluster and is passed according to the information exchange with sensor node each in cluster
Sensor node list, and the cluster head election contest value and corresponding cluster head election contest value of each sensor node in cluster are calculated according to the following formula
Average value will be greater than the cluster head election contest value storage of cluster head election contest value average value to the corresponding positions of the cluster inner sensor node listing
It sets:
In formula, CijFor the cluster head election contest value of the cluster inner sensor node j of cluster head i, d (i, j) is to pass in cluster head i and the cluster
The distance of sensor node j, RiFor the communication distance of cluster head i, ZiFor the sensor node quantity in cluster head i communication range, ZjFor institute
State the sensor node quantity in cluster inner sensor node j communication range, ρ1For preset distance influence factor, ρ2It is preset
Based on the impact factor of Social Relation degree, ρ1Value range be [0.4,0.5], ρ2Value range be [0.3,0.4];
The current remaining of cluster head is lower than 0.1EminWhen, cluster head is sent to the sensor node for being stored with cluster head election contest value
Message is campaigned for, the sensor node for receiving the election contest message judges whether the current remaining of itself is greater than 2Emin, if so,
It sends and feeds back to the cluster head, the cluster head is using receive first corresponding sensor node of feedback as taking over sb.'s job cluster head, and extensively
Each sensor node in its cluster is cast to, to be responsible for subsequent Data Collection task by taking over sb.'s job cluster head.
The present embodiment creatively sets the replacement mechanism of cluster head, and cluster head precalculates each sensor in cluster in the mechanism
The cluster head election contest value of node, and the cluster head election contest value that will be greater than cluster head election contest value average value is stored to the cluster inner sensor node
The corresponding position of list.The candidate sensor node for taking over sb.'s job cluster head can be served as by determination in advance, be conducive to that cluster head is avoided to exist
More energy are consumed when rotation.When the energy of cluster head is difficult to maintain work lower than certain level, by being stored with cluster
The sensor node of head election contest value sends election contest message, and can the sensor node by receiving the election contest message voluntarily judge serve as
Cluster head is taken over sb.'s job, the efficiency of cluster head rotation is improved.In conjunction with based on cluster head election contest value it is preparatory screening and subsequent sensor node
Voluntarily judgment mechanism, carry out the determination for taking over sb.'s job cluster head, be conducive to promote cluster head choose as far as possible it is optimal take over sb.'s job cluster head, from
And it preferably completes the data collection undertaken originally by the cluster head and assists the task of forwarding, while reducing the cluster head as much as possible
It cannot maintain to work normally because energy is too low and be adversely affected to data communication bring, ensure the steady of wireless sensor network operation
It is qualitative.
In one embodiment, next-hop node judges the forwarding energy situation of itself every a cycle Δ T, if meeting
Following condition, the next-hop node send early warning information to its upper hop cluster head, promote to receive the cluster head of the early warning information again
Select next-hop node:
In formula, ElFor the current remaining of next-hop node l, HlFor next-hop node l currently available caching it is big
It is small, HminFor the minimum cache threshold of setting, f (El-Emin) it is to judge value function, work as El-EminWhen > 0, f (El-Emin)=1,
Work as El-EminWhen≤0, f (El-Emin)=0, δ is that the preset unit data congestion based on distance delays the factor, the value range of G
For [0.01,0.03], d0Unit distance, d are forwarded for preset data packetl,avgFor next-hop node l and its all upper hop cluster
The average value of the distance of head.
The present embodiment devises the feedback early warning mechanism of next-hop node, wherein it is every innovatively to set next-hop node
The Rule of judgment of the forwarding energy situation of itself is judged every a cycle Δ T.The slow of next-hop node is determined in the Rule of judgment
When depositing situation, the currently available cache size of next-hop node is not only allowed for, and considers next-hop node because with each
Upper hop cluster head there is distance and the case where cause data congestion to delay so that really to the caching situation of next-hop node
Surely robustness and accuracy are had more.In the present embodiment, which is meeting Rule of judgment Shi Xiangqi upper hop cluster head
Early warning information is sent, promotes the cluster head for receiving the early warning information to reselect next-hop node, advantageously reduces next-hop node
Because data congestion spends that big or energy is insufficient and the probability of packet loss, and then improve the reliability and efficiency of data communication.
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 following submodules: specific integrated circuit, digital signal processor, number
Signal processing system, programmable logic device, field programmable gate array, processor, controller, microcontroller, microprocessor,
Designed for realizing other electronics submodules or combinations thereof of functions described herein.For software implementations, the part of embodiment
Or whole processes can instruct relevant hardware to complete by computer program.When realization, above procedure can be stored
It instructs in computer-readable medium or as the one or more on computer-readable medium or code is transmitted.Computer
Readable medium includes computer storage media and communication media, wherein communication media include convenient for from a place to another ground
Any medium of side's transmission computer program.Storage medium can be any usable medium that computer can access.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 other optical disc storages, magnetic disk storage medium or other magnetic-memory systems or can be used in carry or store have instruction
Or data structure form 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.
Claims (7)
1. a kind of data communications method based on cloud service, characterized in that this method comprises:
Module receives and stores the data of acquisition from radio sensor network monitoring module to cloud service module by wireless communication;
The cloud service module receives the body comprising key and identity sent by the user terminal in local device module
Part certification request;
The cloud service module authenticates the user terminal according to the ID authentication request, after the authentication has been successful with institute
State user terminal establish communication connection, wherein when the cloud service module find in its database the identity and
Verify the key it is correct when, judgement authenticate successfully;
The data of the received acquisition are compared the cloud service module with the normal data prestored, to adopt described in determination
Whether the data of collection are abnormal, and when the data of the acquisition are abnormal, the cloud service module sends out abnormal data
It send to the user terminal established communication;
Wherein, the radio sensor network monitoring module includes single aggregation node, multiple sensor nodes and multiple clusters
Cluster is added apart from nearest cluster head in head, each sensor node selection, and the cloud service module is counted with the aggregation node
According to communication;The sensor node is responsible for carrying out the acquisition of data, and the cluster head is responsible for collecting each sensor node acquisition in cluster
Data, each cluster head according to aggregation node distance selection direct communication or indirect communication mode and the convergence section
Point communication, the direct communication is that the data of the acquisition of collection are directly sent to the aggregation node by cluster head, between described
It connects letter and the data of the received acquisition is sent to next-hop node for cluster head, to forward the acquisition by next-hop node
Data, until the data of the acquisition are sent to aggregation node;
It is specific to execute when cluster head selects next-hop node:
(1) the data transmission Superiority Value of itself is calculated when each cluster head is initial:
In formula, QiIndicate that the data of cluster head i transmit Superiority Value, d (i, sink) is distance of the cluster head i to aggregation node, and d (i, k) is
Distance of the cluster head i to its k-th of neighbours' cluster head, niFor neighbours' cluster head number that cluster head i has, λ is the weight coefficient of setting, and
0 < λ < 0.5, neighbours' cluster head are the cluster head in cluster head i communication range;
(2) cluster head and each neighbours' cluster head carry out information exchange, construct the list of neighbours' cluster head, obtain the data transmission of each neighbours' cluster head
Advantage value information, and store the corresponding position into neighbours' cluster head list;When selecting next-hop node, cluster head is according to following public affairs
Formula calculates the weight of each neighbours' cluster head, and selects the maximum neighbours' cluster head of weight as next-hop node:
In formula, WABIndicate the weight of neighbours' cluster head B of cluster head A, QABFor neighbours' cluster head B data transmit Superiority Value, d (A,
It B) is distance of the cluster head A to neighbours' cluster head B, EBFor the current remaining of neighbours' cluster head B, EminFor it is preset most
Small energy value, VBFor using neighbours' cluster head B as the cluster head quantity of next-hop node, nBFor the neighbours of neighbours' cluster head B
Cluster head quantity, ω are the regulation coefficient of setting;σ1、σ2For the weight coefficient and σ of setting1+σ2=1.
2. a kind of data communications method based on cloud service according to claim 1, characterized in that whole to the user
After end is proved to be successful, the method also includes:
The cloud service module detects the number that the user terminal sends ID authentication request, when transmission ID authentication request
When number is greater than preset threshold, refusal establishes connection with the user terminal.
3. a kind of data communications method based on cloud service according to claim 1, characterized in that whole to the user
After end is proved to be successful, the method also includes:
The access request of the cloud service module response user terminal, the operation interface for providing the data of storage are whole to the user
End;
The cloud service module responds operation of the user terminal based on the operation interface.
4. a kind of data communication equipment based on cloud service, characterized in that the device includes:
A kind of data communication equipment based on cloud service, the device include:
Receiving submodule is communicated with wireless communication module, for module by wireless communication from radio sensor network monitoring
Module receives the data of acquisition, is also used to receive the ID authentication request sent by the user terminal in local device module;
Sub-module stored, for storing the data of the acquisition;
Submodule is verified, for verifying according to the ID authentication request to the user terminal, wherein when the verifying
When submodule finds the identity and the correct verifying key in the database, judgement is authenticated successfully;
Control submodule, for verifying submodule the user terminal is proved to be successful after, control sending submodule with it is described
User terminal establishes communication connection;
Submodule is handled, for the data of the acquisition to be compared with the normal data prestored, with the determination acquisition
Whether data are abnormal;
Sending submodule, for abnormal data being sent to and are established communication when the data of the acquisition being abnormal
User terminal;
Wherein, the radio sensor network monitoring module includes single aggregation node, multiple sensor nodes and multiple clusters
Cluster is added apart from nearest cluster head in head, each sensor node selection, and the cloud service module is counted with the aggregation node
According to communication;The sensor node is responsible for carrying out the acquisition of data, and the cluster head is responsible for collecting each sensor node acquisition in cluster
Data, when the distance between cluster head and aggregation node are less than the upper limit at a distance from setting, sensor node select direct communication
Mode;Otherwise, the mode of cluster head selection indirect communication, the direct communication are cluster head directly by the number of the acquisition of collection
According to the aggregation node is sent to, the data of the received acquisition are sent to next-hop section for cluster head by the indirect communication
Point, to forward the data of the acquisition by next-hop node, until the data of the acquisition are sent to aggregation node;
It is specific to execute when cluster head selects next-hop node:
(1) the data transmission Superiority Value of itself is calculated when each cluster head is initial:
In formula, QiIndicate that the data of cluster head i transmit Superiority Value, d (i, sink) is distance of the cluster head i to aggregation node, and d (i, k) is
Distance of the cluster head i to its k-th of neighbours' cluster head, niFor neighbours' cluster head number that cluster head i has, λ is the weight coefficient of setting, and
0 < λ < 0.5, neighbours' cluster head are the cluster head in cluster head i communication range;
(2) cluster head and each neighbours' cluster head carry out information exchange, construct the list of neighbours' cluster head, obtain the data transmission of each neighbours' cluster head
Advantage value information, and store the corresponding position into neighbours' cluster head list;When selecting next-hop node, cluster head is according to following public affairs
Formula calculates the weight of each neighbours' cluster head, and selects the maximum neighbours' cluster head of weight as next-hop node:
In formula, WABIndicate the weight of neighbours' cluster head B of cluster head A, QABFor neighbours' cluster head B data transmit Superiority Value, d (A,
It B) is distance of the cluster head A to neighbours' cluster head B, EBFor the current remaining of neighbours' cluster head B, EminFor it is preset most
Small energy value, VBFor using neighbours' cluster head B as the cluster head quantity of next-hop node, nBFor the neighbours of neighbours' cluster head B
Cluster head quantity, ω are the regulation coefficient of setting;σ1、σ2For the weight coefficient and σ of setting1+σ2=1.
5. a kind of data communication equipment based on cloud service according to claim 4, characterized in that the verifying submodule
After being proved to be successful to the user terminal, the verifying submodule is also used to:
The number that the user terminal sends ID authentication request is detected, when the number for sending ID authentication request is greater than default threshold
When value, refusal establishes connection with the user terminal.
6. a kind of data communication equipment based on cloud service according to claim 4, characterized in that institute's verifying submodule
Block is after being proved to be successful the user terminal, the access request of the control submodule response user terminal, control
The sending submodule provides the operation interface of the data of storage to the user terminal;
The control submodule responds operation of the user terminal based on the operation interface.
7. a kind of data communication system based on cloud service, characterized in that the system comprises cloud service modules, radio communication mold
Block, local device module and radio sensor network monitoring module, the cloud service module, are locally set wireless communication module
Standby module and radio sensor network monitoring module are as described in any one of claims 1-3 a kind of based on cloud clothes for executing
The data communications method of business.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527724.6A CN109587649A (en) | 2018-12-13 | 2018-12-13 | A kind of data communications method based on cloud service, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527724.6A CN109587649A (en) | 2018-12-13 | 2018-12-13 | A kind of data communications method based on cloud service, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109587649A true CN109587649A (en) | 2019-04-05 |
Family
ID=65928044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811527724.6A Withdrawn CN109587649A (en) | 2018-12-13 | 2018-12-13 | A kind of data communications method based on cloud service, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109587649A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109640327A (en) * | 2018-12-19 | 2019-04-16 | 苏州迈荣祥信息科技有限公司 | Data communications method, apparatus and system based on Internet of Things |
CN113391666A (en) * | 2021-06-08 | 2021-09-14 | 上海峻鼎渔业科技有限公司 | Multi-parameter control system for aquaculture environment and water quality |
CN113938306A (en) * | 2021-10-18 | 2022-01-14 | 北京八分量信息科技有限公司 | Credible authentication method and system based on data cleaning rule |
CN114640174A (en) * | 2022-03-16 | 2022-06-17 | 广东博通新能源科技有限公司 | Modular photovoltaic power station control management system |
-
2018
- 2018-12-13 CN CN201811527724.6A patent/CN109587649A/en not_active Withdrawn
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109640327A (en) * | 2018-12-19 | 2019-04-16 | 苏州迈荣祥信息科技有限公司 | Data communications method, apparatus and system based on Internet of Things |
CN109640327B (en) * | 2018-12-19 | 2020-06-26 | 紫光云引擎科技(苏州)有限公司 | Data communication method and device based on Internet of things |
CN113391666A (en) * | 2021-06-08 | 2021-09-14 | 上海峻鼎渔业科技有限公司 | Multi-parameter control system for aquaculture environment and water quality |
CN113938306A (en) * | 2021-10-18 | 2022-01-14 | 北京八分量信息科技有限公司 | Credible authentication method and system based on data cleaning rule |
CN113938306B (en) * | 2021-10-18 | 2024-01-30 | 北京八分量信息科技有限公司 | Trusted authentication method and system based on data cleaning rule |
CN114640174A (en) * | 2022-03-16 | 2022-06-17 | 广东博通新能源科技有限公司 | Modular photovoltaic power station control management system |
CN114640174B (en) * | 2022-03-16 | 2023-03-24 | 广东博通新能源科技有限公司 | Modular photovoltaic power station control management system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109587649A (en) | A kind of data communications method based on cloud service, apparatus and system | |
CN103477571B (en) | Method and apparatus for peer-to-peer service in wireless communication system | |
CN101803309B (en) | Method and system of routing in a utility smart-grid network | |
US20080013502A1 (en) | Wireless data bus | |
US20080080438A1 (en) | Methods and systems for centralized cluster management in wireless switch architecture | |
CN109361774A (en) | A kind of Internet of things system framework and data communications method | |
CN109417691A (en) | A kind of blue tooth cluster online upgrading method and device | |
CN108432192A (en) | Network flow is shifted from the network equipment | |
CN109361708A (en) | Data informationization acquisition, management and analysis system and method | |
CN109600728A (en) | A kind of method of data capture, apparatus and system | |
CN109613867A (en) | A kind of Research on Vehicle Remote Monitoring System Based on GPRS and method | |
CN108347376A (en) | A kind of method, apparatus and system of adjustment forward-path | |
CN110011840A (en) | Condition processing method, device and the controller of controller | |
CN109618001A (en) | Internet-of-things terminal data managing and control system and its method based on cloud platform | |
CN109526020A (en) | Data transmission method and Related product | |
CN104869621B (en) | A kind of Network Recognition method and apparatus | |
CN116527430A (en) | HPLC and HRF dual-mode communication network access method | |
CN109714833A (en) | A kind of data communications method, apparatus and system | |
CN109600730A (en) | A kind of collection control method and terminal of information | |
CN109660966A (en) | A kind of Research on Vehicle Remote Monitoring System Based on GPRS and method | |
CN109890001A (en) | A kind of data communications method based on cloud service, apparatus and system | |
CN109688556A (en) | The system and method for data transmission and processing | |
CN109640285A (en) | Big data searching method and device based on mobile terminal | |
CN109661012A (en) | Information collection and processing method, apparatus and system | |
CN109587716A (en) | A kind of data communications method, apparatus and system |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190405 |