Intelligent telemetry terminal networking method based on communication state switching
By employing a multi-dimensional link status assessment and a collaborative reporting method for telemetry terminals, the problem of unstable link identification by LoRa smart telemetry terminals under weak coverage and obstruction conditions was solved, thus achieving stable and reliable data transmission.
Patent Information
- Application Number
- CN202611407487.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-27
AI Technical Summary
In LoRa smart telemetry terminal networking, telemetry terminals are prone to unstable link status identification due to transient fluctuations under conditions of weak coverage, obstruction, and recovery handover, which makes it difficult to coordinate the data forwarding process stably and reduces the reliability of network communication.
By combining multi-dimensional link status assessment with telemetry terminal collaborative reporting, the telemetry terminal switches to a suspected obstruction state when it judges the risk of obstruction, sends a distress data frame, and is confirmed by the gateway through deduplication, thus ensuring the stability of data transmission.
It improves link identification stability and data transmission continuity under weak coverage and obstruction conditions, thereby enhancing the reliability of network communication.
Smart Images

Figure CN123185533A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of wireless communication and the Internet of Things, specifically to a method for networking intelligent telemetry terminals based on LoRa. Background Technology
[0002] Currently, in LoRa-based smart telemetry terminal networks, telemetry terminals typically rely on single communication results to determine link status under conditions of weak coverage, obstruction, and recovery handover. This makes them susceptible to risk identification due to transient fluctuations. Furthermore, during uplink interruptions, the collaborative reporting, confirmation deduplication, and recovery determination of data to be forwarded often lack a unified state transition, making it difficult for link anomaly identification and data forwarding processes to coordinate stably and reducing the reliability of network communication. Summary of the Invention
[0003] The main objective of this invention is to propose a LoRa-based intelligent telemetry terminal networking method that combines multi-dimensional link status assessment with collaborative reporting by telemetry terminals. This enables accurate identification of obstruction risks and stable data forwarding in the face of weak coverage or uplink interruption, thereby improving the reliability of network communication.
[0004] The objective of this invention can be achieved through the following technical solutions: A LoRa-based intelligent telemetry terminal networking method is applied to a monitoring network including telemetry terminals and gateways. The telemetry terminals switch between normal reporting status, suspected obstruction status, collaborative reporting status, and recovery confirmation status. In normal reporting mode, the telemetry terminal obtains the link quality of the current communication cycle and determines the obstruction risk value based on the difference between the link quality and the historical link quality, the number of consecutive unacknowledged connections, and the duration of disconnection. When the obstruction risk value is greater than the preset risk threshold, the number of consecutive unconfirmed calls is greater than the preset number threshold, and the difference is greater than the preset decrease threshold, the telemetry terminal enters the suspected obstruction state and sends a distress data frame according to the preset proximity communication parameters. The distress data frame carries the telemetry terminal identifier, service sequence number, and telemetry data to be forwarded. Normal communication telemetry terminals in the regular reporting state, after detecting distress data frames and extracting telemetry data to be forwarded, switch to collaborative reporting state and send their own telemetry data and telemetry data to be forwarded to the gateway in the same uplink message. The gateway deduplicates the received data based on the telemetry terminal identifier and the service sequence number, and sends an acknowledgment frame to the telemetry terminal that sent the received data. A telemetry terminal in a suspected obstruction state periodically sends direct connection probe frames. When the number of consecutively received confirmation frames reaches a preset confirmation count threshold, it enters the recovery confirmation state. If the number of consecutively received confirmation frames does not reach the preset confirmation count threshold within a preset time period, it is determined to be a link anomaly.
[0005] Preferably, obtaining the link quality for the current communication cycle includes: the gateway carrying a received signal strength indication, signal-to-noise ratio, and message sequence number for link quality updates in the acknowledgment frame sent by the gateway for the uplink data of the telemetry terminal; When the telemetry terminal receives an acknowledgment frame and the message sequence number matches the uplink data, it updates the local sliding average received signal strength indicator and sliding average signal-to-noise ratio using a preset sliding window length as the current link quality. When the telemetry terminal does not receive an acknowledgment frame in the current communication cycle, it retains the moving average received signal strength indication and moving average signal-to-noise ratio of the previous communication cycle as the current link quality, and accumulates the number of consecutive unacknowledgments, and accumulates the disconnection duration according to the length of the current communication cycle; wherein, the difference between the link quality and the historical link quality is: calculate the percentage decrease of the received signal strength indication and signal-to-noise ratio relative to their respective historical valid records, record non-positive percentage decreases as zero, and take the largest percentage decrease value among the above percentage decreases as the difference.
[0006] Preferably, determining the obstruction risk value includes: using preset maximum link quality difference, maximum number of retransmissions, and maximum tolerable disconnection duration respectively; inputs exceeding the corresponding upper limit are counted according to the corresponding upper limit, and inputs not exceeding the corresponding upper limit are counted according to the ratio of inputs not exceeding the corresponding upper limit to the corresponding upper limit; the difference, number of consecutive unacknowledged messages, and disconnection duration are normalized by division to obtain three normalized values in the range of 0 to 1. The occlusion risk value is obtained by multiplying the three normalized values by their respective preset weights and then summing them. The sum of the preset weights is 1, and the weights corresponding to the differences are... Based on the historical communication success rate of the telemetry terminal The weighting of consecutive unconfirmed calls and the weighting of the duration of lost contact decrease as the number of calls decreases. The formulas for calculating these weightings are: In the formula, As the weight for the number of consecutive unconfirmed cases, Weighted by duration of lost contact; historical communication success rate of telemetry terminals. The calculation formula is: in, This represents the total number of acknowledgment frames received by the telemetry terminal that match the message sequence number. This represents the total number of uplink messages sent by the telemetry terminal.
[0007] Preferably, it further includes: when the historical link quality of the telemetry terminal is lower than the weak coverage threshold for multiple consecutive communication cycles, and the difference is less than the mutation threshold, the telemetry terminal is determined to be in a continuous weak coverage state. The telemetry terminal adjusts the spreading factor and transmit power under continuous weak coverage conditions until it receives an acknowledgment frame from the gateway or reaches the maximum hardware transmit power; whereby the weak coverage threshold is less than the lower limit of the quality of the normal communication link, and the sudden change threshold is less than the decrease threshold.
[0008] Preferably, sending a distress data frame according to preset proximity communication parameters includes: the telemetry terminal reading locally configured proximity communication parameters, which include preset distress channel, distress spreading factor and distress transmission power, wherein the distress spreading factor is less than the spreading factor in the normal reporting state; The telemetry terminal determines the number of transmissions based on the remaining battery capacity and sends distress data frames according to the nearest communication parameters; When the size of the telemetry data to be forwarded exceeds the single frame length threshold, the telemetry data to be forwarded is divided into segments of fixed length, and each segment is assigned the same service sequence number and a different segment number before being sent sequentially.
[0009] Preferably, the detection of distress data frames includes: the gateway sending nearby communication parameters and the corresponding listening window duration to normal communication telemetry terminals within the same subnet; After periodic wake-up, before sending its own telemetry data, a telemetry terminal in normal communication performs channel activity detection according to neighboring communication parameters. When a LoRa preamble matching the neighbor communication parameters is detected, and the preamble signal strength is greater than the wake-up threshold, the system switches to continuous reception mode and determines the reception hold duration.
[0010] Preferably, sending its own telemetry data and telemetry data to be forwarded to the gateway in the same uplink message includes: the telemetry terminal in the collaborative reporting state generates a collaborative reporting packet when sending uplink messages, and the payload of the collaborative reporting packet contains its own telemetry data and telemetry data to be forwarded in sequence; When the total length of its own telemetry data and the telemetry data to be forwarded exceeds the preset maximum load, the telemetry data to be forwarded is split into multiple batches, and a collaborative reporting packet containing its own telemetry data and the first batch of telemetry data to be forwarded is sent first at the current uplink transmission time. The gateway deduplicates the received telemetry data to be forwarded based on the telemetry terminal identifier and service sequence number in the distress data frame, and carries the corresponding batch of collaborative reception confirmation identifier in the sent confirmation frame.
[0011] Preferably, it also includes: if a telemetry terminal in the collaborative reporting state does not receive a collaborative reception confirmation flag in the current communication cycle, it will resend the unconfirmed batch of collaborative reporting packets at the next uplink transmission opportunity; When the number of retransmissions reaches the preset retransmission threshold, the transmission of unacknowledged batches of collaborative reporting packets is stopped; after receiving the collaborative reception confirmation flag, the telemetry terminal in the collaborative reporting state deletes the corresponding batch of telemetry data to be forwarded from the queue to be sent. After receiving all batches under the same service sequence number, the gateway reassembles the batches according to the service sequence number and batch, and marks the reassembled telemetry data to be forwarded as cooperative forwarding data.
[0012] Preferably, a telemetry terminal in a suspected obstruction state periodically sends direct connection probe frames and enters a recovery confirmation state or is determined to have a link anomaly, including: The telemetry terminal in a suspected obstruction state sends direct connection detection frames according to the communication parameters in the normal reporting state during the preset detection cycle; When the recovery confirmation condition is met, the system enters the recovery confirmation state. The recovery confirmation condition is that the system continuously receives confirmation frames for a preset number of confirmations thresholds, and the received signal strength indication and signal-to-noise ratio in the confirmation frames are not lower than the preset recovery received signal strength indication threshold and recovery signal-to-noise ratio threshold, respectively. If the number of consecutive unconfirmed calls does not reach the preset threshold during the recovery confirmation period, the number of consecutive unconfirmed calls and the duration of disconnection will be cleared to zero, and the system will switch back to the normal reporting status. If the recovery confirmation conditions are not met within the preset time period, the telemetry terminal stops sending distress data frames, caches the telemetry data to be forwarded locally, and generates a link anomaly alarm by the telemetry terminal or gateway.
[0013] The beneficial effects of this invention are: 1. This invention calculates the obstruction risk value based on the link quality of the current communication cycle, the historical link quality difference, the number of consecutive unacknowledged connections, and the duration of disconnection under normal reporting conditions. When the risk value, the number of unacknowledged connections, and the link degradation rate all meet the conditions, the system switches to the suspected obstruction state. This effectively reduces the interference of a single communication fluctuation on the identification of link anomalies and makes the judgment of weak coverage, obstruction, and recovery handover more stable and reliable. 2. This invention improves the adaptability of risk assessment to transient fluctuations and low success rate situations by normalizing and weighting the difference, the number of consecutive unacknowledged responses, and the duration of lost contact, and by reducing the weight of the difference as the historical communication success rate decreases. By sending a distress data frame carrying the telemetry terminal identifier, service sequence number, and telemetry data to be forwarded under suspected obstruction conditions, and having the telemetry terminal listen to and report the data collaboratively, and the gateway confirming the data after deduplication based on the telemetry terminal identifier and service sequence number, the invention achieves the continued transmission of data to be forwarded in the event of uplink interruption, thereby improving the continuity of network communication. Attached Figure Description
[0014] Other features, objects, and advantages of the invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a flowchart of a LoRa-based smart telemetry terminal networking method according to an embodiment. Detailed Implementation
[0015] 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.
[0016] Please see Figure 1 A LoRa-based intelligent telemetry terminal networking method is applied to a monitoring network including telemetry terminals and gateways. The telemetry terminals switch between normal reporting status, suspected obstruction status, collaborative reporting status, and recovery confirmation status, including: In normal reporting mode, the telemetry terminal obtains the link quality of the current communication cycle and determines the obstruction risk value based on the difference between the link quality and the historical link quality, the number of consecutive unacknowledged messages, and the duration of disconnection. When the obstruction risk value is greater than the preset risk threshold, the number of consecutive unconfirmed calls is greater than the preset number threshold, and the difference is greater than the preset decrease threshold, the telemetry terminal enters the suspected obstruction state and sends a distress data frame according to the preset proximity communication parameters. The distress data frame carries the telemetry terminal identifier, service sequence number, and telemetry data to be forwarded. Normal communication telemetry terminals in the regular reporting state, after detecting distress data frames and extracting telemetry data to be forwarded, switch to collaborative reporting state and send their own telemetry data and telemetry data to be forwarded to the gateway in the same uplink message. The gateway deduplicates the received data based on the telemetry terminal identifier and the service sequence number, and sends an acknowledgment frame to the telemetry terminal that sent the received data. A telemetry terminal in a suspected obstruction state periodically sends direct connection probe frames. When the number of consecutively received confirmation frames reaches a preset confirmation count threshold, it enters the recovery confirmation state. If the number of consecutively received confirmation frames does not reach the preset confirmation count threshold within a preset time period, it is determined to be a link anomaly. Obtaining the link quality for the current communication cycle includes: the gateway carrying received signal strength indication, signal-to-noise ratio, and message sequence number in the acknowledgment frame sent by the gateway for the uplink data of the telemetry terminal for link quality updates; When the telemetry terminal receives an acknowledgment frame and the message sequence number matches the uplink data, it updates the local sliding average received signal strength indicator and sliding average signal-to-noise ratio using a preset sliding window length as the current link quality. When the telemetry terminal does not receive an acknowledgment frame in the current communication cycle, it retains the moving average received signal strength indicator and moving average signal-to-noise ratio of the previous communication cycle as the current link quality, and accumulates the number of consecutive unacknowledgments, and accumulates the disconnection time according to the length of the current communication cycle; wherein, the difference between the link quality and the historical link quality is: calculate the percentage decrease of the received signal strength indicator and signal-to-noise ratio relative to their respective historical valid records, record non-positive percentage decreases as zero, and take the largest percentage decrease value among the above percentage decreases as the difference; The determination of the obstruction risk value includes: using the preset maximum difference in link quality, maximum number of retransmissions, and maximum tolerable disconnection duration respectively. Inputs exceeding the corresponding upper limit are counted according to the corresponding upper limit, and inputs not exceeding the corresponding upper limit are counted according to the ratio of the inputs not exceeding the corresponding upper limit to the corresponding upper limit. The difference, the number of consecutive unacknowledged messages, and the disconnection duration are normalized by division to obtain three normalized values in the range of 0 to 1. The occlusion risk value is obtained by multiplying the three normalized values by their respective preset weights and then summing them. The sum of the preset weights is... Furthermore, the weight corresponding to the difference decreases as the historical communication success rate of the telemetry terminal decreases.
[0017] In the underground pipeline monitoring network, the telemetry terminal sends business data such as water level, pressure, gas concentration or valve position to the gateway according to the preset reporting cycle; the telemetry terminal receives the confirmation frame sent by the gateway in each communication cycle and updates the link quality record stored locally accordingly. The link quality record does not rely directly on the result of a single reception, but combines the moving average received signal strength indication and the moving average signal-to-noise ratio to form the current link quality, so as to reduce the impact of a single fluctuation on subsequent judgments. When a telemetry terminal fails to receive an acknowledgment frame for several consecutive communication cycles, the telemetry terminal no longer waits for new link quality feedback, but maintains the sliding average received signal strength indication and sliding average signal-to-noise ratio of the previous effective cycle, and simultaneously accumulates the number of consecutive unacknowledgments and the duration of disconnection. After the above data is written into the local status record of the telemetry terminal, the telemetry terminal calculates the obstruction risk value based on the difference between the link quality and the historical link quality, the number of consecutive unacknowledged connections, and the duration of disconnection. The difference, the number of consecutive unacknowledged connections, and the duration of disconnection are normalized and then weighted and summed according to their respective weights. Among them, when the early communication success rate of the telemetry terminal is less than the preset success rate threshold, the weight corresponding to the difference is reduced accordingly to reduce the impact of short-term fluctuations on risk assessment. When the risk value exceeds the risk threshold, the number of consecutive unconfirmed calls exceeds the number threshold, and the link quality degradation exceeds the degradation threshold, the telemetry terminal enters a suspected blockage state and organizes the telemetry data to be reported into a distress data frame, which is then sent using preset proximity communication parameters. The distress data frame carries the telemetry terminal identifier, service sequence number and telemetry data to be forwarded, which is used by telemetry terminals and gateways in the collaborative reporting state to complete identification and deduplication. Other telemetry terminals in the regular reporting state, after hearing the distress data frame, extract the telemetry data to be forwarded in the frame into the local queue to be sent, and send it to the gateway along with their own telemetry data in their next uplink opportunity. The gateway performs deduplication processing on duplicate data based on the telemetry terminal identifier and service sequence number, and sends an acknowledgment frame to the telemetry terminal that sent and received the data. During this period, a telemetry terminal in a suspected obstruction state sends direct detection frames at a fixed detection cycle; if the number of consecutively received confirmation frames reaches a preset confirmation number threshold, the telemetry terminal enters the recovery confirmation state. If the number of consecutive acknowledgment frames received within a preset time period does not reach the preset acknowledgment number threshold, the link will be judged as abnormal, and telemetry data to be forwarded will be retained for subsequent processing. The link quality update, obstruction judgment, distress call transmission and recovery confirmation are connected through local status records to avoid the lack of judgment basis when the uplink is interrupted. In this embodiment, the link quality record uses a binary record composed of a moving average received signal strength indicator and a moving average signal-to-noise ratio. The historical link quality is taken from the binary record corresponding to the most recent received acknowledgment frame whose sequence number matches the uplink data. The link quality of the current communication cycle is compared with the historical link quality component by component. The percentage decrease of the received signal strength indication and signal-to-noise ratio relative to their respective historical valid records is calculated. Non-positive percentage decreases are recorded as zero, and the largest percentage decrease among the above percentage decreases is taken as the difference. Therefore, the difference represents the maximum dimensionless decrease of the current link relative to the most recent valid link, and both the difference and the decrease threshold are measured in percentage units. The maximum link quality difference, maximum retransmission count, and maximum tolerable disconnection duration are all configured by the gateway to be greater than zero. Among them, the maximum retransmission count is used to limit the normalized upper limit of the number of consecutive unacknowledged messages, and the maximum tolerable disconnection duration is used to limit the normalized upper limit of the disconnection duration. During normalization, inputs exceeding the corresponding upper limit are counted according to the corresponding upper limit, while inputs not exceeding the corresponding upper limit are counted according to the ratio of the inputs not exceeding the corresponding upper limit to the corresponding upper limit, so that all three normalized values are within the range of 0 to 1; when the input is zero, its normalized value is zero; when writing configuration parameters, the telemetry terminal verifies that the three upper limit parameters are positive values, and if the configuration does not meet the conditions, it adopts the preset valid default value, thereby avoiding division by zero in the normalization process; All three preset weights are values not less than zero, and their sum is 1. Therefore, the occlusion risk value is within the range of 0 to 1, and the risk threshold and decrease threshold are configured according to this range. The historical communication success rate is calculated based on the matching results of acknowledgment frames and sent uplink messages, and its calculation formula is as follows: in, For historical communication success rate, This represents the total number of acknowledgment frames received by the telemetry terminal that match the message sequence number. This represents the total number of uplink messages sent by the telemetry terminal, and its value range is... ; Weights corresponding to the differences Based on historical communication success rates The preset interval is determined: when hour, ;when hour, ;when hour, The weighting formulas for the number of consecutive unconfirmed calls and the duration of lost contact are as follows: In the formula, As the weight for the number of consecutive unconfirmed cases, The weights for the duration of connection loss are determined. Thus, the link quality difference, the number of consecutive unacknowledged connections, and the duration of connection loss all have definite input sources, normalization upper limits, and weighting relationships, and the higher the risk value, the higher the overall risk of link anomaly.
[0018] In one alternative, the method further includes: when the historical link quality of the telemetry terminal is lower than the weak coverage threshold for multiple consecutive communication cycles, and the difference is less than the mutation threshold, the telemetry terminal is determined to be in a continuous weak coverage state. The telemetry terminal adjusts the spreading factor and transmit power under continuous weak coverage conditions until it receives an acknowledgment frame from the gateway or reaches the maximum hardware transmit power; whereby the weak coverage threshold is less than the lower limit of the quality of the conventional communication link, and the sudden change threshold is less than the decrease threshold. Sending distress data frames according to preset proximity communication parameters includes: the telemetry terminal reading locally configured proximity communication parameters, which include preset distress channel, distress spreading factor and distress transmission power, and the distress spreading factor is smaller than the spreading factor in the normal reporting state; The telemetry terminal determines the number of transmissions based on the remaining battery capacity and sends distress data frames according to the nearest communication parameters; When the size of the telemetry data to be forwarded exceeds the single frame length threshold, the telemetry data to be forwarded is divided into segments of fixed length, and each segment is assigned the same service sequence number and a different segment number before being sent sequentially. The detected distress data frames include: the gateway sending nearby communication parameters and the corresponding listening window duration to normal communication telemetry terminals in the same subnet; After periodic wake-up, before sending its own telemetry data, a telemetry terminal in normal communication performs channel activity detection according to neighboring communication parameters. When a LoRa preamble matching the proximity communication parameters is detected, and the preamble signal strength is greater than the wake-up threshold, the system switches to continuous reception mode and determines the reception hold duration: in, For the duration of the preamble, For load duration, For protection intervals, To handle delays, if no LoRa preamble matching the neighbor communication parameters is detected, the telemetry terminal in normal communication will end the cooperative listening and continue its own telemetry data reporting process.
[0019] Within the same underground pipeline network monitoring area, some telemetry terminals will continuously be in a weak coverage environment during operation; the system combines historical link quality with the current difference to determine whether it is a continuous weak coverage state; If the historical link quality is lower than the weak coverage threshold for multiple consecutive communication cycles, and the difference does not reach the sudden change threshold, the telemetry terminal maintains the continuous weak coverage processing procedure and gradually adjusts the spreading factor and transmit power according to the locally stored strategy. The specific adjustment strategy is as follows: in each communication cycle, the spreading factor is increased step by step. ; Once the spreading factor reaches the hardware-allowed limit, the transmit power is increased in steps. This continues until a gateway acknowledgment frame is received or the maximum transmit power allowed by the hardware is reached. Persistent weak coverage and temporary obstruction are handled separately to avoid telemetry terminals frequently switching states in weak coverage areas. When the telemetry terminal enters a suspected obstruction state, the distress data frame no longer uses the regular reporting parameters, but instead reads the locally configured neighbor communication parameters before being sent. The proximity communication parameters include the distress channel, distress spreading factor, and distress transmission power, wherein the distress spreading factor is lower than the spreading factor in the normal reporting state; The telemetry terminal determines the number of transmissions based on the remaining battery capacity and repeatedly transmits distress data frames within this number of transmissions to control additional energy consumption. If the telemetry data to be forwarded exceeds the single frame length threshold, it is fragmented into fixed lengths, and each fragment is assigned the same service sequence number and a different fragment number before being transmitted sequentially, so that the gateway and telemetry terminal can recover the original data in order. When listening for distress data frames, the telemetry terminal performs a channel activity detection after periodic wake-up and before sending its own telemetry data; the gateway pre-sends the neighboring communication parameters and the corresponding listening window duration to the normal communication telemetry terminals in the same subnet, and the telemetry terminal determines whether there is a LoRa preamble that matches the parameters in the current channel based on this. When the detected preamble signal strength is higher than the wake-up threshold, the telemetry terminal switches to continuous reception mode and determines the reception hold duration according to the preamble duration, payload duration, guard interval and processing delay; if no LoRa preamble matching the proximity communication parameters is detected, the telemetry terminal in normal communication ends the cooperative listening and continues its own telemetry data reporting process.
[0020] In one alternative approach, sending the same uplink message to the gateway, carrying both its own telemetry data and telemetry data to be forwarded, includes: When a telemetry terminal in the collaborative reporting state is uplinking, it generates a collaborative reporting packet. The payload of the collaborative reporting packet contains its own telemetry data and the telemetry data to be forwarded in sequence. When the total length of its own telemetry data and the telemetry data to be forwarded exceeds the preset maximum payload, the telemetry data to be forwarded is split into multiple batches. At the current uplinking time, a collaborative reporting packet containing its own telemetry data and the first batch of telemetry data to be forwarded is sent first. The gateway deduplicates the received telemetry data to be forwarded based on the telemetry terminal identifier and service sequence number in the distress data frame, and carries the corresponding batch of collaborative reception confirmation identifier in the sent confirmation frame. It also includes: if a telemetry terminal in the collaborative reporting state does not receive a collaborative reception confirmation flag in the current communication cycle, it will retransmit the unconfirmed batch of collaborative reporting packets at the next uplink transmission opportunity; when the number of retransmissions reaches the preset retransmission threshold, it will stop sending the unconfirmed batch of collaborative reporting packets. Upon receiving the collaborative reception confirmation flag, the telemetry terminal in the collaborative reporting state deletes the corresponding batch of telemetry data to be forwarded from the queue to be sent. After receiving all batches under the same service sequence number, the gateway reassembles the batches according to the service sequence number and the batch, and marks the reassembled telemetry data to be forwarded as cooperative forwarding data; Telemetry terminals in a suspected obstruction state periodically send direct connection probe frames and enter a recovery confirmation state or are determined to have a link anomaly, including: The telemetry terminal in a suspected obstruction state sends direct connection detection frames according to the communication parameters in the normal reporting state during the preset detection cycle; When the recovery confirmation condition is met, the system enters the recovery confirmation state. The recovery confirmation condition is that the system continuously receives confirmation frames for a preset number of confirmations thresholds, and the received signal strength indication and signal-to-noise ratio in the confirmation frames are not lower than the preset recovery received signal strength indication threshold and recovery signal-to-noise ratio threshold, respectively. If the number of consecutive unconfirmed calls does not reach the preset threshold during the recovery confirmation period, the number of consecutive unconfirmed calls and the duration of disconnection will be cleared to zero, and the system will switch back to the normal reporting status. If the recovery confirmation conditions are not met within the preset time period, the telemetry terminal stops sending distress data frames, caches the telemetry data to be forwarded locally, and generates a link anomaly alarm by the telemetry terminal or gateway.
[0021] When a telemetry terminal in the collaborative reporting state arrives at its designated uplink time, it first generates a collaborative reporting packet, and then puts its own telemetry data and the telemetry data to be forwarded into the payload in sequence. If the total length of the two types of data exceeds the maximum payload, the telemetry terminal will split the telemetry data to be forwarded into multiple batches, and send the first batch of data first at the current sending time, and leave the subsequent batches to be sent at the next uplink time. After receiving the collaborative reporting packet, the gateway performs deduplication based on the telemetry terminal identifier and service sequence number in the distress data frame, and sends back the collaborative reception confirmation identifier for the corresponding batch in the confirmation frame; after receiving the identifier, the telemetry terminal deletes the corresponding batch from the queue to be sent. If not received, the unacknowledged batch will be resent during the next uplink opportunity. However, the batch will be stopped after the number of retransmissions reaches a preset threshold to avoid the batch occupying uplink resources for a long time. For fragments sent separately under the same service sequence number, after receiving all fragments, the gateway reassembles them according to the service sequence number and fragment number, and marks the reassembled data as collaborative forwarding data for the backend platform or subsequent service links to identify its source; the collaborative reporting packet can carry both the telemetry terminal's own services and the data to be forwarded, and the service sequence number association remains consistent between fragmentation, confirmation and reassembly. During the direct connection detection phase, the telemetry terminal in the suspected obstruction state sends direct connection detection frames according to the preset detection cycle, still using the communication parameters in the normal reporting state, and does not rely on the cooperative path to complete the recovery determination. The telemetry terminal enters the recovery confirmation state only when it receives confirmation frames that reach the preset confirmation number threshold consecutively, and the received signal strength indication and signal-to-noise ratio in the confirmation frame are not lower than the recovery received signal strength indication threshold and the recovery signal-to-noise ratio threshold, respectively. If the number of consecutive unconfirmed calls does not reach the threshold during the preset monitoring period after the confirmation status is restored, the number of consecutive unconfirmed calls and the duration of disconnection will be cleared to zero, and the system will switch back to the normal reporting status. If the recovery confirmation condition is not met within the preset time period, the telemetry terminal will stop sending distress data frames, cache the telemetry data to be forwarded locally, and generate a link anomaly alarm by the telemetry terminal or gateway.
Claims
1. A LoRa-based intelligent telemetry terminal networking method, applied to a monitoring network including telemetry terminals and gateways, characterized in that, The telemetry terminal switches between normal reporting state, suspected obstruction state, collaborative reporting state, and recovery confirmation state, including: In normal reporting mode, the telemetry terminal obtains the link quality of the current communication cycle and determines the obstruction risk value based on the difference between the link quality and the historical link quality, the number of consecutive unacknowledged connections, and the duration of disconnection. When the obstruction risk value is greater than a preset risk threshold, the number of consecutive unconfirmed calls is greater than a preset number threshold, and the difference is greater than a preset decrease threshold, the telemetry terminal enters a suspected obstruction state and sends a distress data frame according to preset proximity communication parameters. The distress data frame carries the telemetry terminal identifier, service sequence number, and telemetry data to be forwarded. A normal communication telemetry terminal in the regular reporting state, after detecting the distress data frame and extracting the telemetry data to be forwarded, switches to the collaborative reporting state and sends its own telemetry data and the telemetry data to be forwarded to the gateway in the same uplink message. The gateway deduplicates the received data based on the telemetry terminal identifier and the service sequence number, and sends an acknowledgment frame to the telemetry terminal that sent the received data. A telemetry terminal in a suspected obstruction state periodically sends direct connection probe frames. When the number of consecutively received confirmation frames reaches a preset confirmation count threshold, it enters the recovery confirmation state. If the number of consecutively received confirmation frames within a preset time period does not reach the preset confirmation count threshold, it is determined to be a link anomaly.
2. The method for networking intelligent telemetry terminals based on LoRa according to claim 1, characterized in that, Obtaining the link quality for the current communication cycle includes: In the acknowledgment frame sent by the gateway to the uplink data of the telemetry terminal, the received signal strength indication, signal-to-noise ratio and message sequence number are carried for link quality updates. When the telemetry terminal receives the acknowledgment frame and the message sequence number matches the uplink data, it updates the local sliding average received signal strength indicator and sliding average signal-to-noise ratio using a preset sliding window length as the current link quality. When the telemetry terminal does not receive the acknowledgment frame in the current communication cycle, it retains the moving average received signal strength indication and the moving average signal-to-noise ratio of the previous communication cycle as the current link quality, and accumulates the number of consecutive unacknowledgments, and accumulates the disconnection duration according to the length of the current communication cycle; wherein, the difference between the link quality and the historical link quality is: calculating the percentage decrease of the received signal strength indication and the signal-to-noise ratio relative to their respective historical valid records, recording non-positive percentage decreases as zero, and taking the largest percentage decrease among the above percentage decreases as the difference.
3. The method for networking intelligent telemetry terminals based on LoRa according to claim 1, characterized in that, Determining the occlusion risk value includes: The maximum difference in link quality, the maximum number of retransmissions, and the maximum tolerable disconnection duration are preset respectively. The input quantity exceeding the corresponding upper limit is counted according to the corresponding upper limit, and the input quantity not exceeding the corresponding upper limit is counted according to the ratio of the input quantity not exceeding the corresponding upper limit to the corresponding upper limit. The difference, the number of consecutive unacknowledged messages, and the disconnection duration are normalized by division to obtain three normalized values in the range of 0 to 1. The occlusion risk value is obtained by multiplying the three normalized values by their respective preset weights and then summing the results, where the sum of the preset weights is... And the weights corresponding to the differences Based on the historical communication success rate of the telemetry terminal The weighting of consecutive unconfirmed calls decreases as the number of calls decreases, and the weighting of the duration of lost contact is calculated using the following formula: In the formula, As the weight of the number of consecutive unconfirmed cases, Weighted by the duration of lost contact; the historical communication success rate of the telemetry terminal. The calculation formula is: Wherein, Cack is the total number of acknowledgment frames received by the telemetry terminal with matching sequence numbers, and Ctotal is the total number of uplink messages sent by the telemetry terminal.
4. The method for networking intelligent telemetry terminals based on LoRa according to claim 1, characterized in that, Also includes: When the historical link quality of the telemetry terminal is lower than the weak coverage threshold for multiple consecutive communication cycles, and the difference is less than the mutation threshold, the telemetry terminal is determined to be in a continuous weak coverage state. The telemetry terminal adjusts the spreading factor and transmission power under continuous weak coverage conditions until it receives an acknowledgment frame from the gateway or reaches the maximum hardware transmission power. Wherein, the weak coverage threshold is less than the lower limit of the quality of a normal communication link, and the mutation threshold is less than the decrease threshold.
5. The method for networking intelligent telemetry terminals based on LoRa according to claim 1, characterized in that, Sending distress data frames according to preset proximity communication parameters includes: The telemetry terminal reads the locally configured proximity communication parameters, which include a preset distress channel, distress spreading factor, and distress transmission power. The distress spreading factor is smaller than the spreading factor in the normal reporting state. The telemetry terminal determines the number of transmissions based on the remaining battery capacity and sends distress data frames according to the proximity communication parameters. When the size of the telemetry data to be forwarded exceeds the single frame length threshold, the telemetry data to be forwarded is divided into segments of fixed length, and each segment is assigned the same service sequence number and a different segment number before being sent sequentially.
6. The method for networking intelligent telemetry terminals based on LoRa according to claim 1, characterized in that, The distress data frames detected include: The gateway sends the proximity communication parameters and the corresponding listening window duration to normal communication telemetry terminals within the same subnet; After periodic wake-up, before sending its own telemetry data, the telemetry terminal in normal communication performs channel activity detection according to the neighboring communication parameters. When a LoRa preamble matching the aforementioned proximity communication parameters is detected, and the preamble signal strength is greater than the wake-up threshold, the system switches to continuous reception mode and determines the reception hold duration: in, For the duration of the preamble, For load duration, For protection intervals, To handle delays, if no LoRa preamble matching the neighbor communication parameters is detected, the telemetry terminal in normal communication ends the cooperative listening and continues the reporting process of its own telemetry data.
7. The method for networking intelligent telemetry terminals based on LoRa according to claim 1, characterized in that, Sending its own telemetry data and the telemetry data to be forwarded to the gateway in the same uplink message includes: When a telemetry terminal in the collaborative reporting state sends an uplink data, it generates a collaborative reporting packet. The payload of the collaborative reporting packet contains its own telemetry data and the telemetry data to be forwarded in sequence. When the total length of the self-telemetry data and the telemetry data to be forwarded exceeds the preset maximum load, the telemetry data to be forwarded is split into multiple batches, and a collaborative reporting packet containing the self-telemetry data and the first batch of telemetry data to be forwarded is sent first during the current uplink transmission time; the gateway deduplicates the received telemetry data to be forwarded according to the telemetry terminal identifier and the service sequence number in the distress data frame, and carries the collaborative reception confirmation identifier of the corresponding batch in the sent confirmation frame.
8. The method for networking intelligent telemetry terminals based on LoRa according to claim 7, characterized in that, Also includes: If a telemetry terminal in the collaborative reporting state does not receive the collaborative reception confirmation flag in the current communication cycle, it will retransmit the unconfirmed batch of collaborative reporting packets at the next uplink transmission opportunity; when the number of retransmissions reaches the preset retransmission threshold, it will stop sending the unconfirmed batch of collaborative reporting packets. Upon receiving the collaborative reception confirmation identifier, the telemetry terminal in the collaborative reporting state deletes the corresponding batch of telemetry data to be forwarded from the queue to be sent. After receiving all batches under the same service sequence number, the gateway reassembles the batches according to the service sequence number and the batch, and marks the reassembled telemetry data to be forwarded as cooperative forwarding data.
9. The method for networking intelligent telemetry terminals based on LoRa according to claim 1, characterized in that, Telemetry terminals in a suspected obstruction state periodically send direct connection probe frames and enter a recovery confirmation state or are determined to have a link anomaly, including: The telemetry terminal in a suspected obstruction state sends direct connection detection frames according to the communication parameters in the normal reporting state during the preset detection cycle; When the recovery confirmation condition is met, the recovery confirmation state is entered. The recovery confirmation condition is that the confirmation frames are received continuously for a preset number of confirmation times threshold, and the received signal strength indication and signal-to-noise ratio in the confirmation frames are not lower than the preset recovery received signal strength indication threshold and recovery signal-to-noise ratio threshold, respectively. During the recovery confirmation state, a preset monitoring period is maintained. If the number of consecutive unconfirmed calls does not reach the preset threshold during this period, the number of consecutive unconfirmed calls and the duration of disconnection are cleared to zero, and the system switches back to normal reporting. If the recovery confirmation condition is not met within the preset time period, the telemetry terminal stops sending the distress data frame, caches the telemetry data to be forwarded locally, and generates a link anomaly alarm by the telemetry terminal or gateway.
