Configuration updating method of wireless ad hoc network

By using a dedicated control channel to transmit configuration information data in wireless ad hoc network, reducing metadata overhead, and setting update flags and count fields in the data, the problems of low configuration update efficiency and consistency in the prior art are solved, and efficient and synchronous configuration updates are achieved.

CN119814559AActive Publication Date: 2025-04-11SINOMATIN TECH SHENZHEN CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510023943.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-07
Publication Date
2025-04-11
Estimated Expiration
2045-01-07

AI Technical Summary

Technical Problem

The existing wireless ad hoc network's full-network configuration synchronous update method relies on broadcast or multicast, resulting in increased metadata of data packets, occupies more network bandwidth, and affects data transmission efficiency and performance.

Method used

Transfer configuration information data through a dedicated control channel to reduce metadata overhead, and set the update flag field and update node count field in the configuration information data to ensure that nodes update configurations simultaneously.

Benefits of technology

Improve the efficiency and performance of configuration information data transmission, reduce network overhead, and ensure consistency of wireless ad hoc network configuration updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814559A_ABST
    Figure CN119814559A_ABST
Patent Text Reader

Abstract

The invention discloses a configuration updating method of a wireless ad hoc network, which relates to the technical field of wireless ad hoc networks, and comprises the following steps: S1, the wireless ad hoc network receives an external configuration command, and nodes are divided into master nodes and slave nodes; s2, the master node updates the first configuration information data according to the external configuration command, and sends the first configuration information data to the slave node; s3, updating the second configuration information data by the slave node; s4, after confirming that all the slave nodes have updated the second configuration information data, the master node updates the value of a first update mark in the first configuration information data, and sends the first configuration information data to the slave nodes; s5, after the slave node updates the value of the second update flag in the second configuration information data, the slave node updates own configuration; and S6, after the master node confirms that all the slave nodes are updated in configuration, the master node updates own configuration. In this way, unnecessary network overhead is reduced, and the efficiency and performance of configuration information data transmission are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless ad hoc networks, and in particular to a configuration updating method for a wireless ad hoc network. Background Art

[0002] Wireless Ad Hoc Network is a special wireless communication network consisting of multiple wireless nodes (such as mobile devices, sensors, etc.). These nodes can achieve communication and data transmission through mutual cooperation and routing selection without a central control node.

[0003] Wireless ad hoc networks are widely used in the fields of Internet of Things, emergency communications, military communications, etc., which have high demands for rapid deployment and flexible configuration. In order to meet these demands, wireless ad hoc networks need to adopt an effective full-network configuration synchronization update strategy to ensure that all nodes can update configurations in a coordinated manner, thereby maintaining the stability and reliability of communications.

[0004] At present, the common methods for synchronously updating the configuration of the entire network of wireless ad hoc networks mainly adopt broadcast and multicast, and the implementation of broadcast and multicast depends on the network data protocol. This requires that the data packets (broadcast packets, multicast packets) carry not only the configuration update information data, but also the metadata of the network data protocol (such as the protocol header). These additional metadata increase the length of the data packet to a certain extent and occupy more network bandwidth. Especially in large-scale networks, it will cause relatively large network overhead, affect the normal transmission of other data, and reduce the data transmission efficiency and performance of the wireless ad hoc network.

[0005] Therefore, the present invention proposes a configuration update method for a wireless ad hoc network to solve the above technical problem. Summary of the invention

[0006] The present invention proposes a configuration update method for a wireless ad hoc network. By using a dedicated control channel to transmit configuration information data, unnecessary metadata network overhead in the wireless ad hoc network configuration update process is reduced, and the efficiency and performance of configuration information data transmission are improved; by setting an update flag field in the configuration information data, each node can synchronously update its own configuration, thereby ensuring the consistency of the wireless ad hoc network configuration update.

[0007] The present invention proposes a configuration update method for a wireless ad hoc network, comprising the following steps:

[0008] S1, the wireless ad hoc network receives external configuration commands and divides all nodes into master nodes and slave nodes;

[0009] S2. The master node updates its first configuration information data according to the external configuration command, and sends the first configuration information data to the slave node;

[0010] S3, the slave node receives the first configuration information data sent by the master node, and updates its own second configuration information data according to the first configuration information data;

[0011] S4, after the master node confirms that all the slave nodes have updated the second configuration information data, the master node updates the value of the first update flag in the first configuration information data, and sends the first configuration information data to the slave nodes;

[0012] S5, the slave node receives the first configuration information data sent by the master node, updates the value of the second update flag in the second configuration information data according to the first configuration information data, and updates its own configuration according to the second configuration information data;

[0013] S6. After the master node confirms that all the slave nodes on the network have updated the value of the second update flag, it updates its own configuration according to the first configuration information data and changes itself into the slave node.

[0014] Furthermore, the first configuration information data includes a first node ID, a first master-slave node flag, a first update flag, a first update node count, and a first configuration parameter, and an initial value of the first update node count is 0.

[0015] Furthermore, the second configuration information data includes a second node ID, a second master-slave node flag, a second whether to update flag, a second update node count, and a second configuration parameter.

[0016] Furthermore, the step S1 specifically includes the following steps:

[0017] S11, any node in the wireless ad hoc network receives an external configuration command, the node becomes the master node, and other nodes become slave nodes;

[0018] S12. The master node counts the number N of slave nodes according to network topology information.

[0019] Furthermore, the step S2 specifically includes the following steps:

[0020] S21, the master node updates the value of the first configuration parameter according to the configuration information data sent by the external configuration command;

[0021] S22. The master node periodically sends the first configuration information data to the slave node through a dedicated control channel.

[0022] Furthermore, the step S3 specifically includes the following steps:

[0023] S31, the slave node receives the first configuration information data sent by the master node through a dedicated control channel;

[0024] S32, the slave node updates the second configuration parameter according to the first configuration information data, so that the value of the second configuration parameter is the same as the value of the first configuration parameter;

[0025] S33. The slave node periodically sends the second configuration information data to each node through the dedicated control channel.

[0026] Furthermore, the step S4 specifically includes the following steps:

[0027] S41, the master node receives the second configuration information data sent by the slave node through a dedicated control channel;

[0028] S42, the master node compares the second configuration information data with the first configuration information data, and when the value of the second configuration parameter is the same as the value of the first configuration parameter for the first time, the master node adds 1 to the value of the first update node count;

[0029] S43: When the value of the first update node count is the same as the value of the number of slave nodes N, the master node confirms that all the slave nodes have updated the second configuration parameter;

[0030] S44, the master node sets the value of the first whether to update flag to a;

[0031] S45. The master node periodically sends the first configuration information data to the slave node through the dedicated control channel.

[0032] Furthermore, the step S5 specifically includes the following steps:

[0033] S51, the slave node receives first configuration information data sent by the master node through the dedicated control channel;

[0034] S52: When the slave node detects that the value of the first whether-to-update flag is a, the slave node sets the value of the second whether-to-update flag to a;

[0035] S53, the slave node periodically sends the second configuration information data to each node through the dedicated control channel;

[0036] S54: The slave node updates its own configuration according to the second configuration parameters.

[0037] Furthermore, the step S6 specifically includes the following steps:

[0038] S61, the master node receives the second configuration information data sent by the slave node through the dedicated control channel;

[0039] S62, the master node compares the second configuration information data with the second configuration information data, and when the value of the second update flag is a for the first time, and the value of the second configuration parameter is the same as the value of the first configuration parameter, the master node reduces the value of the first update node count by 1;

[0040] S63. When the following two conditions are met:

[0041] (1) The value of the first update node count is 0;

[0042] (2) The value of the first update node count is less than the value of the number of slave nodes N and the value of the first update node count has not changed to 0 within t seconds;

[0043] When one of the conditions is met, the master node confirms that all the slave nodes on the network have updated the value of the second update flag;

[0044] S64, the master node updates its own configuration according to the first configuration parameters;

[0045] S65. The master node changes itself into the slave node.

[0046] Furthermore, the dedicated control channel transmits data through a dedicated control protocol, and the content of the dedicated control protocol includes a node ID bit, a master-slave node flag bit, an update flag bit, an update node count bit, a configuration parameter bit, and a reserved bit.

[0047] The technical effects of the present invention are as follows:

[0048] (1) The present invention uses a dedicated control channel to transmit configuration information data through a dedicated control protocol. On the one hand, there is no need to add redundant data such as metadata content (such as protocol header) in the network protocol, reducing unnecessary metadata overhead, and professionally designing the arrangement, length, and content of each bit field to achieve compact data transmission, which to a certain extent reduces the network overhead in the wireless ad hoc network configuration update process. On the other hand, the dedicated control channel focuses on the transmission of configuration information, avoiding mixing with other business data or control information, improving bandwidth utilization, and to a certain extent improving the efficiency and performance of configuration information data transmission;

[0049] (2) The present invention sets an update flag field and an update node count field in the configuration information data. During the wireless self-organizing network configuration update process, the master node can update the value of the first update flag after determining that the second configuration parameters of all slave nodes have been aligned with the first configuration parameters, so that the slave node can determine whether to update its own configuration according to the second configuration parameter based on the received value of the first update flag. In this way, all nodes in the wireless self-organizing network can synchronously update their own configurations, ensuring the consistency of the wireless self-organizing network configuration update.

[0050] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0052] Figure 1 It is a flowchart of the steps of the present invention.

[0053] Figure 2 The present invention is a flow chart of the method for synchronously updating the configuration of the entire wireless ad hoc network.

[0054] Figure 3 This is a bit field allocation diagram for the dedicated control protocol of the present invention.

[0055] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.

[0058] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0059] The present invention proposes a method for synchronously updating the configuration of the entire network of an ad hoc network, comprising the following steps:

[0060] S1, the wireless ad hoc network receives external configuration commands and divides all nodes into master nodes and slave nodes;

[0061] S2. The master node updates its first configuration information data according to the external configuration command, and sends the first configuration information data to the slave node;

[0062] S3, the slave node receives the first configuration information data sent by the master node, and updates its own second configuration information data according to the first configuration information data;

[0063] S4, after the master node confirms that all slave nodes have updated the second configuration information data, it updates the value of the first update flag in the first configuration information data and sends the first configuration information data to the slave nodes;

[0064] S5. The slave node receives the first configuration information data sent by the master node, updates the value of the second update flag in the second configuration information data according to the first configuration information data, and updates its own configuration according to the second configuration information data;

[0065] S6. After the master node confirms that all slave nodes on the network have updated the value of the second update flag, it updates its own configuration according to the first configuration information data and changes itself into a slave node.

[0066] Preferably, the dedicated control channel is used to transmit the first configuration information data and the second configuration information data, and the bit field is 40 bits in total, and the content of the dedicated control protocol is:

[0067] Bit[0] is the master-slave node flag. When the value of the master-slave node flag is 1, it indicates that this is the first configuration information data sent by the master node. When the value of the master-slave node flag is 0, it indicates that this is the second configuration information data sent by the slave node.

[0068] Bit[1] is the update flag, which is the key to ensure the consistency of configuration updates. The initial value of the update flag of all nodes is 0, indicating that there is no configuration update requirement. When the value of the second configuration parameter of all slave nodes is the same as the value of the first configuration parameter of the master node, the master node sets the value of the first update flag to 1 and sends it to the slave node. When the slave node recognizes that the value of the first update flag sent by the master node is 1, the slave node updates its own configuration according to the second configuration parameter;

[0069] Bit[2:4] is the broadband signal bandwidth bit, indicating the broadband signal bandwidth size that each node in the wireless ad hoc network needs to configure;

[0070] Bit[5:11] is the transmit power bit, indicating the transmit power that each node in the wireless ad hoc network needs to configure;

[0071] Bit[12:15] is the traffic gear bit, which indicates the traffic gear size that needs to be configured for each node in the wireless ad hoc network;

[0072] Bit[16:23] is the wireless frequency bit, indicating the wireless frequency that each node in the wireless ad hoc network needs to be configured;

[0073] Bit [24:27] indicates the update node count bit. In the phase of aligning the second configuration parameter of the slave node with the first configuration parameter of the master node, the value of the first update node count is used by the master node to count the number of slave nodes that have updated the second configuration parameter. In the phase of updating the slave node’s own configuration, the value of the first update node count is used by the master node to count the number of slave nodes that have updated their own configuration.

[0074] Bit[28:35] indicates the node ID, which is used to uniquely identify each node device in the wireless ad hoc network to ensure that each node in the wireless ad hoc network can be accurately identified;

[0075] Bit[36:39] is reserved for possible future expansion or special purposes.

[0076] Furthermore, the first configuration information data includes a first node ID, a first master-slave node flag, a first update flag, a first update node count, and a first configuration parameter, and an initial value of the first update node count is 0.

[0077] Furthermore, the second configuration information data includes a second node ID, a second master-slave node flag, a second whether-to-update flag, a second update node count, and second configuration parameters.

[0078] Preferably, the bit field of the dedicated control channel is designed with bit[36:39] reserved bits, and the first configuration information data and the second configuration information data may also be added with other contents as required.

[0079] Furthermore, step S1 specifically includes the following steps:

[0080] S11, any node in the wireless ad hoc network receives an external configuration command, the node becomes the master node, and other nodes become slave nodes;

[0081] S12. The master node counts the number N of slave nodes according to the network topology information.

[0082] Preferably, in a wireless ad hoc network, when all nodes have not received an external configuration command, there is no distinction between master nodes and slave nodes in the wireless ad hoc network, and the values ​​of the master-slave node flags of all nodes are 0. When any node receives configuration information data sent by an external configuration command, the node becomes the master node and sets the value of its own master-slave node flag to 1, and other nodes become slave nodes.

[0083] Preferably, in the initial state, in the master node, the value of the first master-slave node flag is 1, the value of the first update flag is 0, and the value of the first update node count is 0; in the slave node, the value of the second master-slave node flag is 0, and the value of the second update flag is 0.

[0084] Preferably, the first configuration parameters include a first broadband signal bandwidth, a first transmission power, a first flow rate gear, and a first wireless frequency; the second configuration parameters include a second broadband signal bandwidth, a second transmission power, a second flow rate gear, and a second wireless frequency.

[0085] Preferably, in a wireless ad hoc network, the master node periodically sends the first configuration information data to each slave node through a dedicated control channel, and the slave node periodically sends the second configuration information data to the master node and other slave nodes through a dedicated control channel; the master node responds to the second configuration information data sent by each slave node in real time; but the slave node only responds to the first configuration information data sent by the master node in real time, and ignores the second configuration information data sent by other slave nodes.

[0086] Preferably, the slave node determines that the node is the master node according to the value of the first master-slave node flag.

[0087] Preferably, the master node counts the number N of slave nodes based on the network topology information. On the one hand, it is convenient for the master node to confirm by counting whether the second configuration parameters of all slave nodes have been aligned with the first configuration parameters of the master node. On the other hand, after the master node confirms by counting the number of slave nodes whose second update flags are aligned with the first update flag of the master node, the master node can confirm whether to update its own configuration according to the first configuration parameters.

[0088] Furthermore, step S2 specifically includes the following steps:

[0089] S21, the master node updates the value of the first configuration parameter according to the configuration information data sent by the external configuration command;

[0090] S22. The master node periodically sends the first configuration information data to the slave node through a dedicated control channel.

[0091] Preferably, after the master node updates the value of its first configuration parameter according to the configuration information data sent by the external configuration command, it periodically sends its first configuration information data to each slave node.

[0092] Furthermore, step S3 specifically includes the following steps:

[0093] S31, the slave node receives first configuration information data sent by the master node through a dedicated control channel;

[0094] S32, the slave node updates the second configuration parameter according to the first configuration information data, so that the value of the second configuration parameter is the same as the value of the first configuration parameter;

[0095] S33. The slave node periodically sends the second configuration information data to each node through a dedicated control channel.

[0096] Preferably, after updating the value of its second configuration parameter according to the first configuration information data, the slave node periodically sends the second configuration information data to each node so that the master node counts the number of slave nodes whose second configuration parameters have been aligned with the first configuration parameter.

[0097] Furthermore, step S4 specifically includes the following steps:

[0098] S41, the master node receives second configuration information data sent by the slave node through a dedicated control channel;

[0099] S42, the master node compares the second configuration information data with the first configuration information data, and when the value of the second configuration parameter is the same as the value of the first configuration parameter for the first time, the master node increases the value of the first update node count by 1;

[0100] S43, when the value of the first update node count is the same as the value of the number of slave nodes N, the master node confirms that all slave nodes have updated the second configuration parameter;

[0101] S44, the master node sets the value of the first whether to update flag to a;

[0102] S45. The master node periodically sends the first configuration information data to the slave node through a dedicated control channel.

[0103] Preferably, the second node ID is a unique identifier of the slave node, and the master node determines which slave node sends the second configuration information data through the second node ID in the received second configuration information data.

[0104] Preferably, any slave node will periodically send the second configuration information data to the master node, so after the master node receives the second configuration information data sent by any slave node, it will increase the value of the first update node count by 1 only when the value of the second configuration parameter of the slave node is the same as the value of the first configuration parameter of the master node for the first time. After that, when the master node receives the second configuration information data sent by the node again, the value of its second configuration parameter is also the same as the value of the first configuration parameter, but the value of the first update node count is no longer increased by 1.

[0105] Preferably, when the value of the first update node count is the same as the value of the number of slave nodes N, the master node confirms that all slave nodes have updated the second configuration information data, that is, the master node confirms that the second configuration parameters of all slave nodes are aligned with the first configuration parameters.

[0106] Preferably, the value of a is 1. After the master node confirms that the second configuration parameters of all slave nodes are aligned with the first configuration parameters, the value of the first update flag is set to 1, indicating that the configuration update process has been completed, and the first configuration information data with the first update flag value of 1 is periodically sent to the slave node as a configuration update instruction.

[0107] Furthermore, step S5 specifically includes the following steps:

[0108] S51, the slave node receives first configuration information data sent by the master node through a dedicated control channel;

[0109] S52, when the slave node detects that the value of the first whether to update flag is a, the slave node sets the value of the second whether to update flag to a;

[0110] S53, the slave node periodically sends the second configuration information data to each node through a dedicated control channel;

[0111] S54. The slave node updates its own configuration according to the second configuration parameter.

[0112] Preferably, the value of a is 1. When the slave node detects that the value of the first update flag in the received first configuration information data is 1, it is equivalent to the slave node receiving the configuration update instruction sent by the master node.

[0113] Preferably, after receiving the configuration update instruction from the node, the slave node executes the following steps in order:

[0114] S52, the slave node sets the value of the second whether to update flag to 1;

[0115] S53, the slave node periodically sends the second configuration information data to each node through a dedicated control channel, so that the master node counts the number of slave nodes that have received the configuration update instruction, and after the slave node periodically sends the second configuration information data a certain number of times n (set according to actual needs), the slave node executes step S54, preferably, n is 5 times, that is, after the slave node periodically sends the second configuration information data 5 times, the slave node executes step S54;

[0116] S54. The slave node updates its configuration according to the second configuration parameters, that is, the slave node updates its configuration according to the second broadband signal bandwidth, the second transmission power, the second traffic gear, and the second wireless frequency, and the slave node sets the value of the second update flag to the initial value 0.

[0117] Furthermore, step S6 specifically includes the following steps:

[0118] S61, the master node receives second configuration information data sent by the slave node through a dedicated control channel;

[0119] S62, the master node compares the second configuration information data with the second configuration information data, and when the value of the second update flag is a for the first time, and the value of the second configuration parameter is the same as the value of the first configuration parameter, the master node reduces the value of the first update node count by 1;

[0120] S63. When the following two conditions are met:

[0121] (1) The value of the first updated node count is 0;

[0122] (2) The value of the first update node count is less than the value of the number of slave nodes N and the value of the first update node count has not changed to 0 within t seconds;

[0123] When one of the conditions is met, the master node confirms that all slave nodes on the network have updated the value of the second whether to update the flag;

[0124] S64. The master node updates its configuration according to the first configuration parameter;

[0125] S65. The master node changes itself into a slave node.

[0126] Preferably, the value of a is 1, and the master node parses and receives the second configuration information data sent by any slave node. When the value of the second update flag of the slave node is 1 for the first time, and the value of the second configuration parameter of the slave node is the same as the value of the first configuration parameter of the master node, on the one hand, it indicates that the master node confirms that the slave node has received the configuration update instruction sent by the master node, and on the other hand, it indicates that the master node once again confirms that the second configuration parameter of the slave node has been aligned with the first configuration parameter. At this time, the master node subtracts 1 from the value of the first update node count.

[0127] Preferably, when the value of the first update node count is 0, it indicates that the master node has confirmed that all slave nodes have received the configuration update command sent by the master node, and the values ​​of the second configuration parameters of all slave nodes have been aligned with the values ​​of the first configuration parameters. At this time, the master node updates its own configuration according to the first configuration parameter, that is, the master node updates its own configuration according to the first broadband signal bandwidth, the first transmission power, the first traffic gear, and the first wireless frequency, and sets the value of the first master-slave node flag to 0. At this time, there is no master node in the entire network, and all nodes no longer respond to the configuration information data of other nodes. There is no distinction between master and slave nodes in the wireless self-organizing network, and the configuration update of the wireless self-organizing network is completed.

[0128] Preferably, the value of t is 10. When the value of the first update node count is less than the value of the number of slave nodes N and the value of the first update node count has not changed to 0 within 10 seconds, it means that in step S63, due to interference with individual slave nodes, the master node accidentally did not receive the second configuration information data sent by the slave node (result feedback on whether the slave node received the configuration update instruction), but the waiting time has exceeded 10 seconds, the master node no longer waits, and the master node will update its own configuration to ensure the continued execution of the process, that is, when the waiting time exceeds 10 seconds, the master node no longer waits. After the master node updates its own configuration according to the first broadband signal bandwidth, the first transmission power, the first traffic gear, and the first wireless frequency, the master node sets the value of the first master-slave node flag to 0. At this time, there is no master node in the entire network, and all nodes no longer respond to the configuration information data of other nodes. There is no distinction between master and slave nodes in the wireless self-organizing network, and the configuration update of the wireless self-organizing network is completed.

[0129] Furthermore, the dedicated control channel transmits data through a dedicated control protocol, and the content of the dedicated control protocol includes a node ID bit, a master-slave node flag bit, an update flag bit, an update node count bit, a configuration parameter bit, and a reserved bit.

[0130] Preferably, the configuration parameter bits include broadband signal bandwidth bits, transmission power bits, flow gear bits, and wireless frequency bits.

[0131] Preferably, the reserved position can be set according to actual needs.

[0132] Preferably, the content of the exclusive control protocol can be adjusted and designed according to the actual needs of wireless ad hoc network configuration update.

[0133] The above description is only an exemplary embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the technical concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A configuration update method for a wireless ad hoc network, characterized in that: The following steps are involved: S1, the wireless ad hoc network receives external configuration commands and divides all nodes into master nodes and slave nodes; S2. The master node updates its first configuration information data according to the external configuration command, and sends the first configuration information data to the slave node; S3, the slave node receives the first configuration information data sent by the master node, and updates its own second configuration information data according to the first configuration information data; S4, after the master node confirms that all the slave nodes have updated the second configuration information data, the master node updates the value of the first update flag in the first configuration information data, and sends the first configuration information data to the slave nodes; S5, the slave node receives the first configuration information data sent by the master node, updates the value of the second update flag in the second configuration information data according to the first configuration information data, and updates its own configuration according to the second configuration information data; S6. After the master node confirms that all the slave nodes on the network have updated the value of the second update flag, it updates its own configuration according to the first configuration information data and changes itself into the slave node.

2. A method for synchronously updating the whole network configuration of an ad hoc network according to claim 1, characterized in that: The first configuration information data includes a first node ID, a first master-slave node flag, a first update flag, a first update node count, and a first configuration parameter. The initial value of the first update node count is 0.

3. A method for synchronously updating the whole network configuration of an ad hoc network according to claim 2, characterized in that: The second configuration information data includes a second node ID, a second master-slave node flag, a second whether-to-update flag, a second update node count, and a second configuration parameter.

4. A method for synchronously updating the whole network configuration of an ad hoc network according to claim 3, characterized in that: The step S1 specifically includes the following steps: S11, any node in the wireless ad hoc network receives an external configuration command, the node becomes the master node, and other nodes become slave nodes; S12. The master node counts the number N of slave nodes according to network topology information.

5. A method for synchronously updating the whole network configuration of an ad hoc network according to claim 4, characterized in that: The step S2 specifically includes the following steps: S21, the master node updates the value of the first configuration parameter according to the configuration information data sent by the external configuration command; S22. The master node periodically sends the first configuration information data to the slave node through a dedicated control channel.

6. A method for synchronously updating the whole network configuration of an ad hoc network according to claim 5, characterized in that: The step S3 specifically comprises the following steps: S31, the slave node receives the first configuration information data sent by the master node through a dedicated control channel; S32, the slave node updates the second configuration parameter according to the first configuration information data, so that the value of the second configuration parameter is the same as the value of the first configuration parameter; S33. The slave node periodically sends the second configuration information data to each node through the dedicated control channel.

7. A method for synchronously updating the whole network configuration of an ad hoc network according to claim 6, characterized in that: The step S4 specifically comprises the following steps: S41, the master node receives the second configuration information data sent by the slave node through a dedicated control channel; S42, the master node compares the second configuration information data with the first configuration information data, and when the value of the second configuration parameter is the same as the value of the first configuration parameter for the first time, the master node adds 1 to the value of the first update node count; S43: When the value of the first update node count is the same as the value of the number of slave nodes N, the master node confirms that all the slave nodes have updated the second configuration parameter; S44, the master node sets the value of the first whether to update flag to a; S45. The master node periodically sends the first configuration information data to the slave node through the dedicated control channel.

8. A method for synchronously updating the whole network configuration of an ad hoc network according to claim 7, characterized in that: The step S5 specifically comprises the following steps: S51, the slave node receives first configuration information data sent by the master node through the dedicated control channel; S52: When the slave node detects that the value of the first whether-to-update flag is a, the slave node sets the value of the second whether-to-update flag to a; S53, the slave node periodically sends the second configuration information data to each node through the dedicated control channel; S54: The slave node updates its own configuration according to the second configuration parameters.

9. A method for synchronously updating the whole network configuration of an ad hoc network according to claim 8, characterized in that: The step S6 specifically comprises the following steps: S61, the master node receives the second configuration information data sent by the slave node through the dedicated control channel; S62, the master node compares the second configuration information data with the second configuration information data, and when the value of the second update flag is a for the first time, and the value of the second configuration parameter is the same as the value of the first configuration parameter, the master node reduces the value of the first update node count by 1; S63. When the following two conditions are met: (1) The value of the first update node count is 0; (2) The value of the first update node count is less than the value of the number of slave nodes N and the value of the first update node count has not changed to 0 within t seconds; When one of the conditions is met, the master node confirms that all the slave nodes on the network have updated the value of the second update flag; S64, the master node updates its own configuration according to the first configuration parameters; S65. The master node changes itself into the slave node.

10. A method for synchronously updating the whole network configuration of an ad hoc network according to claim 9, characterized in that: The dedicated control channel transmits data via a dedicated control protocol, the content of which includes a node ID bit, a master-slave node flag bit, an update flag bit, an update node count bit, a configuration parameter bit, and a reserved bit.

Citation Information

Patent Citations

  • Hardware updating method, master node, slave node and server cluster

    CN107147719A

  • Cluster reconstruction method and system

    CN115242856A

  • Method and apparatus for transmitting sensor data in a wireless network

    US20150350329A1