Distributed emergency resource node data consistency coordination system for weak network environment
By calculating the spatial attenuation gradient and electing the dominant node using the one-way channel capacity, and employing a continuous carrier feedback mechanism, the communication deadlock problem in field emergency rescue was solved, achieving efficient data synchronization and consistency of the distributed system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING HONGCHENG INNOVATION TECH CO LTD
- Filing Date
- 2026-04-29
- Publication Date
- 2026-06-23
AI Technical Summary
In scenarios such as emergency rescue in the wild, the non-reciprocal environment caused by the uneven terrain and highly dynamic micro-meteorological fluid field of distributed resource nodes leads to communication deadlocks in unidirectional networks due to traditional symmetric handshakes and cooperative protocols, which deplete battery power and fail to achieve resource ledger consistency.
By calculating the spatial attenuation gradient vector and the one-way channel capacity, a dominant node is elected and reverse feedback is performed using a pure unmodulated continuous sinusoidal carrier. Combined with a carrier power integral verification mechanism, data synchronization is achieved.
It effectively overcomes communication deadlock, reduces unnecessary energy consumption of nodes, and improves the data synchronization consistency and success rate of distributed systems in harsh environments.
Smart Images

Figure CN122269233A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of weak network communication technology, and more specifically, to a distributed emergency resource node data consistency and coordination system for weak network environments. Background Technology
[0002] In scenarios such as emergency rescue in the wild, distributed resource nodes need to network and coordinate data in complex terrains. Existing distributed consensus algorithms (such as Raft or Paxos protocols) typically rely on symmetrical bidirectional communication network mechanisms. However, real-world environments are often characterized by varied terrain (such as canyons and mountain shelters) and highly dynamic microclimate fluid fields (such as valley inversion layers and sudden changes in water vapor pressure caused by vegetation transpiration). These variable environmental factors lead to significant differences in the propagation resistance of electromagnetic waves in different directions, resulting in severe non-reciprocity (i.e., unidirectional connectivity) in space communication links. In such severe non-reciprocity environments, data packets sent by the master node can reach slave nodes by adapting to the terrain and dielectric properties, but the digital acknowledgment packets (ACKs) from slave nodes are often swallowed up by environmental attenuation during reverse transmission. Traditional symmetrical handshake and coordination protocols are prone to misinterpreting the lack of acknowledgment packets as slave node disconnection when facing such unidirectional networks, thus triggering endless timeout retransmissions and re-election processes. This will not only quickly deplete the limited battery power of field nodes, but also cause the system to fall into election deadlock, making it impossible for the entire network's resource ledger to reach consensus for a long time, which seriously restricts the reliability and response efficiency of the field distributed emergency system. Summary of the Invention
[0003] This invention provides a distributed emergency resource node data consistency and coordination system for weak network environments, which solves the technical problems mentioned in the background.
[0004] This invention provides a distributed emergency resource node data consistency and coordination system for weak network environments, applicable to networks containing multiple nodes, including: For any first node and second node in the network, calculate the spatial attenuation gradient vector based on the transmit power of the first node and the receive power of the second node; Based on the background noise power of the second node and the spatial attenuation gradient vector, the one-way channel capacity from the first node to the second node is calculated. Based on the one-way channel capacity and the amount of data to be synchronized from each node to the other nodes, the synchronization energy consumption value of each node is calculated, and the node with the lowest synchronization energy consumption value in the whole network is established as the dominant node, and the other nodes are established as slave nodes. The master node continuously sends the amount of data to be synchronized based on the one-way channel capacity, and obtains the cumulative received data amount of each slave node; The slave node calculates the feedback carrier transmit power based on the effective data reception rate of the accumulated received data and the inverse spatial attenuation gradient vector, and transmits a continuous carrier signal accordingly. The master node obtains the carrier received power of each slave node, and performs time definite integration in combination with the spatial loss compensation coefficient to obtain the total network synchronous energy consumption integral. When the ratio of the total energy consumption of the entire network synchronization to the theoretical minimum total energy consumption of synchronization is rounded down, causing a sudden change in the status flag, the persistent storage of the data to be synchronized is triggered.
[0005] The beneficial effects of this invention are as follows: By sensing the spatial dielectric attenuation gradient and a priori limiting the unidirectional channel capacity, employing a pure, unmodulated continuous sinusoidal carrier for reverse feedback, and combining this with the dominant node's integral verification mechanism for carrier power, this method effectively overcomes the communication deadlock problem caused by the obstruction of unidirectional electromagnetic wave connectivity in complex outdoor environments. This method avoids the large number of invalid retransmissions and election storms generated by traditional bidirectional handshake protocols in situations of network asymmetry, significantly reduces unnecessary energy consumption of nodes, and improves the consistency and success rate of data synchronization in distributed systems under harsh geological and meteorological conditions. Attached Figure Description
[0006] Figure 1 This is a flowchart of the distributed emergency resource node data consistency and collaboration system for weak network environments according to the present invention. Detailed Implementation
[0007] The subject matter described herein will now be discussed with reference to exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and implement the subject matter described herein, and changes may be made to the function and arrangement of the elements discussed without departing from the scope of this specification. Various processes or components may be omitted, substituted, or added as needed in the examples. Furthermore, features described in some examples may be combined in other examples.
[0008] like Figure 1 As shown, a distributed emergency resource node data consistency and coordination system for weak network environments is applied to networks containing multiple nodes, including: For any first node and second node in the network, calculate the spatial attenuation gradient vector based on the transmit power of the first node and the receive power of the second node; Based on the background noise power of the second node and the spatial attenuation gradient vector, the one-way channel capacity from the first node to the second node is calculated. Based on the one-way channel capacity and the amount of data to be synchronized from each node to the other nodes, the synchronization energy consumption value of each node is calculated, and the node with the lowest synchronization energy consumption value in the whole network is established as the dominant node, and the other nodes are established as slave nodes. The master node continuously sends the amount of data to be synchronized based on the one-way channel capacity, and obtains the cumulative received data amount of each slave node; The slave node calculates the feedback carrier transmit power based on the effective data reception rate of the accumulated received data and the inverse spatial attenuation gradient vector, and transmits a continuous carrier signal accordingly. The master node obtains the carrier received power of each slave node, and performs time definite integration in combination with the spatial loss compensation coefficient to obtain the total network synchronous energy consumption integral. When the ratio of the total energy consumption of the entire network synchronization to the theoretical minimum total energy consumption of synchronization is rounded down, causing a sudden change in the status flag, the persistent storage of the data to be synchronized is triggered.
[0009] This solution is applied to a distributed emergency communication network containing multiple nodes. Each node is equipped with a radio frequency transceiver module, an envelope detection module, a data processing module, an environmental sensing module, a positioning module, a non-volatile storage module, and a power supply module. It can achieve self-organizing network and distributed consistency synchronization of emergency resource data in weak network environments in the field.
[0010] RF transceiver module, operating frequency band range is to The adjustable range of the transmission power is: to The receiving sensitivity is not higher than It supports both frequency division duplex and time division duplex working modes, and has a built-in power detection unit and frequency synthesis unit, which can realize continuous adjustment of transmission power and precise configuration of carrier frequency. All power parameters use the International System of Units (SI) watt as the reference unit.
[0011] Envelope detection module, input impedance fixed. The detection frequency range covers the entire operating frequency band of the RF transceiver module, and the detection linear dynamic range is not less than [specified value]. The output is a DC voltage signal that is proportional to the amplitude of the envelope of the input carrier signal. The voltage signal has the dimension of volts and can be acquired by the analog-to-digital conversion unit of the data processing module.
[0012] The data processing module employs an embedded microprocessor or digital signal processor with a bit width of 32 bits or more, has a built-in floating-point arithmetic unit, supports double-precision floating-point arithmetic, and has an arithmetic clock frequency of not less than [missing information]. Configuration not less than On-chip random access memory and no less than The on-chip program memory can perform all numerical calculations, task scheduling and flow control operations. All numerical calculations are performed in the International System of Units (SI). Time parameters are uniformly based on seconds, length parameters on meters, temperature parameters on Kelvin, and information data volume parameters on bits.
[0013] The environmental sensing module integrates a temperature sensor, with a temperature measurement range of [missing information]. to Measurement accuracy is not lower than It can collect the thermodynamic temperature of the environment where the node is located in real time, and output the collected results to the data processing module after converting them into Kelvin units.
[0014] The positioning module supports both Global Navigation Satellite System (GNSS) positioning and Ultra-Wideband (UWB) positioning modes, with a positioning accuracy of no less than [previous level]. It can acquire the three-dimensional spatial coordinates of nodes in real time, with the coordinate parameters using the International System of Units (SI) meter as the reference unit, and output them to the data processing module.
[0015] Non-volatile memory modules, using flash memory or ferroelectric memory, with a storage capacity of not less than With a write lifespan of no less than 100,000 cycles, it supports block writes and cyclic redundancy checks, and can complete the caching and persistent storage of data to be synchronized.
[0016] The power supply module uses lithium-ion batteries or lithium thionyl chloride batteries, with a rated voltage range of [missing information]. to The capacity is not less than It has a built-in power management unit, which can realize power supply control and low power mode switching of each module in the node.
[0017] After the node is powered on, it first performs initialization operations, completes the self-test and parameter configuration of the hardware modules, configures the working frequency band, physical bandwidth and transmit / receive time slot of the RF transceiver module, configures the sampling period of the envelope detection module, configures the task scheduling rules of the data processing module, and configures the sampling period of the positioning module and the environmental perception module.
[0018] After initialization, the node performs a network-wide clock synchronization operation, using a network time protocol or global navigation satellite system (GNSS) to synchronize its local clock with the network's standard clock, with a synchronization error not exceeding [a certain value]. All node time parameters are based on the synchronized network standard clock, ensuring the consistency of timestamps across the entire network.
[0019] After clock synchronization is complete, the node performs neighbor discovery and topology maintenance operations. The node broadcasts a neighbor discovery beacon via its RF transceiver module according to a preset beacon transmission period. The beacon contains the node's unique identifier, three-dimensional spatial coordinates, transmit power, antenna gain, and operating frequency band information. The beacon transmission period is configurable within a certain range. to The node continuously listens for neighbor discovery beacons broadcast by other nodes in the network, parses the received beacons to obtain the sender node's identity, spatial coordinates, transmit power, and antenna gain information, and measures the signal power of the received beacon, recording it as the corresponding sender node's received power.
[0020] A node marks the sending node that successfully resolves the beacon as a neighboring node, constructing a local neighboring node set. Each node in the neighboring node set has a unique identifier, spatial coordinates, transmit power, antenna gain, receive power, and link status information. The node updates the neighboring node set according to a preset topology update cycle, which is consistent with the beacon sending cycle. If a node fails to receive a neighbor discovery beacon from a neighboring node for three consecutive topology update cycles, the node is removed from the neighboring node set, completing the topology maintenance.
[0021] After a node completes topology maintenance, it performs a spatial decay gradient vector calculation operation for each neighboring node in its local neighboring node set.
[0022] For any first node and second node in the network, calculate the spatial attenuation gradient vector based on the transmit power of the first node and the receive power of the second node. The first node is any transmitting node in the network, assigned a unique identifier. The second node is any receiving node in the network that has a valid communication link with the first node, and is assigned a unique identifier. The criteria for determining a valid communication link are that the second node can successfully parse the neighbor discovery beacon broadcast by the first node, and the received power is greater than the receiving sensitivity of the radio frequency transceiver module.
[0023] Obtain the transmit / receive antenna gain of the first node and the second node, the microwave wavelength, and the spatial displacement vector between the first node and the second node. The transmit / receive antenna gain of the first node is denoted as... , dimensionless, is a linear gain value ranging from 1 to 100, determined by the antenna hardware parameters of the first node, which can be obtained from the antenna specifications or through anechoic chamber testing. The transmit and receive antenna gain of the second node is denoted as . , dimensionless, is a linear gain value, ranging from 1 to 100, determined by the antenna hardware parameters of the second node, and can be obtained from the antenna specifications or through anechoic chamber testing. The microwave wavelength is denoted as . The unit is meters, and λ is the electromagnetic wave wavelength corresponding to the node communication carrier. The calculation formula is: ; in Let be the speed of light in a vacuum, and take the value of . , The center frequency of the node communication carrier, measured in Hertz, is determined by the configuration parameters of the radio frequency transceiver module.
[0024] The spatial displacement vector between the first node and the second node is denoted as . The unit is meters, and is a three-dimensional spatial vector pointing from the first node to the second node. The calculation formula is: ; in These are the three-dimensional spatial coordinates of the first node, in meters, which are acquired in real time by the positioning module of the first node. Here are the three-dimensional spatial coordinates of the second node, in meters, obtained from the neighbor discovery beacon broadcast by the second node. The magnitude of the spatial displacement vector is denoted as... The unit is meters, which is the straight-line distance between the first node and the second node. The calculation formula is: ; when When the first node and the second node are in the same spatial position, the magnitude of the spatial displacement vector takes a preset minimum value. This avoids the error of dividing by zero in subsequent calculations.
[0025] The effective transmit power is obtained by successively multiplying the transmit power, the gain of the first node's transceiver antenna, the gain of the second node's transceiver antenna, and the square of the microwave wavelength. The transmit power of the first node is denoted as... The unit is watts, representing the rated transmit power of the first node's RF transceiver module, determined by the hardware configuration parameters of the first node, with a value range of [value missing]. to The product of effective transmit power is denoted as... The unit is watt-square meter, and the calculation formula is: ; The spatial attenuation product is obtained by successively multiplying the received power, the square of sixteen times pi, and the square of the magnitude of the spatial displacement vector. The received power of the second node is denoted as... The unit is watts, and it is a time variable. The actual signal power received by the second node's RF transceiver module from the first node is acquired in real time by the second node's RF power detection unit, with a time variable. Based on the standard clock after network-wide synchronization. The spatial decay product is denoted as... The unit is watt-square meter, and the calculation formula is: ; when When it is less than the receiving sensitivity of the RF transceiver module, Use the power value corresponding to the receiver sensitivity to avoid invalid values in subsequent calculations.
[0026] The logarithmic attenuation factor is obtained by dividing the product of effective transmit power by the product of spatial attenuation and taking the natural logarithm. The logarithmic attenuation factor is denoted as [formula missing]. Dimensionless, the calculation formula is: ; Dividing the logarithmic decay factor by the magnitude of the spatial displacement vector and then multiplying it by the unit direction vector of the spatial displacement vector yields the spatial decay gradient vector. The spatial decay gradient vector is denoted as... The unit is per meter, which characterizes the rate of attenuation and propagation direction of the electromagnetic wave along its spatial path from the first node to the second node. The calculation formula is: ; in Let be the unit direction vector of the spatial displacement vector, dimensionless, representing the direction of electromagnetic wave propagation from the first node to the second node. The magnitude of the spatial attenuation gradient vector is denoted as . The unit is per meter, and the calculation formula is: ; Based on the background noise power and spatial attenuation gradient vector of the second node, the one-way channel capacity from the first node to the second node is calculated.
[0027] Obtain the physical bandwidth for inter-node communication. The physical bandwidth is denoted as... The unit is Hertz, representing the available spectrum bandwidth of the node communication link, determined by the configuration parameters of the RF transceiver module, with a value range of [value missing]. to .
[0028] The dielectric attenuation term is obtained by multiplying the magnitude of the spatial attenuation gradient vector by the magnitude of the spatial displacement vector and taking the negative of the product, followed by natural exponential operation. The dielectric attenuation term is denoted as... Dimensionless, it characterizes the attenuation of electromagnetic waves by the spatial medium and terrain obstruction. A non-free space attenuation correction factor is also introduced to adapt to complex propagation environments such as canyons and mountain obstructions. The calculation formula is as follows: ; in It is a non-free space attenuation correction factor, dimensionless, with a value range of 1 to 6, determined by the propagation environment. The value is 1 in open, unobstructed environments and 3 to 6 in mountain-obstructed environments. It can be adaptively adjusted through environmental pre-configuration or historical link measurement data.
[0029] Multiplying the effective transmit power product by the dielectric attenuation term yields the effective signal arrival term. The unit is watt-square meter, representing the product term corresponding to the effective signal power reaching the second node after spatial attenuation and environmental correction. The calculation formula is: ; The background noise power, the square of sixteen times pi, and the square of the magnitude of the spatial displacement vector are multiplied sequentially to obtain the noise floor suppression term. The background noise power at the second node is denoted as... The unit is watts, and it is a time variable. The average background noise power of the receiving link at the second node is acquired in real time by the RF transceiver module of the second node during periods without signal input, with the acquisition period consistent with the topology update period. The noise floor suppression term is denoted as... The unit is watt-square meter, and the calculation formula is: ; Divide the effective signal arrival term by the noise floor suppression term, add one to the result, take the logarithm to base 2, and multiply by the physical bandwidth to obtain the one-way channel capacity. The one-way channel capacity is denoted as... The unit is bits per second, representing a time variable. The maximum theoretical information transmission rate of the unidirectional link from the first node to the second node is calculated using the following formula: (This formula is used to calculate the maximum theoretical information transmission rate of the unidirectional link from the first node to the second node, while also incorporating a non-ideal channel bandwidth efficiency correction factor to adapt to the actual channel transmission capability under multipath and interference environments in the field.) ; in This is a dimensionless bandwidth efficiency correction factor, ranging from 0.5 to 0.9, determined by the communication modulation method and coding efficiency, and can be configured through pre-set parameters. Substituting the calculation formulas for the effective signal arrival term and the noise floor suppression term, we obtain the complete formula for calculating the one-way channel capacity: ; When calculated If the effective channel capacity is less than the preset minimum effective channel capacity threshold, the link is determined to be an invalid link and will be... Set to the preset minimum value To avoid division by zero errors in subsequent calculations, the minimum effective channel capacity threshold can be configured within a certain range. to .
[0030] Based on the one-way channel capacity from each node to the other nodes and the amount of data to be synchronized, the synchronization energy consumption value of each node is calculated. The node with the lowest synchronization energy consumption value in the entire network is established as the dominant node, and the other nodes are established as slave nodes.
[0031] For any node in the network, treating it as the sender, the one-way transmission delay is obtained by dividing the amount of data to be synchronized by the one-way channel capacity from that node to each adjacent node. Let the amount of data to be synchronized be denoted as... The unit is bits, and the node is a node. The total amount of emergency resource data that needs to be synchronized across the entire network includes the location, quantity, status, and timestamp information of the emergency resources. The data is encapsulated in a fixed-length frame structure, with each frame appended with a 32-bit cyclic redundancy check (CRC) code for data integrity verification. The set of adjacent nodes is denoted as... , for nodes A locally maintained set of identifiers for all valid neighboring nodes. (For nodes...) To any node in its neighboring node set The one-way transmission delay is denoted as The unit is seconds, and the calculation formula is: ; The synchronization power consumption of a node is calculated by multiplying the one-way transmission delay by the node's transmit power, summing the products across all neighboring nodes, and simultaneously adding the receive power consumption and baseband processing power consumption. This synchronization power consumption value is denoted as... The unit is joule, representing a node. The total energy consumption required for the synchronization initiator to complete the full network data synchronization is calculated using the following formula: ; in For nodes The power consumption of the receive link, measured in watts, is determined by the hardware parameters of the node's RF transceiver module. For nodes The power consumption for baseband processing and data computation, measured in watts, is determined by the hardware parameters of the node's data processing module. Substituting the formula for calculating unidirectional transmission delay, we obtain the complete formula for calculating synchronous energy consumption: ; By comparing the synchronization energy consumption values of all nodes in the network, the node with the lowest synchronization energy consumption value is designated as the dominant node, and the remaining nodes are designated as slave nodes. After calculating its local synchronization energy consumption value, each node encapsulates its own synchronization energy consumption value and identity information into an election beacon, which is then broadcast to the entire network via its radio frequency transceiver module. The broadcast period is consistent with the topology update period. Simultaneously, the node continuously listens for election beacons broadcast by other nodes in the network, parses them to obtain the synchronization energy consumption values of all nodes in the network, and constructs a list of synchronization energy consumption values for the entire network.
[0032] The node iterates through the entire network's list of synchronization energy consumption values, selecting the node with the lowest synchronization energy consumption value as the dominant node, denoted as node . In a network, all nodes except the master node are slave nodes, denoted as nodes. When multiple nodes have the same and minimum synchronous energy consumption values, the node with the smallest node identity value is selected as the dominant node to resolve the election conflict.
[0033] After a node completes the election of a leading node, it encapsulates the election result into a confirmation beacon and broadcasts it to the entire network. Once all nodes receive confirmation beacons from more than two-thirds of the nodes, they lock onto the leading node for this election, achieving network-wide consensus on the election result. The term of the leading node is consistent with the data synchronization cycle. After the synchronization cycle ends, the leading node election process is re-executed. If the leading node fails to broadcast a beacon for three consecutive topology update cycles, it is considered a leading node failure, and all nodes in the network re-execute the leading node election process to complete network reconstruction.
[0034] The master node continuously sends the amount of data to be synchronized based on the one-way channel capacity, and obtains the cumulative amount of data received by each slave node.
[0035] After the dominant node completes the election and locking, it uses rateless fountain codes to channel code the amount of data to be synchronized. The coding block size of the fountain code can be configured from 128 bits to 4096 bits, the degree distribution adopts a robust soliton distribution, and the decoding threshold is 1.2. That is, after receiving coding symbols from the node that are no less than 1.2 times the original amount of data to be synchronized, the complete data decoding and recovery can be completed.
[0036] The master node continuously transmits the encoded data to be synchronized via its RF transceiver module at a transmission rate matching the one-way channel capacity. The transmission time slots and the feedback carrier reception time slots of the slave nodes are isolated using time-division duplex mode, and the guard interval between the transmission and reception time slots is not less than [value missing]. To avoid interference from transmitting and receiving on the same frequency.
[0037] The cumulative reception ratio is obtained by dividing the one-way channel capacity by the amount of data to be synchronized and performing a definite integral from the initial time to the current time. The initial time is recorded as 0, which is the time when the master node starts sending data, and the current time is recorded as... The integral time variable is denoted as The integration operation is implemented using the trapezoidal numerical integration method, with the integration step size consistent with the sampling period of the RF module. The cumulative reception ratio is denoted as... Dimensionless, representing the state from the node At the present moment Received from the dominant node The proportion of the encoded symbol amount to the total amount of data to be synchronized is calculated using the following formula: ; The residual unreceived ratio is obtained by inverting the cumulative received ratio and then performing a natural exponential operation. The residual unreceived ratio is denoted as... Dimensionless, representing the state from the node At the present moment The proportion of unreceived encoded symbols to the total amount of data to be synchronized is calculated using the following formula: ; Multiply the difference between the remaining unreceived proportion and the amount of data to be synchronized by the cumulative received data amount. The cumulative received data amount is denoted as... The unit is bits, representing the data from the node. At the present moment Successfully received from the dominant node The total number of effective coded symbols is calculated in real time by the slave node based on the actual number of coded symbols received. The calculation formula is as follows: ; Substituting the formulas for calculating the cumulative received ratio and the remaining unreceived ratio, we obtain the complete formula for calculating the cumulative received data volume: ; After the node completes the decoding of the full data, it locks the accumulated received data amount to the total number of bits of the data to be synchronized, and no longer updates it over time.
[0038] The node calculates the feedback carrier transmit power based on the effective data reception rate and the inverse spatial attenuation gradient vector of the accumulated received data, and then transmits a continuous carrier signal accordingly.
[0039] The effective data reception rate is obtained by taking the first derivative of the cumulative received data volume with respect to time. The effective data reception rate is denoted as... The unit is bits per second, representing the number of bits from the node. At the present moment Receive from the dominant node The instantaneous rate of the encoded symbol, with its first derivative, is calculated using the backward difference method, with the difference step size consistent with the integration step size. The calculation formula is as follows: ; in This is the differential step size, in seconds, consistent with the step size of numerical integration. Once the slave node has completed full data decoding, the effective data reception rate is set to 0.
[0040] Obtain the Boltzmann constant and the absolute temperature from the node. The Boltzmann constant is denoted as . , is a physical constant, expressed in SI units, and has a value of . Joules per Kelvin. Denoted from the absolute temperature of the node. The unit is Kelvin, and it is a time variable. The thermodynamic temperature of the environment where the slave node is located is collected in real time by the environment sensing module of the slave node. The collection period is consistent with the topology update period. The formula for converting Celsius to Kelvin is: ; in For time variables The temperature value in Celsius is collected from the node's environmental perception module.
[0041] The theoretical lower limit of energy consumption is obtained by successively multiplying the Boltzmann constant, the absolute temperature of the node, and the natural logarithm of 2. This theoretical lower limit is denoted as... The unit is joules per bit, representing the minimum theoretical energy consumption required for data transmission and processing per unit bit. It is derived based on the Landauer limit and the calculation formula is: ; The terrain attenuation compensation factor is obtained by multiplying the magnitude of the inverse spatial attenuation gradient vector by the magnitude of the spatial displacement vector and performing a natural exponential operation. The inverse spatial attenuation gradient vector is derived from the node... Pointing to the dominant node The spatial decay gradient vector, whose magnitude is related to the dominant node. Point to slave node The magnitudes of the spatial decay gradient vectors are consistent, i.e. The terrain attenuation compensation factor is denoted as... Dimensionless, used to compensate for spatial path attenuation and terrain obstruction loss when transmitting carriers in reverse from the node to the dominant node, ensuring that the dominant node can effectively detect the feedback carrier. The calculation formula is: ; in This is a non-free space attenuation correction factor, consistent with the correction factor used in unidirectional channel capacity calculation.
[0042] The feedback carrier transmit power is calculated by successively multiplying the effective data reception rate, the theoretical lower limit of energy consumption, and the terrain attenuation compensation factor. The feedback carrier transmit power is denoted as... The unit is watts, and it is a slave node. At the present moment The transmit power required to transmit a continuous carrier wave in reverse is calculated using the following formula: ; Substituting the formulas for the theoretical lower limit of energy consumption and the terrain attenuation compensation factor, we obtain the complete formula for calculating the feedback carrier transmit power: ; The calculated feedback carrier transmit power must be limited to the adjustable range of the RF transceiver module's transmit power. If the calculated value is less than the minimum transmit power, the minimum transmit power is used; if the calculated value is greater than the maximum transmit power, the maximum transmit power is used. After the slave node completes full data decoding, the feedback carrier transmit power is locked at the maximum transmit power, and a preset acknowledgment duration is continuously sent. The acknowledgment duration is configurable within a certain range. to .
[0043] The RF transmission module of the control slave node transmits an unmodulated continuous carrier signal in reverse direction into space according to the feedback carrier transmission power. The unmodulated continuous carrier signal is a single-frequency sine wave signal, carrying no digital modulation information; feedback of the reception status is achieved solely through carrier power. The feedback carriers of all slave nodes in the network are distinguished using frequency division multiplexing, with each slave node assigned a unique carrier frequency. The interval between adjacent carrier frequencies is no less than twice the physical bandwidth to avoid mutual interference between carriers. The feedback carrier transmission time slot of the slave node is isolated from the data transmission time slot of the master node using time division duplex mode, ensuring that the master node can complete the detection of the feedback carrier during periods free from self-interference.
[0044] The RF transceiver module of the slave node is configured to transmit in continuous wave mode. According to the calculated feedback carrier transmission power and the allocated carrier frequency, it continuously transmits unmodulated continuous carriers until the complete data decoding is completed and the carrier of the acknowledgment duration is sent. Then, it stops transmitting carriers and enters low-power receive mode.
[0045] The master node obtains the carrier received power of each slave node, and performs time definite integration with the spatial loss compensation coefficient to obtain the total network synchronization energy consumption integral.
[0046] The carrier received power from each slave node is measured by the envelope detector of the master node. Within the receive time slot, the RF transceiver module of the master node sequentially receives and down-converts the carrier signal according to the carrier frequency allocated to each slave node, and outputs the signal to the envelope detector module. The envelope detector module performs envelope detection on the input carrier signal and outputs a DC voltage signal proportional to the carrier amplitude. This signal is then acquired by the analog-to-digital converter unit of the data processing module, with a sampling frequency no less than twice the carrier frequency.
[0047] The acquired voltage signal is passed through The standard load impedance is converted to a linear power value to obtain the corresponding carrier received power of the slave node, denoted as . The unit is watts, and it represents the integration time variable. The dominant node receives data from the corresponding slave node. The power of the continuous carrier signal is calculated using the following formula: ; in For integration time variable The DC voltage value output by the lower envelope detector module, in volts. The standard load impedance of the envelope detector module is [value to be filled in]. The master node independently measures and records the carrier received power of each slave node, with the measurement period consistent with the numerical integration step size.
[0048] Multiplying the square of sixteen times pi by the square of the magnitude of the spatial displacement vector, and then dividing by the product of the transmit / receive antenna gains of the first node, the transmit / receive antenna gains of the second node, and the square of the microwave wavelength, yields the spatial loss compensation coefficient. The spatial loss compensation coefficient is denoted as... Dimensionless, used to compensate for the transmission loss of the carrier signal on the spatial path from the slave node to the master node, restoring the actual transmit power of the slave node. The calculation formula is: ; in For the transmit and receive antenna gain of the slave node, The transmit and receive antenna gain of the dominant node, Let the magnitude of the spatial displacement vector between the slave node and the dominant node be denoted as . The microwave wavelength for the feedback carrier is kept consistent with the carrier wavelength for the forward data communication.
[0049] Multiply the carrier received power of each slave node by its corresponding spatial loss compensation coefficient, and sum the results across the set of all neighboring nodes of the dominant node. The summation result is denoted as... The unit is watts, representing the current moment. The total transmit power corresponding to the feedback carriers of all slave nodes in the entire network is calculated using the following formula: ; in The set of neighboring nodes of the master node, including all slave nodes participating in this data synchronization.
[0050] The summation result is then integrated from the initial time to the current time to obtain the total synchronous energy consumption of the entire network. The unit is joules, representing the time from the synchronization start-up moment to the current moment. The total energy consumed by all slave nodes in the network to complete data reception is calculated using the trapezoidal numerical integration method, with the integration step size consistent with the measurement period of the carrier received power. The formula is as follows: ; Substituting the accumulated results into the formula, we obtain the complete formula for calculating the total synchronous energy consumption of the entire network: ; When the ratio of the total energy consumption of the entire network synchronization to the theoretical minimum total energy consumption of synchronization is rounded down, causing a sudden change in the status flag, the persistent storage of the data to be synchronized is triggered.
[0051] Obtain the total number of nodes in the network and the absolute temperature of the dominant node. The total number of nodes in the network is denoted as... , where is a positive integer, representing the total number of nodes participating in this data synchronization, including the master node and all slave nodes, determined by the master node based on the network topology information. The absolute temperature of the master node is denoted as . The unit is Kelvin, and it is a time variable. The thermodynamic temperature of the environment in which the dominant node is located is collected in real time by the environmental sensing module of the dominant node.
[0052] The theoretical minimum total energy consumption for synchronization is obtained by successively multiplying the total number of nodes, the amount of data to be synchronized, the Boltzmann constant, the absolute temperature of the dominant node, and the natural logarithm of 2. This theoretical minimum total energy consumption for synchronization is denoted as... The unit is joules, representing the theoretical minimum total energy consumption required for the entire network to complete the synchronization of the data to be synchronized. It is derived based on the Landauer limit and the scale of the entire network nodes, and the calculation formula is: ; The theoretical minimum total energy consumption for synchronization is calculated once at the moment of synchronization startup and remains fixed during the synchronization cycle to avoid threshold fluctuations caused by time-varying temperature.
[0053] The energy consumption ratio is obtained by dividing the total energy consumption of the entire network synchronization by the theoretical minimum total energy consumption for synchronization. The energy consumption ratio is denoted as... , dimensionless, represents the ratio of the actual total energy consumed by the entire network synchronization at the current moment to the theoretical minimum total energy consumption. The calculation formula is: ; The energy consumption ratio is rounded down to the nearest integer to obtain the status flag. The status flag is denoted as... Dimensionless, the floor function is used for rounding down a positive real number. It takes the largest integer not greater than the input positive real number. The formula is: ; When the status flag value jumps abruptly from zero to one, a storage control command is triggered, writing the amount of data to be synchronized in the cache to non-volatile memory to complete persistent storage. The master node monitors the changes in the status flag value in real time. When it detects that the status flag value jumps from 0 to 1, it determines that all slave nodes in the network have completed the complete reception and decoding of the data to be synchronized, triggering the persistent storage process for network-wide synchronization.
[0054] The leading node first appends a 32-bit cyclic redundancy check (CRC) code to the amount of data to be synchronized in its local cache and writes it to a designated address block in non-volatile memory, thus completing the persistent storage of the local data. Simultaneously, the leading node broadcasts a persistent storage trigger command to the entire network via its radio frequency transceiver module. This trigger command includes the check code and storage address information of the data to be synchronized.
[0055] After receiving the persistent storage trigger command from the node, it compares the locally decoded data to be synchronized with the checksum in the command. If they match, it writes the data to be synchronized to the specified address block of the local non-volatile memory, completing the persistent storage, and broadcasts a storage completion confirmation beacon to the master node.
[0056] Once the master node receives storage completion confirmation beacons from all slave nodes, it locks the persistent storage result of this synchronization, ends the current data synchronization process, and all nodes in the network enter a low-power standby mode, waiting for the next synchronization cycle to start. If the master node does not receive confirmation beacons from all slave nodes within the preset timeout period, it re-executes the data retransmission process for the slave nodes that did not send back confirmation beacons until all slave nodes have completed persistent storage.
[0057] For multi-hop transmission scenarios in large-scale distributed emergency networks, nodes support relay forwarding functionality. When there is no direct effective link between the source and target nodes, an intermediate node is selected as a relay node to complete multi-hop data forwarding. The selection criteria for relay nodes are the path with the minimum total link attenuation and the lowest total transmission delay, calculated using Dijkstra's algorithm. After receiving the data to be synchronized, the relay node performs data decoding and verification. If the verification passes, it forwards the encoded data to the next-hop node using the same fountain code encoding method as the leading node. Simultaneously, the same carrier feedback mechanism is used to provide feedback on the reception status, ensuring data synchronization consistency across multi-hop links.
[0058] To address interference mitigation in complex electromagnetic environments in the field, nodes employ an adaptive frequency agility mechanism. This mechanism monitors the power of interference signals across the entire frequency band in real time. When the interference power in the current operating frequency band exceeds a preset threshold, the node automatically switches to the idle frequency band with the lowest interference power. Simultaneously, it updates the operating frequency band configuration of all nodes in the network to ensure the stability of the communication link. To combat signal fading caused by multipath interference, nodes utilize spatial diversity reception technology. By receiving signals through dual antennas, they perform signal diversity and merging, improving the signal-to-noise ratio of the received signal and ensuring the accuracy of carrier received power measurements.
[0059] To control low power consumption, during non-transmit / receive periods, the node shuts down the power amplifier and receiver units of the RF transceiver module, entering a low-power sleep mode. Only the timed wake-up unit and beacon listening unit remain operational, with the wake-up cycle matching the beacon transmission cycle. After completing persistent data storage, the node shuts down all non-essential modules except for the environmental awareness module and the timed wake-up unit, entering a deep sleep mode to minimize standby power consumption and extend the node's battery life in emergency field scenarios.
[0060] For fault tolerance handling of node failures, when a slave node experiences a hardware failure or a complete link interruption, the master node removes the node from the synchronization node set, recalculates the network-wide synchronization energy consumption threshold, and continues the data synchronization process for the remaining nodes, preventing a single node failure from causing a network-wide synchronization deadlock. After the failed node restores communication, it rejoins the network through the neighbor discovery process, requests the master node to resend the data to be synchronized, completes data reception and persistent storage, and achieves dynamic fault tolerance and self-healing of the network.
[0061] After initial clock synchronization, the node continuously performs clock drift compensation operations. A linear regression algorithm is used to correct the clock drift in real time, addressing the frequency drift of the local crystal oscillator and the delay deviation of the transmission link. The deviation between the local clock and the network standard clock is denoted as... ,in This is the synchronization cycle number, in seconds, calculated from the difference in timestamps between two adjacent synchronizations. The clock drift rate is denoted as... Dimensionless, the calculation formula is: ; in The clock synchronization period is in seconds, and the configurable range is [range missing]. to The local clock is corrected in real time based on the clock drift rate, and the corrected local timestamp is recorded as follows. The calculation formula is: ; in This is the raw timestamp output by the local crystal oscillator, in seconds. For the first The completion time of the second clock synchronization is specified in seconds. The synchronization error between the corrected local clock and the network standard clock is controlled within a specified range. Within this range, ensure strict consistency of timestamps across the entire network.
[0062] The neighbor discovery beacon uses a fixed-length frame structure, totaling 128 bytes, containing the following fields: Frame preamble, 8 bytes long, fixed as the sequence 0xAA, used for frame synchronization at the receiver; Frame type identifier, 1 byte long, fixed value 0x01, identifying it as a neighbor discovery beacon; Node unique identifier, 4 bytes long, a unique unsigned integer across the network; Node 3D spatial coordinates, 12 bytes long, representing x, y, and z axis coordinates, each stored as a 4-byte single-precision floating-point number in meters; Node transmit power, 4 bytes long, stored as a single-precision floating-point number in watts; Node antenna gain, 4 bytes long, stored as a single-precision floating-point number, a linear dimensionless value; Node operating frequency band, 4 bytes long, stored as a single-precision floating-point number in Hertz; Node remaining battery power, 2 bytes long, an unsigned integer ranging from 0 to 100, in percentages; Frame check sequence, 4 bytes long, using a 32-bit cyclic redundancy check (CRC) code, checking all fields after the frame preamble to ensure the integrity of the beacon transmission.
[0063] Fountain codes use a robust soliton distribution as the degree distribution function, and the code block length is denoted as . The unit is bits, and the configurable range is 128 bits to 4096 bits. The original data to be synchronized is divided into... A source symbol of equal length, The calculation formula is: ; in As an up-rounding operator, when the amount of data to be synchronized is not an integer multiple of the code block length, pad the end of the data with 0s up to an integer multiple of the length.
[0064] The probability mass function of a robust soliton distribution consists of two parts: the ideal soliton distribution and the robust correction term. The calculation formula is: ; in The degree value of a coded symbol, that is, a single coded symbol is composed of... XOR generation of source symbols. Robust correction term. The calculation formula is: ; in This is an adjustable parameter, with a value range of 0.05 to 0.5. The probability of decoding failure is given, and its value range is: to The final robust soliton distribution The normalized result of the ideal soliton distribution and the robust correction term is calculated using the following formula: ; During the encoding process, the degree value of each encoded symbol is randomly generated according to the robust soliton distribution. , and then from Randomly selected without replacement from the source symbols. Each source symbol, Each source symbol is XORed with a bitwise AND operation to generate an encoded symbol. Each encoded symbol is then appended with a 16-bit sequence number. The index information of each source symbol ensures that the receiving end can complete the decoding.
[0065] The decoding process uses Gaussian elimination. After receiving encoded symbols from the node, a system of linear equations is constructed. When the number of received encoded symbols reaches the decoding threshold... During the decoding process, Gaussian elimination is performed to recover all original source symbols. After decoding, padding bits are removed to obtain the complete data to be synchronized. If an erroneous encoded symbol is detected during decoding, it is discarded directly and not included in the linear equations to avoid error propagation.
[0066] To address the errors in the physical definition of theoretical energy consumption mentioned in the three reviews, the calculation method for the theoretical minimum synchronous total energy consumption has been revised. The calculation now uses the local thermodynamic temperatures of all nodes in the entire network to ensure compliance with the physical definition of the Landau limit. The theoretical minimum synchronous total energy consumption is denoted as... The unit is joules, and the corrected calculation formula is: ; in This represents the total number of nodes participating in the synchronization across the entire network. Synchronous startup time No. The local absolute temperature of each node, in Kelvin, is collected by the environmental sensing module of each node at the moment of synchronous startup and broadcast to the entire network. This ensures the physical accuracy of the theoretical threshold and avoids calculation deviations caused by the temperature of a single node.
[0067] In addition to frequency division multiplexing (FDM), supplementary code division multiple access (CDMA) is an alternative solution suitable for emergency scenarios with limited frequency band resources. Each slave node is assigned a unique pseudo-random spreading code. The spreading code uses an m-sequence with a length of 31 to 1023, and the chip rate is not less than 1 / 10 of the carrier frequency. The unmodulated continuous carrier transmitted by the slave node is spread using direct sequence spreading. The spread carrier signal has the ability to resist multipath and co-channel interference.
[0068] The receiver of the master node employs a matched filter, which despreads and separates the carrier signal based on the unique spreading code of each slave node. This allows for the differentiation of feedback carriers from multiple slave nodes at the same frequency and time slot, avoiding mutual interference between carriers. The despread signal is processed by an envelope detection module to obtain the independent carrier received power for each slave node, ensuring measurement accuracy when multiple nodes provide feedback simultaneously.
[0069] The voltage signal output from the envelope detector is noise-suppressed using a moving average digital filtering algorithm. The filter window length is configurable from 8 to 64 sampling points. The filtered voltage value is denoted as... The calculation formula is: ; in This is the length of the filtering window. The sampling period is in seconds. The filtered voltage signal effectively suppresses random noise and pulse interference, ensuring the stability of carrier received power measurement.
[0070] To address the issue of premature triggering caused by interference mentioned in the three reviews, a debouncing and anti-false-judgment mechanism for the status flag bit has been added. The leading node performs a continuous multi-cycle consistency check on the value of the status flag bit, with a check window length of 3 to 5 integration steps. Only when the status flag bit jumps abruptly from 0 to 1 at all sampling moments within the check window without backtracking is it determined to be a valid triggering event, thus avoiding false triggering caused by a single interference.
[0071] Simultaneously, a redundancy protection threshold for the energy consumption ratio is set, allowing protection only when the energy consumption ratio reaches a certain value. Only when the value is greater than or equal to 1.05 is it determined that the triggering condition is met. A 5% redundancy is reserved to offset the premature triggering caused by channel measurement error and integral calculation error, ensuring that persistent storage is only triggered after all slave nodes in the network have completed data decoding.
[0072] The embedded real-time system of the node adopts a preemptive priority scheduling mechanism. All tasks are divided into 6 levels according to priority from high to low. The smaller the priority number, the higher the priority. The specific configuration is as follows: Priority 0: Clock synchronization and interrupt handling task, with a scheduling cycle of 1ms, responsible for interrupt response and deviation correction for clock synchronization across the entire network, ensuring the accuracy of the time base; Priority 1: RF transceiver and envelope detection tasks, with scheduling cycles consistent with sampling cycles, responsible for carrier signal transmission and reception, envelope detection and analog-to-digital conversion, ensuring real-time power measurement; Priority 2: Neighbor discovery and topology maintenance tasks, with a scheduling cycle consistent with the beacon sending cycle, responsible for beacon broadcasting, receiving and parsing, and updating the neighbor node set; Priority 3: Channel parameter calculation and dominant node election tasks, with scheduling cycle consistent with topology update cycle, responsible for calculating spatial attenuation gradient vector, one-way channel capacity, synchronization energy consumption value and electing dominant node; Priority 4: Data encoding, transmission and decoding task, with a scheduling cycle of the encoding block transmission interval, responsible for encoding fountain codes, data transmission and reception decoding; Priority 5: Persistent storage and low-power control task, with scheduling and synchronization cycles kept consistent, responsible for non-volatile data storage and switching node power consumption modes.
[0073] High-priority tasks can preempt the execution resources of low-priority tasks, ensuring that RF and clock tasks with high real-time requirements execute without delay and avoiding calculation errors and data loss caused by task preemption. The worst-case execution time of all tasks is less than 50% of the corresponding scheduling cycle, ensuring the scheduling stability of the system.
[0074] The node is internally configured with a three-level cache structure: a level 1 register cache, a level 2 on-chip random access memory cache, and a level 3 external flash memory cache. The size and access speed of each cache level are matched to the real-time requirements of the corresponding task.
[0075] The first-level register cache is used to store intermediate parameters for real-time calculations, including channel capacity, received power, integral value, etc., to ensure the real-time performance of numerical calculations. The update cycle of the cached data is consistent with the calculation step size. The secondary on-chip random access memory cache is divided into a transmit buffer and a receive buffer. The transmit buffer stores the data to be transmitted after fountain code encoding, and the receive buffer stores the received encoded symbols and beacon data. The buffer adopts a circular queue structure, and writing and reading are implemented using pointer offset to avoid data overwriting. A three-level external flash cache is used to temporarily store the data to be synchronized after decoding is completed. Once the data is verified to be consistent, it is written to the permanent storage area of non-volatile memory.
[0076] A watermark warning mechanism is implemented in the cache area. When the cache occupancy rate exceeds 80%, a cache cleanup operation is triggered, discarding invalid data that has already been processed and freeing up cache space. When the cache occupancy rate exceeds 95%, the reception of new data is suspended to prevent data loss due to cache overflow. For received out-of-order encoded symbols, a linked list structure is used for storage and sorting to ensure the orderliness of the decoding process.
[0077] Non-volatile memory employs a wear leveling mechanism that maps logical addresses to physical addresses. It divides the memory into multiple physical blocks of equal size, and the number of writes to each physical block is counted in real time. Write operations are preferentially allocated to the physical block with the fewest writes, thus avoiding the exhaustion of the lifespan of a single physical block due to frequent writes.
[0078] The data writing process adopts a three-step writing mechanism. The first step is to write the data to be written and the check code into a temporary physical block. The second step is to read the data in the temporary physical block for verification. After the verification is consistent, the address mapping table is updated. The third step is to mark the temporary physical block as a permanent storage block and mark the old storage block as a free block to ensure that a sudden power failure during the writing process will not cause data corruption.
[0079] In case of write failure, a write retry mechanism of up to 3 times is set. After a single write failure, a new physical block is used to re-execute the write operation. If three consecutive write failures occur, the physical block is marked as a bad block, added to the bad block table, and will no longer be allocated or used. At the same time, a storage anomaly alarm is broadcast to the entire network to ensure the reliability of data storage.
[0080] To address scenarios where the reverse link is completely interrupted due to complete obstruction by a mountain, a multi-hop relay feedback mechanism is added to ensure that the reception status of the slave node can be transmitted to the master node through the relay node. If the master node cannot detect the feedback carrier of the slave node for three consecutive measurement cycles, it is determined that the reverse direct link of the slave node is interrupted, triggering the relay node selection process.
[0081] Relay nodes are selected based on having valid bidirectional links with both the master node and the interrupted slave node. The optimal relay path is selected using a link quality-weighted Dijkstra algorithm, and the path cost function is denoted as... The calculation formula is: ; in This represents the one-way channel capacity of the corresponding link in the path, measured in bits per second. The lower the path cost, the better the path quality.
[0082] After selecting the optimal relay path, the interrupt slave node sends the feedback carrier to the relay node. After detecting the carrier, the relay node forwards the corresponding feedback carrier to the master node according to the same carrier feedback rule. The master node completes the energy consumption integral calculation of the interrupt slave node through the carrier signal of the relay node, ensuring that the network synchronization process will not get stuck in deadlock under extreme link scenarios.
[0083] To address offline scenarios caused by node battery depletion or hardware failure, a complete fault detection and network self-healing mechanism is added. Nodes periodically broadcast heartbeat beacons to the entire network, with the heartbeat cycle being twice the topology update cycle. If a node fails to receive a heartbeat beacon for three consecutive heartbeat cycles, it is determined that the node has failed and is offline.
[0084] The leading node removes the failed offline node from the synchronization node set, recalculates the total number of nodes in the network and the theoretical minimum total energy consumption for synchronization, and continues the data synchronization process for the remaining online nodes to prevent a single node failure from causing a network-wide synchronization interruption. After the failed node restores power and communication, it rejoins the network through the neighbor discovery process and sends a data synchronization request to the leading node. The leading node resends the complete data to be synchronized to the recovered node. After the node completes data reception and persistent storage, it is reinstated into the synchronization node set, achieving network self-healing.
[0085] In response to the scenario of a failure of the dominant node, all nodes in the network immediately suspend the current synchronization process after detecting that the dominant node is offline, and re-execute the dominant node election process. After a new dominant node is elected, the new dominant node takes over the synchronization process and resends the data to be synchronized to the entire network, ensuring the continuity of the synchronization process and avoiding system paralysis caused by a single point of failure of the dominant node.
[0086] Nodes adaptively adjust their data synchronization period and transmit power based on channel quality and remaining battery power. Channel quality is evaluated based on the link's signal-to-noise ratio and channel capacity. When the network-wide average channel capacity is higher than a preset high threshold, the synchronization period is shortened to increase the data update frequency; when the network-wide average channel capacity is lower than a preset low threshold, the synchronization period is extended to reduce retransmission probability and node power consumption.
[0087] When the remaining battery power of a node is below 20%, it automatically reduces the transmission power to the minimum communicable value, while extending the beacon transmission period and synchronization period, entering a low-power emergency mode to maximize the node's endurance. When the remaining battery power of a node is below 5%, it shuts down all non-essential functions except for heartbeat beacons and emergency data reception, retaining only the ability to receive emergency resource data to ensure the availability of core emergency functions.
[0088] After all nodes in the network have completed persistent storage, the final data consistency verification process is executed. The master node generates a 256-bit secure hash checksum of the data to be synchronized and broadcasts the checksum to all slave nodes in the network. Each slave node calculates the hash checksum of the data to be synchronized locally and compares it with the checksum broadcast by the master node. If they match, the slave node sends a consistency confirmation beacon to the master node. If they do not match, the slave node sends a data retransmission request to the master node, which then retransmits the corresponding data fragments until the verification is consistent.
[0089] After receiving consistency confirmation beacons from all online nodes, the leading node generates a synchronization completion identifier, writes the synchronization completion identifier, timestamp, and data checksum into the system log area of non-volatile memory, and broadcasts the synchronization completion instruction to the entire network. After receiving the instruction, all nodes end the current data synchronization process, enter a low-power standby mode, and wait for the next synchronization cycle to start, thus completing the entire closed loop of the data consistency coordination process.
[0090] The embodiments of this example have been described above. However, this example is not limited to the specific implementation methods described above. The specific implementation methods described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms based on the guidance of this example, and all of them are within the protection scope of this example.
Claims
1. A distributed emergency resource node data consistency and coordination system for weak network environments, applied to networks containing multiple nodes, characterized in that: Configured for execution: For any first node and second node in the network, calculate the spatial attenuation gradient vector based on the transmit power of the first node and the receive power of the second node; Based on the background noise power of the second node and the spatial attenuation gradient vector, the one-way channel capacity from the first node to the second node is calculated. Based on the one-way channel capacity and the amount of data to be synchronized from each node to the other nodes, the synchronization energy consumption value of each node is calculated, and the node with the lowest synchronization energy consumption value in the whole network is established as the dominant node, and the other nodes are established as slave nodes. The master node continuously sends the amount of data to be synchronized based on the one-way channel capacity, and obtains the cumulative received data amount of each slave node; The slave node calculates the feedback carrier transmit power based on the effective data reception rate of the accumulated received data and the inverse spatial attenuation gradient vector, and transmits a continuous carrier signal accordingly. The master node obtains the carrier received power of each slave node, and performs time definite integration in combination with the spatial loss compensation coefficient to obtain the total network synchronous energy consumption integral. When the ratio of the total energy consumption of the entire network synchronization to the theoretical minimum total energy consumption of synchronization is rounded down, causing a sudden change in the status flag, the persistent storage of the data to be synchronized is triggered.
2. The distributed emergency resource node data consistency and coordination system for weak network environments according to claim 1, characterized in that, The spatial attenuation gradient vector is calculated based on the transmit power of the first node and the receive power of the second node, including: Obtain the transmit and receive antenna gain, microwave wavelength, and spatial displacement vector between the first node and the second node; The effective transmission power product is obtained by successively multiplying the transmit power, the transmit / receive antenna gain of the first node, the transmit / receive antenna gain of the second node, and the square of the microwave wavelength. The spatial attenuation product is obtained by successively multiplying the received power, the square of sixteen times pi, and the square of the magnitude of the spatial displacement vector. Divide the effective transmit power product by the spatial attenuation product and take the natural logarithm to obtain the logarithmic attenuation factor. The spatial attenuation gradient vector is obtained by dividing the logarithmic attenuation factor by the magnitude of the spatial displacement vector and then multiplying it by the unit direction vector of the spatial displacement vector.
3. The distributed emergency resource node data consistency and coordination system for weak network environments according to claim 2, characterized in that, Based on the background noise power of the second node and the spatial attenuation gradient vector, the one-way channel capacity from the first node to the second node is calculated, including: Obtain the physical bandwidth for inter-node communication; Multiply the magnitude of the spatial attenuation gradient vector by the magnitude of the spatial displacement vector and take the opposite number, then perform natural exponentiation to obtain the dielectric attenuation term; Multiplying the effective transmit power product by the dielectric attenuation term yields the effective signal arrival term; The background noise power, the square of sixteen times pi, and the square of the magnitude of the spatial displacement vector are multiplied sequentially to obtain the noise floor suppression term; Divide the effective signal arrival term by the noise floor suppression term, add one to the result of the division operation, take the logarithm to the base 2, and multiply it by the physical bandwidth to obtain the unidirectional channel capacity.
4. The distributed emergency resource node data consistency and coordination system for weak network environments according to claim 3, characterized in that, Based on the one-way channel capacity and the amount of data to be synchronized from each node to the other nodes, the synchronization energy consumption value of each node is calculated. The node with the lowest synchronization energy consumption value in the entire network is established as the dominant node, and the remaining nodes are established as slave nodes, including: For any node in the network, take it as the sending end, divide the amount of data to be synchronized by the one-way channel capacity from that node to each adjacent node, and obtain the one-way transmission delay. The synchronization energy consumption value of the node is calculated by multiplying the unidirectional transmission delay by the transmit power of the node and summing the product results across all neighboring node sets. By comparing the synchronization energy consumption values of all nodes in the network, the node with the lowest synchronization energy consumption value is established as the dominant node, and the remaining nodes are established as slave nodes.
5. The distributed emergency resource node data consistency and coordination system for weak network environments according to claim 4, characterized in that, The master node continuously transmits the amount of data to be synchronized based on the one-way channel capacity, and obtains the cumulative received data amount of each slave node, including: Divide the unidirectional channel capacity by the amount of data to be synchronized, and perform a definite integral operation from the initial time to the current time to obtain the cumulative reception ratio; The residual unreceived ratio is obtained by taking the inverse of the cumulative received ratio and then performing a natural exponential operation. The difference between the value of the remaining unreceived data and the value of the data to be synchronized is multiplied by the amount of data to be synchronized to obtain the cumulative received data amount.
6. The distributed emergency resource node data consistency and coordination system for weak network environments according to claim 5, characterized in that, The slave node calculates the feedback carrier transmit power based on the effective data reception rate of the accumulated received data volume and the inverse spatial attenuation gradient vector, and accordingly transmits a continuous carrier signal, including: The effective data reception rate is obtained by taking the first derivative of the cumulative received data amount with respect to time. Obtain the Boltzmann constant and the absolute temperature of the slave node; The theoretical lower limit of energy consumption is obtained by multiplying the Boltzmann constant, the absolute temperature of the slave node, and the natural logarithm of two in sequence. Multiply the magnitude of the inverse spatial attenuation gradient vector by the magnitude of the spatial displacement vector, and perform natural exponent calculation to obtain the terrain attenuation compensation factor. The effective data reception rate, the theoretical energy consumption lower limit, and the terrain attenuation compensation factor are multiplied sequentially to calculate the feedback carrier transmission power. The radio frequency transmission module of the slave node is controlled to transmit the unmodulated continuous carrier signal in reverse direction into space according to the feedback carrier transmission power.
7. The distributed emergency resource node data consistency and coordination system for weak network environments according to claim 6, characterized in that, The master node acquires the carrier received power of each slave node, and performs time definite integration with the spatial loss compensation coefficient to obtain the network-wide synchronization energy consumption integral, including: The carrier received power from each of the slave nodes is obtained by measuring the envelope detector of the master node; Multiply the square of sixteen times pi by the square of the magnitude of the spatial displacement vector, and divide by the product of the transceiver antenna gain of the first node, the transceiver antenna gain of the second node, and the square of the microwave wavelength to obtain the spatial loss compensation coefficient. Multiply the carrier received power corresponding to each slave node by the corresponding spatial loss compensation coefficient, and sum them up within the set of all adjacent nodes of the dominant node. The summation result is then integrated from the initial time to the current time to obtain the total synchronous energy consumption of the entire network.
8. The distributed emergency resource node data consistency and coordination system for weak network environments according to claim 7, characterized in that, When the ratio of the total network synchronization energy consumption to the theoretical minimum total synchronization energy consumption is rounded down, causing a sudden change in the status flag, the persistent storage of the data to be synchronized is triggered, including: Obtain the total number of nodes in the network and the absolute temperature of the dominant node; The theoretical minimum total energy consumption for synchronization is obtained by successively multiplying the total number of nodes, the amount of data to be synchronized, the Boltzmann constant, the absolute temperature of the dominant node, and the natural logarithm of two. Divide the total energy consumption of the entire network synchronization by the theoretical minimum total energy consumption of synchronization to obtain the energy consumption ratio. The energy consumption ratio is rounded down to obtain the status flag bit; When the value of the status flag bit jumps from zero to one, a storage control instruction is triggered to write the amount of data to be synchronized in the cache into the non-volatile memory to complete the persistent storage.