Remote monitoring and linkage control method based on intelligent fire-fighting water bag
By using fountain code encoding and distributed relay propagation between water bags, remote control of fire water bags is achieved when wide-area communication links are unstable. This solves the problem of limited response speed of fire water bags and improves the applicability of the system in complex terrain and areas without network coverage.
Patent Information
- Application Number
- CN202611587424.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-14
- Publication Date
- 2026-11-20
AI Technical Summary
Existing fire hydrants cannot interact with fire early warning systems or remote monitoring centers, resulting in limited response speed and inability to achieve effective remote control when wide-area communication links are unstable.
Multiple encoded packets are generated using fountain code encoding, and broadcast unidirectionally without confirmation via a wide-area communication link. Short-range opportunistic communication and distributed relay propagation are utilized between water bladders. The water bladders perform linear combination when forwarding the encoded packets, and the target water bladder recovers the original control command by decoding.
In situations where wide-area communication links are unstable, ensuring that control commands can be effectively delivered to the target water bladder reduces reliance on wide-area communication infrastructure and enhances the system's applicability in complex terrain and areas without network coverage.
Smart Images

Figure CN123127645A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of remote control technology for intelligent water storage equipment, specifically to a remote monitoring and linkage control method based on intelligent fire-fighting water bladders. Background Technology
[0002] Currently, pre-installed water storage devices (fire bladders) are being used as fire extinguishing water sources in forest fire prevention. However, most existing water storage devices are passive facilities, possessing only basic water storage functions and unable to interact with fire early warning systems or remote monitoring centers. In practical applications, when a fire is detected by satellites, drones, or other monitoring methods, personnel must go to the site to operate the water bladders to open valves, spray water, or supply water. The response speed is severely limited by the arrival time of personnel, easily missing the initial fire extinguishing window. On the other hand, some intelligent transformation solutions attempt to add sensors and communication modules to the water bladders, uploading water temperature, water volume, location, and other statuses to the monitoring center via wireless network and receiving control commands issued by the center.
[0003] Under conditions of high packet loss, intermittent interruptions, and lack of real-time two-way confirmation in wide-area communication links, how can the target water bladder asynchronously recover complete remote control commands in the absence of complete broadcast reception, relying solely on short-range opportunistic communication between water bladders and distributed relay propagation of coded packets? Summary of the Invention
[0004] The purpose of this invention is to provide a remote monitoring and linkage control method based on intelligent fire-fighting water tanks to solve the problems mentioned above.
[0005] The objective of this invention can be achieved through the following technical solutions: The remote monitoring and linkage control method based on intelligent fire-fighting water tanks includes the following steps: Step 1: The remote monitoring center breaks down the control commands to be issued into raw symbols and uses fountain code encoding to generate multiple encoded packets. Each encoded packet carries information that can independently participate in subsequent decoding. Step 2: The monitoring center broadcasts the coded packet to the area where the target water bladder is located via a wide area communication link in a one-way, unacknowledged manner, without waiting for any reception confirmation during the broadcast process; Step 3: Each water bladder in the area receives and stores the received coded packets in its local cache. The water bladders forward coded packets in their respective caches that have not yet been held by their neighbors through short-range opportunistic communication, forming a distributed relay propagation of coded packets. Step 4: When forwarding encoded packets, the water bladder linearly combines multiple encoded packets in its local cache to generate a combined encoded packet before broadcasting it. Subsequently, the water bladder receives the combined encoded packet and continues to participate in the combination and forwarding. Step 5: The target water bladder continuously collects encoded packets. When the number of linearly independent encoded packets in the local cache reaches the decoding threshold, the original control commands are decoded and restored, and corresponding actions are executed according to the command content.
[0006] As a further aspect of the present invention: the generation of multiple encoded packets specifically includes: The control instructions are divided into a sequence of original symbols with a fixed bit length, and each original symbol is regarded as a numerical element in a finite field. A set of random values following a uniform distribution is generated by iteratively using chaotic mapping, and each random value is quantified into a coding coefficient in the same finite field as the original symbol. Each original symbol is multiplied by its corresponding coding coefficient and then summed. The sum is used as a coding packet. The chaotic mapping iteration and summation process is repeated until a predetermined number of codes are generated.
[0007] As a further aspect of the present invention: the monitoring center broadcasts the encoded packets to the area where the target water bladder is located in a one-way unacknowledged manner via a wide-area communication link, specifically including: The generated encoded packets are arranged in order to form a broadcast queue; In each broadcast time slot, a coded packet is sequentially taken from the broadcast queue, modulated into a spread spectrum waveform using direct sequence spread spectrum, and then transmitted through a wide area communication link. The transmission continues until each encoded packet in the broadcast queue has been transmitted at least three times, with the spreading code sequence of each transmission rotating in a preset pseudo-random order.
[0008] As a further aspect of the present invention: the method of modulating the coded packet into a spread spectrum waveform using direct sequence spread spectrum and then transmitting it through a wide-area communication link specifically includes: The first few bits are extracted sequentially from the encoded packet as the initial seed of the spreading code; The initial seed is input into a linear feedback shift register, and a spreading code sequence of a predetermined length is generated through iterative shifting; The remaining bits in the encoded packet are logically added bit by bit to the spreading code sequence, and the result is output as the spreading waveform.
[0009] As a further aspect of the present invention: the mutual forwarding of encoded packets in each other's caches that are not yet held by their neighbors through short-range opportunistic communication specifically includes: Each water bladder randomly projects the coefficient vectors corresponding to all encoded packets in its local cache to generate a fixed-length projection value; Water bladders broadcast projection values via short-range opportunistic communication. After receiving the broadcast value, neighboring water bladders compare the projection value with their own buffered projection value bit by bit. When the difference result is non-zero, the two water bags exchange the linearly independent coding packets in their respective buffers to complete the mutual supplementation of the missing coding packets.
[0010] As a further aspect of the present invention: generating a projection value of a fixed length specifically includes: Multiple random number sequences of the same length as the coefficient vector are sequentially selected from a preset random number sequence pool, and each random number sequence is used as the reference for one projection. Multiply each element in the coefficient vector by the corresponding random number in the current random number sequence and sum the results. The sum is then used as the component of this projection. The random number sequence is changed sequentially and the process is repeated. Each element in the coefficient vector is multiplied by the random number at the corresponding position in the current random number sequence and then accumulated. The components obtained from each accumulation are then concatenated in order to form a projection value of fixed length.
[0011] As a further aspect of the present invention: the generation of the combined encoding packet specifically includes: Select two encoded packets from the local cache, and denote them as the first encoded packet and the second encoded packet, respectively; The first coefficient is obtained by taking the modulo of the preset prime number based on the current value of the timer inside the water bladder, and the second coefficient is obtained by subtracting the first coefficient from one. The first encoded packet is multiplied by the first coefficient, and then multiplied by the second encoded packet and the second coefficient. The resulting sum is used as the combined encoded packet.
[0012] As a further aspect of the present invention: the decoding and recovery of the original control commands specifically includes: Arrange the coefficient vectors corresponding to all linearly independent encoded packets in the local cache into a triangular matrix, and use the accumulated value corresponding to each encoded packet as the right-hand item of the row. Starting from the last row of the triangular matrix, divide the right-hand term by its pivot coefficient to obtain the corresponding original symbol value; Multiply the calculated original symbol value by other non-zero coefficients in the row, then subtract it from the right-hand item of each row above. Repeat this process row by row upwards until all original symbols are obtained. Concatenate them in order to obtain the original control command.
[0013] The beneficial effects of this invention are: (1) By encoding the control command into a fountain code packet and broadcasting it in a one-way non-acknowledgment manner, combined with short-range opportunistic communication and distributed relay forwarding between water bladders, even if there is high packet loss or intermittent interruption in the wide area communication link, the command information can still be gradually spread to the target water bladder through the buffer exchange of adjacent water bladders without relying on real-time two-way acknowledgment or repeated retransmission, thus realizing the effective delivery of control commands in remote forest communication blind spots.
[0014] (2) Water bladders quickly identify and exchange missing encoded packets by comparing projection value differences. At the same time, they use dynamic coefficients generated by local timers to linearly combine the encoded packets before forwarding them. This allows a single water bladder to obtain the required encoded packets from its neighbors without having to receive all the broadcasts from the monitoring center. This mechanism allows water bladders to be deployed in a wide area. Even if some water bladders are completely in a wide-area signal blind zone, they can still complete instruction decoding and execution with the help of relays from adjacent water bladders. This significantly reduces the dependence on wide-area communication infrastructure and improves the applicability of the system in areas with complex terrain and no network coverage. Attached Figure Description
[0015] The invention will now be further described with reference to the accompanying drawings.
[0016] Figure 1 This is a flowchart of the method of the present invention. Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] Please see Figure 1 As shown, this invention is a remote monitoring and linkage control method based on intelligent fire-fighting water tanks, comprising the following steps: Step 1: The remote monitoring center breaks down the control commands to be issued into raw symbols and uses fountain code encoding to generate multiple encoded packets. Each encoded packet carries information that can independently participate in subsequent decoding. Step 2: The monitoring center broadcasts the coded packet to the area where the target water bladder is located via a wide area communication link in a one-way, unacknowledged manner, without waiting for any reception confirmation during the broadcast process; Step 3: Each water bladder in the area receives and stores the received coded packets in its local cache. The water bladders forward coded packets in their respective caches that have not yet been held by their neighbors through short-range opportunistic communication, forming a distributed relay propagation of coded packets. Step 4: When forwarding encoded packets, the water bladder linearly combines multiple encoded packets in its local cache to generate a combined encoded packet before broadcasting it. Subsequently, the water bladder receives the combined encoded packet and continues to participate in the combination and forwarding. Step 5: The target water bladder continuously collects encoded packets. When the number of linearly independent encoded packets in the local cache reaches the decoding threshold, the original control commands are decoded and restored, and corresponding actions are executed according to the command content.
[0019] In step one, the remote monitoring center breaks down the control commands to be issued into raw symbols and generates multiple encoded packets using fountain code encoding. Each encoded packet carries information that can independently participate in subsequent decoding, specifically including: The control instructions are divided into a sequence of original symbols according to a fixed bit length. For example, if the fixed bit length is chosen to be 8 bits, the control instructions are divided into original symbols in 8-bit increments. If the total number of bits in the control instructions is not a multiple of 8, it is padded to the end with multiples of 0 to 8. Each original symbol is treated as a numerical element in a finite field. The finite field used here is a Galois field of order 2 to the power of 8, in which each element can be uniquely represented by an integer between 0 and 255. The 8-bit value of the original symbol directly corresponds to an element in this field.
[0020] A set of uniformly distributed random values is generated iteratively using a chaotic mapping, and each random value is quantized into an encoding coefficient in the same finite field as the original symbol. Specifically, the logistic mapping is used as the chaotic mapping function, and its iterative relationship is: the current iteration output value is equal to a control parameter multiplied by the previous iteration output value, and then multiplied by the complement of the previous iteration output value. The control parameter is set to 3.99, and the previous iteration output value is initialized to an arbitrary decimal between 0.3 and 0.7. Each iteration generates a decimal between 0 and 1, and the iteration continues until the required number of random values are generated. To ensure a uniform distribution, the decimal obtained in each iteration is multiplied by 255 and rounded down to obtain an integer between 0 and 255. This integer is the quantized encoding coefficient, and this encoding coefficient belongs to the Galois field of order 2 to the power of 8, just like the original symbol.
[0021] Each original symbol is multiplied by its corresponding coding coefficient, and the results are accumulated to form a single encoded packet. Specifically, the first original symbol and the first coding coefficient are taken sequentially, and multiplication is performed in the Galois field to obtain the first product. Then, the second original symbol and the second coding coefficient are taken, multiplied to obtain the second product, and this second product is added to the first product. This process continues, multiplying all original symbols in the current instruction by their respective coding coefficients and accumulating the results. The final accumulated value is a single encoded packet. This chaotic mapping iteration and accumulation process is repeated, i.e., a new sequence of coding coefficients (with a length equal to the number of original symbols) is generated each time, and the multiplication and accumulation of all original symbols with the new coding coefficients are performed again to obtain the next encoded packet. This process is repeated until the number of encoded packets generated reaches a predetermined number. The predetermined number is set according to the desired decoding success rate, typically 1.2 to 1.5 times the number of original symbols.
[0022] Through the above steps, each encoded packet carries a weighted sum of all the original symbols, and the weighting coefficients are randomly generated by the chaotic mapping, so that any sufficient number of encoded packets can recover all the original symbols through the subsequent decoding process.
[0023] In step two, the monitoring center broadcasts the coded packet to the area where the target water bladder is located via a wide-area communication link in a one-way, unacknowledged manner. The broadcast process does not wait for any confirmation of receipt, specifically including: The monitoring center arranges the generated encoded packets in sequence to form a broadcast queue. Specifically, if a total of 120 encoded packets are generated, the first encoded packet, the second encoded packet, and so on, up to the 120th encoded packet, are stored in the broadcast queue in chronological order of their generation. Each encoded packet occupies a position in the queue as an independent data unit.
[0024] Within each broadcast time slot, the monitoring center sequentially retrieves one encoded packet from the broadcast queue. The length of each broadcast time slot is fixed to the time required to transmit one encoded packet, for example, 0.5 seconds. At the beginning of each time slot, the encoded packet pointed to by the current queue pointer is retrieved. Subsequently, the encoded packet is modulated into a spread spectrum waveform using direct sequence spread spectrum and transmitted through a wide area communication link. After transmission is complete, the queue pointer moves to the next encoded packet, awaiting the arrival of the next time slot.
[0025] The process of packet acquisition, modulation, and transmission is repeated until each coded packet in the broadcast queue has been transmitted at least three times. That is, the first coded packet is transmitted three times, the second coded packet is transmitted three times, and so on, with all 120 coded packets being transmitted three times each. The spreading code sequence used in each transmission is rotated according to a preset pseudo-random order. This pseudo-random order is generated by a linear feedback shift register: first, an initial seed is preset, for example, an 8-bit binary number 10101010. Then, it iterates according to a standard maximum-length linear feedback shift register structure, outputting a 1-bit value in each iteration, continuously generating a pseudo-random sequence. This pseudo-random sequence is divided into pseudo-random numbers every 8 bits, with values ranging from 0 to 255. These pseudo-random numbers are used as indices to sequentially select the spreading code sequence to be used for the current transmission from a pre-stored code table containing 256 different spreading code sequences. The first transmission of each encoded packet uses the spreading code sequence corresponding to the first pseudo-random number, the second transmission uses the spreading code sequence corresponding to the second pseudo-random number, and the third transmission uses the spreading code sequence corresponding to the third pseudo-random number. Subsequent pseudo-random numbers are then used sequentially between different encoded packets.
[0026] In the direct sequence spread spectrum method described above, the specific steps for modulating the coded packet into a spread spectrum waveform are as follows: First, the first few bits are sequentially extracted from the coded packet to be transmitted as the initial seed of the spread spectrum code. For example, if the total length of the coded packet is 128 bits, the first 8 bits are extracted, and these 8 bits are the initial seed. This initial seed is a binary value, ranging from 0 to 255. Second, the initial seed is input into a linear feedback shift register, and a spread spectrum code sequence of a predetermined length is generated through iterative shifting. For example, an 8-stage linear feedback shift register is used, with its feedback taps connected to stages 8, 6, 5, and 4. During each shift, the feedback bit is calculated as the logical XOR of the current values of each stage. The initial seed is loaded into the 8 stages of the register, and then the shift operation is performed according to the system clock, outputting one bit for each shift. After 1023 consecutive shifts, a spread spectrum code sequence of 1023 bits is obtained. Each bit in this sequence is either 0 or 1. Finally, the remaining bits in the encoded packet are logically added bit-by-bit to the spreading code sequence, and the result is output as the spreading waveform. Specifically, the encoded packet has 128 bits; the first 8 bits are used as the initial seed, leaving 120 bits. These 120 bits are then XORed bit-by-bit with the first 120 bits of the spreading code sequence: the first bit XORed with the first bit yields the first bit of the output, the second bit XORed with the second bit yields the second bit of the output, and so on until the 120th bit. The resulting 120 bits constitute the baseband representation of the spreading waveform, which is then transmitted to the wide-area communication link via carrier modulation. If the length of the spreading code sequence is greater than the number of remaining bits, only the first few remaining bits are used for the operation.
[0027] In step three, each water bladder within the region receives and stores the received coded packets in its local cache. Water bladders then forward coded packets not yet held by their neighbors in their respective caches via short-range opportunistic communication, forming a distributed relay propagation of coded packets. Specifically, this includes: Multiple random number sequences of the same length as the coefficient vector are sequentially drawn from a pre-defined random number sequence pool, with each sequence serving as the basis for a projection. The random number sequence pool is constructed as follows: an initial seed is selected, for example, 12345, and then random numbers are generated iteratively using the linear congruential method. The recursive relationship of the linear congruential method is: the current random number equals the multiplier multiplied by the previous random number, plus the increment, and the remainder is taken modulo 2. The multiplier is 1664525, the increment is 1013904223, and the modulus is 2 to the power of 32. Each iteration generates a 32-bit integer, which is divided by the modulus to obtain a decimal between 0 and 1. This decimal is then multiplied by 65535 and rounded down to obtain an integer between 0 and 65535, which is used as the random number. The required number of random numbers are generated continuously in the above manner and stored in the random number sequence pool in the order of generation. The length of each random number sequence is equal to the length of the coefficient vector, and the length of the coefficient vector is equal to the number of original symbols. For example, if the original number of symbols is 100, then each random number sequence contains 100 random numbers, each of which is an integer between 0 and 65535.
[0028] The coefficient vector is multiplied by the corresponding random number in the current random number sequence, and the sum is used as the component of the current projection. Let the coefficient vector be... ,in The original number of symbols, For the first There are several coefficients (values ranging from 0 to 255); the current random number sequence is... ,in Let the number be random. The formula for calculating the component P of this projection is as follows: ; in, The modulus is 65537 (a prime number). and Multiply and then sum them up, then divide the sum by itself. The remainder obtained by taking the remainder is the component of this projection, and its value ranges from 0 to 65536, which is an integer.
[0029] The above multiplication, accumulation, and modulo operations are repeated using different random number sequences. The components obtained from each accumulation are concatenated in order to form a fixed-length projection value. For example, to generate a 32-bit projection value, 32 different random number sequences are selected, and 32 projection components are calculated sequentially. Each projection component has a value range of 0 to 65536, which needs to be represented as a 16-bit binary number (because 65536 is less than 2 to the power of 16). The 16-bit values corresponding to these 32 components are concatenated end-to-end in the order of calculation to obtain a projection value with a total length of 32 multiplied by 16, which equals 512 bits. This projection value is the compact digital fingerprint of the water sac's current cache state.
[0030] The water bladder broadcasts the aforementioned projection value via short-range opportunistic communication. Each water bladder broadcasts its locally calculated projection value to the surrounding area via a short-range communication link (such as LoRa) at preset time intervals, such as every 10 seconds. The broadcast projection value is 512 bits long, with an additional identifier for the water bladder itself.
[0031] After receiving the projected value, the neighboring water tank performs a bit-by-bit differential comparison with its own buffered projected value. Specifically, both projected values are treated as binary bit strings, and a bit-by-bit XOR operation is performed starting from the first bit to obtain a new differential bit string. The number of bits with a value of 1 in this differential bit string is then counted, denoted as the Hamming distance. Let the received projected value be A and the current projected value be B, then the formula for calculating the Hamming distance D is as follows: ; in, and represents the k-th bit (0 or 1) of the projected values A and B respectively, and ⊕ represents the XOR operation. The value of D is an integer between 0 and 512, representing the number of bits that distinguish the two projected values.
[0032] When the Hamming distance D is not zero, it indicates a difference in the buffer states of the two water bags, meaning each holds the missing encoded packets from the other. At this point, the two water bags establish a point-to-point communication link and begin exchanging encoded packets with linearly independent coefficient vectors in their respective buffers. The specific exchange process is as follows: Each waterbag lists the coefficient vectors corresponding to all encoded packets in its local cache, forming a coefficient matrix. Then, Gaussian elimination is used to determine whether each encoded packet is linearly independent relative to the encoded packets currently held by the other party. To avoid duplicate transmissions, the two waterbags adopt the following strategy: Waterbag A sends the hash values of the coefficient vectors of all encoded packets in its cache (e.g., calculating a 256-bit hash value using the SHA-256 algorithm) to Waterbag B; upon receiving this, Waterbag B compares each hash value with the hash values of encoded packets in its own cache, filters out encoded packets it does not possess, and sends the coefficient vectors of these encoded packets and their corresponding accumulated values to Waterbag A. Simultaneously, Waterbag A performs the same filtering operation, sending its missing encoded packets to Waterbag B. Both parties receive and store the encoded packets sent by the other, completing mutual supplementation.
[0033] After the exchange is completed, the number of linearly independent encoded packets in the local buffer of each water bladder increases. The process of broadcasting projection values, performing differential comparisons, and exchanging encoded packets is repeated until the projection values of all water bladders converge, i.e., the Hamming distance D becomes 0, indicating that the water bladders in the area have essentially synchronized their respective encoded packets. At this point, even if the original broadcast signal from the monitoring center fails to cover all water bladders, each water bladder can obtain a sufficient number of encoded packets for subsequent decoding through distributed relay propagation between the water bladders.
[0034] In step four, when forwarding encoded packets, the water bladder linearly combines multiple encoded packets in its local cache to generate a combined encoded packet before broadcasting it. Subsequent water bladders receive the combined encoded packet and continue to participate in combining and forwarding it. Specifically, this includes: The waterbag selects two encoded packets from its local cache, denoted as the first encoded packet and the second encoded packet, respectively. Each encoded packet consists of two parts: a coefficient vector and a cumulative value. The coefficient vector records the encoding coefficients multiplied by each original symbol when the encoded packet was generated, and the cumulative value is the sum of the products. To generate a combined encoded packet, the waterbag first needs to determine two combination coefficients, corresponding to the weights of the first and second encoded packets, respectively.
[0035] The water bladder reads the value of its internal timer. This timer starts accumulating from the moment the water bladder is powered on, recording the time elapsed since the start time in milliseconds. For example, the current timer reading is 1234567 milliseconds. The water bladder stores a prime number, 65537. The timer value is divided by this prime number, and the remainder is calculated. Specifically, the timer value is subtracted continuously from multiples of the prime number until the remainder is less than the prime number. The remainder is the first coefficient. The first coefficient is an integer between 0 and 65536. If the remainder is 0, it is adjusted to 1 to avoid information loss after combination due to a zero coefficient. The adjusted first coefficient is denoted as α.
[0036] Then, subtract the first coefficient α from the value 1 to obtain the second coefficient β. Since α is an integer between 1 and 65536, subtracting α from 1 will result in a negative number. To ensure the operation is performed within a finite field, the result of the subtraction is modulo the prime number 65537, i.e., the remainder after adding the negative number (if negative) to the prime number and dividing by the prime number. Specifically, calculate 1 minus α; if the result is positive, it is directly used as β; if the result is negative, add 65537 to the result to obtain an integer between 0 and 65536, which is used as the second coefficient β. For example, if α=2, then 1-2=-1, adding 65537 gives 65536, i.e., β=65536. If α=65536, then 1-65536=-65535, adding 65537 gives 2, i.e., β=2. It can be seen that α and β are additive inverses modulo 65537.
[0037] The first encoded packet is multiplied by the first coefficient, then the second encoded packet is multiplied by the second coefficient, and finally the two products are summed. The sum is used as the combined encoded packet. The specific multiplication operations are performed in a Galois field of order 2 to the power of 8. The multiplication rules in this field use a standard lookup table method: a product table for any two elements (integers between 0 and 255) in the field is pre-calculated, and the result is obtained directly by looking up the table during multiplication. The first encoded packet contains its own coefficient vector and a sum. Each coefficient in its coefficient vector is multiplied by the first coefficient (in the Galois field) to obtain a new coefficient vector; its sum is multiplied by the first coefficient to obtain a new sum. The second encoded packet is processed similarly. Then, the two new coefficient vectors are added in corresponding positions (Galois field addition, i.e., bitwise XOR) to obtain the coefficient vector of the combined encoded packet; the two new sums are added to obtain the sum of the combined encoded packet. This combined encoded packet is the result of a linear combination and can be directly broadcast by the waterbag via short-range communication. After receiving the combined encoded packet, the water bladder stores it in its cache and can continue to participate in subsequent combinations and forwarding.
[0038] In step five, the target water bladder continuously collects encoded packets. When the number of linearly independent encoded packets in the local cache reaches the decoding threshold, the original control commands are decoded and restored, and corresponding actions are executed according to the command content, specifically including: During the continuous collection of encoded packets, the target water bag determines whether the coefficient vector of each new encoded packet is linearly independent of the coefficient vectors of existing encoded packets in its local cache. The determination method is as follows: The coefficient vectors of existing encoded packets are used to construct a matrix, which is then transformed into row echelon form using Gaussian elimination. The coefficient vector of the new encoded packet is then added as an augmenting row. If all coefficients in the row are zero after elimination, and the right-hand side is also zero, then the packet is considered linearly dependent; otherwise, it is linearly independent. Only when the packets are linearly independent are they retained and stored in the cache. The target water bag continuously counts the number of linearly independent encoded packets in the cache. When this number reaches a decoding threshold, the decoding process is initiated. The decoding threshold is equal to the number of original symbols; for example, if the number of original symbols is 100, then 100 linearly independent encoded packets need to be collected.
[0039] During decoding, the coefficient vectors corresponding to all linearly independent encoded packets in the local cache are first arranged into an upper triangular matrix, with the accumulated value corresponding to each encoded packet serving as the right-hand element of that row. Specifically, all coefficient vectors are arranged row-wise, and Gaussian elimination is used to process each row from top to bottom. For the first row, a pivot coefficient (non-zero coefficient) is selected, and all rows below it are row-wise transformed to eliminate the coefficients in that column, making the coefficients in that column zero in all rows below. This process is repeated for the second row, selecting the non-zero coefficients from the second column onwards in the second row as pivots and eliminating the coefficients in the corresponding columns of all rows below them. This process continues until the last row, resulting in an upper triangular matrix where the first coefficient of the first row is non-zero, the first coefficient of the second row is zero and the second coefficient is non-zero, the first two coefficients of the third row are zero and the third coefficient is non-zero, and so on. The accumulated value of each encoded packet undergoes the same row-wise transformation synchronously with that row.
[0040] Then, starting from the last row of the triangular matrix, we substitute back to solve for the original symbols. The equation corresponding to the last row is in the form that the pivot coefficient multiplied by the nth original symbol equals the right-hand side of that row. Dividing the right-hand side by the pivot coefficient yields the value of the nth original symbol. The division operation is performed in a Galois field of order 2 to the power of 8, i.e., multiplied by the multiplicative inverse of the pivot coefficient. For example, if the pivot coefficient is 5, and its multiplicative inverse is a pre-calculated value stored in a table (such as 205), then multiplying the right-hand side by 205 gives the quotient.
[0041] After obtaining the last primitive symbol, substitute it into the second-to-last row. The equation in the second-to-last row is in the form of: the first non-zero coefficient of this row multiplied by the primitive symbol at the corresponding position, plus the second non-zero coefficient of this row multiplied by the primitive symbol already found, equals the right-hand side term. Multiply the primitive symbols already found by their corresponding coefficients and subtract them from the right-hand side term to obtain an equation containing only one unknown. Then divide the right-hand side term by the principal coefficient to obtain the primitive symbol at that position. Specifically, the subtraction operation in Galois fields is addition (XOR), because subtraction is equal to addition.
[0042] Repeat this process row by row upwards: For the i-th row, the pivot element is located in the i-th column. This row has non-zero coefficients from the i-th to the n-th column, where the original symbols corresponding to the (i+1)-th to n-th columns have already been obtained in subsequent back-substitution. Multiply these known original symbols by the coefficients corresponding to their respective columns, sum all the multiplications, and then subtract this sum from the right-hand side of the row (i.e., add the opposite of the sum) to obtain a new right-hand side term. Finally, divide the new right-hand side term by the pivot element coefficient of the i-th column to obtain the value of the i-th original symbol.
[0043] After all rows have been substituted back, the resulting values are concatenated sequentially from the first original symbol to the nth original symbol to reconstruct the complete original control instruction bit sequence. The target water bladder then parses the instruction and executes the corresponding action, such as opening the water outlet valve, activating heating and antifreeze functions, or performing auxiliary spraying.
[0044] The working principle of this invention is as follows: The remote monitoring center divides the control command to be issued into a sequence of original symbols with a fixed bit length, and generates random coding coefficients using chaotic mapping iteration. Each original symbol is multiplied by its corresponding coding coefficient, and the results are accumulated to generate multiple fountain code coding packets. Each coding packet carries a weighted sum of all original symbols. The monitoring center forms a broadcast queue of these coding packets in sequence. Within each broadcast time slot, the coding packets are modulated into a spread spectrum waveform using direct sequence spread spectrum and then broadcast to the target water bladder area via a wide-area communication link in a one-way, unacknowledged manner. Each coding packet is transmitted at least three times, and the spread spectrum code sequence is rotated according to a preset pseudo-random order each time. Each water bladder in the area receives and stores the received coding packets in its local buffer. Each water bladder generates a fixed-length projection by randomly projecting the coefficient vectors corresponding to all coding packets in its local buffer. The projection values are broadcast between water sacs via short-range opportunistic communication, and bit-by-bit differential comparisons are performed. When the difference is non-zero, the linearly independent coded packets with coefficient vectors in their respective buffers are exchanged, forming a distributed relay propagation of coded packets. When forwarding coded packets, the water sacs take the modulo of a preset prime number based on the value of their internal timer to obtain the first coefficient, and subtract the first coefficient from one to obtain the second coefficient. They multiply the first coded packet in their local buffer by the first coefficient, and the second coded packet by the second coefficient, and then accumulate the results to generate a combined coded packet before broadcasting it. Subsequent water sacs receive the combined coded packet and continue to participate in the combination and forwarding. The target water sac continuously collects coded packets. When the number of linearly independent coded packets in its local buffer reaches the decoding threshold, it arranges the coefficient vectors into an upper triangular matrix and solves the original symbols by row-by-row substitution. The original control commands are then reconstructed by splicing them in order, and the corresponding actions are executed according to the command content.
[0045] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.
Claims
1. A remote monitoring and linkage control method based on intelligent fire-fighting water bladders, characterized in that, Includes the following steps: Step 1: The remote monitoring center breaks down the control commands to be issued into raw symbols and uses fountain code encoding to generate multiple encoded packets. Each encoded packet carries information that can independently participate in subsequent decoding. Step 2: The monitoring center broadcasts the coded packet to the area where the target water bladder is located via a wide area communication link in a one-way, unacknowledged manner, without waiting for any reception confirmation during the broadcast process; Step 3: Each water bladder in the area receives and stores the received coded packets in its local cache. The water bladders forward coded packets in their respective caches that have not yet been held by their neighbors through short-range opportunistic communication, forming a distributed relay propagation of coded packets. Step 4: When forwarding encoded packets, the water bladder linearly combines multiple encoded packets in its local cache to generate a combined encoded packet before broadcasting it. Subsequently, the water bladder receives the combined encoded packet and continues to participate in the combination and forwarding. Step 5: The target water bladder continuously collects encoded packets. When the number of linearly independent encoded packets in the local cache reaches the decoding threshold, the original control commands are decoded and restored, and corresponding actions are executed according to the command content.
2. The remote monitoring and linkage control method based on intelligent fire-fighting water tank according to claim 1, characterized in that, The generation of multiple encoded packets specifically includes: The control instructions are divided into a sequence of original symbols with a fixed bit length, and each original symbol is regarded as a numerical element in a finite field. A set of random values following a uniform distribution is generated by iteratively using chaotic mapping, and each random value is quantified into a coding coefficient in the same finite field as the original symbol. Each original symbol is multiplied by its corresponding coding coefficient and then summed. The sum is used as a coding packet. The chaotic mapping iteration and summation process is repeated until a predetermined number of coding packets are generated.
3. The remote monitoring and linkage control method based on intelligent fire-fighting water tank according to claim 1, characterized in that, The monitoring center broadcasts the encoded packets to the area where the target water bladder is located via a wide-area communication link in a one-way, unacknowledged manner, specifically including: The generated encoded packets are arranged in order to form a broadcast queue; In each broadcast time slot, a coded packet is sequentially taken from the broadcast queue, modulated into a spread spectrum waveform using direct sequence spread spectrum, and then transmitted through a wide area communication link. The transmission continues until each encoded packet in the broadcast queue has been transmitted at least three times, with the spreading code sequence of each transmission rotating in a preset pseudo-random order.
4. The remote monitoring and linkage control method based on intelligent fire-fighting water tank according to claim 3, characterized in that, The process of modulating the coded packets into a spread spectrum waveform using the direct sequence spread spectrum method and then transmitting it through a wide-area communication link specifically includes: The first few bits are extracted sequentially from the encoded packet as the initial seed of the spreading code; The initial seed is input into a linear feedback shift register, and a spreading code sequence of a predetermined length is generated through iterative shifting; The remaining bits in the encoded packet are logically added bit by bit to the spreading code sequence, and the result is output as the spreading waveform.
5. The remote monitoring and linkage control method based on intelligent fire-fighting water tank according to claim 1, characterized in that, The method of forwarding coded packets that are not yet held by a neighbor in their respective buffers via short-range opportunistic communication specifically includes: Each water bladder randomly projects the coefficient vectors corresponding to all encoded packets in its local cache to generate a fixed-length projection value; Water bladders broadcast projection values via short-range opportunistic communication. After receiving the broadcast value, neighboring water bladders compare the projection value with their own buffered projection value bit by bit. When the difference result is non-zero, the two water bags exchange the linearly independent coding packets in their respective buffers to complete the mutual supplementation of the missing coding packets.
6. The remote monitoring and linkage control method based on intelligent fire-fighting water tank according to claim 5, characterized in that, The generation of a fixed-length projection value specifically includes: Multiple random number sequences of the same length as the coefficient vector are sequentially selected from a preset random number sequence pool, and each random number sequence is used as the reference for one projection. Multiply each element in the coefficient vector by the corresponding random number in the current random number sequence and sum the results. The sum is then used as the component of this projection. The random number sequence is changed sequentially and the process is repeated. Each element in the coefficient vector is multiplied by the random number at the corresponding position in the current random number sequence and then accumulated. The components obtained from each accumulation are then concatenated in order to form a projection value of fixed length.
7. The remote monitoring and linkage control method based on intelligent fire-fighting water tank according to claim 1, characterized in that, The generation of the combined encoded packet specifically includes: Select two encoded packets from the local cache, and denote them as the first encoded packet and the second encoded packet, respectively; The first coefficient is obtained by taking the modulo of the preset prime number based on the current value of the timer inside the water bladder, and the second coefficient is obtained by subtracting the first coefficient from one. The first encoded packet is multiplied by the first coefficient, and then multiplied by the second encoded packet and the second coefficient. The resulting sum is used as the combined encoded packet.
8. The remote monitoring and linkage control method based on intelligent fire-fighting water tank according to claim 1, characterized in that, The decoding and restoration of the original control commands specifically includes: Arrange the coefficient vectors corresponding to all linearly independent encoded packets in the local cache into a triangular matrix, and use the accumulated value corresponding to each encoded packet as the right-hand item of the row. Starting from the last row of the triangular matrix, divide the right-hand term by its pivot coefficient to obtain the corresponding original symbol value; Multiply the calculated original symbol value by other non-zero coefficients in the row, then subtract it from the right-hand item of each row above. Repeat this process row by row upwards until all original symbols are obtained. Concatenate them in order to obtain the original control command.
