WO2021093743A1 - Data communication method and related device - Google Patents
Data communication method and related device Download PDFInfo
- Publication number
- WO2021093743A1 WO2021093743A1 PCT/CN2020/127901 CN2020127901W WO2021093743A1 WO 2021093743 A1 WO2021093743 A1 WO 2021093743A1 CN 2020127901 W CN2020127901 W CN 2020127901W WO 2021093743 A1 WO2021093743 A1 WO 2021093743A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- node
- sub
- sleep
- period
- level node
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/38—Services specially adapted for particular environments, situations or purposes for collecting sensor information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0212—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
- H04W52/0216—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave using a pre-established activity schedule, e.g. traffic indication frame
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0248—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/20—Manipulation of established connections
- H04W76/28—Discontinuous transmission [DTX]; Discontinuous reception [DRX]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present invention relates to the field of communication technology, in particular to a data communication method, a data communication device, a terminal device and a computer storage medium.
- Wireless Sensor Networks is a distributed sensor network, the end of which is a sensor that can perceive and inspect the outside world.
- the sensors in WSN communicate wirelessly, so the network settings are flexible, the location of the device can be changed at any time, and it can also be connected to the Internet in wired or wireless mode.
- a multi-hop self-organizing network formed by wireless communication.
- wireless sensor networks include sensor nodes, concentrators, and upper computers. Among them, the sensor node can transmit the collected data to the upper computer through the concentrator for processing, and can also receive the data sent by the upper computer through the concentrator.
- sensor nodes usually adopt periodic listening and sleeping methods, periodically start to listen, and enter a dormant state after being started for a period of time; after the node wakes up, it listens to the channel state to determine whether a receiving concentrator is needed.
- the sent data this way of receiving downlink data can reduce the working power consumption of the node, but the node cannot respond to the data sent by the concentrator in time and cannot guarantee the real-time communication.
- the embodiment of the present invention provides a data communication method and related equipment, which can not only shorten the communication response time of the lower-level node, but also reduce the power consumption of the lower-level node.
- an embodiment of the present invention provides a data communication method, which is applied to a communication network including an upper-level node and at least one lower-level node, and a communication connection is established between the upper-level node and the lower-level node, and the method includes:
- the optimal sleep period of the lower-level node that satisfies the conditions of the shortest node response time and the lowest node power consumption
- the determining the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data of the upper-level node includes:
- the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
- the sub-sleep period set of the lower node includes sub-sleep periods of N time periods, and the sub-sleep period set is taken as the optimal Sleep cycle.
- the determining the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data of the upper-level node includes:
- the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
- the lower node According to the transmission probabilities of the N time periods, the sub-sleep periods of the N time periods, and the power consumption of a single listening, it is determined that after the first preset number of times of data is received throughout the day, the lower node will Under the condition that the sub-sleep period of the remaining time period is set to the preset maximum sub-sleep period, the node of the lower-level node listens to the power consumption expectation throughout the day;
- the sub-sleep period set of the lower node includes sub-sleep periods of N time periods, and the sub-sleep period set is taken as the optimal The sleep period, wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
- the method further includes:
- the lower-level node After the lower-level node receives the first preset number of times of data throughout the day, select a second preset number of time periods from the remaining time periods of the day of the lower-level node as the adjustment time period, and the second preset number Less than the number of time periods remaining on the day;
- the lower-level node is controlled to periodically start and periodically sleep according to the preset maximum sub-sleep period.
- the method further includes:
- the lower-level node After the lower-level node receives the first preset number of times of data throughout the day, setting the sub-sleep period of the remaining time period of the day of the lower-level node as the preset maximum sub-sleep period;
- controlling the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period.
- an embodiment of the present invention provides a data communication device, which is applied to a communication network including an upper-level node and at least one lower-level node, a communication connection is established between the upper-level node and the lower-level node, and the device includes :
- a cycle determining module configured to determine the optimal sleep cycle of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data of the upper-level node;
- a node control module configured to control the lower-level node to periodically start and periodically sleep according to the optimal sleep period
- the data sending module is used to send data to the lower-level node when the lower-level node is in the starting state.
- the period determining module includes:
- the first probability determination submodule is configured to divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
- the first time expectation acquisition sub-module is used to define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probability of the N time periods and the sub-sleep period of the N time periods;
- the first power consumption expectation acquisition sub-module is configured to determine the all-day listening power consumption expectation of the lower-level node according to the N sub-sleep periods of the time period and the single listening power consumption;
- the first function establishment sub-module is configured to establish a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
- the first period calculation sub-module is used to calculate the sub-sleep period set of the lower node when the objective balance function is the smallest, the sub-sleep period set includes sub-sleep periods of N time periods, and the A set of sub-sleep cycles is used as the optimal sleep cycle.
- the period determining module includes:
- the second probability determination submodule is configured to divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
- the second time expectation acquisition sub-module is used to define the sleep period of the time period as a sub-sleep period, and determine the node response time expectation according to the transmission probability of the N time periods and the N sub-sleep periods of the time period;
- the second power consumption expectation acquisition sub-module is configured to determine to receive the first preset throughout the day according to the transmission probability of the N time periods, the sub-sleep periods of the N time periods, and the single listening power consumption After a number of times of data, the sub-sleep period of the remaining time period of the lower-level node is set to the preset maximum sub-sleep period, and the node of the lower-level node listens to power consumption expectations throughout the day;
- the second function establishment sub-module is used to establish a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
- the second period calculation sub-module is used to calculate the sub-sleep period set of the lower-level node when the objective balance function is the smallest, the sub-sleep period set includes sub-sleep periods of N time periods, and the A set of sub-sleep periods is used as the optimal sleep period, wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
- an embodiment of the present invention provides a terminal device, including: a processor and a memory;
- the processor is connected to a memory, where the memory is used to store program code, and the processor is used to call the program code to execute the data communication method.
- an embodiment of the present invention provides a computer storage medium, the computer storage medium stores a computer program, the computer program includes program instructions, the program instructions, when executed by a processor, execute the data Communication method.
- the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption is determined, and then the optimal sleep period of the lower-level node is determined in the lower-level node's
- the optimal sleep period determined by historical transmission data is more suitable for the actual communication situation of the communication network, which can ensure the accuracy of the optimal sleep period; in addition, according to the optimal sleep period of subordinate nodes Cycle, when the lower-level node is in the awake state, sending data to the lower-level node can ensure that the lower-level node communicates in a timely manner and shorten the communication response time. Because the sleep cycle is set, the lower-level node enters the sleep state regularly, which can reduce the lower-level node's Power consumption.
- FIG. 1 is a schematic diagram of a scene of a data communication method provided by an embodiment of the present invention
- FIG. 2 is a schematic flowchart of a data communication method provided by an embodiment of the present invention.
- FIG. 3 is a schematic flowchart of a data communication method provided by an embodiment of the present invention.
- FIG. 4 is a schematic flowchart of a data communication method provided by an embodiment of the present invention.
- FIG. 5 is a schematic flowchart of a data communication method provided by an embodiment of the present invention.
- FIG. 6 is a schematic flowchart of a data communication method provided by an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention.
- FIG. 9 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention.
- FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
- the data communication method of the present invention can be applied to a data communication network including an upper-level node and at least one lower-level node. At least one may be one or more than two.
- a wired or wireless communication connection can be established between the upper-level node and the lower-level node.
- the communication methods include Bluetooth, WiFi, ZigBee, etc.
- the data communication network can be a one-to-many network structure such as a sensor network and an Internet of Things network.
- Figure 1 is a schematic diagram of a data communication method provided by an embodiment of the present invention; taking the data communication method applied to a wireless sensor network as an example, the wireless sensor network includes n sensor nodes (such as sensor node 1, sensor Node 2 ... sensor node n) and the host computer 11. Generally, the sensor node communicates with the host computer 11 through a concentrator. The following takes as an example to obtain the optimal sleep period when the sensor node 1 meets the conditions of the shortest response time and the lowest node power consumption:
- the whole day is divided into 24 time periods, and then based on the historical data sent by the wireless sensor network or the existing engineering experience, the probability distribution of the upper-level node sending data to the sensor node 1 in each time period (that is, each time period
- the sending probability of each sensor node can be obtained according to the data sending record of the host computer 11.
- define the sleep period of each time period as a sub-sleep period, and determine the node response time expectation of sensor node 1 according to the transmission probability of each time period and the sub-sleep period.
- the node power consumption takes only the listening power consumption as an example, and the all-day listening power consumption expectation of the sensor node 1 is determined according to the sub-sleep period of each time period and the single listening power consumption of the node.
- the specific values of the corresponding first preset weight and second preset weight are determined according to the degree of emphasis on node response time and node power consumption.
- a node's all-day listening power consumption expectation, and a second preset weight establish the objective balance function.
- the problem is transformed into the specific value of the sub-sleep period corresponding to the minimum value of the objective balance function, which is determined by 24
- the set of sub-sleep periods constituted by the sub-sleep periods corresponding to each time period is used as the optimal sleep period of the sensor node 1.
- the host computer 11 calculate the optimal sleep period of each sensor node according to the above method, and then send the corresponding optimal sleep period to the corresponding sensor node. Specifically, after obtaining the optimal sleep period of each sensor node After the sensor node is powered on, the sensor node sends a network data packet to the upper computer 11, and the upper computer 11 replies to the node with a confirmation frame, where the confirmation frame piggybacks the short address assigned to the sensor node, time synchronization information, and the optimal sleep of the node Cycle information, the sensor node can synchronize with the time of the host computer according to the time synchronization information, and then set the sleep cycle of the node to the optimal sleep cycle received, and the sensor node starts with the corresponding sub-sleep cycle in each time period.
- the host computer 11 needs to send data to the sensor node 1, according to the optimal sleep cycle information of the sensor node, the data is sent to the sensor node in the startup state of the node. Realize the real-time communication of sensor network and low power consumption of nodes.
- the upper computer 11 can periodically calculate the optimal sleep period of the node according to the historical record of the sent data, and periodically send it to the sensor node to change the sleep period of the node.
- the sensor node is set to adjust the sleep period of the subsequent time period of the day to the preset maximum sub-sleep period after receiving the first preset number of times (for example, 1 time) of data.
- the maximum sub-sleep period is the longest response time that the user can accept; at this time, the calculation method of the sub-sleep period set is different from the above method.
- the difference is that when the computing node listens to the power consumption expectations throughout the day, it needs to be considered In the above sleep cycle adjustment situation, according to the transmission probability and sub-sleep period of 24 time periods, and the power consumption of a single listening, it is calculated that after the first preset number of data is received throughout the day, the child of the node in the remaining time period of the day is calculated.
- the node of the node listens to the power consumption expectations throughout the day; then, construct the objective balance function according to the same steps as the above method, and set the sub-sleep cycle in the sub-sleep cycle set Under the condition that both are smaller than the preset maximum sub-sleep period, the sub-sleep period set is calculated.
- the sensor node uses the newly calculated sub-sleep period set to control the start and sleep of the node, and after receiving the first preset number of data, set the sub-sleep period of the subsequent time period of the node to the preset
- the maximum sub-sleep period the specific value of the first preset number can be set according to the actual data transmission situation of the sensor network. For example, in a day, the upper computer only sends data to the sensor node once, then the first preset number is set to 1. , And so on.
- a sufficiently long listening time of the node can be maintained in one cycle, realizing the balance between the real-time performance and power consumption of the wireless sensor network downlink data communication, and greatly reducing the node without sacrificing or sacrificing power consumption.
- the response time, and the data transmission is stable and reliable.
- FIG. 2 is a schematic flowchart of a data communication method according to an embodiment of the present invention.
- the data communication method is applied to a communication network including an upper-level node and at least one lower-level node, the upper-level node and the lower-level node A communication connection is established between them, and the method includes:
- Step S201 According to the historical sending data of the upper-level node, determine the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption;
- the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data records about the lower-level node stored on the upper-level node. It may also be based on the engineering experience data of the communication network to determine the optimal sleep period.
- the determination method is the same as that of the historical transmission data.
- Step S202 controlling the lower-level node to periodically start and periodically sleep according to the optimal sleep period
- the upper-level node issues the optimal sleep period to the lower-level node to control the lower-level node to start and sleep according to the optimal sleep period.
- Step S203 Send data to the lower-level node when the lower-level node is in the startup state.
- the upper-level node sends data to the lower-level node when the lower-level node is in the startup state according to the optimal sleep period of the lower-level node.
- the method of the embodiment of the present invention uses the optimal sleep period determined by historical transmission data to better match the actual communication conditions of the communication network, and can ensure the accuracy of the optimal sleep period; in addition, according to the optimal sleep period of the lower node, When the node is in the awake state, sending data to the subordinate node can ensure that the subordinate node communicates in a timely manner and shorten the communication response time. Because the sleep period is set, the subordinate node enters the sleep state regularly, which can reduce the power consumption of the subordinate node.
- step S201 includes:
- Step S301 Divide the entire day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
- the specific value of the preset time interval can be set according to specific needs. Taking the preset time interval of 1 hour as an example, a day is divided into 24 time periods, and P 0 is used to indicate that the upper node is between 0 o'clock and 1 o'clock.
- Step S302 Define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
- the node response time expectation is calculated according to the sending probability and the sub-sleep period. Since the upper-level node sends data to the lower-level node with an average probability throughout the day, that is, the sending probability satisfies a uniform distribution, the node response time expectation E(t) is :
- Step S303 Determine the all-day listening power consumption expectation of the lower-level node according to the sub-sleep periods of the N time periods and the single listening power consumption;
- the node power consumption only considers the listening power consumption. Assuming that the power consumption consumed by the lower-level node to wake up and listen once is W, the power consumption expected throughout the day is the node's all-day listening power
- the consumption expectation E1(w) is:
- Step S304 Establish a target balance function according to the expected response time of the node, the expected full-day listening power consumption of the node, the first preset weight and the second preset weight;
- the specific values of the first preset weight A and the second preset weight B are set from the emphasis on node response time and node power consumption, and the sum of the first preset weight A and the second preset weight B is 1.
- the first preset weight expected for the response time of the node is set to 0.7
- the second preset weight expected for the node's all-day listening power consumption is 0.3, in order to achieve The real-time communication of the communication network and the balance of the power consumption of the node, establish the objective function y:
- the problem is converted to solving the value of T 0 , T 1 ,..., T 23 when the objective function y is the smallest.
- Step S305 Calculate the set of sub-sleep periods of the lower node when the objective balance function is the smallest, the set of sub-sleep periods includes sub-sleep periods of N time periods, and the set of sub-sleep periods is taken as the set of sub-sleep periods. Describe the optimal sleep cycle.
- T 0 , T 1 ,..., T 23 are the optimal sleep periods of the lower-level nodes.
- the node response time expectation and the node's all-day listening power consumption expectation are obtained according to the sending probability, and then the objective balance function is established to obtain the shortest node response time and node performance.
- the sub-sleep period under the lowest consumption condition that is, the optimal sleep period of the lower-level node, can not only ensure that the communication response of the communication network is timely, but also can reduce the power consumption of the lower-level node.
- FIG. 4 is a schematic flowchart of a data communication method provided by an embodiment of the present invention. After sending data to the lower-level node in the startup state of the lower-level node, further include:
- Step S401 after the lower-level node receives the first preset number of times of data throughout the day, the sub-sleep period of the remaining time period of the day of the lower-level node is set as the preset maximum sub-sleep period;
- the specific value of the first preset number can be set freely.
- the specific value of the first preset number can be determined according to the number of times the communication network actually needs to send data throughout the day. For example, in the communication network, the upper node Data needs to be sent to the lower node once a day, and the first preset number can be set to any value greater than or equal to 1, to ensure the normal data sending requirements of the communication network.
- the sub-sleep period of the remaining time period of the day of the lower-level node is set to the preset maximum sub-sleep period, and the preset maximum sub-sleep period is The longest response time that the user can accept can be set based on experience.
- Step S402 During the remaining time period of the day of the lower-level node, control the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period.
- the lower-level node starts and sleeps in the preset maximum sub-sleep period during the remaining time period of the day, which can effectively save the power consumption of the lower-level node.
- FIG. 5 is a schematic flowchart of a data communication method provided by an embodiment of the present invention. After sending data to the lower-level node in the startup state of the lower-level node, Also includes:
- Step S501 After the lower-level node receives the first preset number of times of data throughout the day, select a second preset number of time periods from the remaining time periods of the day of the lower-level node as the adjustment time period, and the second The preset number is less than the number in the remaining time period of the day;
- the specific values of the first preset number and the second preset number can be set according to actual needs.
- Step S502 setting the sleep period of the adjustment time period as the preset maximum sub-sleep period
- Step S503 In the adjustment time period, control the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period.
- the method in Figure 5 is similar to the method in Figure 4, the sub-sleep cycle adjustment is performed after the lower-level node receives the first preset number of times throughout the day; the difference is that in the method in Figure 5, from the remaining time period of the day Select the second preset number of time periods as the adjustment time period, set the sub-sleep period of the adjusted time period as the preset maximum sub-sleep period, and only adjust the sleep period for certain time periods in the remaining time periods of the day. Respond promptly to occasional transmission events of the communication network to avoid untimely communication responses.
- the adjustment time period can be a continuous time period, or a periodic or randomly spaced time period.
- the step S201 includes:
- Step S601 Divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
- Step S602 Define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
- Step S603 According to the transmission probabilities of the N time periods, the sub-sleep periods of the N time periods, and the single listening power consumption, it is determined that after the first preset number of times of data is received throughout the day, the Under the condition that the sub-sleep period of the remaining time period of the lower-level node is set to the preset maximum sub-sleep period, the node of the lower-level node listens to the power consumption expectation throughout the day;
- the sub-sleep period of the remaining period of the day of the lower-level node is set as the preset maximum sub-sleep period.
- the nodes of the subordinate nodes listen to the power consumption expectations throughout the day. Assuming that the preset maximum sub-sleep period is T MAX , the node's all-day listening power consumption expectation E2(w) at this time is:
- Step S604 Establish a target balance function according to the expected response time of the node, the expected full-day listening power consumption of the node, the first preset weight and the second preset weight;
- Step S605 Calculate the set of sub-sleep periods of the lower node when the objective balance function is the smallest, the set of sub-sleep periods includes sub-sleep periods of N time periods, and the set of sub-sleep periods is taken as the set of sub-sleep periods.
- the optimal sleep period wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
- T 0 , T 1 ,..., T 23 obtained by the solution are the optimal sleep period of the lower node at this time.
- the method for determining the optimal sleep cycle at this time is also different from that of the same 3.
- the difference is that the node listens to the function throughout the day.
- the calculation of the consumption expectation is similar to the determination method shown in FIG. 6, and will not be repeated.
- FIG. 7 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention. Applied to a communication network including an upper-level node and at least one lower-level node, a communication connection is established between the upper-level node and the lower-level node, and the device includes a period determining module 701, a node control module 702, and a data sending module 703, wherein :
- the cycle determining module 701 is configured to determine the optimal sleep cycle of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data of the upper-level node;
- the node control module 702 is configured to control the lower-level node to periodically start and periodically sleep according to the optimal sleep period
- the data sending module 703 is configured to send data to the lower-level node when the lower-level node is in the startup state.
- step S201 the specific functional implementation of the period determining module 701, the node control module 702, and the data sending module 703 can be referred to step S201 to step S203 in the corresponding embodiment of FIG. 2 above, and details are not described herein again.
- FIG. 8 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention.
- the period determination module 701 includes a first probability determination submodule 801, a first time expectation The obtaining sub-module 802, the first power consumption expectation obtaining sub-module 803, the first function establishment sub-module 804, and the first cycle calculation sub-module 805, where:
- the first probability determination submodule 801 is configured to divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
- the first-time expectation acquisition sub-module 802 is used to define the sleep period of the time period as a sub-sleep period, and determine the node response time expectation according to the transmission probability of the N time periods and the N sub-sleep periods of the time period ;
- the first power consumption expectation obtaining submodule 803 is configured to determine the all-day listening power consumption expectation of the lower-level node according to the N sub-sleep periods of the time period and the single listening power consumption;
- the first function establishment sub-module 804 is configured to establish a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
- the first period calculation sub-module 805 is used to calculate the sub-sleep period set of the lower node when the target balance function is at the minimum function value.
- the sub-sleep period set includes sub-sleep periods of N time periods, The set of sub-sleep cycles serves as the optimal sleep cycle.
- the first probability determination submodule 801, the first time expectation acquisition submodule 802, the first power consumption expectation acquisition submodule 803, the first function establishment submodule 804, and the first cycle calculation submodule 805 can be implemented in specific functions. Refer to step S301 to step S305 in the corresponding embodiment in FIG. 3 above, and details are not described herein again.
- the device further includes a first period adjustment module, wherein:
- the first period adjustment module is configured to set the sub-sleep period of the remaining time period of the day of the lower-level node to the preset maximum sub-sleep period after the lower-level node receives a first preset number of data throughout the day ;
- the node control module is further configured to control the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period during the remaining time period of the day of the lower-level node.
- step S401 the specific function implementation manners of the first cycle adjustment module and the node control module can be referred to step S401 to step S402 in the corresponding embodiment of FIG. 4, which will not be repeated here.
- the device further includes a time period selection module and a second period adjustment module, wherein:
- the time period selection module is configured to select a second preset number of time periods from the remaining time periods of the day of the lower-level node as the adjustment time period after the lower-level node receives the first preset number of data times throughout the day, The second preset number is less than the number in the remaining time period of the day;
- a second cycle adjustment module configured to set the sleep cycle of the adjustment time period as the preset maximum sub-sleep cycle
- the node control module is further configured to control the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period during the adjustment time period.
- step S501 the specific functional implementation manners of the time period selection module, the second cycle adjustment module, and the node control module can be referred to step S501 to step S503 in the corresponding embodiment of FIG. 5, which will not be repeated here.
- FIG. 9 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention.
- the period determination module 701 includes a second probability determination submodule 901, a second time expectation The obtaining sub-module 902, the second expected power consumption obtaining sub-module 903, the second function establishment sub-module 904, and the second cycle calculation sub-module 905, wherein:
- the second probability determining submodule 901 is configured to divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
- the second time expectation acquisition sub-module 902 is used to define the sleep period of the time period as a sub-sleep period, and determine the node response time expectation according to the transmission probability of the N time periods and the N sub-sleep periods of the time period ;
- the second power consumption expectation acquisition sub-module 903 is configured to determine to receive the first pre-recorded signal throughout the day according to the transmission probabilities of the N time periods, the sub-sleep periods of the N time periods, and the single listening power consumption. After setting the number of times of data, the sub-sleep period of the remaining time period of the lower-level node is set to the preset maximum sub-sleep period, and the node of the lower-level node listens to the power consumption expectation throughout the day;
- the second function establishment sub-module 904 is configured to establish a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
- the second period calculation sub-module 905 is used to calculate the sub-sleep period set of the lower node when the target balance function is the smallest, the sub-sleep period set includes sub-sleep periods of N time periods, and the The set of sub-sleep periods serves as the optimal sleep period, wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
- the second probability determination submodule 901, the second time expectation acquisition submodule 902, the second power consumption expectation acquisition submodule 903, the second function establishment submodule 904, and the second cycle calculation submodule 905 can be implemented in specific functions. Refer to step S601 to step S605 in the corresponding embodiment in FIG. 6 above, and details are not described herein again.
- each unit or module in the data communication device shown in FIG. 7, FIG. 8 and FIG. 9 can be separately or completely combined into one or several other units or modules to form, or some (some of them) )
- the unit or module can be further divided into a plurality of functionally smaller units or modules to form, which can realize the same operation without affecting the realization of the technical effect of the embodiment of the present invention.
- the above-mentioned units or modules are divided based on logical functions. In practical applications, the function of one unit (or module) can also be realized by multiple units (or modules), or the function of multiple units (or modules) can be implemented by one unit. (Or module) implementation.
- an embodiment of the present invention also provides a terminal device.
- FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
- the terminal device 100 can include a processor 101, a network interface 104, and a memory 105.
- the terminal device 100 may further include: a user interface 103 and at least one communication bus 102.
- the communication bus 102 is used to implement connection and communication between these components.
- the user interface 103 may include a display screen (Display) and a keyboard (Keyboard), and the optional user interface 103 may also include a standard wired interface and a wireless interface.
- the network interface 104 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
- the memory 105 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory.
- the memory 105 may also be at least one storage device located far away from the aforementioned processor 101.
- the memory 105 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
- the network interface 104 can provide network communication functions; the user interface 103 is mainly used to provide an input interface for the user; and the processor 101 can be used to call the device control application stored in the memory 105 Procedure to achieve:
- the optimal sleep period of the lower-level node that satisfies the conditions of the shortest node response time and the lowest node power consumption
- the processor 101 when the processor 101 executes the historical sending data of the upper-level node to determine that the lower-level node satisfies the optimal sleep period under the conditions of the shortest node response time and the lowest node power consumption, it specifically executes The following steps:
- the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
- the sub-sleep period set of the lower node includes sub-sleep periods of N time periods, and the sub-sleep period set is taken as the optimal Sleep cycle.
- the processor 101 when the processor 101 executes the historical sending data of the upper-level node to determine that the lower-level node satisfies the optimal sleep period under the conditions of the shortest node response time and the lowest node power consumption, it specifically executes The following steps:
- the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
- the lower node According to the transmission probabilities of the N time periods, the sub-sleep periods of the N time periods, and the power consumption of a single listening, it is determined that after the first preset number of times of data is received throughout the day, the lower node will Under the condition that the sub-sleep period of the remaining time period is set to the preset maximum sub-sleep period, the node of the lower-level node listens to the power consumption expectation throughout the day;
- the sub-sleep period set of the lower node includes sub-sleep periods of N time periods, and the sub-sleep period set is taken as the optimal The sleep period, wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
- the processor 101 further executes the following steps after sending data to the lower-level node in the startup state of the lower-level node:
- the lower-level node After the lower-level node receives the first preset number of times of data throughout the day, select a second preset number of time periods from the remaining time periods of the day of the lower-level node as the adjustment time period, and the second preset number Less than the number of time periods remaining on the day;
- the lower-level node is controlled to periodically start and periodically sleep according to the preset maximum sub-sleep period.
- the processor 101 further executes the following steps after sending data to the lower-level node in the startup state of the lower-level node:
- the lower-level node After the lower-level node receives the first preset number of times of data throughout the day, setting the sub-sleep period of the remaining time period of the day of the lower-level node as the preset maximum sub-sleep period;
- controlling the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period.
- the terminal device 100 described in the embodiment of the present invention can perform the description of the data communication method in the foregoing embodiment corresponding to FIG. 2 to FIG. 6 and may also perform the foregoing description of the data communication method in the foregoing embodiment corresponding to FIG. 7 to FIG. 9
- the description of the data communication device will not be repeated here.
- the description of the beneficial effects of using the same method will not be repeated.
- the embodiment of the present invention also provides a computer storage medium, and the computer storage medium stores the computer program executed by the aforementioned data communication device, and the computer program includes the program Instruction, when the processor executes the program instruction, it can execute the description of the data communication method in the foregoing embodiment corresponding to FIG. 2 to FIG. 6, therefore, it will not be repeated here.
- the description of the beneficial effects of using the same method will not be repeated.
- the program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
- the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Disclosed are a data communication method and a related device. The optimal sleep cycle of a lower node when same satisfies conditions regarding the shortest node response time and the lowest node power consumption is determined by means of historical sending data of an upper node, and according to the optimal sleep cycle of the lower node, data is then sent to the lower node when the lower node is in an awake state, wherein the optimal sleep cycle that is determined by using the historical sending data better matches an actual communication situation of a communication network, thereby ensuring the accuracy of the optimal sleep cycle. In addition, according to the optimal sleep cycle of the lower node, the data is sent to the lower node when the lower node is in the awake state, such that the lower node making a communication response in a timely manner can be ensured, and a communication response time is shortened; and since a sleep cycle is set, the lower node regularly enters a dormancy state, such that the power consumption of the lower node can be reduced.
Description
本发明涉及通信技术领域,尤其涉及一种数据通信方法、一种数据通信装置、一种终端设备及一种计算机存储介质。The present invention relates to the field of communication technology, in particular to a data communication method, a data communication device, a terminal device and a computer storage medium.
无线传感器网络(Wireless Sensor Networks,WSN)是一种分布式传感网络,它的末梢是可以感知和检查外部世界的传感器。WSN中的传感器通过无线方式通信,因此网络设置灵活,设备位置可以随时更改,还可以跟互联网进行有线或无线方式的连接。通过无线通信方式形成的一个多跳自组织网络。一般地,无线传感器网络包括传感器节点、集中器和上位机。其中,传感器节点可以将采集的数据通过集中器传输到上位机上进行处理,也能接收上位机通过集中器下发的数据。Wireless Sensor Networks (Wireless Sensor Networks, WSN) is a distributed sensor network, the end of which is a sensor that can perceive and inspect the outside world. The sensors in WSN communicate wirelessly, so the network settings are flexible, the location of the device can be changed at any time, and it can also be connected to the Internet in wired or wireless mode. A multi-hop self-organizing network formed by wireless communication. Generally, wireless sensor networks include sensor nodes, concentrators, and upper computers. Among them, the sensor node can transmit the collected data to the upper computer through the concentrator for processing, and can also receive the data sent by the upper computer through the concentrator.
现有技术中,传感器节点通常采用周期性侦听和睡眠的方式,周期性地启动进行侦听,启动一段时间后进入休眠状态;节点在苏醒后侦听信道状态,以判断是否需要接收集中器下发的数据,这种接收下行数据的方式,虽然能降低节点的工作功耗,但是节点无法及时响应集中器下发的数据,无法保证通信实时性。In the prior art, sensor nodes usually adopt periodic listening and sleeping methods, periodically start to listen, and enter a dormant state after being started for a period of time; after the node wakes up, it listens to the channel state to determine whether a receiving concentrator is needed. The sent data, this way of receiving downlink data can reduce the working power consumption of the node, but the node cannot respond to the data sent by the concentrator in time and cannot guarantee the real-time communication.
发明内容Summary of the invention
本发明实施例提供了一种数据通信方法及相关设备,既可以缩短下级节点的通信响应时间,又可以减小下级节点的功耗。The embodiment of the present invention provides a data communication method and related equipment, which can not only shorten the communication response time of the lower-level node, but also reduce the power consumption of the lower-level node.
一方面,本发明实施例提供了一种数据通信方法,应用于包括上级节点和至少一个下级节点的通信网络,所述上级节点和所述下级节点之间建立有通信连接,所述方法包括:On the one hand, an embodiment of the present invention provides a data communication method, which is applied to a communication network including an upper-level node and at least one lower-level node, and a communication connection is established between the upper-level node and the lower-level node, and the method includes:
根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期;According to the historical sending data of the upper-level node, determine the optimal sleep period of the lower-level node that satisfies the conditions of the shortest node response time and the lowest node power consumption;
根据所述最优睡眠周期控制所述下级节点周期性启动和周期性休眠;Controlling the subordinate node to periodically start and periodically sleep according to the optimal sleep period;
在所述下级节点的启动状态时向所述下级节点发送数据。Sending data to the lower-level node when the lower-level node is in the startup state.
可选地,所述根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时 间最短、节点功耗最低条件下的最优睡眠周期,包括:Optionally, the determining the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data of the upper-level node includes:
将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;Divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;Define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
根据N个所述时间段的子睡眠周期、以及单次侦听功耗,确定所述下级节点的节点全天侦听功耗期望;Determine the all-day listening power consumption expectation of the lower-level node according to the sub-sleep periods of the N time periods and the single listening power consumption;
根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;Establishing a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期。Calculate the objective balance function when the function value is the smallest, the sub-sleep period set of the lower node, the sub-sleep period set includes sub-sleep periods of N time periods, and the sub-sleep period set is taken as the optimal Sleep cycle.
可选地,所述根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期,包括:Optionally, the determining the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data of the upper-level node includes:
将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;Divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;Define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
根据N个所述时间段的发送概率、N个所述时间段的子睡眠周期、以及单次侦听功耗,确定在全天接收第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为预设最大子睡眠周期的条件下,所述下级节点的节点全天侦听功耗期望;According to the transmission probabilities of the N time periods, the sub-sleep periods of the N time periods, and the power consumption of a single listening, it is determined that after the first preset number of times of data is received throughout the day, the lower node will Under the condition that the sub-sleep period of the remaining time period is set to the preset maximum sub-sleep period, the node of the lower-level node listens to the power consumption expectation throughout the day;
根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;Establishing a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期,其中,所述预设最大子睡眠周期大于所述子睡眠周期集合中的最大值。Calculate the objective balance function when the function value is the smallest, the sub-sleep period set of the lower node, the sub-sleep period set includes sub-sleep periods of N time periods, and the sub-sleep period set is taken as the optimal The sleep period, wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
可选地,在所述下级节点的启动状态时向所述下级节点发送数据之后,还包括:Optionally, after sending data to the lower-level node in the startup state of the lower-level node, the method further includes:
在所述下级节点全天接收到第一预设数目次数据后,从所述下级节点当天剩余的时间段中选择第二预设数目个时间段作为调整时间段,所述第二预设数目小于所述当天剩余的时间段的个数;After the lower-level node receives the first preset number of times of data throughout the day, select a second preset number of time periods from the remaining time periods of the day of the lower-level node as the adjustment time period, and the second preset number Less than the number of time periods remaining on the day;
将所述调整时间段的睡眠周期设置为所述预设最大子睡眠周期;Setting the sleep period of the adjustment time period as the preset maximum sub-sleep period;
在所述调整时间段内,根据所述预设最大子睡眠周期控制所述下级节点周期性启动和周期性休眠。During the adjustment time period, the lower-level node is controlled to periodically start and periodically sleep according to the preset maximum sub-sleep period.
可选地,在所述下级节点的启动状态时向所述下级节点发送数据之后,还包括:Optionally, after sending data to the lower-level node in the startup state of the lower-level node, the method further includes:
在所述下级节点全天接收到第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为所述预设最大子睡眠周期;After the lower-level node receives the first preset number of times of data throughout the day, setting the sub-sleep period of the remaining time period of the day of the lower-level node as the preset maximum sub-sleep period;
在所述下级节点当天剩余的时间段内,根据所述预设最大子睡眠周期控制所述下级节点周期性启动和周期性休眠。During the remaining time period of the day of the lower-level node, controlling the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period.
另一方面,本发明实施例提供了一种数据通信装置,应用于包括上级节点和至少一个下级节点的通信网络,所述上级节点和所述下级节点之间建立有通信连接,所述装置包括:On the other hand, an embodiment of the present invention provides a data communication device, which is applied to a communication network including an upper-level node and at least one lower-level node, a communication connection is established between the upper-level node and the lower-level node, and the device includes :
周期确定模块,用于根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期;A cycle determining module, configured to determine the optimal sleep cycle of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data of the upper-level node;
节点控制模块,用于根据所述最优睡眠周期控制所述下级节点周期性启动和周期性休眠;A node control module, configured to control the lower-level node to periodically start and periodically sleep according to the optimal sleep period;
数据发送模块,用于在所述下级节点的启动状态时向所述下级节点发送数据。The data sending module is used to send data to the lower-level node when the lower-level node is in the starting state.
可选地,所述周期确定模块包括:Optionally, the period determining module includes:
第一概率确定子模块,用于将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;The first probability determination submodule is configured to divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
第一时间期望获取子模块,用于定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;The first time expectation acquisition sub-module is used to define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probability of the N time periods and the sub-sleep period of the N time periods;
第一功耗期望获取子模块,用于根据N个所述时间段的子睡眠周期、以及单次侦听功耗,确定所述下级节点的节点全天侦听功耗期望;The first power consumption expectation acquisition sub-module is configured to determine the all-day listening power consumption expectation of the lower-level node according to the N sub-sleep periods of the time period and the single listening power consumption;
第一函数建立子模块,用于根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;The first function establishment sub-module is configured to establish a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
第一周期计算子模块,用于计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期。The first period calculation sub-module is used to calculate the sub-sleep period set of the lower node when the objective balance function is the smallest, the sub-sleep period set includes sub-sleep periods of N time periods, and the A set of sub-sleep cycles is used as the optimal sleep cycle.
可选地,所述周期确定模块包括:Optionally, the period determining module includes:
第二概率确定子模块,用于将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;The second probability determination submodule is configured to divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
第二时间期望获取子模块,用于定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;The second time expectation acquisition sub-module is used to define the sleep period of the time period as a sub-sleep period, and determine the node response time expectation according to the transmission probability of the N time periods and the N sub-sleep periods of the time period;
第二功耗期望获取子模块,用于根据N个所述时间段的发送概率、N个所述时间段的子睡眠周期、以及单次侦听功耗,确定在全天接收第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为预设最大子睡眠周期的条件下,所述下级节点的节点全天侦听功耗期望;The second power consumption expectation acquisition sub-module is configured to determine to receive the first preset throughout the day according to the transmission probability of the N time periods, the sub-sleep periods of the N time periods, and the single listening power consumption After a number of times of data, the sub-sleep period of the remaining time period of the lower-level node is set to the preset maximum sub-sleep period, and the node of the lower-level node listens to power consumption expectations throughout the day;
第二函数建立子模块,用于根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;The second function establishment sub-module is used to establish a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
第二周期计算子模块,用于计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期,其中,所述预设最大子睡眠周期大于所述子睡眠周期集合中的最大值。The second period calculation sub-module is used to calculate the sub-sleep period set of the lower-level node when the objective balance function is the smallest, the sub-sleep period set includes sub-sleep periods of N time periods, and the A set of sub-sleep periods is used as the optimal sleep period, wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
另一方面,本发明实施例提供了一种终端设备,包括:处理器和存储器;On the other hand, an embodiment of the present invention provides a terminal device, including: a processor and a memory;
所述处理器和存储器相连,其中,所述存储器用于存储程序代码,所述处理器用于调用所述程序代码,以执行所述的数据通信方法。The processor is connected to a memory, where the memory is used to store program code, and the processor is used to call the program code to execute the data communication method.
另一方面,本发明实施例提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时,执行所述的数据通信方法。On the other hand, an embodiment of the present invention provides a computer storage medium, the computer storage medium stores a computer program, the computer program includes program instructions, the program instructions, when executed by a processor, execute the data Communication method.
本发明实施例中,通过上级节点的历史发送数据,确定下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期,再根据下级节点的最优睡眠周期,在下级节点的苏醒状态时向下级节点发送数据;其中,利用历史发送数据确定的最优睡眠周期,更加匹配通信网络实际的通信情况,可以确保最优睡眠周期的准确性;另外,根据下级节点的最优睡眠周期,在下级节点的苏醒状态下,向下级节点发送数据,可以确保下级节点及时进行通信响应,缩短通信响应时间,而由于设置了睡眠周期,下级节点定时进入休眠状态,可以减小下级节点的功耗。In the embodiment of the present invention, through the historical data sent by the upper-level node, the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption is determined, and then the optimal sleep period of the lower-level node is determined in the lower-level node's When waking up, send data to subordinate nodes; among them, the optimal sleep period determined by historical transmission data is more suitable for the actual communication situation of the communication network, which can ensure the accuracy of the optimal sleep period; in addition, according to the optimal sleep period of subordinate nodes Cycle, when the lower-level node is in the awake state, sending data to the lower-level node can ensure that the lower-level node communicates in a timely manner and shorten the communication response time. Because the sleep cycle is set, the lower-level node enters the sleep state regularly, which can reduce the lower-level node's Power consumption.
为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present invention more clearly, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图1是本发明实施例提供的一种数据通信方法的场景示意图;FIG. 1 is a schematic diagram of a scene of a data communication method provided by an embodiment of the present invention;
图2是本发明实施例提供的一种数据通信方法的流程示意图;2 is a schematic flowchart of a data communication method provided by an embodiment of the present invention;
图3是本发明实施例提供的一种数据通信方法的流程示意图;FIG. 3 is a schematic flowchart of a data communication method provided by an embodiment of the present invention;
图4是本发明实施例提供的一种数据通信方法的流程示意图;4 is a schematic flowchart of a data communication method provided by an embodiment of the present invention;
图5是本发明实施例提供的一种数据通信方法的流程示意图;FIG. 5 is a schematic flowchart of a data communication method provided by an embodiment of the present invention;
图6是本发明实施例提供的一种数据通信方法的流程示意图;FIG. 6 is a schematic flowchart of a data communication method provided by an embodiment of the present invention;
图7是本发明实施例提供的一种数据通信装置的结构示意图;FIG. 7 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention;
图8是本发明实施例提供的一种数据通信装置的结构示意图;FIG. 8 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention;
图9是本发明实施例提供的一种数据通信装置的结构示意图;FIG. 9 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention;
图10是本发明实施例提供的一种终端设备的结构示意图。FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
应当理解,本申请的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be understood that the terms "first", "second", etc. in the specification, claims, and drawings of the present application are used to distinguish different objects, rather than to describe a specific sequence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
本发明的数据通信方法可以应用于包括上级节点和至少一个下级节点的数据通信网络,至少一个可以是1个,或者2个以上,上级节点与下级节点之间可以建立有线或无线通信连接,无线通信方式包括蓝牙、WiFi、ZigBee等方式,数据通信网络可以为传感器网络、物联网网络等一对多网络结构。The data communication method of the present invention can be applied to a data communication network including an upper-level node and at least one lower-level node. At least one may be one or more than two. A wired or wireless communication connection can be established between the upper-level node and the lower-level node. The communication methods include Bluetooth, WiFi, ZigBee, etc. The data communication network can be a one-to-many network structure such as a sensor network and an Internet of Things network.
请参见图1,图1是本发明实施例提供的一种数据通信方法的场景示意图;以数据通信方法应用于无线传感器网络为例,无线传感器网络包括n个传感器节点(如传感器节点1、传感器节点2、……传感器节点n)以及上位机11,一般地,传感器节点通过集中器与上位机11通信。下面以获取传感器节点1的在满足点响应时间最短、节点功耗最低条件时的最优睡眠周期为例进行说明:Please refer to Figure 1. Figure 1 is a schematic diagram of a data communication method provided by an embodiment of the present invention; taking the data communication method applied to a wireless sensor network as an example, the wireless sensor network includes n sensor nodes (such as sensor node 1, sensor Node 2 ... sensor node n) and the host computer 11. Generally, the sensor node communicates with the host computer 11 through a concentrator. The following takes as an example to obtain the optimal sleep period when the sensor node 1 meets the conditions of the shortest response time and the lowest node power consumption:
首先,将全天划分成24个时间段,再根据无线传感器网络的历史发送数据或者已有工程经验确定,上级节点在每个时间段向传感器节点1发送数据的概率分布(即每个时间段的发送概率),可以根据上位机11的数据发送记录得到每个传感器节点的历史发送数据。接着定义每个时间段的睡眠周期为子睡眠周期,根据每个时间段的发送概率、子睡眠周期确定传感 器节点1的节点响应时间期望。First, the whole day is divided into 24 time periods, and then based on the historical data sent by the wireless sensor network or the existing engineering experience, the probability distribution of the upper-level node sending data to the sensor node 1 in each time period (that is, each time period The sending probability of each sensor node can be obtained according to the data sending record of the host computer 11. Then define the sleep period of each time period as a sub-sleep period, and determine the node response time expectation of sensor node 1 according to the transmission probability of each time period and the sub-sleep period.
接着,节点功耗以仅考虑侦听功耗为例,根据每个时间段的子睡眠周期、节点单次的侦听功耗确定传感器节点1的节点全天侦听功耗期望。以对节点响应时间和节点功耗的注重程度确定其对应的第一预设权重和第二预设权重的具体数值,为了实现传输实时性与传输功耗的平衡,根据节点响应时间期望和第一预设权重、节点全天侦听功耗期望和第二预设权重建立目标平衡函数,此时将问题转化成求解该目标平衡函数的最小值时对应的子睡眠周期的具体数值,由24个时间段对应的子睡眠周期构成的子睡眠周期集合作为传感器节点1的最优睡眠周期。Next, the node power consumption takes only the listening power consumption as an example, and the all-day listening power consumption expectation of the sensor node 1 is determined according to the sub-sleep period of each time period and the single listening power consumption of the node. The specific values of the corresponding first preset weight and second preset weight are determined according to the degree of emphasis on node response time and node power consumption. In order to achieve a balance between transmission real-time performance and transmission power consumption, according to the node response time expectations and the first A preset weight, a node's all-day listening power consumption expectation, and a second preset weight establish the objective balance function. At this time, the problem is transformed into the specific value of the sub-sleep period corresponding to the minimum value of the objective balance function, which is determined by 24 The set of sub-sleep periods constituted by the sub-sleep periods corresponding to each time period is used as the optimal sleep period of the sensor node 1.
在上位机11上,按照上述方法计算得到每个传感器节点的最优睡眠周期,再将相应的最优睡眠周期发送给对应的传感器节点,具体地,获得每个传感器节点的最优睡眠周期后,传感器节点上电之后,传感器节点给上位机11发送加网数据包,上位机11向节点回复确认帧,其中,确认帧捎带分配给传感器节点的短地址、时间同步信息以及节点的最优睡眠周期信息,则传感器节点可以根据时间同步信息实现与上位机的时间同步,再将节点的睡眠周期设置成接收到的最优睡眠周期,传感器节点在每个时间段以相应的子睡眠周期进行启动和休眠。上位机11在需要向传感器节点1发送数据时,根据传感器节点的最优睡眠周期信息,在节点的启动状态下将数据发送给传感器节点。实现传感器网络的实时通信和节点低功耗。On the host computer 11, calculate the optimal sleep period of each sensor node according to the above method, and then send the corresponding optimal sleep period to the corresponding sensor node. Specifically, after obtaining the optimal sleep period of each sensor node After the sensor node is powered on, the sensor node sends a network data packet to the upper computer 11, and the upper computer 11 replies to the node with a confirmation frame, where the confirmation frame piggybacks the short address assigned to the sensor node, time synchronization information, and the optimal sleep of the node Cycle information, the sensor node can synchronize with the time of the host computer according to the time synchronization information, and then set the sleep cycle of the node to the optimal sleep cycle received, and the sensor node starts with the corresponding sub-sleep cycle in each time period. And hibernation. When the host computer 11 needs to send data to the sensor node 1, according to the optimal sleep cycle information of the sensor node, the data is sent to the sensor node in the startup state of the node. Realize the real-time communication of sensor network and low power consumption of nodes.
上位机11可以根据发送数据的历史记录,定期计算节点的最佳睡眠周期,并且定期发送给传感器节点以更改节点的睡眠周期。The upper computer 11 can periodically calculate the optimal sleep period of the node according to the historical record of the sent data, and periodically send it to the sensor node to change the sleep period of the node.
为了进一步降低节点的功耗,将传感器节点设置成在接收到第一预设数目次(例如1次)数据后,将当天后续的时间段的睡眠周期调整成预设最大子睡眠周期,预设最大子睡眠周期为用户所能接受的最长响应时间;此时,子睡眠周期集合的计算方法与上述方法有所不同,不同的地方在于,计算节点全天侦听功耗期望时,需要考虑上述睡眠周期调整的情况,根据24个时间段的发送概率和子睡眠周期、以及单次侦听功耗,计算在全天接收第一预设数目次数据后,将节点当天剩余的时间段的子睡眠周期设置为预设最大子睡眠周期的条件下,节点的节点全天侦听功耗期望;接着,按照与上述方法相同的步骤构建目标平衡函数,并在子睡眠周期集合中的子睡眠周期均小于预设最大子睡眠周期的条件下,计算得到子睡眠周期集合。In order to further reduce the power consumption of the node, the sensor node is set to adjust the sleep period of the subsequent time period of the day to the preset maximum sub-sleep period after receiving the first preset number of times (for example, 1 time) of data. The maximum sub-sleep period is the longest response time that the user can accept; at this time, the calculation method of the sub-sleep period set is different from the above method. The difference is that when the computing node listens to the power consumption expectations throughout the day, it needs to be considered In the above sleep cycle adjustment situation, according to the transmission probability and sub-sleep period of 24 time periods, and the power consumption of a single listening, it is calculated that after the first preset number of data is received throughout the day, the child of the node in the remaining time period of the day is calculated. Under the condition that the sleep cycle is set to the preset maximum sub-sleep cycle, the node of the node listens to the power consumption expectations throughout the day; then, construct the objective balance function according to the same steps as the above method, and set the sub-sleep cycle in the sub-sleep cycle set Under the condition that both are smaller than the preset maximum sub-sleep period, the sub-sleep period set is calculated.
在实际通信时,传感器节点以新计算得到的子睡眠周期集合控制节点启动和休眠,并且在接收到第一预设数目次数据后,将节点当天后续的时间段的子睡眠周期设置成预设最大子睡眠周期,可以根据实际传感器网络的数据传输情况设置第一预设数目的具体数值,例如,在一天中,上位机仅向传感器节点发送一次数据,则将第一预设数目设置成1,以此类推。In actual communication, the sensor node uses the newly calculated sub-sleep period set to control the start and sleep of the node, and after receiving the first preset number of data, set the sub-sleep period of the subsequent time period of the node to the preset The maximum sub-sleep period, the specific value of the first preset number can be set according to the actual data transmission situation of the sensor network. For example, in a day, the upper computer only sends data to the sensor node once, then the first preset number is set to 1. , And so on.
利用本发明的方法,在一个周期内可以维持节点足够长的侦听时间,实现无线传感器网络下行数据通信实时性与功耗的平衡,在不牺牲或者少量牺牲功耗的情况下,大大减少节点的响应时间,且数据传输稳定可靠。By using the method of the present invention, a sufficiently long listening time of the node can be maintained in one cycle, realizing the balance between the real-time performance and power consumption of the wireless sensor network downlink data communication, and greatly reducing the node without sacrificing or sacrificing power consumption. The response time, and the data transmission is stable and reliable.
请参见图2,是本发明实施例提供的一种数据通信方法的流程示意图;所述数据通信方法,应用于包括上级节点和至少一个下级节点的通信网络,所述上级节点和所述下级节点之间建立有通信连接,所述方法包括:Refer to Figure 2, which is a schematic flowchart of a data communication method according to an embodiment of the present invention; the data communication method is applied to a communication network including an upper-level node and at least one lower-level node, the upper-level node and the lower-level node A communication connection is established between them, and the method includes:
步骤S201,根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期;Step S201: According to the historical sending data of the upper-level node, determine the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption;
具体地,可以根据上级节点上存储的关于下级节点的历史发送数据记录,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期。也可以是根据通信网络的工程经验数据来确定最优睡眠周期,确定方法与历史发送数据的确定方法相同。Specifically, it is possible to determine the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data records about the lower-level node stored on the upper-level node. It may also be based on the engineering experience data of the communication network to determine the optimal sleep period. The determination method is the same as that of the historical transmission data.
步骤S202,根据所述最优睡眠周期控制所述下级节点周期性启动和周期性休眠;Step S202, controlling the lower-level node to periodically start and periodically sleep according to the optimal sleep period;
具体地,上级节点将最优睡眠周期下发给下级节点,以控制下级节点根据最优睡眠周期进行启动和休眠。Specifically, the upper-level node issues the optimal sleep period to the lower-level node to control the lower-level node to start and sleep according to the optimal sleep period.
步骤S203,在所述下级节点的启动状态时向所述下级节点发送数据。Step S203: Send data to the lower-level node when the lower-level node is in the startup state.
具体地,上级节点根据下级节点的最优睡眠周期,在下级节点的启动状态时,向下级节点发送数据。Specifically, the upper-level node sends data to the lower-level node when the lower-level node is in the startup state according to the optimal sleep period of the lower-level node.
本发明实施例的方法,利用历史发送数据确定的最优睡眠周期,更加匹配通信网络实际的通信情况,可以确保最优睡眠周期的准确性;另外,根据下级节点的最优睡眠周期,在下级节点的苏醒状态下,向下级节点发送数据,可以确保下级节点及时进行通信响应,缩短通信响应时间,而由于设置了睡眠周期,下级节点定时进入休眠状态,可以减小下级节点的功耗。The method of the embodiment of the present invention uses the optimal sleep period determined by historical transmission data to better match the actual communication conditions of the communication network, and can ensure the accuracy of the optimal sleep period; in addition, according to the optimal sleep period of the lower node, When the node is in the awake state, sending data to the subordinate node can ensure that the subordinate node communicates in a timely manner and shorten the communication response time. Because the sleep period is set, the subordinate node enters the sleep state regularly, which can reduce the power consumption of the subordinate node.
进一步地,在一个实施例中,参考图3,图3是本发明实施例提供的一种数据通信方法的流程示意图;所述步骤S201包括:Further, in an embodiment, refer to FIG. 3, which is a schematic flowchart of a data communication method provided by an embodiment of the present invention; the step S201 includes:
步骤S301,将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;Step S301: Divide the entire day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
具体地,预设时间间隔的具体数值可以根据具体需要进行设置,以预设时间间隔为1小时为例,把一天分为24个时间段,用P
0表示上级节点在0时至1时之间往下级节点发送数据的概率,也即下级节点的发送概率,T
0表示在这一时间段设置的睡眠周期,以此类推;可 以根据历史发送数据或者工程经验数据得到某一下级节点P
0,P
1,…,P
23的具体数值,且它们满足P
0+P
1+…+P
23=1。例如,获得某一下级节点的200个历史发送数据,统计在每个时间段发送数据的数目,将数目与200的比值作为发送概率;当历史发送数据的数量足够多时,可以得到足够接近真实数据的发送概率。
Specifically, the specific value of the preset time interval can be set according to specific needs. Taking the preset time interval of 1 hour as an example, a day is divided into 24 time periods, and P 0 is used to indicate that the upper node is between 0 o'clock and 1 o'clock. The probability of sending data to the lower-level node in time, that is, the sending probability of the lower-level node, T 0 represents the sleep period set during this time period, and so on; a certain lower-level node P 0 can be obtained according to historical transmission data or engineering experience data ,P 1 ,...,P 23 are specific values, and they satisfy P 0 +P 1 +...+P 23 =1. For example, to obtain 200 historical transmission data of a certain lower-level node, count the number of data transmitted in each time period, and use the ratio of the number to 200 as the transmission probability; when the number of historical transmission data is large enough, the data that is close enough to the real data can be obtained Probability of sending.
步骤S302,定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;Step S302: Define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
具体地,根据发送概率和子睡眠周期计算节点响应时间期望,由于上级节点在全天中向下级节点发送数据的概率是平均的,即发送概率满足均匀分布,则节点响应时间期望E(t)为:Specifically, the node response time expectation is calculated according to the sending probability and the sub-sleep period. Since the upper-level node sends data to the lower-level node with an average probability throughout the day, that is, the sending probability satisfies a uniform distribution, the node response time expectation E(t) is :
步骤S303,根据N个所述时间段的子睡眠周期、以及单次侦听功耗,确定所述下级节点的节点全天侦听功耗期望;Step S303: Determine the all-day listening power consumption expectation of the lower-level node according to the sub-sleep periods of the N time periods and the single listening power consumption;
具体地,本发明实施例中,节点功耗只考虑侦听功耗,假设下级节点唤醒侦听一次消耗的功耗为W,则全天中消耗的功耗期望,即节点全天侦听功耗期望E1(w)为:Specifically, in the embodiment of the present invention, the node power consumption only considers the listening power consumption. Assuming that the power consumption consumed by the lower-level node to wake up and listen once is W, the power consumption expected throughout the day is the node's all-day listening power The consumption expectation E1(w) is:
步骤S304,根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;Step S304: Establish a target balance function according to the expected response time of the node, the expected full-day listening power consumption of the node, the first preset weight and the second preset weight;
具体地,从对节点响应时间和节点功耗的重视程度设置第一预设权重A和第二预设权重B的具体数值,第一预设权重A和第二预设权重B的总和为1,假设通信网络更加注重节点响应时间,则将节点响应时间期望的第一预设权重设置为0.7,而对应地,节点全天侦听功耗期望的第二预设权重为0.3,则为了实现通信网络的通信实时性与节点功耗的平衡,建立目标函数y:Specifically, the specific values of the first preset weight A and the second preset weight B are set from the emphasis on node response time and node power consumption, and the sum of the first preset weight A and the second preset weight B is 1. , Assuming that the communication network pays more attention to the response time of the node, the first preset weight expected for the response time of the node is set to 0.7, and correspondingly, the second preset weight expected for the node's all-day listening power consumption is 0.3, in order to achieve The real-time communication of the communication network and the balance of the power consumption of the node, establish the objective function y:
y=AE(t)+BE1(w)。y=AE(t)+BE1(w).
此时,问题转换为求解目标函数y最小时,T
0,T
1,…,T
23的值。
At this time, the problem is converted to solving the value of T 0 , T 1 ,..., T 23 when the objective function y is the smallest.
步骤S305,计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期。Step S305: Calculate the set of sub-sleep periods of the lower node when the objective balance function is the smallest, the set of sub-sleep periods includes sub-sleep periods of N time periods, and the set of sub-sleep periods is taken as the set of sub-sleep periods. Describe the optimal sleep cycle.
具体地,将E(t)和E1(w)代入后,目标函数y可展开为Specifically, after substituting E(t) and E1(w), the objective function y can be expanded as
则利用均值不等式或者对勾函数的性质可求出的T
0,T
1,…,T
23值。T
0,T
1,…,T
23即为下级节点的最优睡眠周期。
Then the values of T 0 , T 1 ,..., T 23 can be obtained by using the mean value inequality or the properties of the check function. T 0 , T 1 ,..., T 23 are the optimal sleep periods of the lower-level nodes.
利用图3的方法,根据历史发送数据求得发送概率后,根据发送概率得到节点响应时间 期望和节点全天侦听功耗期望,再建立目标平衡函数,进而获得满足节点响应时间最短、节点功耗最低条件下的子睡眠周期,即下级节点的最优睡眠周期,不仅可以保证通信网络的通信响应及时,而且可以降低下级节点的功耗。Using the method in Figure 3, after obtaining the transmission probability according to the historical transmission data, the node response time expectation and the node's all-day listening power consumption expectation are obtained according to the sending probability, and then the objective balance function is established to obtain the shortest node response time and node performance. The sub-sleep period under the lowest consumption condition, that is, the optimal sleep period of the lower-level node, can not only ensure that the communication response of the communication network is timely, but also can reduce the power consumption of the lower-level node.
进一步地,在一个实施例中,参考图4,图4是本发明实施例提供的一种数据通信方法的流程示意图;在所述下级节点的启动状态时向所述下级节点发送数据之后,还包括:Further, in an embodiment, referring to FIG. 4, FIG. 4 is a schematic flowchart of a data communication method provided by an embodiment of the present invention; after sending data to the lower-level node in the startup state of the lower-level node, further include:
步骤S401,在所述下级节点全天接收到第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为所述预设最大子睡眠周期;Step S401, after the lower-level node receives the first preset number of times of data throughout the day, the sub-sleep period of the remaining time period of the day of the lower-level node is set as the preset maximum sub-sleep period;
具体地,第一预设数目的具体数值可以自由设置,一般地,可以根据通信网络实际上全天需要发送的数据次数来确定第一预设数目的具体数值,例如,通信网络中,上级节点每天需要向下级节点发送1次数据,则第一预设数目可以设置成大于或等于1的任意数值,以保证通信网络正常的数据发送需求。为了进一步节省下级节点的功耗,在接收了第一预设数目次数据后,将下级节点当天剩余的时间段的子睡眠周期全部设置为预设最大子睡眠周期,预设最大子睡眠周期为用户所能接受的最长响应时间,可以根据经验进行设置。Specifically, the specific value of the first preset number can be set freely. Generally, the specific value of the first preset number can be determined according to the number of times the communication network actually needs to send data throughout the day. For example, in the communication network, the upper node Data needs to be sent to the lower node once a day, and the first preset number can be set to any value greater than or equal to 1, to ensure the normal data sending requirements of the communication network. In order to further save the power consumption of the lower-level node, after receiving the first preset number of times of data, the sub-sleep period of the remaining time period of the day of the lower-level node is set to the preset maximum sub-sleep period, and the preset maximum sub-sleep period is The longest response time that the user can accept can be set based on experience.
步骤S402,在所述下级节点当天剩余的时间段内,根据所述预设最大子睡眠周期控制所述下级节点周期性启动和周期性休眠。Step S402: During the remaining time period of the day of the lower-level node, control the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period.
具体地,下级节点在当天剩余的时间段以预设最大子睡眠周期进行启动和休眠,可以有效节省下级节点的功耗。Specifically, the lower-level node starts and sleeps in the preset maximum sub-sleep period during the remaining time period of the day, which can effectively save the power consumption of the lower-level node.
进一步地,在另一个实施例中,参考图5,图5是本发明实施例提供的一种数据通信方法的流程示意图;在所述下级节点的启动状态时向所述下级节点发送数据之后,还包括:Further, in another embodiment, referring to FIG. 5, FIG. 5 is a schematic flowchart of a data communication method provided by an embodiment of the present invention; after sending data to the lower-level node in the startup state of the lower-level node, Also includes:
步骤S501,在所述下级节点全天接收到第一预设数目次数据后,从所述下级节点当天剩余的时间段中选择第二预设数目个时间段作为调整时间段,所述第二预设数目小于所述当天剩余的时间段的个数;Step S501: After the lower-level node receives the first preset number of times of data throughout the day, select a second preset number of time periods from the remaining time periods of the day of the lower-level node as the adjustment time period, and the second The preset number is less than the number in the remaining time period of the day;
具体地,第一预设数目和第二预设数目的具体数值可以根据实际需要进行设置。Specifically, the specific values of the first preset number and the second preset number can be set according to actual needs.
步骤S502,将所述调整时间段的睡眠周期设置为所述预设最大子睡眠周期;Step S502, setting the sleep period of the adjustment time period as the preset maximum sub-sleep period;
步骤S503,在所述调整时间段内,根据所述预设最大子睡眠周期控制所述下级节点周期性启动和周期性休眠。Step S503: In the adjustment time period, control the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period.
具体地,图5与图4的方法相似,在下级节点全天接收到第一预设数目次数据后进行子睡眠周期调整;不同的是,图5的方法中,从当天剩余的时间段中选择第二预设数目个时间段作为调整时间段,将调整时间段的子睡眠周期设置为预设最大子睡眠周期,仅仅对当天剩余的时间段中的某一些时间段做睡眠周期调整,可以对通信网络的偶然发送事件做出及时响 应,避免通信响应不及时。调整时间段可以是连续的时间段,也可以是周期或随机间隔的时间段。Specifically, the method in Figure 5 is similar to the method in Figure 4, the sub-sleep cycle adjustment is performed after the lower-level node receives the first preset number of times throughout the day; the difference is that in the method in Figure 5, from the remaining time period of the day Select the second preset number of time periods as the adjustment time period, set the sub-sleep period of the adjusted time period as the preset maximum sub-sleep period, and only adjust the sleep period for certain time periods in the remaining time periods of the day. Respond promptly to occasional transmission events of the communication network to avoid untimely communication responses. The adjustment time period can be a continuous time period, or a periodic or randomly spaced time period.
值得注意的是,利用图4的方法进行通信时,由于通信过程中,子睡眠周期会进行调整,此时全天侦听功耗期望的计算方法将不同于图3,即最优睡眠周期的计算方法不同,参考图6,图6是本发明实施例提供的一种数据通信方法的流程示意图;所述步骤S201包括:It is worth noting that when using the method of Figure 4 for communication, since the sub-sleep cycle will be adjusted during the communication process, the calculation method of the all-day listening power consumption expectation will be different from that of Figure 3, that is, the optimal sleep cycle The calculation method is different. Refer to FIG. 6, which is a schematic flowchart of a data communication method provided by an embodiment of the present invention; the step S201 includes:
步骤S601,将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;Step S601: Divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
步骤S602,定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;Step S602: Define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
具体地,与图3确定E(t)的方法相同,不再赘述。Specifically, the method for determining E(t) is the same as that in FIG. 3, and will not be repeated.
步骤S603,根据N个所述时间段的发送概率、N个所述时间段的子睡眠周期、以及单次侦听功耗,确定在全天接收第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为预设最大子睡眠周期的条件下,所述下级节点的节点全天侦听功耗期望;Step S603: According to the transmission probabilities of the N time periods, the sub-sleep periods of the N time periods, and the single listening power consumption, it is determined that after the first preset number of times of data is received throughout the day, the Under the condition that the sub-sleep period of the remaining time period of the lower-level node is set to the preset maximum sub-sleep period, the node of the lower-level node listens to the power consumption expectation throughout the day;
具体地,与图3不同的是,需要确定在满足全天接收第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为预设最大子睡眠周期的条件时,下级节点的节点全天侦听功耗期望。假设预设最大子睡眠周期为T
MAX,此时的节点全天侦听功耗期望E2(w)为:
Specifically, different from FIG. 3, it needs to be determined that after the first preset number of times of data is received throughout the day, the sub-sleep period of the remaining period of the day of the lower-level node is set as the preset maximum sub-sleep period. When the time, the nodes of the subordinate nodes listen to the power consumption expectations throughout the day. Assuming that the preset maximum sub-sleep period is T MAX , the node's all-day listening power consumption expectation E2(w) at this time is:
步骤S604,根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;Step S604: Establish a target balance function according to the expected response time of the node, the expected full-day listening power consumption of the node, the first preset weight and the second preset weight;
具体地,根据E(t)和E2(w)建立目标平衡函数y:y=AE(t)+BE2(w)。Specifically, the objective balance function y is established according to E(t) and E2(w): y=AE(t)+BE2(w).
步骤S605,计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期,其中,所述预设最大子睡眠周期大于所述子睡眠周期集合中的最大值。Step S605: Calculate the set of sub-sleep periods of the lower node when the objective balance function is the smallest, the set of sub-sleep periods includes sub-sleep periods of N time periods, and the set of sub-sleep periods is taken as the set of sub-sleep periods. The optimal sleep period, wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
具体地,将目标平衡函数展开后同样可以得到:Specifically, after expanding the objective balance function, we can also get:
求解得到的T
0,T
1,…,T
23,为此时下级节点的最优睡眠周期。
T 0 , T 1 ,..., T 23 obtained by the solution are the optimal sleep period of the lower node at this time.
同理,利用图5的方法进行通信时,由于时间段的子睡眠周期将会被调整,此时的最优 睡眠周期的确定方法也不同于同3,不同的地方在于节点全天侦听功耗期望的计算,与图6所示的确定方法相似,不再赘述。In the same way, when using the method of Figure 5 to communicate, since the sub-sleep cycle of the time period will be adjusted, the method for determining the optimal sleep cycle at this time is also different from that of the same 3. The difference is that the node listens to the function throughout the day. The calculation of the consumption expectation is similar to the determination method shown in FIG. 6, and will not be repeated.
基于上述数据通信方法实施例的描述,本发明实施例还公开了一种数据通信装置,参考图7,图7是本发明实施例提供的一种数据通信装置的结构示意图,所述数据通信装置应用于包括上级节点和至少一个下级节点的通信网络,所述上级节点和所述下级节点之间建立有通信连接,所述装置包括周期确定模块701、节点控制模块702、数据发送模块703,其中:Based on the description of the above data communication method embodiment, the embodiment of the present invention also discloses a data communication device. Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention. Applied to a communication network including an upper-level node and at least one lower-level node, a communication connection is established between the upper-level node and the lower-level node, and the device includes a period determining module 701, a node control module 702, and a data sending module 703, wherein :
周期确定模块701,用于根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期;The cycle determining module 701 is configured to determine the optimal sleep cycle of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data of the upper-level node;
节点控制模块702,用于根据所述最优睡眠周期控制所述下级节点周期性启动和周期性休眠;The node control module 702 is configured to control the lower-level node to periodically start and periodically sleep according to the optimal sleep period;
数据发送模块703,用于在所述下级节点的启动状态时向所述下级节点发送数据。The data sending module 703 is configured to send data to the lower-level node when the lower-level node is in the startup state.
其中,周期确定模块701、节点控制模块702、数据发送模块703的具体功能实现方式可以参见上述图2对应实施例中的步骤S201-步骤S203,这里不再进行赘述。Among them, the specific functional implementation of the period determining module 701, the node control module 702, and the data sending module 703 can be referred to step S201 to step S203 in the corresponding embodiment of FIG. 2 above, and details are not described herein again.
进一步地,在一个实施例中,参考图8,图8是本发明实施例提供的一种数据通信装置的结构示意图,所述周期确定模块701包括第一概率确定子模块801、第一时间期望获取子模块802、第一功耗期望获取子模块803、第一函数建立子模块804、第一周期计算子模块805,其中:Further, in one embodiment, referring to FIG. 8, FIG. 8 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention. The period determination module 701 includes a first probability determination submodule 801, a first time expectation The obtaining sub-module 802, the first power consumption expectation obtaining sub-module 803, the first function establishment sub-module 804, and the first cycle calculation sub-module 805, where:
第一概率确定子模块801,用于将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;The first probability determination submodule 801 is configured to divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
第一时间期望获取子模块802,用于定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;The first-time expectation acquisition sub-module 802 is used to define the sleep period of the time period as a sub-sleep period, and determine the node response time expectation according to the transmission probability of the N time periods and the N sub-sleep periods of the time period ;
第一功耗期望获取子模块803,用于根据N个所述时间段的子睡眠周期、以及单次侦听功耗,确定所述下级节点的节点全天侦听功耗期望;The first power consumption expectation obtaining submodule 803 is configured to determine the all-day listening power consumption expectation of the lower-level node according to the N sub-sleep periods of the time period and the single listening power consumption;
第一函数建立子模块804,用于根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;The first function establishment sub-module 804 is configured to establish a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
第一周期计算子模块805,用于计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期。The first period calculation sub-module 805 is used to calculate the sub-sleep period set of the lower node when the target balance function is at the minimum function value. The sub-sleep period set includes sub-sleep periods of N time periods, The set of sub-sleep cycles serves as the optimal sleep cycle.
其中,第一概率确定子模块801、第一时间期望获取子模块802、第一功耗期望获取子模 块803、第一函数建立子模块804、第一周期计算子模块805的具体功能实现方式可以参见上述图3对应实施例中的步骤S301-步骤S305,这里不再进行赘述。Among them, the first probability determination submodule 801, the first time expectation acquisition submodule 802, the first power consumption expectation acquisition submodule 803, the first function establishment submodule 804, and the first cycle calculation submodule 805 can be implemented in specific functions. Refer to step S301 to step S305 in the corresponding embodiment in FIG. 3 above, and details are not described herein again.
进一步地,在一个实施例中,所述装置还包括第一周期调整模块,其中:Further, in an embodiment, the device further includes a first period adjustment module, wherein:
第一周期调整模块,用于在所述下级节点全天接收到第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为所述预设最大子睡眠周期;The first period adjustment module is configured to set the sub-sleep period of the remaining time period of the day of the lower-level node to the preset maximum sub-sleep period after the lower-level node receives a first preset number of data throughout the day ;
节点控制模块,还用于在所述下级节点当天剩余的时间段内,根据所述预设最大子睡眠周期控制所述下级节点周期性启动和周期性休眠。The node control module is further configured to control the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period during the remaining time period of the day of the lower-level node.
其中,第一周期调整模块、节点控制模块的具体功能实现方式可以参见上述图4对应实施例中的步骤S401-步骤S402,这里不再进行赘述。Among them, the specific function implementation manners of the first cycle adjustment module and the node control module can be referred to step S401 to step S402 in the corresponding embodiment of FIG. 4, which will not be repeated here.
进一步地,在一个实施例中,所述装置还包括时间段选择模块、第二周期调整模块,其中:Further, in an embodiment, the device further includes a time period selection module and a second period adjustment module, wherein:
时间段选择模块,用于在所述下级节点全天接收到第一预设数目次数据后,从所述下级节点当天剩余的时间段中选择第二预设数目个时间段作为调整时间段,所述第二预设数目小于所述当天剩余的时间段的个数;The time period selection module is configured to select a second preset number of time periods from the remaining time periods of the day of the lower-level node as the adjustment time period after the lower-level node receives the first preset number of data times throughout the day, The second preset number is less than the number in the remaining time period of the day;
第二周期调整模块,用于将所述调整时间段的睡眠周期设置为所述预设最大子睡眠周期;A second cycle adjustment module, configured to set the sleep cycle of the adjustment time period as the preset maximum sub-sleep cycle;
节点控制模块,还用于在所述调整时间段内,根据所述预设最大子睡眠周期控制所述下级节点周期性启动和周期性休眠。The node control module is further configured to control the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period during the adjustment time period.
其中,时间段选择模块、第二周期调整模块、节点控制模块的具体功能实现方式可以参见上述图5对应实施例中的步骤S501-步骤S503,这里不再进行赘述。Among them, the specific functional implementation manners of the time period selection module, the second cycle adjustment module, and the node control module can be referred to step S501 to step S503 in the corresponding embodiment of FIG. 5, which will not be repeated here.
进一步地,在一个实施例中,参考图9,图9是本发明实施例提供的一种数据通信装置的结构示意图,所述周期确定模块701包括第二概率确定子模块901、第二时间期望获取子模块902、第二功耗期望获取子模块903、第二函数建立子模块904、第二周期计算子模块905,其中:Further, in one embodiment, referring to FIG. 9, FIG. 9 is a schematic structural diagram of a data communication device provided by an embodiment of the present invention. The period determination module 701 includes a second probability determination submodule 901, a second time expectation The obtaining sub-module 902, the second expected power consumption obtaining sub-module 903, the second function establishment sub-module 904, and the second cycle calculation sub-module 905, wherein:
第二概率确定子模块901,用于将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;The second probability determining submodule 901 is configured to divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
第二时间期望获取子模块902,用于定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;The second time expectation acquisition sub-module 902 is used to define the sleep period of the time period as a sub-sleep period, and determine the node response time expectation according to the transmission probability of the N time periods and the N sub-sleep periods of the time period ;
第二功耗期望获取子模块903,用于根据N个所述时间段的发送概率、N个所述时间段的子睡眠周期、以及单次侦听功耗,确定在全天接收第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为预设最大子睡眠周期的条件下,所述下级节点的节 点全天侦听功耗期望;The second power consumption expectation acquisition sub-module 903 is configured to determine to receive the first pre-recorded signal throughout the day according to the transmission probabilities of the N time periods, the sub-sleep periods of the N time periods, and the single listening power consumption. After setting the number of times of data, the sub-sleep period of the remaining time period of the lower-level node is set to the preset maximum sub-sleep period, and the node of the lower-level node listens to the power consumption expectation throughout the day;
第二函数建立子模块904,用于根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;The second function establishment sub-module 904 is configured to establish a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
第二周期计算子模块905,用于计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期,其中,所述预设最大子睡眠周期大于所述子睡眠周期集合中的最大值。The second period calculation sub-module 905 is used to calculate the sub-sleep period set of the lower node when the target balance function is the smallest, the sub-sleep period set includes sub-sleep periods of N time periods, and the The set of sub-sleep periods serves as the optimal sleep period, wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
其中,第二概率确定子模块901、第二时间期望获取子模块902、第二功耗期望获取子模块903、第二函数建立子模块904、第二周期计算子模块905的具体功能实现方式可以参见上述图6对应实施例中的步骤S601-步骤S605,这里不再进行赘述。Among them, the second probability determination submodule 901, the second time expectation acquisition submodule 902, the second power consumption expectation acquisition submodule 903, the second function establishment submodule 904, and the second cycle calculation submodule 905 can be implemented in specific functions. Refer to step S601 to step S605 in the corresponding embodiment in FIG. 6 above, and details are not described herein again.
值得指出的是,图7、图8和图9所示的数据通信装置中的各个单元或模块可以分别或全部合并为一个或若干个另外的单元或模块来构成,或者其中的某个(些)单元或模块还可以再拆分为功能上更小的多个单元或模块来构成,这可以实现同样的操作,而不影响本发明的实施例的技术效果的实现。上述单元或模块是基于逻辑功能划分的,在实际应用中,一个单元(或模块)的功能也可以由多个单元(或模块)来实现,或者多个单元(或模块)的功能由一个单元(或模块)实现。It is worth noting that each unit or module in the data communication device shown in FIG. 7, FIG. 8 and FIG. 9 can be separately or completely combined into one or several other units or modules to form, or some (some of them) ) The unit or module can be further divided into a plurality of functionally smaller units or modules to form, which can realize the same operation without affecting the realization of the technical effect of the embodiment of the present invention. The above-mentioned units or modules are divided based on logical functions. In practical applications, the function of one unit (or module) can also be realized by multiple units (or modules), or the function of multiple units (or modules) can be implemented by one unit. (Or module) implementation.
基于上述方法实施例以及装置实施例的描述,本发明实施例还提供一种终端设备。Based on the description of the foregoing method embodiment and device embodiment, an embodiment of the present invention also provides a terminal device.
请参见图10,是本发明实施例提供的一种终端设备的结构示意图。如图10所示,上述图7至图9中的数据通信装置可以应用于所述终端设备100,所述终端设备100可以包括:处理器101,网络接口104和存储器105,此外,所述终端设备100还可以包括:用户接口103,和至少一个通信总线102。其中,通信总线102用于实现这些组件之间的连接通信。其中,用户接口103可以包括显示屏(Display)、键盘(Keyboard),可选用户接口103还可以包括标准的有线接口、无线接口。网络接口104可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器105可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器105可选的还可以是至少一个位于远离前述处理器101的存储装置。如图10所示,作为一种计算机存储介质的存储器105中可以包括操作系统、网络通信模块、用户接口模块以及设备控制应用程序。Refer to FIG. 10, which is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in FIG. 10, the data communication apparatus in FIGS. 7 to 9 described above can be applied to the terminal device 100. The terminal device 100 can include a processor 101, a network interface 104, and a memory 105. In addition, the terminal The device 100 may further include: a user interface 103 and at least one communication bus 102. Among them, the communication bus 102 is used to implement connection and communication between these components. The user interface 103 may include a display screen (Display) and a keyboard (Keyboard), and the optional user interface 103 may also include a standard wired interface and a wireless interface. The network interface 104 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 105 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory 105 may also be at least one storage device located far away from the aforementioned processor 101. As shown in FIG. 10, the memory 105 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
在图10所示的终端设备100中,网络接口104可提供网络通讯功能;而用户接口103主要用于为用户提供输入的接口;而处理器101可以用于调用存储器105中存储的设备控制应 用程序,以实现:In the terminal device 100 shown in FIG. 10, the network interface 104 can provide network communication functions; the user interface 103 is mainly used to provide an input interface for the user; and the processor 101 can be used to call the device control application stored in the memory 105 Procedure to achieve:
根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期;According to the historical sending data of the upper-level node, determine the optimal sleep period of the lower-level node that satisfies the conditions of the shortest node response time and the lowest node power consumption;
根据所述最优睡眠周期控制所述下级节点周期性启动和周期性休眠;Controlling the subordinate node to periodically start and periodically sleep according to the optimal sleep period;
在所述下级节点的启动状态时向所述下级节点发送数据。Sending data to the lower-level node when the lower-level node is in the startup state.
在一个实施例中,所述处理器101在执行根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期时,具体执行以下步骤:In one embodiment, when the processor 101 executes the historical sending data of the upper-level node to determine that the lower-level node satisfies the optimal sleep period under the conditions of the shortest node response time and the lowest node power consumption, it specifically executes The following steps:
将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;Divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;Define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
根据N个所述时间段的子睡眠周期、以及单次侦听功耗,确定所述下级节点的节点全天侦听功耗期望;Determine the all-day listening power consumption expectation of the lower-level node according to the sub-sleep periods of the N time periods and the single listening power consumption;
根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;Establishing a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期。Calculate the objective balance function when the function value is the smallest, the sub-sleep period set of the lower node, the sub-sleep period set includes sub-sleep periods of N time periods, and the sub-sleep period set is taken as the optimal Sleep cycle.
在一个实施例中,所述处理器101在执行根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期时,具体执行以下步骤:In one embodiment, when the processor 101 executes the historical sending data of the upper-level node to determine that the lower-level node satisfies the optimal sleep period under the conditions of the shortest node response time and the lowest node power consumption, it specifically executes The following steps:
将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;Divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;
定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;Define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;
根据N个所述时间段的发送概率、N个所述时间段的子睡眠周期、以及单次侦听功耗,确定在全天接收第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为预设最大子睡眠周期的条件下,所述下级节点的节点全天侦听功耗期望;According to the transmission probabilities of the N time periods, the sub-sleep periods of the N time periods, and the power consumption of a single listening, it is determined that after the first preset number of times of data is received throughout the day, the lower node will Under the condition that the sub-sleep period of the remaining time period is set to the preset maximum sub-sleep period, the node of the lower-level node listens to the power consumption expectation throughout the day;
根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;Establishing a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;
计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期,其中,所述预设最大子睡眠周期大于所述子睡眠周期集合中的最大值。Calculate the objective balance function when the function value is the smallest, the sub-sleep period set of the lower node, the sub-sleep period set includes sub-sleep periods of N time periods, and the sub-sleep period set is taken as the optimal The sleep period, wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
在一个实施例中,所述处理器101在执行在所述下级节点的启动状态时向所述下级节点发送数据之后,还执行以下步骤:In an embodiment, the processor 101 further executes the following steps after sending data to the lower-level node in the startup state of the lower-level node:
在所述下级节点全天接收到第一预设数目次数据后,从所述下级节点当天剩余的时间段中选择第二预设数目个时间段作为调整时间段,所述第二预设数目小于所述当天剩余的时间段的个数;After the lower-level node receives the first preset number of times of data throughout the day, select a second preset number of time periods from the remaining time periods of the day of the lower-level node as the adjustment time period, and the second preset number Less than the number of time periods remaining on the day;
将所述调整时间段的睡眠周期设置为所述预设最大子睡眠周期;Setting the sleep period of the adjustment time period as the preset maximum sub-sleep period;
在所述调整时间段内,根据所述预设最大子睡眠周期控制所述下级节点周期性启动和周期性休眠。During the adjustment time period, the lower-level node is controlled to periodically start and periodically sleep according to the preset maximum sub-sleep period.
在一个实施例中,所述处理器101在执行在所述下级节点的启动状态时向所述下级节点发送数据之后,还执行以下步骤:In an embodiment, the processor 101 further executes the following steps after sending data to the lower-level node in the startup state of the lower-level node:
在所述下级节点全天接收到第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为所述预设最大子睡眠周期;After the lower-level node receives the first preset number of times of data throughout the day, setting the sub-sleep period of the remaining time period of the day of the lower-level node as the preset maximum sub-sleep period;
在所述下级节点当天剩余的时间段内,根据所述预设最大子睡眠周期控制所述下级节点周期性启动和周期性休眠。During the remaining time period of the day of the lower-level node, controlling the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period.
应当理解,本发明实施例中所描述的终端设备100可执行前文图2到图6所对应实施例中对所述数据通信方法的描述,也可执行前文图7至图9所对应实施例中对所述数据通信装置的描述,在此不再赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。It should be understood that the terminal device 100 described in the embodiment of the present invention can perform the description of the data communication method in the foregoing embodiment corresponding to FIG. 2 to FIG. 6 and may also perform the foregoing description of the data communication method in the foregoing embodiment corresponding to FIG. 7 to FIG. 9 The description of the data communication device will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated.
此外,这里需要指出的是:本发明实施例还提供了一种计算机存储介质,且所述计算机存储介质中存储有前文提及的数据通信装置所执行的计算机程序,且所述计算机程序包括程序指令,当所述处理器执行所述程序指令时,能够执行前文图2到图6所对应实施例中对所述数据通信方法的描述,因此,这里将不再进行赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。对于本发明所涉及的计算机存储介质实施例中未披露的技术细节,请参照本发明方法实施例的描述。In addition, it should be pointed out here that the embodiment of the present invention also provides a computer storage medium, and the computer storage medium stores the computer program executed by the aforementioned data communication device, and the computer program includes the program Instruction, when the processor executes the program instruction, it can execute the description of the data communication method in the foregoing embodiment corresponding to FIG. 2 to FIG. 6, therefore, it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the embodiments of the computer storage medium involved in the present invention, please refer to the description of the method embodiments of the present invention.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、 只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above-disclosed are only the preferred embodiments of the present invention, which of course cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.
Claims (10)
- 一种数据通信方法,其特征在于,应用于包括上级节点和至少一个下级节点的通信网络,所述上级节点和所述下级节点之间建立有通信连接,所述方法包括:A data communication method, characterized in that it is applied to a communication network including an upper-level node and at least one lower-level node, and a communication connection is established between the upper-level node and the lower-level node, and the method includes:根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期;According to the historical sending data of the upper-level node, determine the optimal sleep period of the lower-level node that satisfies the conditions of the shortest node response time and the lowest node power consumption;根据所述最优睡眠周期控制所述下级节点周期性启动和周期性休眠;Controlling the subordinate node to periodically start and periodically sleep according to the optimal sleep period;在所述下级节点的启动状态时向所述下级节点发送数据。Sending data to the lower-level node when the lower-level node is in the startup state.
- 根据权利要求1所述的方法,其特征在于,所述根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期,包括:The method according to claim 1, wherein the determining the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data of the upper-level node comprises :将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;Divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;Define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;根据N个所述时间段的子睡眠周期、以及单次侦听功耗,确定所述下级节点的节点全天侦听功耗期望;Determine the all-day listening power consumption expectation of the lower-level node according to the sub-sleep periods of the N time periods and the single listening power consumption;根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;Establishing a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期。Calculate the objective balance function when the function value is the smallest, the sub-sleep period set of the lower node, the sub-sleep period set includes sub-sleep periods of N time periods, and the sub-sleep period set is taken as the optimal Sleep cycle.
- 根据权利要求1所述的方法,其特征在于,所述根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期,包括:The method according to claim 1, wherein the determining the optimal sleep period of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data of the upper-level node comprises :将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;Divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;Define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probabilities of the N time periods and the N sub-sleep periods of the time period;根据N个所述时间段的发送概率、N个所述时间段的子睡眠周期、以及单次侦听功耗,确定在全天接收第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为预设最大子睡眠周期的条件下,所述下级节点的节点全天侦听功耗期望;According to the transmission probabilities of the N time periods, the sub-sleep periods of the N time periods, and the power consumption of a single listening, it is determined that after the first preset number of times of data is received throughout the day, the lower node will Under the condition that the sub-sleep period of the remaining time period is set to the preset maximum sub-sleep period, the node of the lower-level node listens to the power consumption expectation throughout the day;根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权 重建立目标平衡函数;Establishing a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期,其中,所述预设最大子睡眠周期大于所述子睡眠周期集合中的最大值。Calculate the objective balance function when the function value is the smallest, the sub-sleep period set of the lower node, the sub-sleep period set includes sub-sleep periods of N time periods, and the sub-sleep period set is taken as the optimal The sleep period, wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
- 根据权利要求3所述的方法,其特征在于,在所述下级节点的启动状态时向所述下级节点发送数据之后,还包括:The method according to claim 3, wherein after sending data to the lower-level node when the lower-level node is in the startup state, the method further comprises:在所述下级节点全天接收到第一预设数目次数据后,从所述下级节点当天剩余的时间段中选择第二预设数目个时间段作为调整时间段,所述第二预设数目小于所述当天剩余的时间段的个数;After the lower-level node receives the first preset number of times of data throughout the day, select a second preset number of time periods from the remaining time periods of the day of the lower-level node as the adjustment time period, and the second preset number Less than the number of time periods remaining on the day;将所述调整时间段的睡眠周期设置为所述预设最大子睡眠周期;Setting the sleep period of the adjustment time period as the preset maximum sub-sleep period;在所述调整时间段内,根据所述预设最大子睡眠周期控制所述下级节点周期性启动和周期性休眠。During the adjustment time period, the lower-level node is controlled to periodically start and periodically sleep according to the preset maximum sub-sleep period.
- 根据权利要求3所述的方法,其特征在于,在所述下级节点的启动状态时向所述下级节点发送数据之后,还包括:The method according to claim 3, wherein after sending data to the lower-level node when the lower-level node is in the startup state, the method further comprises:在所述下级节点全天接收到第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为所述预设最大子睡眠周期;After the lower-level node receives the first preset number of times of data throughout the day, setting the sub-sleep period of the remaining time period of the day of the lower-level node as the preset maximum sub-sleep period;在所述下级节点当天剩余的时间段内,根据所述预设最大子睡眠周期控制所述下级节点周期性启动和周期性休眠。During the remaining time period of the day of the lower-level node, controlling the lower-level node to periodically start and periodically sleep according to the preset maximum sub-sleep period.
- 一种数据通信装置,其特征在于,应用于包括上级节点和至少一个下级节点的通信网络,所述上级节点和所述下级节点之间建立有通信连接,所述装置包括:A data communication device, characterized in that it is applied to a communication network including an upper-level node and at least one lower-level node, a communication connection is established between the upper-level node and the lower-level node, and the device includes:周期确定模块,用于根据所述上级节点的历史发送数据,确定所述下级节点在满足节点响应时间最短、节点功耗最低条件下的最优睡眠周期;A cycle determining module, configured to determine the optimal sleep cycle of the lower-level node under the conditions of the shortest node response time and the lowest node power consumption according to the historical sending data of the upper-level node;节点控制模块,用于根据所述最优睡眠周期控制所述下级节点周期性启动和周期性休眠;A node control module, configured to control the lower-level node to periodically start and periodically sleep according to the optimal sleep period;数据发送模块,用于在所述下级节点的启动状态时向所述下级节点发送数据。The data sending module is used to send data to the lower-level node when the lower-level node is in the starting state.
- 根据权利要求6所述的装置,其特征在于,所述周期确定模块包括:The device according to claim 6, wherein the period determining module comprises:第一概率确定子模块,用于将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;The first probability determination submodule is configured to divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;第一时间期望获取子模块,用于定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;The first time expectation acquisition sub-module is used to define the sleep period of the time period as a sub-sleep period, and determine the response time expectation of the node according to the transmission probability of the N time periods and the sub-sleep period of the N time periods;第一功耗期望获取子模块,用于根据N个所述时间段的子睡眠周期、以及单次侦听功耗,确定所述下级节点的节点全天侦听功耗期望;The first power consumption expectation acquisition sub-module is configured to determine the all-day listening power consumption expectation of the lower-level node according to the N sub-sleep periods of the time period and the single listening power consumption;第一函数建立子模块,用于根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;The first function establishment sub-module is configured to establish a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;第一周期计算子模块,用于计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期。The first period calculation sub-module is used to calculate the sub-sleep period set of the lower node when the objective balance function is the smallest, the sub-sleep period set includes sub-sleep periods of N time periods, and the A set of sub-sleep cycles is used as the optimal sleep cycle.
- 根据权利要求6所述的装置,其特征在于,所述周期确定模块包括:The device according to claim 6, wherein the period determining module comprises:第二概率确定子模块,用于将全天按照预设时间间隔进行划分得到N个时间段,N大于1,根据所述上级节点的历史发送数据确定所述时间段对应的发送概率;The second probability determination submodule is configured to divide the whole day according to a preset time interval to obtain N time periods, where N is greater than 1, and determine the transmission probability corresponding to the time period according to the historical transmission data of the upper-level node;第二时间期望获取子模块,用于定义所述时间段的睡眠周期为子睡眠周期,根据N个所述时间段的发送概率和N个所述时间段的子睡眠周期确定节点响应时间期望;The second time expectation acquisition sub-module is used to define the sleep period of the time period as a sub-sleep period, and determine the node response time expectation according to the transmission probability of the N time periods and the N sub-sleep periods of the time period;第二功耗期望获取子模块,用于根据N个所述时间段的发送概率、N个所述时间段的子睡眠周期、以及单次侦听功耗,确定在全天接收第一预设数目次数据后,将所述下级节点当天剩余的时间段的子睡眠周期设置为预设最大子睡眠周期的条件下,所述下级节点的节点全天侦听功耗期望;The second power consumption expectation acquisition sub-module is configured to determine to receive the first preset throughout the day according to the transmission probability of the N time periods, the sub-sleep periods of the N time periods, and the single listening power consumption After a number of times of data, the sub-sleep period of the remaining time period of the lower-level node is set to the preset maximum sub-sleep period, and the node of the lower-level node listens to power consumption expectations throughout the day;第二函数建立子模块,用于根据所述节点响应时间期望、所述节点全天侦听功耗期望、第一预设权重和第二预设权重建立目标平衡函数;The second function establishment sub-module is used to establish a target balance function according to the node response time expectation, the node's all-day listening power consumption expectation, the first preset weight and the second preset weight;第二周期计算子模块,用于计算所述目标平衡函数在函数值最小时,所述下级节点的子睡眠周期集合,所述子睡眠周期集合包括N个时间段的子睡眠周期,将所述子睡眠周期集合作为所述最优睡眠周期,其中,所述预设最大子睡眠周期大于所述子睡眠周期集合中的最大值。The second period calculation sub-module is used to calculate the sub-sleep period set of the lower-level node when the objective balance function is the smallest, the sub-sleep period set includes sub-sleep periods of N time periods, and the A set of sub-sleep periods is used as the optimal sleep period, wherein the preset maximum sub-sleep period is greater than the maximum value in the set of sub-sleep periods.
- 一种终端设备,其特征在于,包括:处理器和存储器;A terminal device, characterized by comprising: a processor and a memory;所述处理器和存储器相连,其中,所述存储器用于存储程序代码,所述处理器用于调用所述程序代码,以执行如权利要求1-5任一项所述的数据通信方法。The processor is connected to a memory, wherein the memory is used to store program code, and the processor is used to call the program code to execute the data communication method according to any one of claims 1-5.
- 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时,执行如权利要求1-5任一项所述的数据通信方法。A computer storage medium, wherein the computer storage medium stores a computer program, the computer program includes program instructions, and when executed by a processor, the program instructions execute as described in any one of claims 1-5 The data communication method described.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911099306.6 | 2019-11-11 | ||
CN201911099306.6A CN112788558B (en) | 2019-11-11 | 2019-11-11 | Data communication method and related equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021093743A1 true WO2021093743A1 (en) | 2021-05-20 |
Family
ID=75749883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/127901 WO2021093743A1 (en) | 2019-11-11 | 2020-11-10 | Data communication method and related device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112788558B (en) |
WO (1) | WO2021093743A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125751A (en) * | 2021-11-03 | 2022-03-01 | 中盈优创资讯科技有限公司 | Scheduling method and device for reporting period of power Internet of things sensor |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070233835A1 (en) * | 2006-03-31 | 2007-10-04 | Nandakishore Kushalnagar | Methodology for scheduling data transfers from nodes using path information |
CN102572883A (en) * | 2010-12-16 | 2012-07-11 | 中国移动通信集团湖南有限公司 | Method and device for guaranteeing network communication |
CN105684524A (en) * | 2013-10-31 | 2016-06-15 | 阿尔卡特朗讯公司 | A communications system, an access network node and a method of optimising energy consumed in a communication network |
CN105684523A (en) * | 2013-10-31 | 2016-06-15 | 阿尔卡特朗讯公司 | A communications system and a method of determining an optimal duty cycle to minimise overall energy consumption |
CN108260192A (en) * | 2017-12-21 | 2018-07-06 | 中国联合网络通信集团有限公司 | A kind of method of adjustment of internet-of-things terminal and its battery saving mode |
CN109462839A (en) * | 2018-11-26 | 2019-03-12 | 电子科技大学 | A kind of DRX mechanism communication means based on adaptive re-configuration police |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101325604B (en) * | 2008-07-21 | 2011-06-08 | 重庆邮电大学 | Energy-saving method for distributed self-adaption industry wireless network |
EP2420024B1 (en) * | 2009-04-15 | 2013-06-19 | Koninklijke Philips Electronics N.V. | Energy efficient transmission in a network |
US9125152B2 (en) * | 2011-08-16 | 2015-09-01 | Utc Fire & Security Corporation | Beacon synchronization in wifi based systems |
US9813494B2 (en) * | 2012-05-11 | 2017-11-07 | Interdigital Patent Holdings, Inc. | Context-aware peer-to-peer communication |
CN103096445B (en) * | 2013-02-05 | 2016-09-28 | 清华大学 | Wireless sense network method for scheduling task based on actual battery model and system |
CN104812036B (en) * | 2015-05-15 | 2018-04-17 | 桂林电子科技大学 | A kind of dormancy dispatching method and system of energy harvesting sensor network |
CN108352874B (en) * | 2015-10-20 | 2021-09-03 | 瑞典爱立信有限公司 | Method and apparatus for performing beamforming |
CN105682205B (en) * | 2016-03-09 | 2019-01-29 | 北京邮电大学 | A kind of method and device of adjustment sensor node sleep duration |
CN107040878B (en) * | 2017-04-14 | 2020-01-17 | 河海大学 | Non-layered communication method of multi-chain wireless sensor network |
-
2019
- 2019-11-11 CN CN201911099306.6A patent/CN112788558B/en active Active
-
2020
- 2020-11-10 WO PCT/CN2020/127901 patent/WO2021093743A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070233835A1 (en) * | 2006-03-31 | 2007-10-04 | Nandakishore Kushalnagar | Methodology for scheduling data transfers from nodes using path information |
CN102572883A (en) * | 2010-12-16 | 2012-07-11 | 中国移动通信集团湖南有限公司 | Method and device for guaranteeing network communication |
CN105684524A (en) * | 2013-10-31 | 2016-06-15 | 阿尔卡特朗讯公司 | A communications system, an access network node and a method of optimising energy consumed in a communication network |
CN105684523A (en) * | 2013-10-31 | 2016-06-15 | 阿尔卡特朗讯公司 | A communications system and a method of determining an optimal duty cycle to minimise overall energy consumption |
CN108260192A (en) * | 2017-12-21 | 2018-07-06 | 中国联合网络通信集团有限公司 | A kind of method of adjustment of internet-of-things terminal and its battery saving mode |
CN109462839A (en) * | 2018-11-26 | 2019-03-12 | 电子科技大学 | A kind of DRX mechanism communication means based on adaptive re-configuration police |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125751A (en) * | 2021-11-03 | 2022-03-01 | 中盈优创资讯科技有限公司 | Scheduling method and device for reporting period of power Internet of things sensor |
Also Published As
Publication number | Publication date |
---|---|
CN112788558A (en) | 2021-05-11 |
CN112788558B (en) | 2022-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ye et al. | A self-adaptive sleep/wake-up scheduling approach for wireless sensor networks | |
TWI517744B (en) | Apparatus and method for operating m2m devices and non-transitory computer_readable medium | |
CN107204999B (en) | Method and device for realizing heartbeat | |
US20150245290A1 (en) | Node control method, network controller, and network system | |
JP6226348B2 (en) | Method for transmitting heartbeat message and portable terminal | |
Zhu et al. | Efficient power management for infrastructure IEEE 802.11 WLANs | |
US10028255B2 (en) | Delivering data to a wireless station | |
CN104378812B (en) | Farmland self-organizing network regenerative resource node difference topology control method | |
CN108777862B (en) | Bluetooth transmission method, Bluetooth controller and Bluetooth device | |
WO2014101893A1 (en) | Device discovery method, apparatus and system | |
Kindt et al. | Adaptive online power-management for bluetooth low energy | |
US9237524B2 (en) | Sleep mode operation for networked end devices | |
WO2023083068A1 (en) | Wake-up alignment method and system, and related apparatus | |
WO2021093743A1 (en) | Data communication method and related device | |
CN110232810B (en) | Method, system and electronic equipment for positioning remote controller based on Bluetooth mesh network | |
TWI674018B (en) | Method and apparatus for providing power saving optimization for wlan ap | |
JP2016511583A (en) | System and method for power saving of multicast and broadcast data | |
CN105338008A (en) | Equipment scheduling method, device and system for internet of things | |
CN112615726B (en) | Low-power-consumption processing method and device with variable wake-up time | |
WO2022077503A1 (en) | Wireless screen projection method, apparatus, and system | |
CN104219745A (en) | Energy saving method based on wireless sensor network MAC (media access control) protocol | |
TW201347578A (en) | Information transmission method and system, and device with sleeping function | |
CN109548121A (en) | Communication means, device, access point apparatus and the site apparatus of WLAN | |
CN111246549B (en) | Method and device for providing node dormancy and wakeup time | |
TW201921991A (en) | Optimized data synchronization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20887521 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20887521 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 19/01/2023) |