CN111586789A - Data transmission method and device, computer equipment and storage medium - Google Patents

Data transmission method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111586789A
CN111586789A CN202010423398.5A CN202010423398A CN111586789A CN 111586789 A CN111586789 A CN 111586789A CN 202010423398 A CN202010423398 A CN 202010423398A CN 111586789 A CN111586789 A CN 111586789A
Authority
CN
China
Prior art keywords
cluster head
node
sensor
nodes
cluster
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
CN202010423398.5A
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.)
Beijing Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
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 Beijing Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN202010423398.5A priority Critical patent/CN111586789A/en
Publication of CN111586789A publication Critical patent/CN111586789A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/32Connectivity information management, e.g. connectivity discovery or connectivity update for defining a routing cluster membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a data transmission method, a data transmission device, computer equipment and a storage medium, relates to the technical field of data transmission, and aims to select a proper transmission path, efficiently transmit information to a base station and consume less node energy. The main technical scheme of the invention is as follows: determining cluster head nodes in a wireless sensor network, wherein the cluster head nodes are used for receiving data transmitted by other sensor nodes in a cluster, and the wireless sensor network comprises a plurality of sensor nodes; calculating the data receiving coverage range of each cluster head node, wherein a plurality of sensor nodes in the coverage range form a cluster; if the sensor node is in the coverage range of the cluster head nodes, the sensor node selects to join the cluster in which the communication signal with the cluster head node is strongest; and the cluster head node receives the data collected by all the sensor nodes in the cluster where the cluster head node is located, and sends the received data to the base station.

Description

Data transmission method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a data transmission method and apparatus, a computer device, and a storage medium.
Background
In recent years, wireless sensor technology has become an emerging research hotspot in the fields of communications and computers. Wireless Sensor Networks (WSNs) consisting of a large number of sensor segments and base stations deployed within a detection area are of great interest. The wireless sensor network nodes have certain functions of calculation, storage, information transmission and the like, can acquire required data information in real time by manually or randomly scattering and arranging the sensor nodes in an area to be monitored, and transmit the data information to the base station in a single-hop or multi-hop mode.
The smart grid is a necessary trend of power grid technology development, and in order to meet diversified demands of power consumers, a power grid company needs to establish a novel power supply relation for real-time interaction between a power grid and the consumers. The real-time monitoring of the load power consumption and the service time of the power consumer is the primary link for establishing a novel relationship, and the data acquisition by using the wireless sensor network technology can provide technical support for the real-time monitoring.
In an electric energy monitoring system, long-distance information transmission is needed among sensor nodes, some sensor network nodes are far away from a base station, the energy of a node power supply is limited, and if the node is early exhausted, difficulty is brought to node maintenance. Therefore, how to select a suitable transmission path to efficiently transmit information to the base station and consume less node energy, so that the node power consumption is balanced, is a problem worthy of study.
Disclosure of Invention
The invention provides a data transmission method, a data transmission device, computer equipment and a storage medium, which are used for selecting a proper transmission path, can efficiently transmit information to a base station and consume less node energy.
The embodiment of the invention provides a data transmission method, which comprises the following steps:
determining cluster head nodes in a wireless sensor network, wherein the cluster head nodes are used for receiving data transmitted by other sensor nodes in a cluster, and the wireless sensor network comprises a plurality of sensor nodes;
calculating the data receiving coverage range of each cluster head node, wherein a plurality of sensor nodes in the coverage range form a cluster;
if the sensor node is in the coverage range of the cluster head nodes, the sensor node selects to join the cluster in which the communication signal with the cluster head node is strongest;
and the cluster head node receives the data collected by all the sensor nodes in the cluster where the cluster head node is located, and sends the received data to the base station.
The embodiment of the invention provides a data transmission device, which comprises:
the wireless sensor network comprises a determining module, a determining module and a transmitting module, wherein the determining module is used for determining cluster head nodes in the wireless sensor network, the cluster head nodes are used for receiving data transmitted by other sensor nodes in a cluster, and the wireless sensor network comprises a plurality of sensor nodes;
a calculation module for calculating a coverage area of data reception of each of the cluster head nodes, a plurality of the sensor nodes in the coverage area forming a cluster;
the adding module is used for selecting the sensor node to add the cluster with the strongest communication signal with the cluster head node if the sensor node is in the coverage range of the cluster head nodes;
and the transmission module is used for receiving the data acquired by all the sensor nodes in the cluster where the cluster head node is located and sending the received data to the base station.
A computer device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, said processor implementing the above data transmission method when executing said computer program.
A computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the above-described data transmission method.
The invention provides a data transmission method, a data transmission device, computer equipment and a storage medium.A cluster head node in a wireless sensor network is determined firstly, then the coverage range of data receiving of each cluster head node is calculated, and a plurality of sensor nodes in the coverage range form a cluster; if the sensor node is in the coverage range of the cluster head nodes, the sensor node selects to join the cluster in which the communication signal with the cluster head node is strongest; and the cluster head node receives the data collected by all the sensor nodes in the cluster where the cluster head node is located, and sends the received data to the base station. The invention determines the optimal coverage radius of the cluster head node by changing the range of the cluster, improving the clustering mechanism and jointly determining the clustering mechanism of the node according to the data transmission distance, the energy factor and the data volume. Therefore, the energy consumption of the sensor nodes can be well balanced, the life cycle of the whole network and the system maintenance cycle are prolonged, the efficient and long-distance transmission of the power utilization energy efficiency data is realized, and the stable operation of the power utilization monitoring system is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic hardware structure diagram of a data transmission method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data transmission method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a process for determining a first-turn cluster head node in a wireless sensor network according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a sensor node communicating with a cluster head node according to an embodiment of the present invention;
FIG. 5 is a diagram of wireless communication in accordance with an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a data transmission apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the data transmission method provided in the embodiment of the present invention is based on a wireless sensor network technology, and includes a power module, a data acquisition module, a data processing module, a wireless communication module, and a remote monitoring terminal (base station); the power supply module is used for providing energy for the data acquisition module, the data processing module and the wireless communication module; the data acquisition module is used for acquiring real-time data of the power consumption and the service time of the load of the power user in the area to be monitored; the data processing module is used for processing the data acquired by the data acquisition module; the wireless communication module is used for transmitting the data processed by the data processing module to a remote monitoring terminal (base station) through a Wifi or Zigbee technology; the remote monitoring center collects the data of each data transmission module and stores the data so as to fetch the electricity consumption service condition, historical consumption data and other electricity consumption parameters of each user.
As shown in fig. 2, an embodiment of the present invention provides a data transmission method, including the following steps:
and S10, determining cluster head nodes in the wireless sensor network, wherein the cluster head nodes are used for receiving data transmitted by other sensor nodes in the cluster.
It should be noted that the wireless sensor network in the embodiment of the present invention includes a plurality of sensor nodes, and the sensor nodes are deployed according to the position of the user. Specifically, in the field of power detection applied to practical applications, since power monitoring is generally arranged at a user's electric meter, sensor nodes are installed at the electric meter, the arrangement of the electric meter is generally regular, and the placement positions of the sensor nodes are also regular. The cluster head node is one or more determined sensor nodes in the wireless sensors and is used for realizing communication with other wireless sensors in the corresponding cluster range.
As shown in fig. 3, in an embodiment provided by the present invention, the cluster head nodes include a first-round determined cluster head node and a non-first-round determined cluster head node, where the first-round determined cluster head node is a first-round determined cluster head node, and the non-first-round determined cluster head node is a cluster head node determined in another round except the first round, and specifically, the determining the first-round cluster head node in the wireless sensor network includes:
s101, determining the probability that all sensor nodes in the wireless sensor network serve as cluster head nodes.
Specifically, the probability that all sensor nodes in the wireless sensor network serve as cluster head nodes is determined through the following formula:
Figure BDA0002497794020000051
wherein, the p isoptThe ratio of the number of the cluster head nodes to the number of the sensor nodes is initially set, Er(i) For the remaining energy value of the sensor node i, said
Figure BDA0002497794020000052
And the average residual energy value of all the sensor nodes after the r round. It should be noted that the remainder in the examples of the present inventionThe residual energy refers to the residual capacity of the node.
And S102, randomly generating a random number corresponding to each sensor node, wherein the random number is in a range of 0 to 1.
And S103, setting the random number of the sensor node smaller than a set threshold as a cluster head node, wherein the set threshold is determined according to the probability that the sensor node acts as the cluster head node.
For the embodiment of the invention, after the random number corresponding to each sensor is generated, whether the random number of the sensor node is smaller than the set threshold value or not is judged, and if the random number of the sensor node is smaller than the set threshold value, the sensor node of which the random number is smaller than the set threshold value is set as the cluster head node.
Wherein the set threshold is determined by the following formula:
Figure BDA0002497794020000061
wherein G is the nearest 1-piThe set of cluster head nodes is not acted in the round, r represents the number of rounds performed by the current cycle, SiRepresenting sensor nodes i, piProbability of serving as a cluster head node for the sensor node i.
In another embodiment provided by the present invention, the determining the non-first-round cluster head nodes in the wireless sensor network includes:
determining a non-first-round cluster head node in a wireless sensor network by the following formula, comprising:
Figure BDA0002497794020000062
wherein d ismaxThe maximum transmission distance from the cluster head node to the base station is shown, and d (i) the distance from the sensor node i to the base station is shown. p is a radical ofiProbability of serving as a cluster head node for the sensor node i.
And S20, calculating the data receiving coverage range of each cluster head node, wherein a plurality of sensor nodes in the coverage range form a cluster.
In the embodiment of the invention, the transmission distance of the node is in a direct proportion relation with the transmitting power, and the larger the transmitting power is, the longer the transmission distance is, so the invention can determine the coverage area according to the transmitting power of the cluster head node.
In an embodiment provided by the present invention, the calculating the coverage of data reception of each cluster head node includes:
the data receiving coverage radius r (i) of the cluster head node i is:
Figure BDA0002497794020000071
wherein d ismaxAnd dminRespectively representing the maximum and minimum transmission distances, R, from the cluster head node to the base station0D (i) represents the distance between the sensor node i and the base station, which is a predefined maximum coverage radius. According to the formula, the coverage range of the cluster head node is 0.5R0To R0To change between.
And S30, if the sensor node is in the coverage range of the cluster head nodes, the sensor node selects to join the cluster with the strongest communication signal with the cluster head node.
As shown in fig. 4, in the embodiment of the present invention, after determining a cluster head node in the wireless sensor network, the node functioning as the cluster head broadcasts its own ID, coverage radius, and its remaining energy, and announces itself as the cluster head. After receiving the broadcast information of the cluster head node, if the common sensor node is covered by only one cluster head node, the common sensor node directly communicates with the cluster head node; and if the sensor node is covered by two or more cluster head nodes, selecting the cluster head node with higher tendency to communicate.
In this embodiment of the present invention, before the sensor node selects and joins the cluster where the communication signal with the cluster head node is strongest, the method further includes:
the strength of the communication signals of the sensor nodes and the cluster head nodes is calculated by the following formula:
Figure BDA0002497794020000072
wherein E isCHres(i) Representing remaining energy of cluster head nodes in communication with the sensor node, said
Figure BDA0002497794020000073
Is the average residual energy value, L, of all sensor nodes after the r roundstr(i) Is the linear distance, L, from the sensor node i to the base stationtoBS(i) Data for the distance that the sensor node i reaches the base station through the cluster head node relaymaxAnd (i) the data (i) is the data quantity which needs to be transmitted by the sensor node i.
And S40, the cluster head node receives the data collected by all the sensor nodes in the cluster where the cluster head node is located, and sends the received data to the base station.
In one embodiment provided by the invention, the energy consumption model of the wireless sensor network adopts a simplified wireless communication energy consumption model as shown in fig. 5. In the model, the energy consumption of the wireless communication module for transmitting data is mainly the transmitting and power amplifying circuit, and the energy consumption for receiving data is mainly the receiving circuit. Specifically, the remaining energy of each node is calculated mainly in the following manner:
the energy attenuation of a radio signal depends on the distance d between the transmitting and receiving ends. When the transmission distance is less than the threshold dcrossoverWhen in use, a Friss Free Space Model (Friss Free Space Model) is adopted; when the transmission distance is greater than the threshold dcrossoverIn the process, a Two-way group Propagation Model (Two-way group Propagation Model) is adopted, and under the condition of ensuring a reasonable signal-to-noise ratio (SNR), the consumption of sending information and receiving information among nodes is as follows:
Figure BDA0002497794020000081
ERx(k)=Eelec×k
where k represents the amount of data transmitted in units of bits. Eelec(nJ/bit) is the radio frequency energy loss, i.e. the energy consumed by the circuit that sends or receives 1bit of information, Efs(pJ/bit/m2) And Emp(pJ/bit/m4) The energy consumption coefficient of the power amplification circuit under different channel propagation models is obtained. Wherein E isfs、EmpFor power amplification circuit coefficient of energy consumption, in particular, Eelec=50nJ/bit,Efs=10pJ/bit/m2,Emp=0.0013pJ/bit/m4,dcrossover=87m。
The invention provides a data transmission method, firstly determining cluster head nodes in a wireless sensor network, then calculating the data receiving coverage range of each cluster head node, wherein a plurality of sensor nodes in the coverage range form a cluster; if the sensor node is in the coverage range of the cluster head nodes, the sensor node selects to join the cluster in which the communication signal with the cluster head node is strongest; and the cluster head node receives the data collected by all the sensor nodes in the cluster where the cluster head node is located, and sends the received data to the base station. The invention determines the optimal coverage radius of the cluster head node by changing the range of the cluster, improving the clustering mechanism and jointly determining the clustering mechanism of the node according to the data transmission distance, the energy factor and the data volume. Therefore, the energy consumption of the sensor nodes can be well balanced, the life cycle of the whole network and the system maintenance cycle are prolonged, the efficient and long-distance transmission of the power utilization energy efficiency data is realized, and the stable operation of the power utilization monitoring system is ensured.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a data transmission device is provided, and the data transmission device corresponds to the data transmission method in the above embodiments one to one. As shown in fig. 6, the data transmission apparatus includes: the device comprises a determination module 10, a calculation module 20, a joining module 30 and a transmission module 40. The functional modules are explained in detail as follows:
a determining module 10, configured to determine a cluster head node in a wireless sensor network, where the cluster head node is configured to receive data transmitted by other sensor nodes in a cluster, and the wireless sensor network includes a plurality of sensor nodes;
a calculating module 20, configured to calculate a coverage area of data reception of each cluster head node, where a plurality of sensor nodes in the coverage area form a cluster;
the adding module 30 is configured to, if the sensor node is within the coverage range of the plurality of cluster head nodes, select the cluster in which the communication signal with the cluster head node is strongest to be added by the sensor node;
and the transmission module 40 is configured to receive the data collected by all the sensor nodes in the cluster where the cluster head node is located, and send the received data to the base station.
Further, the apparatus further comprises:
and the broadcasting module 50 is configured to broadcast cluster head node information to other sensor nodes by the cluster head node, where the cluster head node information includes a cluster head node ID, a coverage area, and remaining energy of the sensor node, so that the sensor node selects a cluster in which a communication signal with the cluster head node is strongest.
Specifically, the determining module 10 includes:
determining the probability that all sensor nodes in the wireless sensor network are used as cluster head nodes;
randomly generating a random number corresponding to each sensor node, wherein the random number is in a range of 0 to 1;
and setting the random number of the sensor node to be less than a set threshold as a cluster head node, wherein the set threshold is determined according to the probability that the sensor node acts as the cluster head node.
Specifically, the determining module 10 is configured to determine the probability that all sensor nodes in the wireless sensor network serve as cluster head nodes according to the following formula:
Figure BDA0002497794020000101
wherein, the p isoptThe ratio of the number of the cluster head nodes to the number of the sensor nodes is initially set, Er(i) For the remaining energy value of the sensor node i, said
Figure BDA0002497794020000103
The average residual energy value of all the sensor nodes after the r round;
the set threshold is determined by the following formula:
Figure BDA0002497794020000102
wherein G is the nearest 1/piThe set of cluster head nodes is not acted in the round, r represents the number of rounds performed by the current cycle, SiRepresenting sensor node i.
The determining module 10 is further configured to determine a non-first-round cluster head node in the wireless sensor network by using the following formula, including:
Figure BDA0002497794020000111
wherein d ismaxThe maximum transmission distance from the cluster head node to the base station is shown, and d (i) the distance from the sensor node i to the base station is shown.
Specifically, the calculating module 20 is configured to:
the data receiving coverage radius r (i) of the cluster head node i is:
Figure BDA0002497794020000112
wherein d ismaxAnd dminRespectively representing the maximum and minimum transmission distances, R, from the cluster head node to the base station0D (i) represents the distance between the sensor node i and the base station, which is a predefined maximum coverage radius.
Further, the calculating module 20 is further configured to calculate the strength of the communication signal between the sensor node and the cluster head node by using the following formula:
Figure BDA0002497794020000113
wherein E isCHres(i) Representing remaining energy of cluster head nodes in communication with the sensor node, said
Figure BDA0002497794020000114
Is the average residual energy value, L, of all sensor nodes after the r roundstr(i) Is the linear distance, L, from the sensor node i to the base stationtoBS(i) Data for the distance that the sensor node i reaches the base station through the cluster head node relaymaxAnd (i) the data (i) is the data quantity which needs to be transmitted by the sensor node i.
Further, the consumption of each node for sending and receiving information includes:
Figure BDA0002497794020000115
ERx(k)=Eelec×k
wherein E iselec(nJ/bit) is the radio frequency energy loss; efs(pJ/bit/m2) And Emp(pJ/bit/m4) The energy consumption coefficients of the power amplification circuit under different channel propagation models are obtained; eelec=50nJ/bit,Efs=10pJ/bit/m2,Emp=0.0013pJ/bit/m4,dcrossover87 m; k represents the amount of data transmitted; d is the distance between the transmitting end and the receiving end.
For specific limitations of the data transmission device, reference may be made to the above limitations on the data transmission method, which is not described herein again. The respective modules in the above-mentioned data transmission device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of data transmission.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
determining cluster head nodes in a wireless sensor network, wherein the cluster head nodes are used for receiving data transmitted by other sensor nodes in a cluster, and the wireless sensor network comprises a plurality of sensor nodes;
calculating the data receiving coverage range of each cluster head node, wherein a plurality of sensor nodes in the coverage range form a cluster;
if the sensor node is in the coverage range of the cluster head nodes, the sensor node selects to join the cluster in which the communication signal with the cluster head node is strongest;
and the cluster head node receives the data collected by all the sensor nodes in the cluster where the cluster head node is located, and sends the received data to the base station.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
determining cluster head nodes in a wireless sensor network, wherein the cluster head nodes are used for receiving data transmitted by other sensor nodes in a cluster, and the wireless sensor network comprises a plurality of sensor nodes;
calculating the data receiving coverage range of each cluster head node, wherein a plurality of sensor nodes in the coverage range form a cluster;
if the sensor node is in the coverage range of the cluster head nodes, the sensor node selects to join the cluster in which the communication signal with the cluster head node is strongest;
and the cluster head node receives the data collected by all the sensor nodes in the cluster where the cluster head node is located, and sends the received data to the base station.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (11)

1. A method for transmitting data, the method comprising:
determining cluster head nodes in a wireless sensor network, wherein the cluster head nodes are used for receiving data transmitted by other sensor nodes in a cluster, and the wireless sensor network comprises a plurality of sensor nodes;
calculating the data receiving coverage range of each cluster head node, wherein a plurality of sensor nodes in the coverage range form a cluster;
if the sensor node is in the coverage range of the cluster head nodes, the sensor node selects to join the cluster in which the communication signal with the cluster head node is strongest;
and the cluster head node receives the data collected by all the sensor nodes in the cluster where the cluster head node is located, and sends the received data to the base station.
2. The method of claim 1, wherein before the sensor node selects to join the cluster with the strongest communication signal with the cluster head node, the method further comprises:
the cluster head node broadcasts cluster head node information to other sensor nodes, wherein the cluster head node information comprises cluster head node ID, coverage range and self residual energy, so that the sensor nodes can selectively join the cluster in which the communication signal with the cluster head node is strongest.
3. The method for transmitting data according to claim 1, wherein the cluster head nodes include a first-round determined cluster head node and a non-first-round determined cluster head node, and the determining the first-round cluster head node in the wireless sensor network includes:
determining the probability that all sensor nodes in the wireless sensor network are used as cluster head nodes;
randomly generating a random number corresponding to each sensor node, wherein the random number is in a range of 0 to 1;
and setting the random number of the sensor node to be less than a set threshold as a cluster head node, wherein the set threshold is determined according to the probability that the sensor node acts as the cluster head node.
4. The method of claim 3, wherein the probability that all sensor nodes in the wireless sensor network act as cluster head nodes is determined by the following formula:
Figure FDA0002497794010000021
wherein, the p isoptThe ratio of the number of the cluster head nodes to the number of the sensor nodes is initially set, Er(i) For the remaining energy value of the sensor node i, said
Figure FDA0002497794010000022
The average residual energy value of all the sensor nodes after the r round;
the set threshold is determined by the following formula:
Figure FDA0002497794010000023
wherein G is the nearest 1/piThe set of cluster head nodes is not acted in the round, r represents the number of rounds performed by the current cycle, SiRepresenting sensor node i.
5. The method for transmitting data according to claim 4, wherein determining the non-first-round cluster head node in the wireless sensor network by the following formula comprises:
Figure FDA0002497794010000024
wherein d ismaxThe maximum transmission distance from the cluster head node to the base station is shown, and d (i) the distance from the sensor node i to the base station is shown.
6. The data transmission method according to claim 1 or 2, wherein the calculating the coverage of data reception of each cluster head node comprises:
the data receiving coverage radius r (i) of the cluster head node i is:
Figure FDA0002497794010000025
wherein d ismaxAnd dminRespectively representing the maximum and minimum transmission distances, R, from the cluster head node to the base station0D (i) represents the distance between the sensor node i and the base station, which is a predefined maximum coverage radius.
7. The method of claim 1, wherein before the sensor node selects to join the cluster with the strongest communication signal with the cluster head node, the method further comprises:
the strength of the communication signals of the sensor nodes and the cluster head nodes is calculated by the following formula:
Figure FDA0002497794010000031
wherein E isCHres(i) Representing remaining energy of cluster head nodes in communication with the sensor node, said
Figure FDA0002497794010000032
Is the average residual energy value, L, of all sensor nodes after the r roundstr(i) Is the linear distance, L, from the sensor node i to the base stationtoBS(i) Data for the distance that the sensor node i reaches the base station through the cluster head node relaymaxAnd (i) the data (i) is the data quantity which needs to be transmitted by the sensor node i.
8. The method of claim 2, wherein the consumption of the sending and receiving of information by each node comprises:
Figure FDA0002497794010000033
ERx(k)=Eelec×k
wherein E iselec(nJ/bit) is the radio frequency energy loss; efs(pJ/bit/m2) And Emp(pJ/bit/m4) The energy consumption coefficients of the power amplification circuit under different channel propagation models are obtained; eelec=50nJ/bit,Efs=10pJ/bit/m2,Emp=0.0013pJ/bit/m4,dcrossover87 m; k represents the amount of data transmitted; d is the distance between the transmitting end and the receiving end.
9. An apparatus for transmitting data, the apparatus comprising:
the wireless sensor network comprises a determining module, a determining module and a transmitting module, wherein the determining module is used for determining cluster head nodes in the wireless sensor network, the cluster head nodes are used for receiving data transmitted by other sensor nodes in a cluster, and the wireless sensor network comprises a plurality of sensor nodes;
a calculation module for calculating a coverage area of data reception of each of the cluster head nodes, a plurality of the sensor nodes in the coverage area forming a cluster;
the adding module is used for selecting the sensor node to add the cluster with the strongest communication signal with the cluster head node if the sensor node is in the coverage range of the cluster head nodes;
and the transmission module is used for receiving the data acquired by all the sensor nodes in the cluster where the cluster head node is located and sending the received data to the base station.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements a method of transferring data according to any one of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a method for transmitting data according to any one of claims 1 to 8.
CN202010423398.5A 2020-05-19 2020-05-19 Data transmission method and device, computer equipment and storage medium Pending CN111586789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010423398.5A CN111586789A (en) 2020-05-19 2020-05-19 Data transmission method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010423398.5A CN111586789A (en) 2020-05-19 2020-05-19 Data transmission method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111586789A true CN111586789A (en) 2020-08-25

Family

ID=72125115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010423398.5A Pending CN111586789A (en) 2020-05-19 2020-05-19 Data transmission method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111586789A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438305A (en) * 2021-06-23 2021-09-24 鹤壁国立光电科技股份有限公司 Ubiquitous data acquisition system
CN113588001A (en) * 2021-08-12 2021-11-02 上海宏英智能科技股份有限公司 Engineering machine tool state monitoring system
CN115001537A (en) * 2022-06-02 2022-09-02 广东电网有限责任公司 Routing networking method of carrier communication system based on clustering algorithm

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140355499A1 (en) * 2013-06-03 2014-12-04 King Abdulaziz City For Science And Technology Coverage, connectivity and communication (c3) protocol method for wireless sensor networks
EP2988542A1 (en) * 2014-08-18 2016-02-24 Alcatel Lucent Cell Identification
CN105959990A (en) * 2016-04-25 2016-09-21 东莞市联洲知识产权运营管理有限公司 Wireless sensor network topology control method
CN107071849A (en) * 2017-06-20 2017-08-18 海信集团有限公司 A kind of method and apparatus for electing leader cluster node
CN108566664A (en) * 2018-05-08 2018-09-21 贵州大学 A kind of WSN clustering routing optimization methods of distribution high energy efficiency
CN108696903A (en) * 2018-05-17 2018-10-23 昆明理工大学 A kind of LEACH algorithm optimization methods based on energy consumption balance
CN109996310A (en) * 2019-04-11 2019-07-09 中国联合网络通信集团有限公司 A kind of cluster head selection method and device
CN110049526A (en) * 2019-04-12 2019-07-23 山东师范大学 Based on the method for data capture and system for improving cluster algorithm in WSN

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140355499A1 (en) * 2013-06-03 2014-12-04 King Abdulaziz City For Science And Technology Coverage, connectivity and communication (c3) protocol method for wireless sensor networks
EP2988542A1 (en) * 2014-08-18 2016-02-24 Alcatel Lucent Cell Identification
CN105959990A (en) * 2016-04-25 2016-09-21 东莞市联洲知识产权运营管理有限公司 Wireless sensor network topology control method
CN107071849A (en) * 2017-06-20 2017-08-18 海信集团有限公司 A kind of method and apparatus for electing leader cluster node
CN108566664A (en) * 2018-05-08 2018-09-21 贵州大学 A kind of WSN clustering routing optimization methods of distribution high energy efficiency
CN108696903A (en) * 2018-05-17 2018-10-23 昆明理工大学 A kind of LEACH algorithm optimization methods based on energy consumption balance
CN109996310A (en) * 2019-04-11 2019-07-09 中国联合网络通信集团有限公司 A kind of cluster head selection method and device
CN110049526A (en) * 2019-04-12 2019-07-23 山东师范大学 Based on the method for data capture and system for improving cluster algorithm in WSN

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
赵子豪: ""森林火灾监测系统的WSN改进路由算法"", 《消防科学与技术》 *
赵子豪: ""面向森林监测系统的无线网络路由算法及演化博弈的研究"", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438305A (en) * 2021-06-23 2021-09-24 鹤壁国立光电科技股份有限公司 Ubiquitous data acquisition system
CN113438305B (en) * 2021-06-23 2022-10-18 鹤壁国立光电科技股份有限公司 Ubiquitous data acquisition system
CN113588001A (en) * 2021-08-12 2021-11-02 上海宏英智能科技股份有限公司 Engineering machine tool state monitoring system
CN115001537A (en) * 2022-06-02 2022-09-02 广东电网有限责任公司 Routing networking method of carrier communication system based on clustering algorithm
CN115001537B (en) * 2022-06-02 2023-09-26 广东电网有限责任公司 Routing networking method of carrier communication system based on clustering algorithm

Similar Documents

Publication Publication Date Title
CN111586789A (en) Data transmission method and device, computer equipment and storage medium
CN111739275B (en) Control method, control device, control equipment and storage medium for dual-mode communication
EP2562940B1 (en) Method for cooperative data transmission among terminals, and method for clustering cooperative terminals for same
CN101577956B (en) Method and system for selecting collaboration relay node
US20120021689A1 (en) Signaling method and device for mitigating interference in m2m communication system
CN109257197A (en) A kind of internet-of-things terminal upgrade method, device, system, terminal and storage medium
CN108566664B (en) Distributed high-energy-efficiency WSN (wireless sensor network) clustering routing optimization method
CN110784882B (en) Energy acquisition D2D communication resource allocation method based on reinforcement learning
Xiao et al. A joint information and energy cooperation framework for CR-enabled macro–femto heterogeneous networks
CN111212463B (en) Energy saving method and device, computer equipment and storage medium
EP3977773B1 (en) Managing outage detections and reporting
CN113261348A (en) Signal repeater device operable in low power repeater mode of operation
WO2014101441A1 (en) Method and system for cognitive cooperative relaying/forwarding
CN105191449A (en) Wireless communication device and transmission-power control device
Ma et al. Spectrum allocation and power optimization for demand-side cooperative and cognitive communications in smart grid
CN107465609B (en) Terminal routing method based on Internet of things and Internet of things terminal
CN102802241B (en) The system of selection of a kind of high energy efficiency wireless relay
Sun et al. Spectrum allocation and computing resources optimization for demand-side cooperative communications in smart grid
Tinker et al. Energy conservation clustering in wireless sensor networks for increased life time
US10667210B2 (en) Low power cellular base station
CN107404404B (en) Terminal routing method based on Internet of things and Internet of things terminal
Kang et al. Full-duplex wireless powered IoT networks
CN109495946B (en) Data transmission method and device of wireless sensor network
Devasena et al. A study of power and energy efficient clustering protocols in wireless sensor networks
CN107105468B (en) Access point cluster management method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200825

RJ01 Rejection of invention patent application after publication