Data transmission method and device, storage medium and electronic equipment

By optimizing the time synchronization and wake-up window strategy between the child node and the master node in the wireless communication network, the problem of high false wake-up rate of the child node is solved and low-power data communication is achieved.

CN119364490APending Publication Date: 2025-01-24ZHEJIANG DAHUA TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411525381.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In wireless communication networks, since the master node continues to send preamble data, the false wake-up rate of the child node is high, resulting in unnecessary power consumption.

Method used

After the time synchronization is performed between the target node and the target main node, the first awakening window is opened in accordance with the preset timing of time gap, and after receiving the first awakening feature data that meets the preset awakening conditions, open the first first. Second, wake up the window to receive the target data.

Benefits of technology

Effectively reduce the misunderstanding rate of sub -nodes, reduce unnecessary power consumption, optimize the wake -up mechanism, and improve the efficiency of data communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119364490A_ABST
    Figure CN119364490A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and device, a storage medium and electronic equipment. The method comprises the following steps: under the condition that time synchronization is carried out on a target child node and a target master node, periodically opening a first wake-up window according to a preset issuing time slot; when the target child node needs to receive target data sent by the target master node and first wake-up feature data meeting a preset wake-up condition is received in the first wake-up window, opening a second wake-up window, the first wake-up feature data is set to be sent by the target main node according to a first wake-up window and a preset issuing time slot; and receiving the target data when second wake-up feature data is received in the second wake-up window and the second wake-up feature data indicates that the target child node needs to receive the target data sent by the target master node. According to the method and the device, the technical problem of excessive energy consumption of the child node caused by high wake-up error rate when the child node and the main node carry out data transmission is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a data transmission method and device, a storage medium, and an electronic device. Background Art

[0002] In a wireless communication network composed of a master node and a sub-node, before the master node and the sub-node send data such as operation instructions, the sub-node needs to be awakened first to ensure that the sub-node can receive the data sent by the subsequent master node. In the related art, the master node often sends a preamble to the sub-node in an overlay manner to wake up the sub-node. In the process of sending the preamble, since the master node will continue to send the preamble data in the air, all the sub-nodes in the wireless communication network will be awakened, resulting in a high false awakening rate of the sub-nodes. In summary, there is a technical problem in the related art that the master node will continue to send the preamble data, resulting in a high false awakening rate of the sub-node, causing the sub-node to generate unnecessary power consumption.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a data transmission method and device, a storage medium and an electronic device to at least solve the technical problem of excessive energy consumption of a sub-node due to a high false wake-up rate when the sub-node transmits data to the main node.

[0005] According to one aspect of an embodiment of the present application, a data transmission method is provided, which is applied to a target subnode, including: when the target subnode is time synchronized with the target main node, periodically opening a first wake-up window according to a preset sending time slot; when the target subnode needs to receive target data sent by the target main node and first wake-up feature data that meets a preset wake-up condition is received in the first wake-up window, opening a second wake-up window; wherein the first wake-up feature data is used to indicate the signal strength between the target subnode and the target main node, and the first wake-up feature data is set to be sent by the target main node according to the first wake-up window and the preset sending time slot; when the second wake-up feature data is received in the second wake-up window, and the second wake-up feature data indicates that the target subnode needs to receive the target data sent by the target main node, receiving the target data.

[0006] According to one aspect of an embodiment of the present application, another data transmission method is provided, which is applied to a target master node, including: when a target sub-node is time synchronized with the target master node, obtaining a message that the target sub-node periodically opens a first wake-up window according to a preset sending time slot; sending first wake-up feature data to the target sub-node according to the first wake-up window and the preset sending time slot; wherein the first wake-up feature data is used to indicate the signal strength between the target sub-node and the target master node, and the first wake-up feature data is set to be sent by the target master node according to the first wake-up window and the preset sending time slot; when the first wake-up data meets the preset wake-up condition, sending second wake-up feature data to the target sub-node according to the second wake-up window; when the second wake-up feature data indicates that the target master node needs to send the target data to the target sub-node, sending the target data to the target sub-node.

[0007] According to another aspect of an embodiment of the present application, a data transmission device is also provided, which is applied to a target subnode, including: a processing module, which is used to periodically open a first wake-up window according to a preset sending time slot when the target subnode is time synchronized with the target main node; a first receiving module, which is used to open a second wake-up window when the target subnode needs to receive the target data sent by the target main node and first wake-up feature data that meets the preset wake-up condition is received in the first wake-up window; wherein the first wake-up feature data is used to indicate the signal strength between the target subnode and the target main node, and the first wake-up feature data is set to be sent by the target main node according to the first wake-up window and the preset sending time slot; a second receiving module, which is used to receive the second wake-up feature data in the second wake-up window, and when the second wake-up feature data indicates that the target subnode needs to receive the target data sent by the target main node, receive the target data.

[0008] Optionally, the device is used to open a second wake-up window in the following manner when the target sub-node needs to receive target data sent by the target main node and first wake-up characteristic data that meets the preset wake-up condition is received in the first wake-up window: when the first wake-up characteristic data is received in the first wake-up window, a first request message is sent to the target main node, wherein the first request message is used to request determination of the target signal strength between the target sub-node and the target main node; obtain a first confirmation message sent by the target main node; when the first value of the target field in the first confirmation message belongs to the target parameter value range, determine that the first wake-up characteristic data meets the preset wake-up condition, and open a second wake-up window, wherein the first value of the target field is used to indicate the target signal strength.

[0009] Optionally, the device is also used for: when the target sub-node needs to receive target data sent by the target main node and first wake-up feature data that meets the preset wake-up condition is received in the first wake-up window, before opening the second wake-up window, when the target sub-node is time synchronized with the target main node, periodically sending a second request message to the target main node, wherein the second request message is used to request determination of the target parameter value range; obtain a second confirmation message sent by the target main node; and determine the target parameter value range from multiple parameter value ranges based on the second value of the target field in the second target confirmation message.

[0010] Optionally, the device is used to periodically open a first wake-up window according to a preset sending time slot when the target subnode is time synchronized with the target master node in the following manner: when the target subnode is added to the subnode list of the target master node, initiate a time synchronization request to the target master node, wherein the time synchronization request includes the second wake-up feature data and a preset sending time slot; adjust the system time of the target subnode according to the round-trip delay of communication between the target master node and the target subnode and the master node timestamp of the target master node to instruct the target subnode to time synchronize with the target subnode; when the target subnode is time synchronized with the target subnode, periodically open the first wake-up window according to the preset sending time slot.

[0011] Optionally, the device is also used for: when the target sub-node is time synchronized with the target main node, after the first wake-up window is periodically opened according to a preset sending time slot, receiving the first wake-up feature data in the first wake-up window, wherein the first wake-up feature data is set to be sent by the target main node from a first moment to a second moment, the first moment representing the first first wake-up window before the end time point of the preset sending time slot, and the second moment representing the first first wake-up window after the end time point.

[0012] Optionally, the device is also used for: when the target child node needs to receive the target data sent by the target main node and the first wake-up feature data that meets the preset wake-up condition is received in the first wake-up window, after opening the second wake-up window, receiving the second wake-up feature data in the second wake-up window, wherein the second wake-up feature data is set to be sent by the target main node from the second moment to a third moment, the third moment indicating the moment after the second moment when N first wake-up windows and a preset minimum duration have passed, and the preset minimum duration indicates the shortest duration for receiving the second wake-up feature data; determining whether the second wake-up feature data indicates that the target main node needs to send the target data to the target child node.

[0013] Optionally, the device is used to periodically open a first wake-up window according to a preset sending time slot when the target subnode is time synchronized with the target master node in the following manner: when the target subnode is added to the subnode list of the target master node, initiate a time synchronization request to the target master node, wherein the time synchronization request includes the second wake-up feature data and a preset sending time slot; according to the round-trip communication delay between the target master node and the target subnode and the master node timestamp of the target master node, adjust the system time of the target subnode to instruct the target subnode to time synchronize with the target master node; when the target subnode is time synchronized with the target master node, periodically open the first wake-up window according to the preset sending time slot.

[0014] Optionally, the device is used to receive the target data when the second wake-up characteristic data is received within the second wake-up window in the following manner, and when the second wake-up characteristic data indicates that the target child node needs to receive the target data sent by the target main node: when the second wake-up characteristic data is received within the second wake-up window, obtaining a target characteristic value in the second wake-up characteristic data; when the target characteristic value represents a point-to-point characteristic value, receiving the target data, wherein the point-to-point characteristic value is used to indicate that the target data is data sent by the target main node to the target child node; when the target characteristic value represents a broadcast characteristic value, receiving the target data, wherein the broadcast characteristic value is used to indicate that the target data is data sent by the target main node to a group of child nodes, and the group of child nodes includes the target child node.

[0015] Optionally, the device is also used to: enter the sleep mode if the first wake-up characteristic data is not received within the first wake-up window; enter the sleep mode if the first wake-up characteristic data does not meet the preset wake-up condition; enter the sleep mode if the second wake-up characteristic data is not received within the second wake-up window.

[0016] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned data transmission method when running.

[0017] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above data transmission method.

[0018] According to another aspect of the embodiments of the present application, there is further provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the data transmission method through the computer program.

[0019] In an embodiment of the present application, when the target subnode is time synchronized with the target master node, a first wake-up window is periodically opened according to a preset sending time slot; when the target subnode needs to receive target data sent by the target master node and first wake-up feature data satisfying the preset wake-up condition is received in the first wake-up window, a second wake-up window is opened, wherein the first wake-up feature data is used to indicate the signal strength between the target subnode and the target master node, and the first wake-up feature data is set to be sent by the target master node according to the first wake-up window and the preset sending time slot; the second wake-up feature data is received in the second wake-up window, and the second wake-up feature data indicates that the target subnode When a node needs to receive target data sent by a target main node, the method of receiving the target data ensures accurate wake-up of the target sub-node that needs to send data by setting two first wake-up windows and second wake-up windows that can continuously transmit data, thereby achieving the purpose of low-power wake-up of the sub-node for data communication, and periodically opening the wake-up window to significantly reduce the power consumption of the sub-node and extend the service life of the target sub-node, thereby achieving the technical effect of optimizing the wake-up mechanism and improving the efficiency of data communication between the target main node and the target sub-node, and further, solving the technical problem of excessive energy consumption of the sub-node due to a high false wake-up rate when the sub-node and the main node are transmitting data. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] Figure 1 is a schematic diagram of an application environment of an optional data transmission method according to an embodiment of the present application;

[0022] Figure 2 is a flow chart of an optional data transmission method according to an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of an optional data transmission method according to an embodiment of the present application;

[0024] Figure 4 is a schematic diagram of another optional data transmission method according to an embodiment of the present application;

[0025] Figure 5 is a schematic diagram of another optional data transmission method according to an embodiment of the present application;

[0026] Figure 6 is a schematic diagram of another optional data transmission method according to an embodiment of the present application;

[0027] Figure 7 is a schematic structural diagram of an optional data transmission device according to an embodiment of the present application;

[0028] Figure 8 It is a schematic diagram of the structure of an optional data transmission product according to an embodiment of the present application;

[0029] Fig. 9 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] The present application is described below in conjunction with embodiments:

[0033] According to one aspect of an embodiment of the present application, a data transmission method is provided. Optionally, in this embodiment, the data transmission method can be applied to Figure 1 In the hardware environment composed of the server 101 and the terminal device 103 shown in FIG. Figure 1As shown, the server 101 is connected to the terminal device 103 via a network, and can be used to provide services for the terminal device or the application installed on the terminal device. The application 107 can be a video application, an instant messaging application, a browser application, an educational application, a game application, etc. A database 105 may be set up on the server or independently of the server to provide data storage services for the server 101, for example, a game data storage server. The above-mentioned network may include, but is not limited to, a wired network and a wireless network, wherein the wired network includes, a local area network, a metropolitan area network and a wide area network; the wireless network includes, Bluetooth, WIFI and other networks that implement wireless communication; the terminal device 103 may be a terminal configured with an application, and may include, but is not limited to, at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a mixed reality (MR) terminal and other computer devices; the above-mentioned server may be a single server, a server cluster consisting of multiple servers, or a cloud server.

[0034] Combination Figure 1 As shown, the above data transmission method can be executed by an electronic device, which can be a terminal device or a server. The above data transmission method can be implemented by the terminal device or the server respectively, or by the terminal device and the server together.

[0035] The above is only an example and is not specifically limited in this embodiment.

[0036] Optionally, as an optional implementation, as Figure 2 As shown, the above data transmission method is applied to the target sub-node, including:

[0037] S202, when the target sub-node is time-synchronized with the target master node, periodically opening a first wake-up window according to a preset delivery time slot;

[0038] Optionally, in an embodiment of the present application, the target sub-nodes may include but are not limited to wireless detectors, smart home appliances, smart wearable devices, etc. The number of target sub-nodes may be one or more. The target main node may be understood as an IoT device that coordinates and manages the target sub-nodes, for example, assigning tasks to the target sub-nodes, managing resources, and obtaining node status, etc. The present application does not limit this. The time synchronization refers to maintaining consistency in time and communication data between the target sub-node and the target host point. The preset sending time slot refers to the cycle duration. For example, the preset sending time slot is 10 seconds, then the first wake-up window is opened every 10 seconds.

[0039] Exemplarily, the duration of the above-mentioned first wake-up window can be determined in advance by negotiation between the target master node and the target child node. For example, the target master node first sets the duration of the first wake-up window, and synchronizes the duration of the first wake-up window to the target child node, or the target child node first sets the duration of the first wake-up window, and synchronizes the duration of the first wake-up window to the target master node.

[0040] In an exemplary embodiment, the target subnode newly joins a wireless communication network, the master node in the wireless communication network is the target subnode, and then the target subnode sends a time synchronization request to the target master node, and the time synchronization request may include the above-mentioned preset sending time slot.

[0041] Furthermore, after the target master node responds to the time synchronization request, it replies to the target child node with a response message, so that the target child node obtains the timestamp when the target master node sends the response message by parsing the response message, and then adjusts its own system time according to the timestamp and the round-trip delay of communication between the target child node and the target master node to complete the time synchronization. Then, the above-mentioned first wake-up window is periodically opened, and the first wake-up window is opened once every preset time slot. Specifically, the target child node adjusts its own system time according to the timestamp and the round-trip delay of communication between the target child node and the target master node, which can be expressed as child node system time = master node timestamp + (round-trip delay of communication between the target child node and the target master node).

[0042] S204, when the target subnode needs to receive target data sent by the target master node and first wake-up feature data satisfying the preset wake-up condition is received in the first wake-up window, a second wake-up window is opened, wherein the first wake-up feature data is used to indicate the signal strength between the target subnode and the target master node, and the first wake-up feature data is set to be sent by the target master node according to the first wake-up window and the preset sending time slot;

[0043] Exemplarily, when the target main node needs to send the above target data to the target child node, the target main node can first send the first wake-up feature data to the target child node. If the first wake-up feature data meets the preset wake-up condition, the above second wake-up window can continue to be opened.

[0044] Optionally, in an embodiment of the present application, the above-mentioned target data may include but is not limited to upgrade data packets, data instructions, etc. sent by the target main node to the target child node, and the above-mentioned first wake-up feature data may include but is not limited to the signal strength between the above-mentioned target child node and the target main node, the timestamp of sending the first wake-up feature data, modulation method, encoding method, etc.

[0045] Exemplarily, the duration of the above-mentioned second wake-up window can be determined in advance by negotiation between the target master node and the target child node. For example, the target master node first sets the duration of the second wake-up window, and synchronizes the duration of the second wake-up window to the target child node, or the target child node first sets the duration of the second wake-up window, and synchronizes the duration of the second wake-up window to the target master node.

[0046] In an exemplary embodiment, after the target subnode initiates a time synchronization request to the target master node, the target master node determines the preset sending time slot by parsing the time synchronization request, and then, after time synchronization, the first wake-up feature data may be periodically sent according to the first wake-up window and the preset sending time slot, specifically, including but not limited to:

[0047] In each cycle, the target master node sends the first wake-up characteristic data for a duration of n consecutive first wake-up windows in the first wake-up window before reaching the preset sending time slot of the target child node, and wakes up the target child node once.

[0048] In an exemplary embodiment, assuming that the preset sending time slot T0 = 10 seconds, the first wake-up window T1 = 2 seconds, at the end of the first T0 cycle (i.e. 10 seconds), the target child node opens a first wake-up window lasting 2 seconds, and the target master node needs to start sending the first wake-up feature data 2 seconds before the start of the first wake-up window (i.e. at 8 seconds). The time for the target master node to send the first wake-up feature data lasts 2*T1, i.e. 4 seconds, which means that from 8 seconds until 12 seconds, the target master node has been sending the first wake-up feature data.

[0049] Furthermore, if the RSSI (the above-mentioned signal strength) in the first wake-up characteristic value received by the target subnode within the duration of opening the first wake-up window (from the 10th second to the 12th second), or within the duration of the first wake-up window at the end of the first T0 cycle (from the 8th second to the 10th second), meets the preset signal strength threshold range, it means that the first wake-up characteristic data meets the preset wake-up condition, and the second wake-up window can continue to be opened at the end of the 12th second. Otherwise, it means that the first wake-up window has timed out and the first wake-up window needs to be opened again in the next cycle.

[0050] Exemplarily, the second wake-up window can be determined by the first wake-up window and the shortest duration T2 for receiving the second wake-up characteristic data. For example, the second wake-up window is expressed as 2*T1+T2. In general, the second wake-up window can be expressed as n*T1+T2, where n is a non-negative number.

[0051] Specifically, when determining whether the first wake-up characteristic data meets the preset wake-up condition, the signal strength field in the first wake-up characteristic data sent by the target master node can be parsed to determine whether the value of the signal strength field falls within the signal strength threshold range. The signal strength threshold range can be the latest signal strength threshold range determined by the target master node and the target sub-node through asynchronous communication, for example:

[0052] The target child node may periodically send a first request message packet to the target master node, and the target master node responds by sending an acknowledgement message ACK to the target child node. The target child node maps the signal strength of the acknowledgement message ACK to a signal strength threshold range. For example, if the signal strength of the acknowledgement message ACK is 70, the corresponding signal strength threshold range may be [60, 80]. Then, at the next moment, the target child node again sends the first request message to the target master node and obtains the acknowledgement message ACK again. At this time, the signal strength of the acknowledgement message ACK is 80, and the signal strength threshold range may be updated to [70, 90]. At this time, if it is in the first wake-up window, the target child node receives the first wake-up feature data. If the value corresponding to the signal strength field in the first wake-up feature data is 76, it means that the value of the signal strength field falls within the signal strength threshold range, and the second wake-up window can be successfully opened. On the contrary, if the value of the signal strength field does not fall within the signal strength threshold range, it means that the second wake-up window cannot be opened, and continue to wait whether the first wake-up feature data is received again in the current first wake-up window. If the first wake-up feature data is obtained again, continue to perform the above judgment operation, otherwise it means that the first wake-up window has timed out.

[0053] S206: When second wake-up characteristic data is received within the second wake-up window and the second wake-up characteristic data indicates that the target child node needs to receive target data sent by the target master node, receive the target data.

[0054] Exemplarily, if the target child node receives the second wake-up characteristic data within the second wake-up window, it can switch from the sleep mode to the normal operation mode, and then receive the target data sent from the target master node.

[0055] Optionally, in an embodiment of the present application, the above-mentioned second wake-up characteristic data may include but is not limited to the wake-up characteristic data sent by the target sub-node to the target main node when time synchronization is performed between the above-mentioned target sub-node and the target main node, including but not limited to point-to-point characteristic values, broadcast characteristic values, timestamps of the second wake-up characteristic data, modulation methods, encoding methods, etc.

[0056] For example, Figure 3 is a schematic diagram of an optional data transmission method according to an embodiment of the present application, such as Figure 3 As shown, it includes the above-mentioned preset sending time slot T0, the first wake-up window T1, and the shortest time T2 for receiving the second wake-up characteristic data. The second wake-up window is expressed as 2*T1+T2. Furthermore, within the duration of the first wake-up window T1 before the above-mentioned preset sending time slot T0 reaches the end time, and within the continuous first wake-up window T1, the target master node sends the above-mentioned first wake-up characteristic data to the target child node. After the first wake-up window T1 ends, the second wake-up window is continuously opened, and the target master node sends the above-mentioned second wake-up characteristic data to the target child node. If the target child node receives the above-mentioned second wake-up characteristic data in the second wake-up window, the data receiving window can be opened after the second wake-up window T2 ends. The target master node sends the above-mentioned target data to the target child node, and the target child node receives the target data in the data receiving window.

[0057] In an exemplary embodiment, the data transmission method proposed in the present application can be applied to a wireless sensor network. For example, the target sub-node is a wireless sensor, and the target main node is an Internet of Things device that controls the wireless sensor. Specifically, Figure 4 is a schematic diagram of another optional data transmission method according to an embodiment of the present application, such as Figure 4 As shown:

[0058] S402, the target subnode opens a first wake-up window;

[0059] S404, waiting to receive first wake-up characteristic data;

[0060] S406: If the target child node receives the first wake-up characteristic data, S408 is executed; otherwise, S410 is executed;

[0061] S408: If the received signal strength of the first wake-up feature data meets the threshold range, execute S412; otherwise, execute S414;

[0062] S410: If the first wake-up window has not timed out, continue to execute S404; otherwise, if the first wake-up window has timed out, execute S414;

[0063] S412, the target child node opens a second wake-up window;

[0064] S414, the target subnode enters a wireless sleep low power consumption mode;

[0065] S416, waiting to receive second wake-up characteristic data;

[0066] S418, if the second wake-up characteristic data is received, execute S420, otherwise execute S422;

[0067] S420, the target subnode opens a data receiving window;

[0068] S422: if the second wake-up window has not timed out, continue to execute S416; otherwise, if the second wake-up window has timed out, execute S414;

[0069] S424, receiving the target data, and executing S414 after receiving is completed.

[0070] According to the embodiment of the present application, when the target subnode is time synchronized with the target master node, a first wake-up window is periodically opened according to a preset sending time slot; when the target subnode needs to receive target data sent by the target master node and first wake-up feature data satisfying the preset wake-up condition is received in the first wake-up window, a second wake-up window is opened, wherein the first wake-up feature data is used to indicate the signal strength between the target subnode and the target master node, and the first wake-up feature data is set to be sent by the target master node according to the first wake-up window and the preset sending time slot; the second wake-up feature data is received in the second wake-up window, and the second wake-up feature data indicates that the target subnode When a node needs to receive target data sent by a target main node, the method of receiving the target data ensures accurate wake-up of the target sub-node that needs to send data by setting two first wake-up windows and second wake-up windows that can continuously transmit data, thereby achieving the purpose of low-power wake-up of the sub-node for data communication, and periodically opening the wake-up window to significantly reduce the power consumption of the sub-node and extend the service life of the target sub-node, thereby achieving the technical effect of optimizing the wake-up mechanism and improving the efficiency of data communication between the target main node and the target sub-node, and further, solving the technical problem of excessive energy consumption of the sub-node due to a high false wake-up rate when the sub-node and the main node are transmitting data.

[0071] As an optional scheme, when the target sub-node needs to receive the target data sent by the target main node and the first wake-up characteristic data satisfying the preset wake-up condition is received in the first wake-up window, the second wake-up window is opened, including: when the first wake-up characteristic data is received in the first wake-up window, a first request message is sent to the target main node, wherein the first request message is used to request to determine the target signal strength between the target sub-node and the target main node; obtain a first confirmation message sent by the target main node; when the first value of the target field in the first confirmation message belongs to the target parameter value range, it is determined that the first wake-up characteristic data satisfies the preset wake-up condition, and the second wake-up window is opened, wherein the first value of the target field is used to indicate the target signal strength.

[0072] Optionally, in an embodiment of the present application, the above-mentioned first request message is used to request to obtain the above-mentioned signal strength, which may include but is not limited to the IP address of the target sub-node, signal strength query parameters (corresponding to the above-mentioned target field), port number, timestamp and other fields. The above-mentioned first confirmation message indicates sending a response message ACK to the target sub-node. The above-mentioned target field can be understood as a field representing the above-mentioned signal strength value. The above-mentioned target parameter value range refers to the signal strength value range. When the signal strength value falls within the target parameter value range, it indicates that the first wake-up feature data satisfies the above-mentioned preset wake-up condition.

[0073] Exemplarily, assume that the target sub-node sends a first request message to the target main node, requesting signal strength information, and the target main node replies with a first confirmation message, which includes a signal strength of -70dBm. At this time, the preset signal strength value range of the target sub-node is -70dBm to -40dBm. Then, the target sub-node obtains the above-mentioned first wake-up feature data within the first wake-up window. Then, by parsing the first wake-up feature data, it is determined that the signal strength of the first wake-up feature data is -50dBm, which means that the signal strength meets the preset wake-up condition and the second wake-up window can be opened.

[0074] Through the embodiments of the present application, the above-mentioned target parameter value range is obtained according to the first request message and the first confirmation message between the target sub-node and the target main node. Then, when the target sub-node obtains the above-mentioned first wake-up feature data within the first wake-up window, the signal strength of the first wake-up feature data is judged using the target parameter value range to determine whether the first wake-up feature data meets the above-mentioned preset wake-up condition. If so, the second wake-up window can be opened to obtain the subsequent second wake-up feature data, thereby effectively reducing unnecessary energy consumption of the target sub-node, and waking up the target sub-node for data exchange or processing only when necessary.

[0075] As an optional scheme, when the target sub-node needs to receive the target data sent by the target main node and the first wake-up feature data satisfying the preset wake-up condition is received in the first wake-up window, before opening the second wake-up window, the method further includes: when the target sub-node is time synchronized with the target main node, periodically sending a second request message to the target main node, wherein the second request message is used to request determination of the target parameter value range; obtaining a second confirmation message sent by the target main node; and determining the target parameter value range from multiple parameter value ranges based on the second value of the target field in the second target confirmation message.

[0076] Optionally, in an embodiment of the present application, the second request message is used to request the acquisition of the signal strength, which may include but is not limited to the IP address of the target sub-node, signal strength query parameters, port number, timestamp and other fields. The second confirmation message indicates sending a response message ACK to the target sub-node, and the target field can be understood as a field representing the value of the signal strength.

[0077] Exemplarily, the target sub-node can periodically send the above-mentioned second request message to the target main node. This process is independent of the above-mentioned target data sending and receiving process. The second confirmation message obtained through the second request message can update the target parameter value range in real time to ensure whether the above-mentioned first wake-up feature data meets the preset wake-up conditions. The target parameter value range used is the target parameter value range corresponding to the most recent second confirmation message obtained, thereby ensuring the accuracy and timeliness of opening the second wake-up window.

[0078] For example, Figure 5 is a schematic diagram of another optional data transmission method according to an embodiment of the present application, such as Figure 5 As shown:

[0079] S502, the target child node sends a second request message;

[0080] S504, waiting for a second confirmation message from the target master node;

[0081] S506, if a second confirmation message is received from the target master node, execute S508, otherwise execute S510;

[0082] S508, updating the RSSI (signal strength) corresponding to the master node, and matching the preset wake-up RSSI threshold range (target parameter value interval) according to the RSSI value;

[0083] S510, if the waiting time for the second confirmation message expires, execute S512, otherwise execute S504;

[0084] S512, restore the default wake-up RSSI threshold, support all target parameter value ranges can wake up RSSI threshold, that is, at this time no matter what the signal strength of the first wake-up characteristic data is, the second wake-up window can be opened.

[0085] As an optional scheme, when the target subnode is time synchronized with the target master node, the first wake-up window is periodically opened according to the preset sending time slot, including: when the target subnode is added to the subnode list of the target master node, a time synchronization request is initiated to the target master node, wherein the time synchronization request includes the second wake-up feature data and the preset sending time slot; according to the round-trip delay of communication between the target master node and the target subnode and the master node timestamp of the target master node, the system time of the target subnode is adjusted to instruct the target subnode to time synchronize with the target subnode; when the target subnode is time synchronized with the target subnode, the first wake-up window is periodically opened according to the preset sending time slot.

[0086] Exemplarily, each sub-node in the sub-node list of the target main node and the target main node constitute a wireless communication network, that is, each sub-node in the sub-node list can communicate wirelessly with the target main node.

[0087] Furthermore, assuming that the target master node already has a child node list, and now a target child node needs to join the wireless communication network where the target master node is located, the target master node can receive the network joining request of the target child node through broadcasting, point-to-point communication, etc., and add the target child node to the child node list.

[0088] Exemplarily, after the target sub-node joins the wireless communication network where the target master node is located, that is, after the target sub-node is added to the target master node, the target sub-node can initiate the above-mentioned time synchronization request to the target master node to report its own device attributes, such as the above-mentioned second wake-up feature data, preset sending time slot, etc.; then, after the target master node receives the time synchronization request, it parses the time synchronization request, obtains the second wake-up feature data of the target sub-node, the preset sending time slot, etc. and stores them, and sends a response message ACK to the target sub-node, including the master node timestamp when the response message ACK is sent. After the target sub-node receives the response message ACK, it adjusts its own system time according to the master node timestamp in the response message ACK and the round-trip delay of communication between the target master node and the above-mentioned target sub-node. After completing the time synchronization, it sends a message again to inform the target master node that the time synchronization operation has been achieved, and then, periodically opens the first wake-up window according to the above-mentioned preset sending time slot.

[0089] For example, Figure 6is a schematic diagram of another optional data transmission method according to an embodiment of the present application, such as Figure 6 As shown:

[0090] S602, the target child node is added to the target master node;

[0091] S604, the target subnode reports device attributes (second wake-up characteristic data, preset sending time slot);

[0092] S606, the target master node saves the target child node attribute information and sends the current timestamp;

[0093] S608, the target child node receives the timestamp and maintains the same time as the target master node.

[0094] Through the embodiments of the present application, before the target sub-node periodically opens the first wake-up window according to the above-mentioned preset time slot, it is first ensured that the target sub-node and the target master node are time synchronized to improve the efficiency and stability of communication between the target master node and the target sub-node.

[0095] As an optional scheme, after the target sub-node and the target main node are time-synchronized, and the first wake-up window is periodically opened according to the preset sending time slot, the above method also includes: receiving the above-mentioned first wake-up feature data in the above-mentioned first wake-up window, wherein the above-mentioned first wake-up feature data is set to be sent by the above-mentioned target main node from the first moment to the second moment, the above-mentioned first moment represents the first above-mentioned first wake-up window before the end time point of the above-mentioned preset sending time slot, and the above-mentioned second moment represents the first above-mentioned first wake-up window after the above-mentioned end time point.

[0096] Exemplarily, assuming that the preset sending time slot T0 = 20 seconds, the first wake-up window T1 = 4 seconds, at the end of the first T0 cycle (i.e., 20 seconds), the target child node opens a first wake-up window lasting 4 seconds, and the target master node needs to start sending the first wake-up characteristic value 4 seconds before the start of the first wake-up window (i.e., at 16 seconds). The time for the target master node to send the wake-up characteristic value lasts 2*T1, i.e., 4 seconds, which means that from 16 seconds to 24 seconds, the target master node has been sending the first wake-up characteristic value. The above-mentioned first moment is the 16th second in the example, and the 16th to 20 seconds are the first of the above-mentioned first wake-up windows before the above-mentioned end time point. The above-mentioned second moment represents the 24th second in the example.

[0097] It can be understood that the specific values ​​in the above examples can be set flexibly, and the present application does not limit this. For another example, assuming that the preset sending time slot T0 = 30 seconds, the first wake-up window T1 = 4 seconds, at the end of the first T0 cycle (i.e., 30 seconds), the target child node opens a first wake-up window lasting 4 seconds, and the target master node needs to start sending the first wake-up characteristic value 4 seconds before the start of the first wake-up window (i.e., at 26 seconds). The time for the target master node to send the wake-up characteristic value lasts 3*T1, i.e., 4 seconds, which means that from 26 seconds to 34 seconds, the target master node has been sending the first wake-up characteristic value. The above-mentioned first moment is the 26th second in the example, and the 26th to 30th seconds are the first of the above-mentioned first wake-up windows before the above-mentioned end time point. The above-mentioned second moment represents the 34th second in the example.

[0098] As an optional scheme, when the target master node needs to send target data to the target child node and the first wake-up feature data satisfying the preset wake-up condition is received in the first wake-up window, after opening the second wake-up window, the method further includes: receiving the second wake-up feature data in the second wake-up window, wherein the second wake-up feature data is set to be sent by the target master node from the second moment to a third moment, the third moment indicating a moment after the second moment when N of the first wake-up windows and the preset minimum duration have passed, the preset minimum duration indicating the shortest duration for receiving the second wake-up feature data; determining whether the second wake-up feature data indicates that the target master node needs to send the target data to the target child node.

[0099] Optionally, in an embodiment of the present application, the duration from the second moment to the third moment is the second wake-up window, and the preset minimum duration can be determined by the target master node and then sent to the target child node, or determined by the target child node.

[0100] Exemplarily, assuming that N is 2, the third moment can be determined as the second moment + 2*the duration of the first wake-up window + the preset minimum duration. For example, the second moment is 9 o'clock, the first wake-up window is 10 seconds, and the preset minimum duration is 3 seconds. The duration of the second wake-up window is 23 seconds, and the third moment is 9:23 seconds.

[0101] It should be noted that the above-mentioned preset minimum duration can be adjusted according to the communication requirements and communication environment of the target main node and the target sub-node. For example, if the communication environment is poor, it may be necessary to increase the preset minimum duration to ensure that the second wake-up feature data can be successfully received.

[0102] Through the embodiments of the present application, the duration of the second wake-up window is determined by using the above-mentioned preset minimum duration and the duration of the first wake-up window, which can ensure that the second wake-up feature data can be successfully received within the second wake-up window, thereby ensuring the timeliness and reliability of data transmission.

[0103] As an optional scheme, when the target sub-node is time-synchronized with the target main node, the first wake-up window is periodically opened according to the preset sending time slot, including: when the target sub-node is added to the sub-node list of the target main node, a time synchronization request is initiated to the target main node, wherein the time synchronization request includes the second wake-up feature data and the preset sending time slot; according to the round-trip delay of communication between the target main node and the target sub-node and the master node timestamp of the target main node, the system time of the target sub-node is adjusted to instruct the target sub-node to time synchronize with the target main node; when the target sub-node is time-synchronized with the target main node, the first wake-up window is periodically opened according to the preset sending time slot.

[0104] Optionally, in an embodiment of the present application, the above-mentioned "time synchronization request" refers to a request issued by the target subnode to maintain a consistent time base with the target master node, including but not limited to the device attributes of the target subnode, the current timestamp, and preset communication parameters, such as a preset sending time slot and the second wake-up characteristic data; the above-mentioned "second wake-up characteristic data" refers to the specific data or signal reported by the target subnode in the time synchronization request for being recognized by the target master node in the second wake-up window, including but not limited to point-to-point wake-up characteristic values, broadcast wake-up characteristic values, etc.

[0105] For example, in the application scenario of IoT device management, when a new wireless sensor (target child node) is added to the wireless network managed by the home center controller (target master node), the wireless sensor first needs to synchronize time with the home center controller to ensure that the time base between the two is consistent. During this process, the wireless sensor will send a time synchronization request, which contains the second wake-up feature data it supports and the preset delivery time slot, as well as possible other configuration parameters. After receiving the request, the home center controller will reply with a confirmation message containing its current master node timestamp. The wireless sensor adjusts its system clock according to the returned timestamp and the round-trip delay of the communication, aligns it with the time base of the home center controller, and completes the time synchronization. After that, the wireless sensor periodically opens the first wake-up window according to the preset delivery time slot, waiting to receive the wake-up signal.

[0106] It should be noted that the specific values ​​of the first wake-up window and the preset sending time slot can be flexibly set and adjusted according to the power consumption requirements of the subnode, the data transmission frequency and the network environment. For example, the preset sending time slot can be set to 30 seconds, and the first wake-up window can be set to 5 seconds to balance the power consumption of the subnode and the timeliness of data reception.

[0107] Through the embodiments of the present application, a time synchronization mechanism is adopted between the target sub-node and the target main node, as well as a first wake-up window opening strategy based on a preset downlink time slot, to achieve the technical effect of efficient and low-power sub-node management and data communication, thereby achieving the purpose of reducing signal interference in the network, reducing sub-node power consumption, and extending battery life, while improving the accuracy of data transmission and the overall performance of the network.

[0108] As an optional scheme, when the second wake-up characteristic data is received in the second wake-up window and the second wake-up characteristic data indicates that the target child node needs to receive the target data sent by the target main node, the target data is received, including: when the second wake-up characteristic data is received in the second wake-up window, obtaining the target characteristic value in the second wake-up characteristic data; when the target characteristic value represents a point-to-point characteristic value, receiving the target data, wherein the point-to-point characteristic value is used to indicate that the target data is data sent from the target main node to the target child node; when the target characteristic value represents a broadcast characteristic value, receiving the target data, wherein the broadcast characteristic value is used to indicate that the target data is data sent from the target main node to a group of child nodes, and the group of child nodes includes the target child node.

[0109] Optionally, in an embodiment of the present application, the above-mentioned point-to-point characteristic value refers to the second wake-up characteristic data used when a single target sub-node and a target main node communicate separately, and the target main node only needs to send target data to a single target sub-node. The above-mentioned broadcast characteristic value refers to the above-mentioned group of sub-nodes that can communicate with the target main node, and the preset sending time slots of each sub-node in the above-mentioned group of sub-nodes are the same, and can share a broadcast characteristic value.

[0110] Exemplarily, assume that the master node is a home center controller, which is responsible for coordinating and managing all child nodes; the above group of child nodes are various smart devices, such as smart light bulbs, smart sockets, smart temperature controllers, etc. At this time, the master node needs to control the smart light bulb to turn blue separately, and the above point-to-point characteristic value can be sent to the smart light bulb to wake up the smart light bulb (the above target child node), and then, the target data indicating the smart light bulb to turn blue is sent to the smart light bulb separately; or, in another example, the master node needs to control each smart socket (the above group of child nodes, one of which is the above target child node) to turn off at 10 o'clock in the evening, and then, the above broadcast characteristic value can be sent to the above group of child nodes to wake up each smart socket, and then, the target data indicating each smart socket to turn off at 10 o'clock in the evening is uniformly sent to each smart socket.

[0111] Through the embodiments of the present application, point-to-point characteristic values ​​or broadcast characteristic values ​​are used in different application scenarios to wake up several sub-nodes that can communicate with the target main node, effectively manage and control the sub-nodes, and realize the automation and intelligence of the target main node waking up the target sub-node.

[0112] As an optional scheme, the above method also includes: entering the sleep mode when the above-mentioned first wake-up characteristic data is not received in the above-mentioned first wake-up window; entering the above-mentioned sleep mode when the above-mentioned first wake-up characteristic data does not meet the above-mentioned preset wake-up condition; entering the above-mentioned sleep mode when the above-mentioned second wake-up characteristic data is not received in the above-mentioned second wake-up window.

[0113] Optionally, in an embodiment of the present application, the above-mentioned sleep mode includes but is not limited to measures such as reducing the processor speed of the target sub-node, shutting down unnecessary hardware components, and reducing energy consumption. The target sub-node entering the sleep mode will not open the second wake-up window in the current cycle.

[0114] As an optional solution, the embodiment of the present application also provides another data transmission method, which is applied to the target master node:

[0115] When the target sub-node is time-synchronized with the target main node, a message is obtained that the target sub-node periodically opens the first wake-up window according to the preset sending time slot; first wake-up feature data is sent to the target sub-node according to the first wake-up window and the preset sending time slot; wherein the first wake-up feature data is used to indicate the signal strength between the target sub-node and the target main node, and the first wake-up feature data is set to be sent by the target main node according to the first wake-up window and the preset sending time slot; when the first wake-up data meets the preset wake-up condition, the second wake-up feature data is sent to the target sub-node according to the second wake-up window; when the second wake-up feature data indicates that the target main node needs to send the target data to the target sub-node, the target data is sent to the target sub-node.

[0116] Optionally, in an embodiment of the present application, the above-mentioned "preset sending time slot" refers to a pre-agreed periodic time interval between the target master node and the target sub-node, which is used to determine when the target sub-node should open the first wake-up window, including but not limited to time periods such as 10 seconds, 30 seconds, and 1 minute. The above-mentioned "first wake-up characteristic data" refers to the data or signal sent by the target master node to the target sub-node within the preset sending time slot period to indicate the signal strength between the two, including but not limited to RSSI value, signal-to-noise ratio, etc., used to determine whether the preset wake-up conditions are met. The above-mentioned "second wake-up characteristic data" refers to the signal sent by the target master node to further confirm whether the target sub-node should receive data after the first wake-up characteristic data meets the wake-up conditions, including but not limited to specific point-to-point wake-up codes, broadcast wake-up codes, etc., to indicate the sending of target data.

[0117] Exemplarily, in the application scenario of a smart home wireless communication network, when a home center controller (target master node) needs to send a control instruction to a smart bulb (target child node), it will first check whether it has been time synchronized with the smart bulb. Assuming that the home center controller has received a message from the smart bulb that the first wake-up window is periodically opened according to the preset sending time slot, it will send the first wake-up feature data according to the first wake-up window time and the preset sending time slot set by the smart bulb. This data contains the current signal strength between the two. If the signal strength in the first wake-up feature data meets the preset threshold, indicating that the smart bulb can receive a valid signal, the home center controller will send the second wake-up feature data to clearly indicate that the smart bulb needs to receive data. Once the smart bulb receives the second wake-up feature data, the home center controller can send specific control instructions, such as adjusting the brightness or color.

[0118] It should be noted that the opening time of the first wake-up window and the setting of the preset sending time slot can be adjusted according to the specific application scenario and network environment to balance energy consumption and data transmission efficiency. For example, in a high-density network environment, the preset sending time slot may need to be set shorter to reduce the waiting time between nodes; while in a low-power device, the first wake-up window may need to be set longer to reduce the wake-up frequency of the device and save energy.

[0119] Through the embodiments of the present application, accurate time synchronization between the target master node and the target sub-node and a wake-up mechanism based on signal strength are adopted to achieve the technical effects of reducing the false wake-up rate, reducing network signal interference, and optimizing data communication efficiency, thereby achieving the purpose of improving data transmission accuracy and reducing sub-node energy consumption, thereby ensuring the overall performance of the network and the long-term operation of the sub-nodes.

[0120] Exemplarily, the data transmission method proposed in the present application can be applied to the field of wireless communication technology. The target sub-node can be woken up wirelessly and the target data can be sent to the target sub-node for wireless communication. Specifically, since more and more wireless detectors (target sub-nodes) need to be connected to the wireless network, most of the wireless detector nodes are powered by batteries with limited battery capacity. The equipment needs to operate in low-power mode, and low-power wireless detectors generally use periodic sleep and wake-up switching to receive the control data sent by the gateway. Through the above-mentioned data transmission method, low-power wake-up of wireless detectors can be achieved for data communication without increasing excessive power consumption when facing complex aerial wireless conditions.

[0121] Furthermore, in order to realize the function of low-power operation of the target sub-node and receiving the data sent by the target main node, after the target sub-node is added to the target main node, the target sub-node actively initiates a time synchronization request, and the target sub-node carries the second wake-up characteristic data of the target sub-node, the preset sending time slot T0 supported by the target sub-node, and the maximum time error value Tw supported by the target sub-node in the reported data requesting time synchronization, wherein the second wake-up characteristic data includes (point-to-point wake-up characteristic value Ad (each sub-node randomly generates a unique characteristic value), broadcast wake-up characteristic value Ab (the broadcast wake-up characteristic value of the sub-node in the same time slot is preset to be consistent)); when the target main node receives the time synchronization request data of the target sub-node, it feeds back the current timestamp value of the target main node to the target sub-node, so that the target sub-node maintains the same time as the target main node.

[0122] Exemplarily, after the target subnode completes time synchronization with the target master node, the target subnode will periodically open the first wake-up window of time T1 according to the preset sending time slot T0. When the target master node has data to be sent to the target subnode, it is necessary to send the first wake-up feature data of 2T1 time continuously before reaching the preset sending time slot of the target subnode T1 to wake up the target subnode. Specifically:

[0123] When the target subnode receives the first wake-up characteristic data, it judges the received RSSI value (the above signal strength) and the wake-up RSSI threshold of the target subnode. When the RSSI differs greatly from the wake-up RSSI threshold, it is judged as illegal wake-up and the target subnode enters sleep mode. When the RSSI of the received first wake-up characteristic data is within the wake-up RSSI threshold, the target subnode opens the second wake-up window of (2T1+T2 (minimum time for receiving characteristic value)). If the second wake-up characteristic data sent by the target master node is received within the second wake-up window of 2T1+T2, the subnode opens the data receiving window and completes data reception within the data receiving window. If the second wake-up characteristic data of the target master node is not received within the second wake-up window of 2T1+T2, the wireless sleep is performed to reduce power consumption. The target master node adjusts the content of the second wake-up characteristic data according to the content of the sent target data. When sending data to only one target subnode, the point-to-point wake-up characteristic value Ad is sent to wake up only a single target subnode. When the target data needs to be sent in groups, the broadcast wake-up characteristic value Ab is sent to wake up all subnodes in the same time slot and send the target data uniformly.

[0124] It should also be noted that the first wake-up window RSSI judgment threshold update mechanism can be understood as, after the target sub-node is added to the target master node network, it periodically communicates data with the target master node. After receiving the second request message, the target master node will reply to the target sub-node ACK (the above-mentioned second confirmation message), and the RSSI value received from the target sub-node is updated to the RSSI value of the target sub-node, and mapped to the corresponding wake-up RSSI threshold range (the above-mentioned target parameter value range) in the target sub-node according to the RSSI value.

[0125] Through the embodiments of the present application, the point-to-point wake-up characteristic values ​​corresponding to different sub-nodes are all different. Therefore, when the target data is sent at a single point, the point-to-point wake-up characteristic value can be used to wake up the corresponding wireless device (the above-mentioned target sub-node). After the wireless device that does not need to receive the target data is awakened in the first wake-up window, it will not receive the corresponding point-to-point wake-up characteristic value, and will therefore enter the sleep mode again, thereby reducing the power consumption increase caused by abnormal wake-up.

[0126] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0127] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0128] According to one aspect of an embodiment of the present application, another data transmission device is provided, which is applied to a target master node, including:

[0129] An acquisition module, used for acquiring a message that the target subnode periodically opens the first wake-up window according to a preset sending time slot when the target subnode is time synchronized with the target master node;

[0130] A first sending module, configured to send first wake-up characteristic data to a target sub-node according to a first wake-up window and a preset sending time slot; wherein the first wake-up characteristic data is used to indicate a signal strength between the target sub-node and the target master node, and the first wake-up characteristic data is set to be sent by the target master node according to the first wake-up window and the preset sending time slot;

[0131] A second sending module, configured to send second wake-up characteristic data to a target subnode according to a second wake-up window when the first wake-up data meets a preset wake-up condition;

[0132] The third sending module is used to send the target data to the target child node when the second wake-up characteristic data indicates that the target main node needs to send the target data to the target child node.

[0133] According to another aspect of the embodiment of the present application, a data transmission device for implementing the above data transmission method is also provided, which is applied to a target sub-node, such as Figure 7 As shown, the device comprises:

[0134] The processing module 702 is used to periodically open the first wake-up window according to the preset sending time slot when the target sub-node is time synchronized with the target master node;

[0135] A first receiving module 704 is configured to open a second wake-up window when the target subnode needs to receive target data sent by the target master node and first wake-up feature data satisfying a preset wake-up condition is received in the first wake-up window; wherein the first wake-up feature data is used to indicate the signal strength between the target subnode and the target master node, and the first wake-up feature data is set to be sent by the target master node according to the first wake-up window and the preset sending time slot;

[0136] The second receiving module 706 is configured to receive the target data when the second wake-up characteristic data is received in the second wake-up window and the second wake-up characteristic data indicates that the target child node needs to receive the target data sent by the target master node.

[0137] As an optional scheme, the above-mentioned device is used to open a second wake-up window in the following manner when the target sub-node needs to receive target data sent by the target main node and the first wake-up characteristic data that meets the preset wake-up condition is received in the first wake-up window: when the first wake-up characteristic data is received in the first wake-up window, a first request message is sent to the target main node, wherein the first request message is used to request to determine the target signal strength between the target sub-node and the target main node; obtain a first confirmation message sent by the target main node; when the first value of the target field in the first confirmation message belongs to the target parameter value range, it is determined that the first wake-up characteristic data meets the preset wake-up condition, and a second wake-up window is opened, wherein the first value of the target field is used to indicate the target signal strength.

[0138] As an optional scheme, the above-mentioned device is also used for: when the target sub-node needs to receive target data sent by the target main node and the first wake-up feature data that meets the preset wake-up condition is received in the first wake-up window, before opening the second wake-up window, when the target sub-node and the target main node are time synchronized, periodically sending a second request message to the target main node, wherein the second request message is used to request to determine the target parameter value range; obtain a second confirmation message sent by the target main node; and determine the target parameter value range from multiple parameter value ranges based on the second value of the target field in the second target confirmation message.

[0139] As an optional scheme, the above-mentioned device is used to periodically open the first wake-up window according to the preset sending time slot when the target subnode is time synchronized with the target master node in the following manner: when the target subnode is added to the subnode list of the target master node, initiate a time synchronization request to the target master node, wherein the time synchronization request includes second wake-up feature data and the preset sending time slot; adjust the system time of the target subnode according to the round-trip delay of communication between the target master node and the target subnode and the master node timestamp of the target master node to instruct the target subnode to perform time synchronization with the target subnode; when the target subnode is time synchronized with the target subnode, periodically open the first wake-up window according to the preset sending time slot.

[0140] As an optional scheme, the above-mentioned device is also used to: when the target child node is time synchronized with the target main node, after the first wake-up window is periodically opened according to the preset sending time slot, receive the first wake-up characteristic data in the first wake-up window, wherein the first wake-up characteristic data is set to be sent by the target main node from the first moment to the second moment, the first moment represents the first first wake-up window before the end time point of the preset sending time slot, and the second moment represents the first first wake-up window after the end time point.

[0141] As an optional solution, the above-mentioned device is also used for: when the target child node needs to receive the target data sent by the target main node and the first wake-up characteristic data that meets the preset wake-up condition is received in the first wake-up window, after opening the second wake-up window, receiving the second wake-up characteristic data in the second wake-up window, wherein the second wake-up characteristic data is set to be sent by the target main node from the second moment to the third moment, the third moment indicating the moment after the second moment when N first wake-up windows and the preset minimum duration have passed, the preset minimum duration indicating the shortest duration for receiving the second wake-up characteristic data; determining whether the second wake-up characteristic data indicates that the target main node needs to send target data to the target child node.

[0142] As an optional scheme, the above-mentioned device is used to periodically open the first wake-up window according to the preset sending time slot when the target sub-node is time-synchronized with the target main node in the following manner: when the target sub-node is added to the sub-node list of the target main node, initiate a time synchronization request to the target main node, wherein the time synchronization request includes second wake-up feature data and the preset sending time slot; according to the round-trip delay of communication between the target main node and the target sub-node and the master node timestamp of the target main node, adjust the system time of the target sub-node to instruct the target sub-node to time synchronize with the target main node; when the target sub-node is time-synchronized with the target main node, periodically open the first wake-up window according to the preset sending time slot.

[0143] As an optional scheme, the above-mentioned device is used to receive the target data when the second wake-up characteristic data is received in the second wake-up window in the following manner, and the second wake-up characteristic data indicates that the target child node needs to receive the target data sent by the target main node: when the second wake-up characteristic data is received in the second wake-up window, obtain the target characteristic value in the second wake-up characteristic data; when the target characteristic value represents a point-to-point characteristic value, receive the target data, wherein the point-to-point characteristic value is used to indicate that the target data is data sent by the target main node to the target child node; when the target characteristic value represents a broadcast characteristic value, receive the target data, wherein the broadcast characteristic value is used to indicate that the target data is data sent by the target main node to a group of child nodes, and the group of child nodes includes the target child node.

[0144] As an optional solution, the above-mentioned device is also used to: enter the sleep mode when the first wake-up characteristic data is not received within the first wake-up window; enter the sleep mode when the first wake-up characteristic data does not meet the preset wake-up condition; enter the sleep mode when the second wake-up characteristic data is not received within the second wake-up window.

[0145] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0146] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0147] According to one aspect of the present application, a computer program product is provided. The computer program product includes a computer program.

[0148] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0149] Figure 8 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.

[0150] It should be noted that Figure 8 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0151] like Figure 8 As shown, the computer system 800 includes a central processing unit 801 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 802 (ROM) or the program loaded from the storage part 808 to the random access memory 803 (RAM). Various programs and data required for system operation are also stored in the random access memory 803. The central processing unit 801, the read-only memory 802 and the random access memory 803 are connected to each other through a bus 804. The input / output interface 805 (Input / Output interface, i.e., I / O interface) is also connected to the bus 804.

[0152] The following components are connected to the input / output interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a local area network card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.

[0153] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processor 801, various functions defined in the system of the present application are executed.

[0154] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processor 801, various functions provided by the embodiment of the present application are performed.

[0155] According to another aspect of the embodiment of the present application, an electronic device for implementing the above data transmission method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Fig. 9 As shown, the electronic device includes a memory 902 and a processor 904. The memory 902 stores a computer program, and the processor 904 is configured to execute the steps in any of the above method embodiments through the computer program.

[0156] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0157] Optionally, in this embodiment, the above-mentioned processor can be configured to execute the methods in each embodiment of the present application through a computer program.

[0158] Alternatively, a person skilled in the art may understand that: Fig. 9 The structure shown is for illustration only. Fig. 9 The structure of the electronic device is not limited. Fig. 9 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig. 9 Different configurations are shown.

[0159] Among them, the memory 902 can be used to store software programs and modules, such as program instructions / modules corresponding to the data transmission method and device in the embodiments of the present application. The processor 904 executes various functional applications and data processing by running the software programs and modules stored in the memory 902, that is, realizing the above-mentioned data transmission method. The memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 902 may further include a memory remotely arranged relative to the processor 904, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 902 can be specifically, but not limited to, used to store information such as the first wake-up feature data and the second wake-up feature data. As an example, such as Fig. 9 As shown, the memory 902 may include but is not limited to the processing module 702, the first receiving module 704, and the second receiving module 706 in the data transmission device. In addition, it may also include but is not limited to other module units in the data transmission device, which will not be repeated in this example.

[0160] Optionally, the transmission device 906 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 906 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 906 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0161] In addition, the electronic device further includes: a display 908 for displaying the first wake-up characteristic data and the second wake-up characteristic data; and a connection bus 910 for connecting various module components in the electronic device.

[0162] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. The nodes may form a peer-to-peer network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.

[0163] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the data transmission method provided in various optional implementations of the above-mentioned data transmission aspects.

[0164] Optionally, in this embodiment, the above-mentioned computer-readable storage medium can be configured to store data for executing the methods in various embodiments of the present application.

[0165] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0166] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0167] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for one or more electronic devices to execute all or part of the steps of the methods described in each embodiment of the present application.

[0168] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0169] In the several embodiments provided in the present application, it should be understood that the disclosed application can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0170] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0171] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0172] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A data transmission method, characterized in that: Applied to target child nodes, including: When the target sub-node is time synchronized with the target master node, periodically opening the first wake-up window according to the preset sending time slot; When the target subnode needs to receive target data sent by the target master node and first wake-up feature data satisfying a preset wake-up condition is received in the first wake-up window, a second wake-up window is opened; wherein the first wake-up feature data is used to indicate the signal strength between the target subnode and the target master node, and the first wake-up feature data is set to be sent by the target master node according to the first wake-up window and the preset sending time slot; In the case where the second wake-up characteristic data is received within the second wake-up window, and the second wake-up characteristic data indicates that the target child node needs to receive the target data sent by the target master node, the target data is received.

2. The method according to claim 1, characterized in that The step of opening a second wake-up window when the target sub-node needs to receive target data sent by the target master node and first wake-up feature data satisfying a preset wake-up condition is received within the first wake-up window includes: When the first wake-up characteristic data is received within the first wake-up window, a first request message is sent to the target master node, wherein the first request message is used to request determination of a target signal strength between the target sub-node and the target master node; Obtaining a first confirmation message sent by the target master node; When the first value of the target field in the first confirmation message belongs to the target parameter value range, it is determined that the first wake-up characteristic data meets the preset wake-up condition, and a second wake-up window is opened, wherein the first value of the target field is used to indicate the target signal strength.

3. The method according to claim 2, characterized in that In the case where the target child node needs to receive target data sent by the target master node and first wake-up feature data satisfying a preset wake-up condition is received in the first wake-up window, before opening the second wake-up window, the method further includes: When the target sub-node is time synchronized with the target master node, periodically sending a second request message to the target master node, wherein the second request message is used to request determination of the target parameter value interval; Obtain a second confirmation message sent by the target master node; The target parameter value interval is determined from a plurality of parameter value intervals based on a second value of the target field in the second target confirmation message.

4. The method according to claim 1, characterized in that: In the case where the target sub-node is time synchronized with the target master node, after the first wake-up window is periodically opened according to the preset delivery time slot, the method further includes: The first wake-up characteristic data is received within the first wake-up window, wherein the first wake-up characteristic data is set to be sent by the target master node from a first moment to a second moment, the first moment represents the first first wake-up window before the end time point of the preset sending time slot, and the second moment represents the first first wake-up window after the end time point.

5. The method according to claim 4, characterized in that In the case where the target child node needs to receive target data sent by the target master node and first wake-up feature data satisfying a preset wake-up condition is received within the first wake-up window, after opening the second wake-up window, the method further includes: receiving the second wake-up characteristic data within the second wake-up window, wherein the second wake-up characteristic data is set to be sent by the target master node from the second moment to a third moment, the third moment indicating a moment after the second moment when N first wake-up windows and a preset minimum duration have passed, and the preset minimum duration indicates a shortest duration for receiving the second wake-up characteristic data; Determine whether the second wake-up characteristic data indicates that the target master node needs to send the target data to the target child node.

6. The method according to claim 1, characterized in that When the target sub-node is time synchronized with the target master node, periodically opening the first wake-up window according to the preset sending time slot includes: In the case where the target subnode is added to the subnode list of the target master node, a time synchronization request is initiated to the target master node, wherein the time synchronization request includes the second wake-up characteristic data and a preset sending time slot; According to the round-trip delay of communication between the target master node and the target sub-node and the master node timestamp of the target master node, the system time of the target sub-node is adjusted to instruct the target sub-node to perform time synchronization with the target master node; When the target child node and the target master node are time synchronized, the first wake-up window is periodically opened according to the preset sending time slot.

7. The method according to claim 1, characterized in that The receiving of the second wake-up characteristic data within the second wake-up window, and the second wake-up characteristic data indicating that the target child node needs to receive the target data sent by the target master node, comprises: When the second wake-up feature data is received in the second wake-up window, obtaining a target feature value in the second wake-up feature data; In a case where the target characteristic value represents a point-to-point characteristic value, receiving the target data, wherein the point-to-point characteristic value is used to indicate that the target data is data sent by the target master node to the target child node; In a case where the target characteristic value represents a broadcast characteristic value, the target data is received, wherein the broadcast characteristic value is used to indicate that the target data is data sent by the target master node to a group of child nodes, and the group of child nodes includes the target child node.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: If the first wake-up characteristic data is not received within the first wake-up window, entering a sleep mode; When the first wake-up characteristic data does not satisfy the preset wake-up condition, entering the sleep mode; If the second wake-up characteristic data is not received within the second wake-up window, the sleep mode is entered.

9. A data transmission method, characterized in that: Applied to the target master node, including: When the target sub-node is time synchronized with the target master node, obtaining a message that the target sub-node periodically opens the first wake-up window according to a preset sending time slot; Sending first wake-up feature data to the target sub-node according to the first wake-up window and the preset sending time slot; wherein the first wake-up feature data is used to indicate the signal strength between the target sub-node and the target main node, and the first wake-up feature data is set to be sent by the target main node according to the first wake-up window and the preset sending time slot; When the first wake-up data meets a preset wake-up condition, sending second wake-up characteristic data to the target subnode according to a second wake-up window; In a case where the second wake-up characteristic data indicates that the target main node needs to send the target data to the target child node, the target data is sent to the target child node.

10. A data transmission device, characterized in that: Applied to target child nodes, including: A processing module, configured to periodically open a first wake-up window according to a preset sending time slot when the target sub-node is time synchronized with the target master node; A first receiving module, configured to open a second wake-up window when the target sub-node needs to receive target data sent by the target master node and first wake-up feature data satisfying a preset wake-up condition is received within the first wake-up window; wherein the first wake-up feature data is used to indicate a signal strength between the target sub-node and the target master node, and the first wake-up feature data is set to be sent by the target master node according to the first wake-up window and the preset sending time slot; The second receiving module is configured to receive the target data when the second wake-up characteristic data is received in the second wake-up window and the second wake-up characteristic data indicates that the target child node needs to receive the target data sent by the target master node.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein the computer program can be executed by an electronic device to perform the method described in any one of claims 1 to 8 or claim 9.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 8 or claim 9 are implemented.

13. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 8 or claim 9 through the computer program.