A method and system for adaptive wireless relay networking data transmission
Through the adaptive wireless relay network data transmission method, routing information tables are generated and updated, which solves the problem of instability of communication between IoT devices, and realizes long-distance stable communication and simplifies the networking process.
Patent Information
- Application Number
- CN202210858249.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-21
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2042-07-21
AI Technical Summary
In the Internet of Things scenario, the wireless communication signals between the terminal device and the server side are susceptible to distance and interference, resulting in unstable communication, especially when the distance between the devices is long or there are obstacles, the signal is weak or unable to communicate.
Adaptive wireless relay network data transmission method is adopted to generate the on-network device routing information table through networking operations between the root device and the node device, detect the response time and on-network status of the sub-device, update the routing information table, and calculate the most Optimal and backup routing tables to achieve stable data transmission.
Long-distance communication is realized, which reduces physical transmission signal interference and data multipath interference, improves communication stability and speed, and simplifies the networking process of new equipment.
Smart Images

Figure CN115361724B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to an adaptive wireless relay networking data transmission method and system. Background Art
[0002] With the development of information technology and the popularization of intelligent devices based on the Internet of Things, the requirements for wireless communication technology are getting higher and higher. In actual use scenarios of wireless communication technology based on the Internet of Things, when the wireless transmission distance between two wireless communication devices is far or there are obstacles blocking them, the communication signal will be weak, unstable or unable to communicate.
[0003] At the same time, in the actual use scenario of the Internet of Things, in a use scenario, a data link needs to be formed between the terminal device and the server for data transmission. The long distance and large interference between the terminal device and the server are also important issues that make communication unstable. Summary of the invention
[0004] The object of the present invention is to overcome one or more deficiencies of the prior art and to provide an adaptive wireless relay networking data transmission method and system.
[0005] The objective of the present invention is achieved through the following technical solutions:
[0006] According to a first aspect of the present invention, an adaptive wireless relay networking data transmission method is applied to a wireless communication system, wherein the wireless communication system includes a root device and a common device. The adaptive wireless relay networking data transmission method includes:
[0007] S100. The root device performs a networking operation for adding a sub-device to itself and generates a routing information table of the root device on the network, wherein the sub-device is a normal device;
[0008] S200. Each node device generates its own network device routing information table according to the network device routing information table sent by its parent device, and performs a networking operation for adding a child device to itself, wherein the node device is a common device that has been added as a child device;
[0009] S300. The root device or each node device detects the response time and online status of its own sub-device, and updates its own online device routing information table according to the response time and online status;
[0010] S400. The root device or node device updates its own on-line device routing information table according to its own sub-device on-line device routing information table;
[0011] S500. The root device calculates the routing path between each node device and the root device according to its own network device routing information table, and forms an optimal master-sub-device routing table and at least one backup master-sub-device routing table according to the routing path;
[0012] S600. The root device performs data transmission with any node device according to the optimal master-sub-device routing table or the backup master-sub-device routing table;
[0013] The online device routing information table includes the device ID of the current device, the device ID of the sub-device, the routing path of the sub-device connecting to the current device, the connection response time of each level of link and the online status of the sub-device.
[0014] Preferably, the S100 includes the following steps:
[0015] S110. The root device generates its own network device routing information table, which is initially empty;
[0016] S120. The root device broadcasts a first networking instruction, wherein the first networking instruction includes a routing information table of the root device on the network;
[0017] S130. If the root device receives a first response message within a first preset period after issuing the first networking instruction, the routing information table of the root device in the network is updated according to the first response information, and then S120 is executed; if the root device does not receive the first response message within a first preset period after issuing the first networking instruction, the root device ends the networking operation;
[0018] The first response information includes the device ID of the common device that sends the first response information.
[0019] Preferably, the S200 includes:
[0020] S210. The root device sends a confirmation instruction in the first network to its sub-device, wherein the confirmation instruction in the first network includes the device ID of the first node device, and the first node device is a sub-device of all sub-devices of the root device whose number of network confirmation operations in this round has not reached a preset value;
[0021] S220. If the root device receives the second response information sent by the first node device within the second preset period after issuing the first online confirmation instruction, the response time of this communication is recorded; if the root device does not receive the second response information sent by the first node device within the second preset period after issuing the first online confirmation instruction, the online status of the sub-device is offline;
[0022] S230. If the first node device still exists in all the child devices of the root device, execute S210, otherwise execute S240;
[0023] S240: The root device updates its own online device routing information table according to the response time and online status.
[0024] Preferably, the S300 includes the following steps:
[0025] S310. The node device generates its own online device routing information table based on the online device routing information table sent by its parent device;
[0026] S320. The node device broadcasts a second networking instruction, wherein the second networking instruction includes a network device routing information table of the node device;
[0027] S330. If the node device receives a third response message within a third preset period after issuing the second networking instruction, the node device updates the network device routing information table according to the third response message, and then executes S320; if the node device does not receive the third response message within the third preset period after issuing the second networking instruction, the node device ends the networking operation;
[0028] The third response information includes the device ID of the common device that sends the third response information.
[0029] Preferably, the node device detects the response time and online status of its own sub-device, and updates its own online device routing information table according to the response time and online status, including:
[0030] S410. The node device sends a second online confirmation instruction to its own sub-device, wherein the second online confirmation instruction includes the device ID of the second node device, and the second node device is a sub-device among all sub-devices of the node device whose number of online confirmation operations in this round has not reached a preset value;
[0031] S420. If the node device receives the fourth response information sent by the second node device within the fourth preset period after issuing the second online confirmation instruction, the response time of this communication is recorded; if the node device does not receive the fourth response information sent by the second node device within the fourth preset period after issuing the second online confirmation instruction, the online status of the sub-device is offline;
[0032] S430. If there is a second node device in all sub-devices of the node device, execute S410, otherwise execute S440;
[0033] S440. The node device updates its own online device routing information table according to the response time and online status.
[0034] Preferably, the S500 includes the following steps:
[0035] S510. When the node device has an update in its own network device routing information table, it sends the updated network device routing information table to its parent device;
[0036] S520. When the root device or node device receives the online device routing information table uploaded by its own child device, it updates its own online device routing information table.
[0037] Preferably, the S700 includes a data downlink transmission step, and the data downlink transmission step includes:
[0038] S711. The root device generates downlink path information according to the optimal master-sub-device routing table or the backup master-sub-device routing table;
[0039] S712. The root device combines the downlink path information and the first data to be sent into first data, and sends the first data to its next-level node device;
[0040] S713. After receiving the first data, each node device determines whether the target device is itself according to the downlink path information: if so, save the first data and complete the downlink data transmission; if not, execute S714;
[0041] S714. The node device determines whether it is a relay node based on the downlink path information: if so, forward the first data to its next-level node device marked in the downlink path information and execute S713; if not, discard the first data.
[0042] Preferably, the S700 further includes a data uplink transmission step, and the data uplink transmission step includes:
[0043] S721. The root device sends a data request message to the target device;
[0044] S722. The target device generates uplink path information based on the downlink path information saved when receiving the data request information;
[0045] S723. The target device forms the second data according to the uplink path information and the second data to be sent, and uploads the second data to its upper node device according to the uplink path information;
[0046] S724. After receiving the second data, each node device determines whether it is a relay node according to the uplink path information: if so, forward the second data to its own upper-level node device marked in the uplink path information; if not, discard the second data;
[0047] S625. After receiving the second data, the root device completes the data uplink transmission.
[0048] Preferably, the adaptive wireless relay networking data transmission method further includes:
[0049] S800. After forming the optimal master-sub-device routing table and the backup master-sub-device routing table, the root device synchronizes the optimal master-sub-device routing table and the backup master-sub-device routing table to all node devices in the wireless communication system, and the node device transmits data with any node device other than the node device according to the optimal master-sub-device routing table or the backup master-sub-device routing table.
[0050] According to a second aspect of the present invention, an adaptive wireless relay networking data transmission system includes a root device and a common device, wherein the common device is communicatively connected to the root device or common devices at different levels are communicatively connected;
[0051] The root device is used to generate its own online device routing information table, and update its own online device routing information table according to the online device routing information table of its own next-level ordinary device, and generate the optimal master-sub-device routing table and the backup master-sub-device routing table according to its own online device routing information table;
[0052] The common device is used to generate its own online device routing information table according to the online device routing information table of its parent device, and update its own online device routing information table according to the online device routing information table of its next-level common device, and send the updated online device routing information table to its parent device when its own online device routing information table is updated.
[0053] The beneficial effects of the present invention are:
[0054] (1) During the communication process of the present invention, relay routing can be performed between wireless devices, thereby achieving a long-distance communication effect;
[0055] (2) The present invention has determined the communication path when the master and slave devices are communicating data. For devices that are not on this path, even if they receive data, they will not be relayed again, reducing the communication interference of irrelevant devices on the entire network. Compared with the prior art method in which all devices are relaying during the communication process, the method of the present invention reduces the interference of physical transmission signals and the multipath interference of data caused by the same data being transmitted through different paths, making the communication more stable.
[0056] (3) The present invention has completed the generation of the optimal routing path before the data communication between the master and slave devices, and uses the optimal path for communication. Compared with the method of searching for the communication path during the communication process, the method of the present invention avoids unnecessary interference and improves the communication speed.
[0057] (4) In the present invention, when a new device is placed in the network, it only needs to wait for the root device to issue a regular networking instruction or a manual networking instruction to complete the addition of the new device; compared with some other methods that require manual configuration, the networking method of the present invention is more convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a flow chart of an embodiment of an adaptive wireless relay networking data transmission method in the present invention;
[0059] Figure 2 A schematic diagram of a first embodiment of connecting a root device and a node device;
[0060] Figure 3 A schematic diagram of a first embodiment of connecting a root device and a node device;
[0061] Figure 4 A schematic diagram of a first embodiment of connecting a root device and a node device;
[0062] Figure 5 It is a schematic diagram of an embodiment of an adaptive wireless relay networking data transmission system in the present invention. DETAILED DESCRIPTION
[0063] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0064] See also Figure 1-Figure 5 This embodiment provides an adaptive wireless relay networking data transmission method and system:
[0065] An embodiment of an adaptive wireless relay networking data transmission method provided by the present invention includes: an adaptive wireless relay networking data transmission method, applied to a wireless communication system, wherein the wireless communication system includes a root device and a common device. Figure 1 As shown, the adaptive wireless relay networking data transmission method includes:
[0066] S100. The root device performs a networking operation for adding a sub-device to itself and generates a routing information table of the root device on the network, where the sub-device is a common device. The routing information table of the root device on the network includes the device ID of the current device, the device ID of the sub-device, the routing path of the sub-device connecting to the current device, the connection response time of each level of link, and the network status of the sub-device.
[0067] If the parent device of a common device is a root device, the common device is defined as a child device of the root device, and the root device is the parent device of the common device. Similarly, for two common devices, respectively denoted as common device A and common device B, if common device A is the parent device of common device B, common device B is defined as a child device of common device A, and common device A is defined as the parent device of common device B.
[0068] In one embodiment, the S100 includes the following steps:
[0069] S110. The root device generates its own online device routing information table, which is initially empty.
[0070] S120. The root device broadcasts a first networking instruction, where the first networking instruction includes a routing information table of online devices of the root device.
[0071] S130. If the root device receives a first response message within a first preset period after issuing a first networking instruction, the routing information table of the root device on the network is updated according to the first response message, and then S120 is executed; if the root device does not receive the first response message within the first preset period after issuing the first networking instruction, the root device ends the networking operation; wherein, the first response message includes the device ID of the ordinary device that issued the first response message.
[0072] The common devices around the root device that can receive the first networking instruction are defined as first-level sub-devices, the common devices around the first-level sub-devices that can receive the second networking instruction issued by the first-level sub-devices are defined as second-level sub-devices, the common devices around the second-level sub-devices that can receive the second networking instruction issued by the second-level sub-devices are defined as third-level sub-devices, and so on, the common devices around the X-th-level sub-devices that can receive the second networking instruction issued by the X-th-level sub-devices are defined as X+1-th-level sub-devices. The order of executing the networking operation is root device, first-level sub-device, second-level sub-device, ..., X-th-level sub-device.
[0073] For example, after receiving the first networking instruction, the first-level sub-device determines whether it is in the online device routing information table of the root device. If a first-level sub-device is not in the online device routing information table of the root device, the first-level sub-device sends a first response message to the root device, and the first response message includes the device ID of the first-level sub-device; if a first-level sub-device is in the online device routing information table of the root device, no response is made.
[0074] For example, after the root device issues the first networking instruction, it stops receiving the first correct first response information within the first preset period, updates its own network device routing information table according to the received first response information, and then issues the first networking instruction again. Repeat the above steps until the root device does not receive the correct first response information within the first preset period after issuing the first networking instruction, and then the root device ends the networking operation.
[0075] In one embodiment, the root device periodically performs networking operations automatically or by force.
[0076] S200. The root device detects the response time and online status of its own child device, and updates its own online device routing information table according to the response time and online status.
[0077] In one embodiment, the S200 includes:
[0078] S210. The root device sends a first online confirmation instruction to its own child device, wherein the first online confirmation instruction includes a device ID of a first node device, which is a child device among all child devices of the root device whose number of online confirmation operations in this round has not reached a preset value.
[0079] S220. If the root device receives the second response information sent by the first node device within the second preset period after issuing the first online confirmation instruction, the response time of this communication is recorded; if the root device does not receive the second response information sent by the first node device within the second preset period after issuing the first online confirmation instruction, the online status of the sub-device is offline.
[0080] For example, after receiving the first online confirmation instruction, the sub-device of the root device determines whether the first online confirmation instruction matches its own device ID. If so, it sends the second response information to the root device, otherwise, it does not respond.
[0081] S230. If the first node device still exists in all the child devices of the root device, execute S210; otherwise, execute S240.
[0082] S240: The root device updates its own online device routing information table according to the response time and online status.
[0083] S300. Each node device generates its own online device routing information table according to the online device routing information table sent by its parent device, and performs a networking operation for adding a child device to itself, where the node device is a common device that has been added as a child device. For example, if common device C is added as a child device by the root device, common device C is defined as a node device; similarly, if common device D is added as a child device by a node device, common device D is defined as a node device.
[0084] In one embodiment, the S300 includes the following steps:
[0085] S310. The node device generates its own online device routing information table according to the online device routing information table sent by its parent device.
[0086] S320. The node device broadcasts a second networking instruction, where the second networking instruction includes a routing information table of the networked devices of the node device.
[0087] S330. If the node device receives a third response message within the third preset period after issuing the second networking instruction, the network device routing information table of the node device is updated according to the third response message, and then S320 is executed; if the node device does not receive the third response message within the third preset period after issuing the second networking instruction, the node device ends the networking operation; wherein the third response message includes the device ID of the ordinary device that issued the third response message.
[0088] For example, a certain level X sub-device issues a second networking instruction, and after the level X+1 sub-device receives the second networking instruction, the level X+1 sub-device determines whether it is in the online device routing information table of the level X sub-device. If a certain level X+1 sub-device is not in the online device routing information table of the level X sub-device, the level X+1 sub-device sends a third response message to the level X sub-device, and the third response message includes the device ID of the level X+1 sub-device; if a certain level X+1 sub-device is in the online device routing information table of the level X sub-device, no response is made.
[0089] After the X-th level sub-device issues the second networking instruction, it stops receiving the third response information after receiving the first correct third response information within the third preset period, updates its own online device routing information table according to the received third response information, and then issues the second networking instruction again. Repeat the above steps until the X-th level sub-device does not receive the correct third response information within the third preset period after issuing the second networking instruction, then the X-th level sub-device ends the networking operation.
[0090] S400. Each node device detects the response time and online status of its own sub-device respectively, and updates its own online device routing information table according to the response time and online status.
[0091] The network status of the sub-device is used to calculate the communication success rate between the node device and the corresponding sub-device, and the communication success rate is used to subsequently generate the optimal master-sub-device routing table and the backup master-sub-device routing table.
[0092] In one embodiment, the communication success rate is calculated as follows: the root device or node device sends communication test commands multiple times to confirm the online status of the corresponding sub-device, and calculates the communication success rate between the root device or node device and the sub-device through the number of tests and the number of communication successes.
[0093] In one embodiment, taking a node device as an example, the node device detects the response time and online status of its own sub-device, and updates its own online device routing information table according to the response time and online status; specifically, the following steps are included:
[0094] S410. The node device sends a second online confirmation instruction to its own sub-device, where the second online confirmation instruction includes the device ID of the second node device, which is a sub-device among all sub-devices of the node device whose number of online confirmation operations in this round has not reached a preset value.
[0095] S420. If the node device receives the fourth response information sent by the second node device within the fourth preset period after issuing the second online confirmation instruction, the response time of this communication is recorded; if the node device does not receive the fourth response information sent by the second node device within the fourth preset period after issuing the second online confirmation instruction, the online status of the sub-device is offline.
[0096] For example, the X-th level sub-device sends a second online confirmation instruction to its own sub-device (the X+1-th level sub-device); after receiving the second online confirmation instruction, the X+1-th level sub-device determines whether the second online confirmation instruction matches its own device ID. If so, it sends a fourth response information to the X+1-th level sub-device, otherwise no response is made.
[0097] S430. If there is a second node device among all the sub-devices of the node device, execute S410; otherwise, execute S440.
[0098] S440. The node device updates its own online device routing information table according to the response time and online status.
[0099] S500. The root device or node device updates its own online device routing information table according to the online device routing information table of its own child device.
[0100] In one embodiment, the S500 includes the following steps:
[0101] S510. When the node device has its own online device routing information table updated, it sends the updated online device routing information table to its parent device.
[0102] S520. When the root device or node device receives the online device routing information table uploaded by its own child device, it updates its own online device routing information table.
[0103] S600. The root device calculates the routing paths between each node device and the root device according to its own online device routing information table, and forms an optimal master-sub-device routing table and at least one backup master-sub-device routing table according to the routing path.
[0104] Generally, when the optimal master-sub-device routing table fails to communicate, the backup master-sub-device routing table can be used for communication.
[0105] In one embodiment, the S600 includes the following steps:
[0106] S610. When the root device's online device routing information table is updated, the root device calculates the routing path between each node device and the root device based on the root device's device ID, the node device's device ID, the routing path between the node device and the root device, and the connection response time of each level of link in the online device routing information table.
[0107] S620. The root device forms an optimal master-sub-device routing table and at least one backup master-sub-device routing table according to the routing path. The optimal master-sub-device routing table includes the optimal routing paths between the root device and each node device, and the backup master-sub-device routing table includes the backup routing paths between the root device and each node device.
[0108] Figure 2 A schematic diagram of a first embodiment of connecting a root device and a node device, Figure 2 The optimal paths in include:
[0109] Root device 1 and node device 2: Downlink: root device 1 to node device 2; Uplink: node device 2 to root device 1;
[0110] Root device 1 and node device 3: Downlink: root device 1 to node device 3; Uplink: node device 3 to root device 1;
[0111] Root device 1 and node device 4: Downstream: root device 1 to node device 2, and then to node device 4;
[0112] Uplink: Node device 4 to node device 2, and then to root device 1;
[0113] Root device 1 and node device 5: Downstream: root device 1 to node device 2, then to node device 4, and then to node device 5;
[0114] Uplink: Node device 5 to node device 4, then to node device 2, and then to root device 1.
[0115] Figure 2 The optimal paths in include (not exhaustive examples):
[0116] Root device 1 and node device 2: Downstream: root device 1 to node device 3, and then to node device 2;
[0117] Uplink: Node device 2 to node device 3, and then to root device 1;
[0118] Root device 1 and node device 3: Downstream: root device 1 to node device 2, and then to node device 3;
[0119] Uplink: Node device 3 to node device 2, and then to root device 1;
[0120] Root device 1 and node device 4: Downlink 1: Root device 1 to node device 3, and then to node device 4;
[0121] Upstream 1: Node device 4 to node device 3, and then to root device 1;
[0122] Downstream 2: Root device 1 to node device 2, then to node device 3, and then to node device 4;
[0123] Upstream 2: Node device 4 to node device 3, then to node device 2, and then to root device 1;
[0124] Root device 1 and node device 5: Downstream: root device 1 to node device 2, then to node device 3, then to node device 4, and then to node device 5;
[0125] Uplink: Node device 5 to node device 4, then to node device 3, then to node device 2, and then to root device 1.
[0126] Figure 3 A schematic diagram of a second embodiment of connecting a root device and a node device, Figure 3 The optimal paths in include:
[0127] Root device 1 and node device 2: Downlink: root device 1 to node device 2; Uplink: node device 2 to root device 1;
[0128] Root device 1 and node device 3: Downlink: root device 1 to node device 3; Uplink: node device 3 to root device 1;
[0129] Root device 1 and node device 4: Downlink: root device 1 to node device 4; Uplink: node device 4 to root device 1;
[0130] Root device 1 and node device 5: Downstream: root device 1 to node device 4, and then to node device 5;
[0131] Uplink: Node device 5 to node device 4, and then to root device 1.
[0132] Figure 3 The optimal paths in include (not exhaustive examples):
[0133] Root device 1 and node device 2: Downstream: root device 1 to node device 3, and then to node device 2;
[0134] Uplink: Node device 2 to node device 3, and then to root device 1;
[0135] Root device 1 and node device 3: Downstream: root device 1 to node device 2, and then to node device 3;
[0136] Uplink: Node device 3 to node device 2, and then to root device 1;
[0137] Root device 1 and node device 4: Downlink 1: Root device 1 to node device 2, and then to node device 4;
[0138] Upstream 1: Node device 4 to node device 2, and then to root device 1;
[0139] Root device 1 and node device 5: Downlink: root device 1 to node device 5; Uplink: node device 5 to root device 1.
[0140] Figure 4 A schematic diagram of a third embodiment of connecting a root device and a node device, Figure 4 The optimal paths in include:
[0141] Root device 1 and node device 2: Downlink: root device 1 to node device 2; Uplink: node device 2 to root device 1;
[0142] Root device 1 and node device 3: Downlink: root device 1 to node device 3; Uplink: node device 3 to root device 1;
[0143] Root device 1 and node device 4: Downlink: root device 1 to node device 4; Uplink: node device 4 to root device 1;
[0144] Root device 1 and node device 5: Downlink: root device 1 to node device 5; Uplink: node device 5 to root device 1.
[0145] Figure 4 The optimal paths in include (not exhaustive examples):
[0146] Root device 1 and node device 2: Downstream: root device 1 to node device 3, and then to node device 2;
[0147] Uplink: Node device 2 to node device 3, and then to root device 1;
[0148] Root device 1 and node device 3: Downstream: root device 1 to node device 2, and then to node device 3;
[0149] Uplink: Node device 3 to node device 2, and then to root device 1;
[0150] Root device 1 and node device 4: Downlink 1: Root device 1 to node device 2, and then to node device 4;
[0151] Upstream 1: Node device 4 to node device 2, and then to root device 1;
[0152] Root device 1 and node device 5: Downlink 1: Root device 1 to node device 4, and then to node device 5;
[0153] Upstream 1: Node device 5 to node device 4, and then to root device 1.
[0154] In one embodiment, in S600, after the optimal master-sub-device routing table and the backup master-sub-device routing table are generated, the root device sends a routing test instruction to the target device, and updates the optimal master-sub-device routing table according to the test result.
[0155] Generally, in the networking process, specific values are obtained by testing the communication time and communication success rate between two devices. When testing, all paths in the optimal master-sub device routing table and the backup master-sub device routing table need to be tested.
[0156] S700. The root device transmits data with any node device according to the optimal master-sub-device routing table or the backup master-sub-device routing table.
[0157] In one embodiment, the S700 includes a data downlink transmission step, and the data downlink transmission step includes:
[0158] S711. The root device generates downlink path information according to the optimal master-sub-device routing table or the backup master-sub-device routing table.
[0159] S712. The root device combines the downlink path information and the first data to be sent into first data, and sends the first data to its next-level node device.
[0160] S713. After receiving the first data, each node device determines whether the target device is itself based on the downlink path information: if so, save the first data and complete the data downlink transmission; if not, execute S714.
[0161] S714. The node device determines whether it is a relay node based on the downlink path information: if so, forward the first data to its next-level node device marked in the downlink path information and execute S713; if not, discard the first data.
[0162] When the node device forwards the first data to its own next-level node device marked in the downlink path information, it uses broadcasting to send the first data to all sub-devices of the node device, and the corresponding sub-device determines whether to receive and process the data based on the downlink path information.
[0163] In one embodiment, the S700 further includes a data uplink transmission step, and the data uplink transmission step includes:
[0164] S721. The root device sends a data request message to the target device. When the root device sends a data request message to the target device, it is a data downlink transmission. For the specific process, see the data downlink transmission step.
[0165] S722. The target device generates uplink path information according to the downlink path information saved when receiving the data request information.
[0166] S723. The target device composes second data according to the uplink path information and the second data to be sent, and uploads the second data to its upper-level node device through the uplink path information.
[0167] S724. After receiving the second data, each node device determines whether it is a relay node based on the uplink path information: if so, forward the second data to its own upper-level node device marked in the uplink path information; if not, discard the second data.
[0168] S725. After receiving the second data, the root device completes the data uplink transmission.
[0169] In one embodiment, the adaptive wireless relay networking data transmission method further includes:
[0170] S800. After forming the optimal master-sub-device routing table and the backup master-sub-device routing table, the root device synchronizes the optimal master-sub-device routing table and the backup master-sub-device routing table to all node devices in the wireless communication system, and the node device performs data transmission with any node device other than the node device according to the optimal master-sub-device routing table or the backup master-sub-device routing table. The method of this embodiment realizes communication between any two devices in the wireless communication system.
[0171] An embodiment of an adaptive wireless relay networking data transmission system provided by the present invention includes: Figure 5 As shown, an adaptive wireless relay networking data transmission system includes a root device and a common device, wherein the common device is communicatively connected to the root device or common devices at different levels are communicatively connected to each other.
[0172] The root device is used to generate its own online device routing information table, and update its own online device routing information table according to the online device routing information table of its next-level ordinary device, and generate the optimal master-sub-device routing table and backup master-sub-device routing table according to its own online device routing information table.
[0173] The common device is used to generate its own online device routing information table according to the online device routing information table of its parent device, and update its own online device routing information table according to the online device routing information table of its next-level common device, and send the updated online device routing information table to its parent device when its own online device routing information table is updated.
[0174] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.
Claims
1. An adaptive wireless relay networking data transmission method, applied to a wireless communication system, wherein the wireless communication system includes a root device and a common device, characterized in that: The adaptive wireless relay networking data transmission method comprises: S100. The root device performs a networking operation for adding a sub-device to itself and generates a routing information table of the root device in the network, wherein the sub-device is a normal device; S200. The root device detects the response time and online status of its own sub-devices, and updates its own online device routing information table based on the response time and online status; S300. Each node device generates its own network device routing information table according to the network device routing information table sent by its parent device, and performs a networking operation for adding a child device to itself, wherein the node device is a common device that has been added as a child device; S400. Each node device detects the response time and online status of its own sub-device, and updates its own online device routing information table according to the response time and online status; S500. The root device or node device updates its own network device routing information table according to its own sub-device network device routing information table; S600. The root device calculates the routing path between each node device and the root device according to its own network device routing information table, and forms an optimal master-sub-device routing table and at least one backup master-sub-device routing table according to the routing path; S700. The root device performs data transmission with any node device according to the optimal master-sub-device routing table or the backup master-sub-device routing table; The online device routing information table includes the device ID of the current device, the device ID of the sub-device, the routing path of the sub-device connecting to the current device, the connection response time of each level of link, and the online status of the sub-device; The S700 includes a data downlink transmission step, and the data downlink transmission step includes: S711. The root device generates downlink path information according to the optimal master-sub-device routing table or the backup master-sub-device routing table; S712. The root device combines the downlink path information and the first data to be sent into first data, and sends the first data to its next-level node device; S713. After receiving the first data, each node device determines whether the target device is itself according to the downlink path information: if so, save the first data and complete the downlink data transmission; if not, execute S714; S714. The node device determines whether it is a relay node according to the downlink path information: if so, forwarding the first data to its next-level node device marked in the downlink path information, and executing S713; if not, discarding the first data; The S700 further includes a data uplink transmission step, and the data uplink transmission step includes: S721. The root device sends a data request message to the target device; S722. The target device generates uplink path information based on the downlink path information saved when receiving the data request information; S723. The target device forms the second data according to the uplink path information and the second data to be sent, and uploads the second data to its upper node device according to the uplink path information; S724. After receiving the second data, each node device determines whether it is a relay node according to the uplink path information: if so, forward the second data to its own upper-level node device marked in the uplink path information; if not, discard the second data; S625. After the root device receives the second data, it completes the uplink data transmission; The adaptive wireless relay networking data transmission method also includes: S800. After forming the optimal master-sub-device routing table and the backup master-sub-device routing table, the root device synchronizes the optimal master-sub-device routing table and the backup master-sub-device routing table to all node devices in the wireless communication system, and the node device transmits data with any node device other than the node device according to the optimal master-sub-device routing table or the backup master-sub-device routing table.
2. The adaptive wireless relay networking data transmission method according to claim 1, characterized in that: The S100 includes the following steps: S110. The root device generates its own network device routing information table, which is initially empty; S120. The root device broadcasts a first networking instruction, wherein the first networking instruction includes a routing information table of the root device on the network; S130. If the root device receives a first response message within a first preset period after issuing the first networking instruction, the routing information table of the root device in the network is updated according to the first response information, and then S120 is executed; if the root device does not receive the first response message within a first preset period after issuing the first networking instruction, the root device ends the networking operation; The first response information includes the device ID of the common device that sends the first response information.
3. The adaptive wireless relay networking data transmission method according to claim 1, characterized in that: The S200 includes: S210. The root device sends a confirmation instruction in the first network to its sub-device, wherein the confirmation instruction in the first network includes the device ID of the first node device, and the first node device is a sub-device of all sub-devices of the root device whose number of network confirmation operations in this round has not reached a preset value; S220. If the root device receives the second response information sent by the first node device within the second preset period after issuing the first online confirmation instruction, the response time of this communication is recorded; if the root device does not receive the second response information sent by the first node device within the second preset period after issuing the first online confirmation instruction, the online status of the sub-device is offline; S230. If the first node device still exists in all the child devices of the root device, execute S210, otherwise execute S240; S240: The root device updates its own online device routing information table according to the response time and online status.
4. The adaptive wireless relay networking data transmission method according to claim 1, characterized in that: The S300 includes the following steps: S310. The node device generates its own online device routing information table based on the online device routing information table sent by its parent device; S320. The node device broadcasts a second networking instruction, wherein the second networking instruction includes a network device routing information table of the node device; S330. If the node device receives a third response message within a third preset period after issuing the second networking instruction, the node device updates the network device routing information table according to the third response message, and then executes S320; if the node device does not receive the third response message within the third preset period after issuing the second networking instruction, the node device ends the networking operation; The third response information includes the device ID of the common device that sends the third response information.
5. The adaptive wireless relay networking data transmission method according to claim 1, characterized in that: The node device detects the response time and online status of its own sub-device, and updates its own online device routing information table according to the response time and online status, including: S410. The node device sends a second online confirmation instruction to its own sub-device, wherein the second online confirmation instruction includes the device ID of the second node device, and the second node device is a sub-device among all sub-devices of the node device whose number of online confirmation operations in this round has not reached a preset value; S420. If the node device receives the fourth response information sent by the second node device within the fourth preset period after issuing the second online confirmation instruction, the response time of this communication is recorded; if the node device does not receive the fourth response information sent by the second node device within the fourth preset period after issuing the second online confirmation instruction, the online status of the sub-device is offline; S430. If there is a second node device in all sub-devices of the node device, execute S410, otherwise execute S440; S440. The node device updates its own online device routing information table according to the response time and online status.
6. The adaptive wireless relay networking data transmission method according to claim 1, characterized in that: The S500 includes the following steps: S510. When the node device has an update in its own network device routing information table, it sends the updated network device routing information table to its parent device; S520. When the root device or node device receives the online device routing information table uploaded by its own child device, it updates its own online device routing information table.
7. An adaptive wireless relay networking data transmission system, characterized in that: It includes a root device and a common device, wherein the common device is communicatively connected to the root device or common devices at different levels are communicatively connected; The root device is used to generate its own online device routing information table, and update its own online device routing information table according to the online device routing information table of its own next-level ordinary device, and generate the optimal master-sub-device routing table and the backup master-sub-device routing table according to its own online device routing information table; The common device is used to generate its own online device routing information table according to the online device routing information table of its parent device, and update its own online device routing information table according to the online device routing information table of its next-level common device, and send the updated online device routing information table to its parent device when its own online device routing information table is updated; The root device and the common device are used to perform data transmission according to the data transmission method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Multi-hop self-organizing sleep routing algorithm
CN104320829A
Dynamic ad hoc network construction method of multiple intelligent household devices
CN104967545A
Wireless relay self-networking method with anti-jamming performance
CN107770832A
Communication device, communication method
WO2015040821A1
