CN114040424B - Sensor network communication system, method and device and storage medium - Google Patents

Sensor network communication system, method and device and storage medium Download PDF

Info

Publication number
CN114040424B
CN114040424B CN202111319378.4A CN202111319378A CN114040424B CN 114040424 B CN114040424 B CN 114040424B CN 202111319378 A CN202111319378 A CN 202111319378A CN 114040424 B CN114040424 B CN 114040424B
Authority
CN
China
Prior art keywords
data
processing module
module
aggregation processing
modules
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111319378.4A
Other languages
Chinese (zh)
Other versions
CN114040424A (en
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.)
State Grid Zhejiang Electric Power Co Ltd Hangzhou Yuhang District Power Supply Co
Hangzhou Power Equipment Manufacturing Co Ltd
Hangzhou Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
State Grid Zhejiang Electric Power Co Ltd Hangzhou Yuhang District Power Supply Co
Hangzhou Power Equipment Manufacturing Co Ltd
Hangzhou Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Zhejiang Electric Power Co Ltd Hangzhou Yuhang District Power Supply Co, Hangzhou Power Equipment Manufacturing Co Ltd, Hangzhou Power Supply Co of State Grid Zhejiang Electric Power Co Ltd filed Critical State Grid Zhejiang Electric Power Co Ltd Hangzhou Yuhang District Power Supply Co
Priority to CN202111319378.4A priority Critical patent/CN114040424B/en
Publication of CN114040424A publication Critical patent/CN114040424A/en
Application granted granted Critical
Publication of CN114040424B publication Critical patent/CN114040424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a sensor network communication system which is applied to the field of communication, wherein a data acquisition processing module is used for acquiring data and sending the data to a data convergence processing module, and a second data convergence processing module is connected with other second data convergence processing modules and/or first data convergence processing modules and is used for receiving data of an upstream module and sending the obtained data to a downstream module. The first data aggregation processing module is directly or indirectly connected with all the second data aggregation processing modules and the data acquisition processing modules so as to collect all the data. Compared with the scheme adopting a router, the system has the advantages that a plurality of data acquisition processing modules and a plurality of data aggregation processing modules are arranged, so that a plurality of channels can be simultaneously utilized for communication; and secondly, an ESP8266 communication module is adopted, and no path searching is needed during communication. Therefore, the sensor network communication system provided by the application has lower delay and improves the real-time performance of communication.

Description

Sensor network communication system, method and device and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a sensor network communication system, a method, an apparatus, and a storage medium.
Background
At present, intelligent home appliances and intelligent agriculture are widely applied, and in the scenes that a sensor network is required to collect data, a router is generally used for communication. The specific process is as follows: the sensor sends the collected data to the router, and the router sends the data to other devices for processing, so that the router devices on the market can only perform half-duplex communication on a single channel at present, namely only one sender and one receiver at the same time, and when a plurality of sensors are arranged in the networking, the router devices need to perform multiple communication. For example, 7 sensors are arranged in the networking, the sensors need 7 times of communication when sending the collected data to the router, and the router needs 7 times of communication when sending the data to other devices, but all the communication can be carried out under one channel, so that the transmission efficiency is low, and the networking communication time is long; and each time router communication is used, a path searching is needed, and the time is long. It can be seen that the use of routers in the sensor network requires a longer communication time, resulting in a lower real-time performance of the sensor network.
Therefore, how to improve the real-time performance of the sensor network communication is a problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a sensor network communication system, a method, a device and a storage medium, so as to improve the real-time performance of sensor network communication.
In order to solve the technical problem, the application provides a sensor network communication system, which comprises a plurality of data acquisition processing modules working in an STA operation mode and a plurality of data convergence processing modules working in an AP+STA operation mode, wherein the data acquisition processing modules and the data convergence processing modules comprise: a sensor, a controller, and an ESP8266 communication module, the ESP8266 communication module configured to receive and transmit data collected by the sensor;
The data aggregation processing modules comprise a first data aggregation processing module and a second data aggregation processing module, and the first data aggregation processing module is directly or indirectly connected with all the second data aggregation processing modules and all the data acquisition processing modules so as to collect all the data;
The data acquisition processing module is connected with the first data convergence processing module and/or the second data convergence processing module so as to conveniently send data to the corresponding data convergence processing module;
The second data convergence processing module is connected with other second data convergence processing modules and/or the first data convergence processing module, and is used for receiving data sent by the upstream second data convergence processing module and sending the obtained data to the downstream first data convergence processing module and/or the downstream second data convergence processing module.
In order to solve the technical problem, the application also provides a sensor network communication method which is applied to the sensor network communication system, and the method comprises the following steps:
If the ESP8266 communication module is a data acquisition processing module, the ESP8266 communication module is controlled to send data acquired by a sensor of the ESP communication module to a first data aggregation processing module at the downstream or a second data aggregation processing module at the downstream;
If the ESP8266 communication module is the second data aggregation processing module, the ESP8266 communication module is controlled to receive data sent by the second data aggregation processing module at the upstream and/or data sent by the data acquisition processing module connected with the ESP8266 communication module, and send the obtained data to the second data aggregation processing module at the downstream and/or the first data aggregation processing module;
And if the ESP8266 communication module is the first data aggregation processing module, the ESP8266 communication module is controlled to receive the data sent by the second data aggregation processing module at the upstream and/or the data sent by the data acquisition processing module connected with the ESP8266 communication module.
Preferably, the sensor acquisition data of the first data convergence processing module and the second data convergence processing module includes:
And acquiring information from the obtained data and acquiring a new data result according to the information.
Preferably, the method further comprises: the data aggregation processing modules are numbered according to the connection sequence, wherein different channels are used when the data aggregation processing modules with different numbers communicate.
Preferably, the method further comprises:
the data acquisition processing module, the first data aggregation processing module, the second data aggregation processing module and the connected modules are arranged through a man-machine interaction module.
Preferably, the method further comprises:
If the data acquisition processing module, the first data aggregation processing module and the second data aggregation processing module do not set an operation mode within a preset time, setting the module without the operation mode as a default mode;
If the data acquisition processing module is not provided with the connected module within the preset time, controlling the data acquisition processing module to automatically connect with the data aggregation processing module within the range;
And if the data convergence processing module is not provided with the connected module within the preset time, controlling the data convergence processing module to automatically connect with other second data convergence processing modules within the range.
Preferably, the controlling the data aggregation processing module to automatically connect with other second data aggregation processing modules within range includes:
And controlling the data aggregation processing module to be automatically connected with the second data aggregation processing module with the largest number in the range, and adding one to the number of the second data aggregation processing module on the basis of the largest number.
Preferably, the method further comprises:
and controlling the access password unified format of all ESP8266 communication modules.
In order to solve the technical problem, the present application further provides a sensor network communication device, including: a memory for storing a computer program;
And the processor is used for realizing the steps of the sensor network communication method when executing the computer program.
In order to solve the technical problem, the application also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the steps of the sensor network communication method are realized when the computer program is executed by a processor.
The sensor network communication system provided by the application comprises a plurality of data acquisition processing modules working in an STA mode and a plurality of data aggregation processing modules working in an AP+STA mode, wherein the data acquisition processing modules comprise a sensor, a controller and an ESP8266 communication module. The ESP8266 communication module can receive and send data acquired by the sensor, the data convergence processing module comprises a first data convergence processing module and a second data convergence processing module, and the second data convergence processing module is connected with other second data convergence processing modules and/or the first data convergence processing module and is used for receiving data of the second data convergence processing module at the upstream and sending the obtained data to the first data convergence processing module and/or the second data convergence processing module at the downstream. The first data aggregation processing module is directly or indirectly connected with all the second data aggregation processing modules and the data acquisition processing modules so as to collect all the data. The data collection processing module is used for collecting data and sending the data to the first data collection processing module and/or the second data collection processing module. Compared with the scheme adopting a router, the system has the advantages that a plurality of data acquisition processing modules and a plurality of data aggregation processing modules are arranged, so that a plurality of channels can be simultaneously utilized for communication; and secondly, an ESP8266 communication module is adopted, the communication module is fixedly routed, and routing is not required during communication. Therefore, the sensor network communication system provided by the application has lower delay and improves the real-time performance of communication.
The application also provides a sensor network communication method, a sensor network communication device and a computer readable storage medium, which correspond to the system, and have the same beneficial effects as the system.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a hardware configuration diagram of a data acquisition processing module and a data aggregation processing module according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a sensor network communication system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of another sensor network communication system according to an embodiment of the present application;
FIG. 4 is a graph comparing communication time of the present application scheme with the router scheme at the time of first data summarization;
FIG. 5 is a graph comparing communication time of the present application scheme with a router scheme when data is not summarized for the first time;
Fig. 6 is a flowchart of a sensor network communication method according to an embodiment of the present application;
FIG. 7 is a flowchart of a deployment of a data acquisition processing module according to an embodiment of the present application;
FIG. 8 is a flowchart of a deployment of a data aggregation processing module according to an embodiment of the present application;
Fig. 9 is a block diagram of a sensor network communication device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present application.
The application provides a sensor network communication system, a sensor network communication method, a sensor network communication device and a storage medium.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description.
The basic equipment of mobile hotspot (WIFI) communication comprises two parts, one part is a wireless Access Point (AP) and the other part is a Station (STA), and the two parts cooperate with each other to form a complete WIFI local area network; the system of the application can adopt IEEE 802.11b/G/n protocol, the system works in 2.4G frequency band, and the communication distance is longer than that in 5G frequency band. The sensor network communication system provided by the embodiment of the application comprises a plurality of data acquisition processing modules working in an STA running mode and a plurality of data aggregation processing modules working in an AP+STA running mode, wherein the data acquisition processing modules comprise an ESP8266 communication module, a controller and a sensor; the baud rate of the ESP8266 communication module is adjustable, and a TCP/IP protocol stack is built in, so that conversion between a serial port and WIFI can be realized. The data acquisition processing module is used for indicating that the module is only used for transmitting data and not receiving the data for the STA operation mode; the data aggregation processing module indicates that the module can send data or receive data for the AP+STA operation mode; wherein the STA operation mode and the ap+sta operation mode are actually operation modes of the ESP8266 communication module. The communication protocol of the system adopts a TCP/IP protocol, and the protocol has a mature data link layer communication protocol, so that the transmission performance is stable; in the data transmission process, the topology structure of the communication network is not changed, and the ESP8266 communication modules are connected once by WIFI when in communication. FIG. 1 is a hardware configuration diagram of a data acquisition processing module and a data aggregation processing module according to an embodiment of the present application; as shown in fig. 1, the data acquisition processing module and the data aggregation processing module each include: the ESP8266 communication module 10, the controller 11 and the sensor 12, wherein the sensor 12 collects data in the environment and then transmits the data to the ESP8266 communication module 10 through the controller 11, the ESP8266 communication module 10 is used for receiving and sending the data collected by the sensor 12, and the data collecting and processing module are connected through the ESP8266 communication module 10.
The plurality of data convergence processing modules comprise a first data convergence processing module and a second data convergence processing module, and the data acquisition processing module is connected with the first data convergence processing module and/or the second data convergence processing module so as to conveniently send data to the corresponding data convergence processing module, and the data acquisition processing module does not receive the data of other data acquisition processing modules and data convergence processing modules in the application. The first data aggregation processing module is directly or indirectly connected with all the second data aggregation processing modules and all the data acquisition processing modules so as to collect all the data, so that the first data aggregation processing module is at the transmission end of all the modules and does not send data to other data acquisition processing modules and data aggregation processing modules in the application. The second data convergence processing module is connected with other second data convergence processing modules and/or the first data convergence processing module and is used for receiving the data sent by the upstream second data convergence processing module and sending the obtained data to the downstream first data convergence processing module and/or the downstream second data convergence processing module; the obtained data is any one or any combination of data sent by the upstream second data convergence processing module, data sent by the self-connected data acquisition processing module and data acquired by the self-sensor, because the upstream second data convergence processing module is not connected with other second data convergence processing modules, the self-connected data acquisition processing module is not connected, and the self-sensor is not working, namely the corresponding data cannot be obtained; the second data aggregation processing module can send the obtained data to the downstream, so that the communication times are less, and the instantaneity is improved. In the application, the communication network formed by the first data convergence processing module and the second data convergence processing module can be regarded as a main trunk network, and the data acquisition processing module can be regarded as a branch network. The system does not need to be set up in a complex way when being expanded, and does not need to change the deployed network structure, so that the system has good expandability.
The number and connection manner of the first data aggregation processing module, the second data aggregation processing module and the data acquisition processing module are not limited, and in general, the ESP8266 communication module maximally supports five devices as client access, i.e., one module can access five modules. One of the data acquisition and processing modules is generally connected with one data aggregation and processing module and transmits data to the connected data aggregation and processing module; the second data convergence processing module is generally supported to be connected with the three data acquisition processing modules and the two data convergence processing modules so as to receive data sent by the three data acquisition processing modules and one data convergence processing module and send the data to the other data convergence processing module; and if the data is the first data aggregation processing module, receiving the data of all the connected modules. The second data convergence processing module may not be connected to the data collection processing module or the upstream data collection processing module, if the second data convergence processing module is not connected to the data collection processing module, the second data convergence processing module is used as a simple signal relay station to expand the network transmission range, but it should be noted that the second data convergence processing module is connected to at least one second data convergence processing module or one data collection processing module so as to receive the data sent by the second data convergence processing module or the data collection processing module. In addition, there is no limitation on how to set the operation mode of the ESP8266 communication module and how to access the new module, and the default setting may be set, or may be set manually.
Fig. 2 is a schematic structural diagram of a sensor network communication system according to an embodiment of the present application; it should be noted that the sensor network communication system structure shown in fig. 2 is only one structure provided by the present application, and as shown in fig. 2, the sensor network communication system structure includes a data acquisition processing module 20, a first data aggregation processing module 21, and a second data aggregation processing module 22; each data collecting and processing module 20 is connected with a data collecting and processing module and sends data collected by a sensor to the connected data collecting and processing module, wherein the data collecting and processing module can be a first data collecting and processing module 21 or a second data collecting and processing module 22; the first data convergence processing module 21 and the second data convergence processing module 22 can be connected with each other, the two second data convergence processing modules 22 can also be connected with each other, and the first data convergence processing module 21 and the second data convergence processing module 22 can be connected with a plurality of data acquisition processing modules 20. The data transmission mode between the data convergence processing modules can select simplex communication or half duplex communication. Because the mobility of the wireless sensor network is poor and the data of the wireless sensor has the summarizing characteristic, a flexible algorithm is not needed, and the collected data is generally transmitted to a proper data convergence processing module along the fixed route of a specific link.
The second data convergence processing module 22 can receive the data sent by the upstream second data convergence processing module 22 and/or the data of the data acquisition processing module 20 connected to itself, in practical application, the second data convergence processing module 22 may not be connected to the data acquisition processing module 20 or the upstream second data convergence processing module 22 is not connected to other data convergence processing modules, and accordingly, the data of the unconnected module is not received.
The second data aggregation processing module 22 also transmits the resulting data to the downstream first data aggregation processing module 21 and/or the downstream second data aggregation 22 processing module; wherein the second data aggregation processing module 22 only sends data to the downstream connected modules; the obtained data may be any one or any combination of the data sent by the upstream second data aggregation processing module 22, the data sent by the self-connected data acquisition processing module 20, and the data acquired by the self-connected sensor, because the upstream second data aggregation processing module 22 may not be connected with other second data aggregation processing modules 22, the self-connected data acquisition processing module 20 may not be connected, and the self-connected sensor may not work, that is, the corresponding data cannot be obtained.
The first data aggregation processing module 21 does not transmit data and only receives data transmitted by the second data aggregation processing module 22 and/or the data acquisition processing module 20. As can be seen from fig. 2, the first data aggregation processing module 21 is directly or indirectly connected to all the second data aggregation processing modules 22 and all the data acquisition processing modules 20, that is, receives all the data acquired by all the sensors for aggregation processing. In fig. 2, the first data aggregation processing module 21 and the second data aggregation processing module 22 form a line tree, and a root node of the tree is the first data aggregation processing module 21 and is responsible for summarizing data in the sensor network, so as to realize a data summarizing function.
Fig. 3 is a schematic structural diagram of another sensor network communication system according to an embodiment of the present application; as shown in fig. 3, the data acquisition processing module and the data aggregation processing module are numbered in sequence, wherein the first data aggregation processing module can be any one of the data aggregation processing modules; each data gathering processing module is connected with three data acquisition processing modules.
The sensor network communication system provided by the embodiment of the application comprises a plurality of data acquisition processing modules working in an STA mode and a plurality of data aggregation processing modules working in an AP+STA mode, wherein the data acquisition processing modules comprise a sensor, a controller and an ESP8266 communication module. The ESP8266 communication module can receive and send data acquired by the sensor, the data convergence processing module comprises a first data convergence processing module and a second data convergence processing module, and the second data convergence processing module is connected with other second data convergence processing modules and/or the first data convergence processing module and is used for receiving data of the second data convergence processing module at the upstream and sending the obtained data to the first data convergence processing module and/or the second data convergence processing module at the downstream. The first data aggregation processing module is directly or indirectly connected with all the second data aggregation processing modules and the data acquisition processing modules so as to collect all the data. The data collection processing module is used for collecting data and sending the data to the first data collection processing module and/or the second data collection processing module. Compared with the scheme adopting a router, the system has the advantages that a plurality of data acquisition processing modules and a plurality of data aggregation processing modules are arranged, so that a plurality of channels can be simultaneously utilized for communication; and secondly, an ESP8266 communication module is adopted, the communication module is fixedly routed, and routing is not required during communication. Therefore, the sensor network communication system provided by the application has lower delay and improves the real-time performance of communication.
In the following, communication frames of wireless sensor network data transferred at an application layer are described, and the content of each data transfer is called a frame, and the frames are divided into three types: the first is an acknowledgement request frame REQ, the second is an acknowledgement frame ACK, and the third is a data frame. The REQ is used for connecting a request or an instruction request, the ACK frame is used for confirming data reception or instruction reception, and the REQ and the ACK frame mainly work in a network establishment stage and are used for guaranteeing network establishment and operation. The REQ and ACK generally operate in a separate AP-STA network and must be returned either as acknowledgement frames ACK or data frames after the acknowledgement request frames REQ are sent. The structure of these two communication frames is shown in table 1.
Table 1 various data frame structures and contents
In general, each module transmits data according to the unit of data frame, the data frame has no length limitation, and the data frame structure mainly comprises a frame head, a data part and a frame tail; the data part is divided into a plurality of small data parts, each small data part comprises a data source and data content, the data source is the number of a data acquisition processing module and/or a data convergence processing module which acquire the data, and the data content is the data acquired by the sensor. All numbers in the data frame adopt 16-system numbers, so that operation is convenient, the data acquisition processing module sends data to the second data convergence processing modules, and the data is transmitted to the first data convergence processing module after being forwarded by the plurality of second data convergence processing modules; the data acquisition processing module can also directly send data to the first data aggregation processing module.
Setting the maximum time for the data acquisition processing module and the second data convergence processing module to send a data frame as T, and using T as a period for the data acquisition processing module to send data, wherein each period of the data frame is forwarded by the second data convergence processing module until the data frame is sent to the first data convergence processing module; each time a data frame passes through a second data convergence processing module, the data part in the module, namely the data source and the data content, is carried, but the original frame head and frame tail are unchanged. After the data frames are sent out from the starting point, a new frame of data is collected after an interval of about 2T, and sent out from the starting point, a new transmission is started, and after the first time of receiving the data frames sent by all the modules, the first data convergence processing module receives the data frames sent by all the modules again at intervals of 2T. The change in the transmission of the data frame is shown in table 2, wherein "-" in the table indicates no or no presence.
Table 2 time frame structure of data frame passing through data convergence processing module
The communication delay under the structure of the sensor network communication system provided by the application is calculated as follows: the general communication delay mainly comprises queuing delay, transmitting delay, propagation delay and processing delay, and the total delay is the sum of the delays. Because the clock frequency of the controller is higher and the processing speed of the program is faster, assuming that the processing delay of the router is 0, the propagation delay is related to the distance and the propagation medium, and is irrelevant to factors such as networking equipment, the calculation mode is that the space distance between two equipment is divided by the propagation speed of electromagnetic waves, and because the delay is irrelevant to the networking mode, the propagation delay (30 m propagation delay=3 divided by the speed of light=0.1 microsecond) under the condition of 30m distance is adopted as a default value to be added into calculation, and 30m is not the actual space distance of 30m but is an estimated value under the condition of indoor shielding. The transmission delay is mainly generated in an ESP8266 communication module and a router and is equal to the communication frame length (bit) divided by the data transmission rate (bit/S), the transmission delay is mainly generated in the serial port communication rate of the ESP8266 communication module and the controller, according to the maximum serial port communication baud rate 4608000bps of the ESP8266 communication module, the transmission of the 8 data bit 1 stop bit 0 check bit is converted into the data transmission rate of 512KB/S, the nominal data transmission rate of the general router is more than 10MB/S, the data part size of the data collected by each module is known to be 4byte, the transmission delay (the transmission delay is equal to 4B divided by 512 KB/S) of the data transmission of the ESP8266 communication module is about equal to 7.8, namely, under the condition that the space propagation time difference of different modules is not considered (the default is 30m distance), the data collection processing module or the data collection processing module formed by the ESP8266 communication module transmits 4byte data to the router or the total data collection processing module needs to be increased by about the time delay of about 7.8 microseconds after the total data transmission delay of the data frame, and the total delay is increased by about 7.8 microseconds after the total data transmission delay of the data transmission time of the data frame is added by about the total of 8.8 microseconds. The system has x modules (x is smaller than the maximum access amount of the router or the maximum access amount of the system), and the communication time of two schemes is compared under the condition that the system is to collect all data to one module. The router scheme is as follows: the router is required to acquire the data of 1 module, the communication time required by the data summarizing module is 2 times, the size of a data part of each communication is 4 bytes, namely the data is transmitted to the router by the module and then transmitted to the data summarizing module, the router is required to summarize the data of x-1 modules, the communication time required by the data summarizing module is 2 x (x-1) times, the size of each communication data is 4 bytes, and the total communication time is 2 x (x-1) x 13.8 microseconds. The system provided by the application is characterized in that x modules are arranged into a proper topological structure, a group of 4 modules is arranged to form an AP-STA network with a data convergence processing module and 3 data acquisition processing modules, and the AP-STA network is sharedIndividual data convergence processing module (/ >)In order to take down integer symbol, i.e. the decimal part of the operation result is only not shared), a first data gathering processing module is included, two initial positions of second data gathering processing modules are connected according to the scheme provided by the application, the first data gathering processing module is a data summarizing module, which is located in the middle of the link, two sides of the link simultaneously transmit data to the first data gathering processing module, if (x-1)/4 has decimal part, i.e. there is a spare module, a group of AP-STA network containing one data gathering processing module and 3 data gathering processing modules is not deployed, the spare module is connected to the first data gathering processing module as the data gathering processing module, at the moment T1, the data gathering processing module in the system transmits self data to the data gathering processing module, the time is about 3×13.8=41.4 microseconds (three data gathering processing modules are transmitted three times, each time is 13.8 microseconds), the data is forwarded on the data gathering processing module and the frame content is expanded, and the data gathering processing module forwards one side is the maximum number of hops per timeSecondary (/ >)To round up the symbols, i.e. only the fractional part of the result of the operation is left out), the first hop time is 13.8+7.8×3=37.2 microseconds (the total delay of transmission of a frame containing 4 bytes of data is 13.8 microseconds, the frame is added with 3 data acquisition processing module data parts, each part is added, the delay of transmission is 7.8 microseconds more), the data frame is added by 16 bytes each hop (four modules are added by an AP-STA network, each module has 4 bytes of data), the time is added by 16/4×7.8=31.2 microseconds, the start point data frame length is 19 bytes (including 3 bytes from the head to the tail of the frame and 16 bytes of four data acquisition processing module data), and in summary, the method is that/>When part is odd number, namely when the quantity of the data convergence processing modules in the left link and the right link of the first data convergence processing module is unequal, the total time for the first system to acquire all data is calculated as follows:
When (when) When the result is even, the link numbers and the hop numbers of the second data convergence processing modules at the left side and the right side of the first data convergence processing module are the same, and one side link needs queuing/> So total time increases/> And according to the system and the method provided by the application, after the system gathers the data once, the system gathers the data from the second time, and then each time passes(/> Even) or (Odd number), the system can complete the summarization of all module data once. FIG. 4 is a graph comparing communication time of the present application scheme with the router scheme at the time of first data summarization; FIG. 5 is a graph comparing communication time of the present application scheme with a router scheme when data is not summarized for the first time; in both figures 'o' represents a scheme employing a router; the scheme provided by the application is obviously less in communication time under different modules than the scheme adopting a router, and the scheme provided by the application has better performance than the first data summary without first data summary under the condition of a large number of modules.
According to the structure in the sensor network communication system in fig. 2, seven data acquisition processing modules and four data aggregation processing modules are deployed at appropriate positions; the four data convergence processing modules comprise a first data convergence processing module and three second data convergence processing modules. Firstly, starting up a device, setting the device as an operation mode of a first data aggregation processing module, setting the device as a number 3, indicating that the device is arranged in a third position according to a connection sequence, and according to the numbers of different modules, the device is hereinafter referred to as a module x. And then starting two second data aggregation processing modules, wherein one module is set as default (automatically connected with the module 3 and provided with the number 4) and the other module is set with the number 2, and the access module 3 is selected. And starting up a second data aggregation processing module, setting the number of the second data aggregation processing module as 1 and selecting an access module 2. Thus, the backbone network construction is completed. And then 7 data acquisition processing modules are started, the data aggregation processing modules are respectively connected according to the structure shown in fig. 2, after the connection is completed, the system layout part is completed, the system is constructed, and the data transmission conditions at different moments in the system are described below.
The respective data acquisition and processing modules are deployed to proper space positions according to the structure shown in fig. 2, and the system starts to work after successful connection. Setting the time T as a period of one-time data transmission, and at the time T1, respectively transmitting acquired data to the connected data aggregation processing modules by each data acquisition processing module, wherein each data aggregation processing module obtains the data; if other information is required to make compensation correction, the sensor can collect data after receiving the data sent upstream, so that the upstream data can be used for making compensation correction. At time T2, module 1 sends a frame of data to module 2, the frame of data is data collected by three data collection processing modules connected to module 1, the frame of data is called data frame 1, after data frame 1 arrives at module 2, module 2 uses data in data frame 1 to compensate new data collected by data collection processing modules connected to module 2 and adds the new data to data frame 1, data frame 1 contains all data information of module 1, module 2 and data collection processing modules connected to module 2, meanwhile, module 4 sends a frame of data to module 3, called data frame 2, the data frame 2 is data collected by three data collection processing modules connected to module 4, and at the next time, namely at time T3, module 2 sends data frame 1 to module 3. So far, at the time T3, the module 3 serving as a data summarizing point obtains all collected data of the sensor network, and data summarizing is completed once. At time T1, the module 1 collects data collected by the three data collection processing modules, the data is written into a specified format after the data is collected, and the numbering rule of the data collection processing modules is Cx (the data collection processing modules are numbered according to 1 to 7, and C1 represents the data of the data collection processing module 1). Knowing that the data of the data acquisition processing module 1 is 27.5, the data of the data acquisition processing module 2 is 50, the data of the data acquisition processing module 3 is 3, the data frame structure of the data frame sent to the module 2 by the module 1 is D C1 1B05 C2 3200 C3 0003 DA, the frame is the data frame 1, after the data is received by the module 2, the data of the data acquisition processing module 4 is obtained by combining the module 2, the data of the data acquisition processing module 4 is 1, the data is added into the data frame, and the written data frame content is: "D C1 1B05 C2 3200 C3 0003 C4 0001 DA". Meanwhile, the module 4 processes the data collected by the data collecting and processing modules 5, 6 and 7 into data frames, the data of the data collecting and processing module 5 is known to be 26.8, the data of the data collecting and processing module 6 is known to be 26.4, the data of the data collecting and processing module 7 is known to be 27, and the content of the written data frames is as follows: "D C1A08 C6 1A04 C7 1B00 DA", which is the above-mentioned data frame 2, and sends the data frame 2 to the module 3, and at time T3, the module 2 sends the processed data frame to the module 3, and at this time, the module 3 completes one data aggregation. The route and frame format of the data summary are unchanged later, and the process is the same as the process from the time point T1 to the time point T3. The specific process is as follows:
the second round of data summarization starts the moment and is T3, the moment, each data collection processing module sends the data of gathering respectively to the data collection processing module that connects, each data collection processing module obtains data, at the next moment, the moment T4, module 1 sends a frame data to module 2, this frame data content is data that data collection processing module 1,2,3 gathered, this data frame is called data frame 3, simultaneously, module 4 sends a frame data to module 3, be called data frame 4, data frame 4 content is data that data collection processing module 5, 6, 7 gathered, at the moment T5, module 2 sends data frame 3 to module 3. From this moment, every time 2T, the module 3 as the data summarizing node can receive all the environmental data, so that the communication efficiency is greatly improved and the time delay is reduced. The data transmission at times T1 to T5 is shown in table 3, wherein "-" in the table indicates that no special mark is or is not required.
Table 3 data transmission cases at time T1 to T5
/>
Fig. 6 is a flowchart of a sensor network communication method according to an embodiment of the present application; the method is applied to the sensor network communication system in the embodiment, wherein the first data convergence processing module, the second data convergence processing module and the data acquisition processing module are embedded modules which are actually composed of an ESP8266 communication module, a controller and a sensor, the structure of the embedded modules is similar, the adopted communication units are the same, and the basic requirements of the controller are consistent; the method greatly saves the cost of hardware equipment, improves the convenience of software development, and can flexibly adjust the network topology structure according to actual conditions. The embedded module can be set to be in a node mode or a sink mode, the embedded module in the node mode corresponds to the client, and the embedded module in the sink mode corresponds to the server; the device can be set into a multi-connection mode or a single-connection mode, wherein a plurality of devices can be connected simultaneously in the multi-connection mode, and only one device is connected in the single-connection mode; the wireless communication system can be set into an STA operation mode or an AP+STA operation mode, wherein the STA operation mode indicates that the embedded module is only used for transmitting data and not receiving the data, and the AP+STA operation mode indicates that the embedded module can transmit data and also can receive the data. The service set identifier (SERVICE SET IDENTIFIER, SSID) is an identification code formulated for the WIFI service combination, is mainly used for identifying the WIFI, and can be used as the name of the WIFI. A Request (REQ) signal is used to send a connection Request or an instruction Request and an acknowledgement (Acknowledge character, ACK) signal is used to acknowledge that data or instructions have been received. As shown in fig. 6, the above method includes:
S10: if the ESP8266 communication module is a data acquisition processing module, the ESP8266 communication module is controlled to send data acquired by a sensor of the ESP communication module to a first data aggregation processing module at the downstream or a second data aggregation processing module at the downstream;
The function of the data acquisition processing module is to acquire data and send the data to the data aggregation processing module after processing, and fig. 7 is a deployment flow chart of the data acquisition processing module provided by the embodiment of the application; the scheme shown in the figure is a preferred implementation scheme, and as shown in fig. 7, the deployment steps of the data acquisition processing module are as follows: s20: selecting a node mode; s21: setting an STA operation mode and a single connection mode; s22: judging whether the hot spot of the data aggregation processing module is accessed, if yes, entering a step S24, and if not, entering a step S23; s23: re-acquiring SSID broadcast of WIFI in the space, connecting, and returning to the step S22; s24: sending a REQ signal, judging whether an ACK signal is received, if so, proceeding to step S26, and if not, proceeding to step S25; s25: resending the REQ signal and returning to the step S24; s26: starting to collect data and uploading the data; s27: judging whether the process is finished, if so, finishing the process, otherwise, entering step S28; s28: wait for data acquisition and return to step S26.
When the embedded module is started, selecting a node mode, wherein the embedded module is used as a client, and the controller sets an ESP8266 communication module of the controller to be in an STA running mode and a single connection mode through instructions; the embedded module is a data acquisition processing module in the modes, and then the data convergence processing module to be accessed by the data acquisition processing module is selected. The specific steps are that after the WIFI name of the data convergence processing module in the space is searched, whether the WIFI of the data convergence processing module is accessed is judged, if the WIFI is not accessed, SSID broadcasting of the WIFI in the space is acquired again and connected, and judgment is carried out again until the WIFI is accessed successfully. After the WIFI is accessed to the data aggregation processing module, a REQ signal is sent to the data aggregation processing module according to a TCP/IP communication protocol, whether an ACK signal is received or not is judged, if the ACK signal is not received, the REQ signal is sent again, and if the ACK signal is received, data collection is started and the data is sent to the data aggregation processing module. After the steps are finished, whether the work of the data acquisition processing module is finished is judged, and if the task is finished, the data acquisition is continued to be waited.
S11: if the ESP8266 communication module is the second data aggregation processing module, the ESP8266 communication module is controlled to receive data sent by the upstream second data aggregation processing module and/or data sent by the data acquisition processing module connected with the ESP8266 communication module, and send the obtained data to the downstream second data aggregation processing module and/or the first data aggregation processing module;
The second data gathering processing module is mainly used for receiving the data at the upstream and the data sent by the data acquisition processing module connected with the second data gathering processing module, and the second data gathering processing module can acquire the data by the sensor of the second data gathering processing module and send the data to the downstream after obtaining the data. FIG. 8 is a flowchart of a deployment of a data aggregation processing module according to an embodiment of the present application; the solution presented in the figure is a preferred implementation solution, as shown in fig. 8, the deployment steps of the data convergence processing module are as follows: s30: selecting a sink mode; s31: setting an AP+STA operation mode and a multi-connection mode; s32: accessing an upstream data aggregation processing module, and if the upstream data aggregation processing module is an initial point, not accessing the upstream data aggregation processing module; s33: starting a WIFI hotspot and configuring a server side; s34: judging whether a data acquisition processing module is connected or a data aggregation processing module is connected downstream, if so, entering a step S36, otherwise, entering a step S35; s35: delay waiting and returning to the step S34; s36: beginning to receive data or transmitting data; s37: judging whether the process is finished, if so, finishing the process, otherwise, entering step S38; s38: wait for data, and return to step S36.
When the embedded module is started, a sink mode is selected, the embedded module is used as a server side, and the controller sets an ESP8266 communication module of the controller to be an AP+STA running mode and a multi-connection mode through instructions; the embedded module in the modes is a data convergence processing module, and then selects other data convergence processing modules to be accessed at the upstream of the data convergence processing module, and starts a WIFI hotspot of the embedded module to configure a server side. After the reconfiguration is finished, judging whether a data acquisition processing module needs to be accessed or not or whether other data aggregation processing modules need to be accessed downstream, and if the modules do not access, delaying for waiting; if the module is accessed, the data sent by the data acquisition processing module is received if the data acquisition processing module is accessed, and if the data acquisition processing module is accessed by other data aggregation processing modules at the downstream, the obtained data is sent to the downstream. After the steps are finished, whether the work of the data aggregation processing module is finished is judged, and if the task is finished, the data is continued to be waited.
S12: if the ESP8266 communication module is the first data aggregation processing module, the ESP8266 communication module is controlled to receive the data sent by the second data aggregation processing module at the upstream and/or the data sent by the data acquisition processing module connected with the ESP8266 communication module.
The main function of the first data aggregation processing module is to aggregate data, and when other devices need the data obtained by the sensor network communication system, the first data aggregation processing module can also send the aggregated data to the devices. When the embedded module is started, the controller sets an ESP8266 communication module of the controller to be in an AP+STA running mode and a multi-connection mode through instructions; the difference between the first data aggregation processing module and the second data aggregation processing module is that in the system, data does not need to be sent to other data aggregation processing modules. All the data to be summarized are finally transferred to the first data aggregation processing module.
The sensor network communication method provided in this embodiment corresponds to the sensor network communication system, so that the sensor network communication method has the same beneficial effects as the sensor network communication system, and is not described herein again.
In the sensor network, the data collected by a single sensor is limited, a plurality of sensors work independently and are simply overlapped with the data, and when the sensor at the downstream of the sensor network collects the data, the data can be obtained more accurately by utilizing the upstream data to obtain useful information, so the sensor collected data of the first data collecting and processing module and the second data collecting and processing module comprise: information is acquired from the acquired data and new data results are acquired according to the information.
In an actual communication link, when the sensors of the downstream first data convergence processing module and the second data convergence processing module collect data, the upstream data may need to be utilized so that the sensors of the sensors collect data more accurately. For example, when the sensor network is used for realizing non-contact temperature measurement of a human body, if only one infrared temperature measurement sensor is used for measuring the temperature of the human body, the measured temperature of the human body is influenced by environmental factors, and the error is large; the infrared temperature sensor is arranged on the upper side of the infrared temperature sensor, the laser distance measuring sensor is arranged on the lower side of the infrared temperature sensor, the laser distance measuring sensor is arranged on the upper side of the infrared temperature sensor, the laser distance measuring sensor is arranged on the lower side of the infrared temperature sensor, and the laser distance measuring sensor is arranged on the upper side of the infrared temperature sensor; the final human body temperature is obtained by correcting and compensating the temperature and humidity of the external environment and the distance between the infrared temperature measuring sensor and the measuring person, and is more accurate than the data obtained by measuring the human body temperature by using one infrared temperature measuring sensor.
The embodiment provides a method, which obtains useful information from data obtained by the first data aggregation processing module and the second data aggregation processing module, and collects new data according to the information, so that the collected data can be ensured to be more accurate.
In practical application, the number of the data convergence processing module is actually the number of the WIFI name of the ESP8266 communication module of the data convergence processing module, that is, the number of the SSID, and different channels are used when the data convergence processing modules with different numbers communicate, if the numbers are disordered, the transmission channels may be disordered, so that the transmission efficiency is low. The method further comprises: the data aggregation processing modules are numbered according to the connection sequence, wherein different channels are used when the data aggregation processing modules with different numbers communicate.
After the data acquisition processing module is started, the data aggregation processing module needs to be connected; after the data convergence processing module is started, the data convergence processing module at the upstream is also required to be connected. When the data aggregation processing modules in the search range are connected, if a plurality of data aggregation processing modules are searched and only one data aggregation processing module is actually connected, determining which one of the data aggregation processing modules is connected is needed, and judging according to the number of the data aggregation processing modules is needed. For example, there are four data aggregation processing modules in the system, and the data aggregation processing modules are numbered from small to large according to the sequence from upstream to downstream of data transmission.
The SSID of all the modules can be in a uniform format, after the SSID is numbered by the data convergence processing module according to the connection sequence, the data convergence processing module which needs to be accessed can be judged conveniently after the SSID of the data convergence processing module is searched, and the confusion of a transmission channel can not be caused.
After the embedded module is started, various operation modes and modules to be connected are required to be set. In a specific implementation, the embedded module may be set to a default mode, but the default connection mode may not meet the connection requirement, so the method further includes: the operation modes of the data acquisition processing module, the first data aggregation processing module and the second data aggregation processing module and the connected modules are set through the man-machine interaction module. After each embedded module is started, the operation mode of the embedded module, the module to be connected and the like can be set through the man-machine interaction module. For example, after one of the second data aggregation processing modules is started, a sink mode needs to be selected, and an ESP8266 communication module of the second data aggregation processing module is set to be an ap+sta operation mode and a multi-connection mode; and the second data aggregation processing module at the upstream is required to be searched for access, and at the moment, various settings can be completed through the man-machine interaction module, so that the convenience of system deployment is improved.
In the above embodiment, a manual operation error or other situations may occur, which results in that the setting of the embedded module after the startup is not completed, so the above method further includes: if the data acquisition processing module, the first data aggregation processing module and the second data aggregation processing module do not set the operation mode within the preset time, the module without the operation mode is set as a default mode; a default mode is set for the embedded modules in advance, and note that different embedded modules can be in different default modes; for example, if the embedded module may be used as a data acquisition processing module, the node mode may be selected by default, and the ESP8266 communication module of the embedded module is set to be in the STA operation mode and the single connection mode; if the embedded module may be used as a data aggregation processing module, a sink mode is selected by default, and the ESP8266 communication module of the embedded module is set to an ap+sta operation mode and a multi-connection mode.
If the data acquisition processing module is not provided with the connected module within the preset time, controlling the data acquisition processing module to automatically connect with the data convergence processing module within the range; the data collection processing module may be connected to the first data collection processing module or the second data collection processing module, if the connected module is not set in the preset time, the data collection processing module in the search range is connected to the searched data collection processing module, and if a plurality of data collection processing modules are searched at the same time, the data collection processing module may be set to be connected to the nearest data collection processing module or the data collection processing module with the designated number by default.
And if the connected module is not set in the preset time, controlling the data aggregation processing module to automatically connect with other second data aggregation processing modules in the range. The data gathering processing module is the same as the data gathering processing module, and after being started, the data gathering processing module needs to search other data gathering processing modules for access and receives the data of the other data gathering processing modules; if a plurality of data aggregation processing modules are searched at the same time, the data aggregation processing module can be set to be connected with the nearest data aggregation processing module or the data aggregation processing module with the designated number by default.
When the startup setting of the embedded module is not completed within the preset time, the embedded module automatically enters the default setting, resource waste caused by long-term startup is avoided, and meanwhile, the convenience of system deployment can be improved by automatically setting and automatically connecting the embedded module.
In the above embodiment, if the data aggregation processing module is not provided with the connected module within the preset time, the data aggregation processing module is controlled to automatically connect with other second data aggregation processing modules within the range; if a plurality of second data convergence processing modules are searched in the range at the same time, the judgment is difficult, so that other second data convergence processing modules in the range are automatically connected with the control data convergence processing module, and the control data convergence processing module comprises: the control data convergence processing module is automatically connected with a second data convergence processing module with the largest number in the range, and the number of the control data convergence processing module is increased by one on the basis of the largest number.
In the system provided in the foregoing embodiment, the data aggregation processing modules are numbered according to the connection sequence, so when the data aggregation processing modules search for multiple data aggregation processing modules within the range at the same time, there must be a second data aggregation processing module with the largest number, after the second data aggregation processing module with the largest default access number is further needed to add one to its own number on the basis of the largest number, so that other data aggregation processing modules in the downstream are accessed.
The embodiment provides a preferred scheme for connecting the data convergence processing modules, the data convergence processing modules are automatically connected with the second data convergence processing module with the largest serial number in the range, and the serial number of the data convergence processing module is added by one on the basis of the largest serial number, so that the problem that when a plurality of second data convergence processing modules are searched in the range at the same time after the data convergence processing module is started, the second data convergence processing module cannot be determined to be connected is solved, and the operation modes of manually inputting SSID and manually setting each module are avoided.
The first data convergence processing module, the second data convergence processing module and the data acquisition processing module are in data transmission through the ESP8266 communication module, when a communication link is established, the password of the module to be accessed needs to be acquired, and for the convenience of access, the method further comprises the following steps: the access password uniform format of all ESP8266 communication modules is controlled, and the establishment of communication links among the modules is more convenient. In practical application, the access passwords of all modules can be defaulted to be uniform fixed passwords, and other modules can be directly accessed, so that the convenience of system deployment is improved.
In the above embodiments, the detailed description is given to the sensor network communication method, and the present application further provides a corresponding embodiment of the sensor network communication device. It should be noted that, based on the hardware angle, the embodiment of the present application provides a sensor network communication device, and fig. 9 is a structural diagram of the sensor network communication device provided in the embodiment of the present application, as shown in fig. 9, the sensor network communication device includes: a memory 30 for storing a computer program;
A processor 31 for implementing the steps of the sensor network communication method as mentioned in the above embodiments when executing a computer program.
The sensor network communication device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 31 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (Field-Programmable gate array), PLA (Programmable Logic Array ). The processor 31 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 31 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 31 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
Memory 30 may include one or more computer-readable storage media, which may be non-transitory. Memory 30 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 30 is at least used for storing a computer program 301, where the computer program, when loaded and executed by the processor 31, is capable of implementing the relevant steps of the sensor network communication method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 30 may further include an operating system 302, data 303, and the like, where the storage manner may be transient storage or permanent storage. Operating system 302 may include Windows, unix, linux, among other things. The data 303 may include, but is not limited to, data related to a sensor network communication method, and the like.
In some embodiments, the sensor network communication device may further include a display screen 32, an input/output interface 33, a communication interface 34, a power supply 35, and a communication bus 36.
Those skilled in the art will appreciate that the structure shown in fig. 9 is not limiting of the sensor network communication device and may include more or fewer components than shown.
The sensor network communication device provided by the embodiment of the application comprises a memory and a processor, wherein the processor can realize the following method when executing a program stored in the memory: a sensor network communication method.
The sensor network communication device provided by the embodiment corresponds to the method, so that the sensor network communication device has the same beneficial effects as the method.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution contributing to the prior art, or may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer readable storage medium provided in the present embodiment corresponds to the above method, and thus has the same advantageous effects as the above method.
The sensor network communication system, the sensor network communication method, the sensor network communication device and the storage medium provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (9)

1. The sensor network communication system is characterized by comprising a plurality of data acquisition processing modules working in an STA operation mode and a plurality of data aggregation processing modules working in an AP+STA operation mode, wherein the data acquisition processing modules and the data aggregation processing modules comprise: a sensor, a controller, and an ESP8266 communication module, the ESP8266 communication module configured to receive and transmit data collected by the sensor;
The data aggregation processing modules comprise a first data aggregation processing module and a second data aggregation processing module, and the first data aggregation processing module is directly or indirectly connected with all the second data aggregation processing modules and all the data acquisition processing modules so as to collect all the data;
The data acquisition processing module is connected with the first data convergence processing module and/or the second data convergence processing module so as to conveniently send data to the corresponding data convergence processing module;
The second data convergence processing module is connected with other second data convergence processing modules and/or the first data convergence processing module, and is used for receiving data sent by the upstream second data convergence processing module and sending the obtained data to the downstream first data convergence processing module and/or the downstream second data convergence processing module; the data transmission mode between the data convergence processing modules selects simplex communication or half duplex communication; wherein the sensor acquisition data of the first data aggregation processing module and the second data aggregation processing module comprises: acquiring information from the obtained data and acquiring a new data result according to the information;
And the steps of obtaining information from the obtained data and obtaining new data results according to the information include: and if the compensation correction is required to be carried out on other information, the current sensor acquires data after receiving the data sent by the upstream sensor, and then the data acquired by the current sensor is compensated and corrected by utilizing the data sent by the upstream sensor.
2. A sensor network communication method applied to the sensor network communication system of claim 1, the method comprising:
If the ESP8266 communication module is a data acquisition processing module, the ESP8266 communication module is controlled to send data acquired by a sensor of the ESP communication module to a first data aggregation processing module at the downstream or a second data aggregation processing module at the downstream;
If the ESP8266 communication module is the second data aggregation processing module, the ESP8266 communication module is controlled to receive data sent by the second data aggregation processing module at the upstream and/or data sent by the data acquisition processing module connected with the ESP8266 communication module, and send the obtained data to the second data aggregation processing module at the downstream and/or the first data aggregation processing module;
If the ESP8266 communication module is the first data aggregation processing module, the ESP8266 communication module is controlled to receive data sent by the second data aggregation processing module at the upstream and/or data sent by the data acquisition processing module connected with the ESP8266 communication module; the data transmission mode between the data convergence processing modules selects simplex communication or half duplex communication; wherein the sensor acquisition data of the first data aggregation processing module and the second data aggregation processing module comprises: acquiring information from the obtained data and acquiring a new data result according to the information;
And the steps of obtaining information from the obtained data and obtaining new data results according to the information include: and if the compensation correction is required to be carried out on other information, the current sensor acquires data after receiving the data sent by the upstream sensor, and then the data acquired by the current sensor is compensated and corrected by utilizing the data sent by the upstream sensor.
3. The sensor network communication method of claim 2, further comprising: the data aggregation processing modules are numbered according to the connection sequence, wherein different channels are used when the data aggregation processing modules with different numbers communicate.
4. A sensor network communication method according to claim 3, further comprising:
the data acquisition processing module, the first data aggregation processing module, the second data aggregation processing module and the connected modules are arranged through a man-machine interaction module.
5. The sensor network communication method of claim 4, further comprising:
If the data acquisition processing module, the first data aggregation processing module and the second data aggregation processing module do not set an operation mode within a preset time, setting the module without the operation mode as a default mode;
If the data acquisition processing module is not provided with the connected module within the preset time, controlling the data acquisition processing module to automatically connect with the data aggregation processing module within the range;
And if the data convergence processing module is not provided with the connected module within the preset time, controlling the data convergence processing module to automatically connect with other second data convergence processing modules within the range.
6. The sensor network communication method according to claim 5, wherein the controlling the data aggregation processing module to automatically connect the other second data aggregation processing modules within range includes:
And controlling the data aggregation processing module to be automatically connected with the second data aggregation processing module with the largest number in the range, and adding one to the number of the second data aggregation processing module on the basis of the largest number.
7. The sensor network communication method according to any one of claims 2 to 6, further comprising:
and controlling the access password unified format of all ESP8266 communication modules.
8. A sensor network communication device comprising a memory for storing a computer program;
a processor for implementing the steps of the sensor network communication method according to any one of claims 2 to 7 when executing the computer program.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the sensor network communication method according to any of claims 2 to 7.
CN202111319378.4A 2021-11-09 2021-11-09 Sensor network communication system, method and device and storage medium Active CN114040424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111319378.4A CN114040424B (en) 2021-11-09 2021-11-09 Sensor network communication system, method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111319378.4A CN114040424B (en) 2021-11-09 2021-11-09 Sensor network communication system, method and device and storage medium

Publications (2)

Publication Number Publication Date
CN114040424A CN114040424A (en) 2022-02-11
CN114040424B true CN114040424B (en) 2024-05-24

Family

ID=80143559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111319378.4A Active CN114040424B (en) 2021-11-09 2021-11-09 Sensor network communication system, method and device and storage medium

Country Status (1)

Country Link
CN (1) CN114040424B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710480B (en) * 2022-04-08 2023-05-26 西南科技大学 Processing method and system for read-out electronic data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209224A (en) * 2013-04-28 2013-07-17 上海海事大学 P2P (peer-to-peer)-based underwater acoustic sensor network system and data transmission method thereof
CN103632570A (en) * 2013-11-13 2014-03-12 北京青创智通科技有限公司 Wireless transmission method and wireless transmission system
WO2017012468A1 (en) * 2015-07-17 2017-01-26 袁丽 Wireless communication system and method for smart traffic monitoring
CN106506591A (en) * 2016-09-28 2017-03-15 华北电力大学 System is collected based on the intelligent substation Condition Monitoring Data of multi-layer hybrid network
CN112866951A (en) * 2020-12-30 2021-05-28 南京理工大学 Rail transit energy consumption number acquisition system based on WSN framework

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209224A (en) * 2013-04-28 2013-07-17 上海海事大学 P2P (peer-to-peer)-based underwater acoustic sensor network system and data transmission method thereof
CN103632570A (en) * 2013-11-13 2014-03-12 北京青创智通科技有限公司 Wireless transmission method and wireless transmission system
WO2017012468A1 (en) * 2015-07-17 2017-01-26 袁丽 Wireless communication system and method for smart traffic monitoring
CN106506591A (en) * 2016-09-28 2017-03-15 华北电力大学 System is collected based on the intelligent substation Condition Monitoring Data of multi-layer hybrid network
CN112866951A (en) * 2020-12-30 2021-05-28 南京理工大学 Rail transit energy consumption number acquisition system based on WSN framework

Also Published As

Publication number Publication date
CN114040424A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
US11337274B2 (en) Method, apparatus and device for controlling dual-mode communication, and computer readable storage medium
JP4696162B2 (en) Topology configuration method and system
CN108337698B (en) Multilink-based data stream adjusting method, device, equipment and medium
EP3462779B1 (en) Channel switching method and device
CN101651969B (en) Implement method of power control cognition MAC protocol based on time division multiple access (TDMA)
CN104813600B (en) Sending method, method of reseptance, device and the communication equipment of signal
JP5560941B2 (en) Wireless communication apparatus, wireless communication system, wireless communication method, wireless communication program, and recording medium
US11095553B2 (en) Method, apparatus and system for controlling routing information advertising
CN103338495B (en) Two-way energy balance wireless sensing network route method based on LEPS
CN102665297B (en) Communication device and system as well as method of wireless cloud sensor network
CN102752040A (en) Hybrid networking and communication method based on wireless and power line carrier
US20130343253A1 (en) Method for regulating transmit power and wireless routing device
CN105406978A (en) Method and apparatus for configuring operating mode of data forwarding device
CN102958197A (en) Method for establishing X2 service signaling connection, base station and CSG (cell site gateway)
CN114040424B (en) Sensor network communication system, method and device and storage medium
CN110177097A (en) Data transmission method, apparatus and system
KR101751757B1 (en) Time slot allocation and frequency slot allocation algorithm in a tree-based wireless sensor network
CN117119578A (en) Multi-formation wireless networking hybrid synchronization method, electronic equipment and readable storage medium
CN103533567B (en) The determination method of secondary node and node
US20210298019A1 (en) System and method of using channelization in a wireless network
CN111093291A (en) TDMA ad hoc network, construction method thereof, node and storage medium
KR20160004477A (en) A method for signal transmission in the downlink of multi-hop wireless communication systems
JP2017098661A (en) Network system, control method for network system, and delay management device
WO2017036157A1 (en) Communication device connection method and system, and optical port rate conversion device
CN104661235A (en) Networking method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant