A multi-scenario adaptive network adaptation method, system, terminal, and medium for complex on-site network environments.

By using a multi-dimensional network quality scoring model and dynamic power consumption adjustment, the problems of full communication coverage and inaccurate handover in complex network environments are solved, achieving seamless transmission and power consumption optimization, and extending device battery life.

CN123124041APending Publication Date: 2026-11-17SHENZHEN CHUANGREN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611232689.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-14
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing technologies struggle to achieve full coverage communication across multiple scenarios in complex network environments, suffer from inaccurate handover decisions, and exhibit issues such as data interruption and uneven power consumption.

Method used

By employing a multi-dimensional network quality scoring model combined with multi-link hot backup and redundant transmission, and dynamically adjusting device power consumption parameters, seamless switching and network interruption resumption can be achieved.

Benefits of technology

It achieves full-coverage communication in complex network environments, precise switching decisions, zero-interruption transmission, dynamic power consumption balancing, and extended device battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123124041A_ABST
    Figure CN123124041A_ABST
Patent Text Reader

Abstract

This invention discloses a multi-scenario adaptive network adaptation method, system, terminal, and medium for complex network environments in the field. The method includes: after the device is powered on, acquiring the current geographical location information, identifying the current communication scenario type, and determining the initial detection priority of each communication mode; performing multi-dimensional quality detection on all communication links to obtain multi-dimensional detection data; inputting the multi-dimensional detection data into a multi-dimensional network quality scoring model to obtain a real-time quality score and determine the optimal communication link; when the optimal communication link is inconsistent with the currently used communication link, triggering a network switching process, and dynamically adjusting the device power consumption parameters during normal operation of the IoT terminal device. This invention achieves permanent online operation and stable data transmission for devices in complex network environments through the synergistic cooperation of network quality adaptive detection algorithms, seamless switching and network interruption resumption technologies, and low-power adaptive control technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet of Things (IoT) communication technology, and in particular to a multi-scenario adaptive network adaptation method, system, terminal, and medium for complex on-site network environments. Background Technology

[0002] With the rapid advancement of smart city construction, a large number of IoT terminals, such as smart water meters, water quality monitoring terminals, and pipeline pressure monitoring equipment, are being deployed in various scenarios, including urban water supply networks, underground utility tunnels, and suburban pumping stations. However, the on-site network environment is extremely complex: municipal pipeline areas often face problems such as weak 4G / 5G signal coverage and severe building obstruction; underground pumping stations and well monitoring points often lack network cable access and suffer from severe 4G signal attenuation; and suburban and remote sites face challenges such as insufficient operator signal coverage and poor communication stability.

[0003] Several multi-mode communication solutions have been proposed in the existing technology. For example, some patents disclose a gateway link switching control method based on multiple modules, which selects the target module by acquiring network data transmitted by multiple modules and combining it with a preset strategy; other patents propose a heterogeneous network dual-mode adaptive switching method, which performs signal strength calibration and switching decisions through multi-dimensional environmental perception data; still other solutions achieve link switching by constructing a link quality weighted evaluation model for cellular mobile networks, narrowband IoT, and Wi-SUN networks. In addition, in the field of water conservancy monitoring, technical solutions integrating LTE, NB-IoT, LoRa, and BeiDou multi-radio frequencies have been proposed.

[0004] However, the aforementioned existing technologies still have the following shortcomings: 1. Most solutions only support dual-mode or tri-mode switching, and the coverage of communication standards is not comprehensive, making it difficult to meet the differentiated needs of various communication scenarios such as public networks, IoT private networks, and local area networks at the same time.

[0005] 2. Existing network quality assessment methods often rely on a single indicator (such as signal strength) and lack a comprehensive assessment of multiple dimensions such as packet loss rate, latency, signal-to-noise ratio, and traffic stability, resulting in inaccurate handover decisions and easy handover errors or handover delays.

[0006] 3. Data interruption or packet loss is common during network switching, and there is a lack of truly seamless switching and network interruption resume mechanism.

[0007] 4. Existing solutions do not fully consider the differentiated control of power consumption under different network modes. In weak network environments, blindly increasing the transmission power leads to a serious reduction in the equipment's battery life, while in high-quality network environments, the low power consumption advantage cannot be fully utilized.

[0008] Therefore, existing technologies still need improvement. Summary of the Invention

[0009] To address the aforementioned shortcomings of existing technologies, this invention provides a multi-scenario adaptive network adaptation method, system, terminal, and medium for complex on-site network environments. The technical solution adopted by this invention is as follows: In a first aspect, the present invention provides a multi-scenario adaptive network adaptation method for complex network environments, applicable to IoT terminal devices integrating 4G / 5G full-network-compatible modules, NB-IoT modules, LoRa modules, and WiFi modules, the method comprising: After the IoT terminal device is powered on, the current geographical location information is obtained, and the communication scenario type of the IoT terminal device is identified by combining it with the preset scene feature database, and the initial detection priority of each communication mode is determined. According to the preset detection cycle, perform multi-dimensional quality detection on all communication links to obtain multi-dimensional detection data. The detection dimensions include at least one of signal strength, packet loss rate, round-trip time, signal-to-noise ratio, and traffic stability. The multidimensional detection data of each communication link is input into the pre-constructed multidimensional network quality scoring model to calculate the real-time quality score of each communication link, and the optimal communication link is determined based on the real-time quality score. When the optimal communication link is inconsistent with the currently used communication link, a network switching process is triggered. During the normal operation of the IoT terminal device, the device power consumption parameters are dynamically adjusted according to the currently used communication mode and the real-time quality score of each communication link, including adaptive adjustment of transmit power, adaptive adjustment of heartbeat reporting frequency, and adaptive adjustment of backup module sleep strategy.

[0010] In one implementation, the optimal communication link is determined based on real-time quality scoring, including: All available communication links are sorted according to real-time quality scores; The communication link with the highest score is selected as the optimal communication channel, wherein the weight coefficients of each dimension of the multi-dimensional network quality scoring model are dynamically adjusted according to the identified communication scenario type. Alternatively, the weighting coefficients for each dimension can be dynamically adjusted based on the type of current data service, including: For alarm data services with high real-time requirements, increase the weight of the latency dimension; For batch meter reading data services, increase the weight of throughput and stability. For device configuration update services, increase the weight of the packet loss rate dimension.

[0011] In one implementation, the real-time quality score is calculated as follows: Q=α S+β (1-L)+γ (1-D / D max )+δ N+ε (1-F) Where S is the normalized signal strength value, L is the normalized packet loss rate, and D is the normalized delay value. max α is the normalized maximum delay, N is the normalized signal-to-noise ratio, and F is the normalized traffic fluctuation value; α, β, γ, δ, and ε are the weighting coefficients corresponding to the five dimensions of signal strength, packet loss rate, delay, signal-to-noise ratio, and traffic stability, respectively.

[0012] In one implementation, the network handover process is executed using a multi-link hot backup mechanism, including: Before the switchover is triggered, the communication module of the backup link is activated to standby mode to ensure that the backup link has completed the network attachment preprocessing. The data stream of the current communication session is sent redundantly in dual-path transmission at the application layer. During the handover transition period, the same data packet is sent simultaneously via the current link and the backup link. Once the communication quality of the backup link is confirmed to be stable, the main control unit will switch the default route of the data flow from the original link to the backup link. After the switch is completed, the communication resources of the original link will be released or the original link module will be put into a low-power standby state.

[0013] In one implementation, the method further includes: When the real-time quality score of all available communication links is detected to be lower than the preset communication interruption threshold, the device is determined to enter a network outage state. The metering data, status data, and alarm data to be uploaded are stored in a local non-volatile circular cache queue according to timestamps and data types, and the network connection is periodically attempted to be restored at increasing time intervals. When the real-time quality score of any communication link rises above the preset communication recovery threshold, the cached data is resumed sequentially from the point of network disconnection according to the data timestamp order.

[0014] In one implementation, the adaptive adjustment of the transmit power employs a step-by-step gradual adjustment strategy, including: When the signal strength of the current communication link is lower than the preset first signal threshold, the transmission power of the corresponding module is gradually increased until the maximum allowable transmission power is reached. When the signal strength is higher than the preset second signal threshold, the transmission power is gradually reduced until the minimum allowable transmission power is reached. The adaptive adjustment of the heartbeat reporting frequency includes: When the real-time quality score is higher than the first network threshold, the IoT terminal device reports the heartbeat at a normal frequency; When the real-time quality score is lower than the second network threshold, the IoT terminal device automatically extends the heartbeat reporting interval; When the IoT terminal device is in a network outage caching mode, heartbeat reporting is suspended until the network is restored. The adaptive sleep strategy for the backup module includes: In a high-quality network environment, backup modules that are not currently in use enter a deep sleep state; In a weak network environment, the backup module maintains a shallow sleep state with rapid wake-up.

[0015] In one implementation, the method further includes: Repeatedly execute the communication link detection, real-time quality score calculation, communication link screening, network switching execution, and power consumption control process; The system periodically reports link quality detection data, handover event records, and power consumption data to the cloud platform. The cloud platform then performs offline optimization and iteration of the weight coefficients of the multi-dimensional network quality scoring model based on the accumulated operating data, and sends the optimized model parameters to the device via OTA.

[0016] Secondly, embodiments of the present invention also provide a multi-scenario adaptive network adaptation system for complex network environments in the field, wherein the system is used to implement the steps of the multi-scenario adaptive network adaptation method for complex network environments in the field as described in any of the above solutions, and the system includes: The communication scenario type analysis module is used to obtain the current geographical location information after the IoT terminal device is powered on and started up, and to identify the current communication scenario type of the IoT terminal device in combination with the preset scenario feature database, and determine the initial detection priority of each communication mode. The multi-dimensional detection module is used to perform multi-dimensional quality detection on all communication links according to a preset detection cycle to obtain multi-dimensional detection data. The detection dimensions include at least one of signal strength, packet loss rate, round-trip time, signal-to-noise ratio, and traffic stability. The network quality scoring module is used to input the multidimensional detection data of each communication link into a pre-built multidimensional network quality scoring model, calculate the real-time quality score of each communication link, and determine the optimal communication link based on the real-time quality score. The network switching and power consumption control module is used to trigger a network switching process when the optimal communication link is inconsistent with the currently used communication link. During the normal operation of the IoT terminal device, it dynamically adjusts the device power consumption parameters based on the currently used communication mode and the real-time quality scores of each communication link, including adaptive adjustment of transmit power, adaptive adjustment of heartbeat reporting frequency, and adaptive adjustment of backup module sleep strategy.

[0017] Thirdly, embodiments of the present invention also provide a terminal, wherein the terminal includes a memory, a processor, and a multi-scenario adaptive network adaptation program for complex network environments stored in the memory and executable on the processor. When the processor executes the multi-scenario adaptive network adaptation program for complex network environments, it implements the steps of the multi-scenario adaptive network adaptation method for complex network environments in any of the above-mentioned schemes.

[0018] Fourthly, embodiments of the present invention also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a multi-scenario adaptive network adaptation program for complex network environments in the field, and the multi-scenario adaptive network adaptation program for complex network environments in the field implements the steps of the multi-scenario adaptive network adaptation method for complex network environments in the field as described in any of the above schemes on the computer-readable storage medium.

[0019] Beneficial Effects: Compared with existing technologies, this invention provides a multi-scenario adaptive network adaptation method for complex network environments. First, after the IoT terminal device powers on, it acquires its current geographical location information and, in conjunction with a pre-set scenario feature database, identifies the current communication scenario type of the IoT terminal device, determining the initial detection priority of each communication mode. Next, according to a preset detection cycle, multi-dimensional quality detection is performed on all communication links to obtain multi-dimensional detection data. The detection dimensions include at least one of signal strength, packet loss rate, round-trip time, signal-to-noise ratio, and traffic stability. Then, the multi-dimensional detection data of each communication link is input into a pre-constructed multi-dimensional network quality scoring model to calculate the real-time quality score of each communication link. Based on the real-time quality score, the optimal communication link is determined. When the optimal communication link is inconsistent with the currently used communication link, a network switching process is triggered. During the normal operation of the IoT terminal device, the device power consumption parameters are dynamically adjusted according to the currently used communication mode and the real-time quality scores of each communication link, including adaptive adjustment of transmit power, adaptive adjustment of heartbeat reporting frequency, and adaptive adjustment of backup module sleep strategy.

[0020] This invention achieves permanent online operation and stable data transmission for devices in complex network environments through the synergistic combination of multi-network converged hardware architecture, network quality adaptive detection algorithm, seamless switching and network interruption resume technology, and low-power adaptive control technology. Attached Figure Description

[0021] Figure 1 This is a flowchart of a preferred embodiment of the multi-scenario adaptive network adaptation method for complex network environments in the field, according to an embodiment of the present invention.

[0022] Figure 2This is a technical framework diagram of a multi-scenario adaptive network adaptation system for complex network environments in the field, according to an embodiment of the present invention.

[0023] Figure 3 A schematic diagram of a terminal provided in an embodiment of the present invention. Detailed Implementation

[0024] To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0025] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content, operations, or steps, nor does it require execution in the described order. For example, some operations or steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.

[0026] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0027] It should be understood that, in order to clearly describe the technical solutions of the embodiments of the present invention, the terms "first" and "second" are used in the embodiments of the present invention to distinguish identical or similar items with essentially the same function and effect. For example, the first control information and the second control information are only used to distinguish different control information and do not limit their order.

[0028] Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or the order of execution, and that the words "first" and "second" do not necessarily imply that they are different.

[0029] It should also be understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0030] The method in this embodiment can be applied to a terminal, which can be a mobile phone, tablet, computer, or other intelligent electronic device. Figure 1 As shown in the figure, the multi-scenario adaptive network adaptation method for complex network environments in this embodiment specifically includes the following steps: Step S100: After the IoT terminal device is powered on and started, the current geographical location information is obtained, and the communication scenario type of the IoT terminal device is identified in combination with the preset scene feature database, and the initial detection priority of each communication mode is determined.

[0031] The method in this embodiment can be applied to IoT terminal devices integrating 4G / 5G full-network modules, NB-IoT modules, LoRa modules, and WiFi modules. It is suitable for field IoT terminal communication gateways and can be integrated into various water terminals such as smart water meters, pressure transmitters, and water quality monitors, or used as an independent gateway to connect to traditional water equipment. The IoT terminal device specifically includes a main control unit, a multi-standard communication module set, a GNSS positioning module, a storage unit, a power management unit, and a radio frequency front-end unit. The main control unit uses a 32-bit low-power microcontroller based on the ARM Cortex-M4 core, specifically the STM32L4R5ZIY6, with a maximum clock frequency of 120MHz, 2MB Flash and 640KB SRAM, supporting multiple low-power operating modes, and operating current as low as 10μA / MHz. As the core of the entire device, the main control unit is responsible for running network quality assessment algorithms, switching control logic, power management strategies, and service data scheduling, while also managing the working status of all peripheral modules. Furthermore, this embodiment sets up a multi-standard communication module set including four types of communication modules, covering three communication scenarios: wide area public network, wide area low power private network, and local area self-organizing network, as detailed below: 4G / 5G Full-Network Compatibility Module: This full-network compatible module adopts the Cat.1bis standard, supports LTE-FDD / LTE-TDD full frequency bands, is compatible with the 4G networks of the three major operators, has an uplink peak rate of 5Mbps, and a downlink peak rate of 10Mbps, suitable for high-speed data transmission in urban areas and other areas with good public network coverage. The module connects to the main control unit via a UART interface, supporting AT command control and PPP dial-up internet access.

[0032] NB-IoT Module: Supports the NB-IoT frequency bands of the three major operators (B3, B5, and B8), with a receiving sensitivity of up to -129dBm. It features strong penetration capability and extremely low power consumption, making it suitable for low-speed data transmission in areas with weak public network signals, such as underground and suburban areas. The module connects to the main control unit via a UART interface and supports CoAP / MQTT protocol transmission.

[0033] LoRa module: Operates in the 470-510MHz ISM free band, supports adjustable spreading factor from SF7 to SF12, maximum transmit power of 20dBm, receive sensitivity up to -148dBm, and transmission distance of 3-5 kilometers. Suitable for local area network transmission in areas without public network coverage, such as underground utility tunnels and mine shafts. The module connects to the main control unit via an SPI interface and supports the LoRaWAN protocol.

[0034] WiFi module: Supports 2.4GHz band 802.11b / g / n standards, supports Station and AP modes, suitable for scenarios with existing WiFi coverage such as water plants and industrial parks, enabling low-cost, high-speed data transmission. The module connects to the main control unit via an SDIO interface and supports the TCP / IP protocol stack.

[0035] The GNSS positioning module can be equipped with a tri-mode positioning module supporting GPS, BeiDou, and GLONASS (Global Navigation Satellite System), achieving a positioning accuracy of up to 2.5 meters. It supports a low-power positioning mode, with an initial positioning time of less than 32 seconds. The module connects to the main control unit via a UART interface, outputting positioning data in NMEA-0183 format to provide location information such as latitude, longitude, altitude, and speed for scene recognition.

[0036] Specifically, after the IoT terminal device powers on, the main control unit initializes the 4G / 5G full-network compatible module, NB-IoT module, LoRa module, and WiFi module sequentially according to a preset order, reading the firmware version, operating status, operator configuration information, and RF parameters of each module. To avoid excessive power spikes caused by multiple modules powering on simultaneously, the main control unit initializes each communication module sequentially according to a preset order: first initializing the 4G / 5G module, then the NB-IoT module, followed by the LoRa module, and finally the WiFi module. After each module powers on, the main control unit reads the module's firmware version, IMEI / IMSI, operator PLMN information, RF operating status, and network attachment status via AT commands to confirm that the module is working normally.

[0037] Meanwhile, the device obtains the latitude, longitude, and altitude information of its current geographical location through its built-in GNSS positioning module. Combined with a pre-set scene feature database, it initially identifies the communication scene type in which the device is currently located and determines the initial detection priority of each communication standard. In this embodiment, the scene feature database pre-stores geofence data and network feature tags for typical water-related scenarios such as urban areas, suburbs, underground utility tunnels, wells, and industrial parks. During scene identification, geofence matching is prioritized to determine the scene type; for areas without geofence data, altitude information and initial network scan results are used for auxiliary determination. By pre-setting detection priorities for scene identification, unnecessary full-module scanning power consumption can be reduced, improving initial network access efficiency. After determining the scene, the system loads the initial detection priority of the corresponding communication standard for the communication scene type, for example: Urban scenarios: 4G / 5G > WiFi > NB-IoT > LoRa Underground / Mine Scenarios: LoRa > NB-IoT > 4G / 5G > WiFi Suburban scenarios: 4G / 5G > NB-IoT > LoRa > WiFi Campus scenario: WiFi > 4G / 5G > NB-IoT > LoRa Once the initial priority is determined, the system prioritizes scanning high-priority links during the initial detection phase, while delaying or reducing the scanning frequency of low-priority links. This reduces power consumption during the initialization phase and speeds up the initial network access.

[0038] Step S200: Perform multi-dimensional quality testing on all communication links according to the preset testing cycle to obtain multi-dimensional testing data. The testing dimensions include at least one of signal strength, packet loss rate, round-trip time, signal-to-noise ratio, and traffic stability.

[0039] After scene recognition is completed, the IoT terminal device enters the multi-link parallel detection phase. The main control unit drives each communication module to asynchronously and in parallel perform multi-dimensional quality detection of the corresponding communication link according to the preset detection cycle. The detection data is uniformly reported to the network quality assessment module of the main control unit for summary processing.

[0040] This embodiment's multi-dimensional quality detection covers five core dimensions: signal strength detection, packet loss rate detection, latency detection, signal-to-noise ratio (SNR) detection, and traffic stability detection. Signal strength and SNR reflect the physical layer quality of the link, packet loss rate and latency reflect the network layer quality, and traffic stability reflects the application layer transmission quality. The detection operations for each link are independent and asynchronous, avoiding the impact of single-module detection anomalies on the overall detection process. Preferably, the detection cycle in this embodiment can be dynamically adjusted according to the current communication scenario. Specifically, in areas with stable network environments such as urban areas, the detection cycle is extended to reduce detection power consumption; in areas with large network fluctuations such as underground utility tunnels and mines, the detection cycle is shortened to improve network status response speed.

[0041] Step S300: Input the multidimensional detection data of each communication link into the pre-constructed multidimensional network quality scoring model, calculate the real-time quality score of each communication link, and determine the optimal communication link based on the real-time quality score.

[0042] Next, the multi-dimensional detection data of each communication link is input into the network quality assessment module. Using a pre-built multi-dimensional network quality scoring model, the real-time quality score of each available communication link is calculated. All available communication links are then sorted from highest to lowest real-time quality score, and the link with the highest score is selected as the optimal communication channel. In this embodiment, the multi-dimensional network quality scoring model comprehensively considers five dimensions: signal strength, packet loss rate, latency, signal-to-noise ratio, and traffic stability. The real-time quality score is calculated as follows: Q=α S+β (1-L)+γ (1-D / D max )+δ N+ε (1-F) Where S is the normalized signal strength value, L is the normalized packet loss rate, and D is the normalized delay value. max α is the normalized maximum delay, N is the normalized signal-to-noise ratio, and F is the normalized traffic fluctuation value; α, β, γ, δ, and ε are the weighting coefficients corresponding to the five dimensions of signal strength, packet loss rate, delay, signal-to-noise ratio, and traffic stability, respectively.

[0043] In this embodiment, the weight coefficients of each dimension of the multi-dimensional network quality scoring model adopt a dynamic adjustment mechanism. On the one hand, the weights can be dynamically adjusted according to the identified communication scenario type; on the other hand, they can also be dynamically adjusted according to the type of current data service, enabling secondary correction of the weights of the corresponding dimensions. This includes: increasing the weight of the latency dimension for alarm data services with high real-time requirements; increasing the weight of the throughput and stability dimensions for batch meter reading data services; and increasing the weight of the packet loss rate dimension for device configuration update services. After the weight correction, the weight coefficients of the five dimensions are normalized to ensure that the sum of the weights is always 1, guaranteeing the consistency and comparability of the scores.

[0044] Step S400: When the optimal communication link is inconsistent with the currently used communication link, a network switching process is triggered. During the normal operation of the IoT terminal device, the device power consumption parameters are dynamically adjusted according to the currently used communication mode and the real-time quality score of each communication link, including adaptive adjustment of transmit power, adaptive adjustment of heartbeat reporting frequency, and adaptive adjustment of backup module sleep strategy.

[0045] In practical applications, if the selected optimal communication channel is inconsistent with the communication channel currently being used by the device, and the switching trigger conditions are met, the network switching process is triggered. The switching process adopts a multi-link hot backup mechanism and an application-layer dual-path redundant transmission strategy. Specifically, before the switching is executed, the communication module of the corresponding backup link is activated from the dormant state to the standby ready state, completing network authentication, attachment, PDP context activation, and IP address acquisition, keeping the RF link and network connection in a ready state. After entering the switching transition period, the main control unit adds a unique sequence number to the data packet at the application layer and sends the same data packet to the cloud platform simultaneously via the currently used link and the backup link. The cloud platform processes redundant data through sequence number deduplication and out-of-order reordering mechanisms to ensure data uniqueness and timing correctness. After the communication quality of the backup link remains stable and the preset switching completion conditions are met, the main control unit switches the default sending route of the data stream from the original link to the backup link. After the switching is completed, dual-path redundant transmission is stopped, and the communication module of the original link is put into low-power standby or deep sleep state to release system resources. Preferably, the switching transition period is preset to 3 to 5 detection cycles, which ensures the stability of the switching process and avoids long-term redundant transmission that wastes bandwidth and power consumption.

[0046] In other implementations, when the real-time quality scores of all available communication links are detected to be lower than the preset communication interruption threshold for multiple consecutive detection cycles, the device is determined to be in a network outage state, and the network outage caching and breakpoint resumption mechanism is automatically activated. Specifically, if the main control unit detects that the real-time quality scores of all communication links are lower than the communication interruption threshold for multiple consecutive detection cycles, it determines that the device is in a network outage state. Then, the alarm data, metering data, device status data, etc., to be uploaded are stored in a local Flash-based circular cache queue according to data priority and timestamp order; the cache queue adopts a power-loss non-volatile storage design to ensure that cached data is not lost when the device experiences an unexpected power outage.

[0047] In practical applications, the data to be uploaded can be divided into three priorities according to the water affairs business attributes and written into the corresponding level of cache queue: First-level high priority: Pipe burst alarms, equipment malfunctions, and water quality exceeding limits are written to the high-speed volatile cache area, with the highest storage priority, and overwriting is prohibited; Second-level medium priority: Periodic metering data and equipment operating status data are written to the non-volatile storage area and arranged in order by timestamp; Level 3 low priority: Run logs and statistical report data are written to the compressed storage area and managed using a circular queue. When the cache is full, the oldest low priority data is automatically overwritten.

[0048] Furthermore, IoT terminal devices periodically attempt network connections at increasingly longer intervals, with the retry interval gradually increasing with the number of failures until it reaches a preset maximum interval limit, ensuring timely recovery while reducing unnecessary power consumption. When the real-time quality score of any communication link rises above the communication recovery threshold, the IoT terminal device resumes the transmission of cached data from the point of data interruption before the network outage, following the timestamp order and data priority. During the resumption process, priority is given to ensuring the transmission of real-time business data, and the resumed data is sent when bandwidth is available.

[0049] During normal operation of IoT terminal devices, the main control unit dynamically adjusts the device's power consumption parameters from three dimensions based on the current communication mode and the real-time quality scores of each communication link, thereby achieving a dynamic balance between communication performance and power consumption. This includes adaptive adjustment of transmit power, adaptive adjustment of heartbeat reporting frequency, and adaptive adjustment of backup module sleep strategy.

[0050] Specifically, the adaptive adjustment of transmit power employs a step-by-step gradual strategy to adjust the transmit power of the corresponding communication module. When the current link signal strength is lower than a preset first signal threshold, the transmit power is gradually increased to ensure communication reliability; when the signal strength is higher than a preset second signal threshold (the second signal threshold is greater than the first signal threshold), the transmit power is gradually decreased to reduce power consumption. The adaptive adjustment of heartbeat reporting frequency dynamically adjusts the heartbeat reporting interval based on the network's overall quality score, including: using a normal heartbeat frequency in a high-quality network environment (i.e., a real-time quality score higher than the first network threshold); extending the heartbeat interval in a weak network environment (i.e., a real-time quality score lower than the second network threshold) to reduce ineffective communication overhead; and suspending heartbeat reporting until the network recovers in a network outage buffering mode. The adaptive adjustment of the module sleep strategy dynamically adjusts the sleep depth of the backup communication module based on network environment stability, including: in a high-quality, stable network environment, the backup module enters a deep sleep state to maximize energy saving; in a weak, fluctuating network environment, the backup module maintains a shallow sleep state for rapid wake-up to ensure fast switching response.

[0051] Furthermore, in other implementations, this embodiment repeatedly executes the communication link detection, real-time quality score calculation, communication link filtering, network handover execution, and power consumption control processes. Simultaneously, the system constructs a cloud-based collaborative global optimization closed loop. Specifically, the system periodically reports each link's quality detection data, handover event records, and power consumption data to the cloud platform. The cloud platform then performs offline optimization and iteration of the weight coefficients of the multi-dimensional network quality scoring model based on the accumulated operational data. The optimized model parameters are then distributed to the device via OTA (Over-The-Air) updates, allowing the device to update its local configuration parameters and achieve continuous iterative improvement of system capabilities. Specifically, during the early morning off-peak period each day, IoT terminal devices report daily operational statistics to the cloud platform, including average / minimum / maximum scores for each link, number of handovers and reasons for handovers, transmit power statistics, power consumption statistics, and cache usage. The edge big data platform aggregates and analyzes the operational data of massive devices by scenario and region, and uses reinforcement learning algorithms to optimize and iterate the weight coefficients of the scoring model and various thresholds (handover threshold, interruption threshold, power threshold, etc.) to find the optimal parameter combination for each scenario. The goal is to minimize the number of handovers and power consumption while ensuring communication reliability. The optimized parameter configuration is distributed to the devices in the corresponding regions via OTA (Over-The-Air) upgrade. The devices update the configuration parameters in their local Flash memory, and subsequent operation adopts the optimized strategy.

[0052] Compared with the prior art, the present invention has the following beneficial effects: (1) Full coverage of communication standards: The device integrates four communication standards: 4G / 5G, NB-IoT, LoRa and WiFi, covering three communication scenarios: public network, IoT private network and local area network, and can adapt to various complex network environments on site.

[0053] (2) Precise switching decision: A multi-dimensional comprehensive scoring model is adopted, which comprehensively considers five dimensions: signal strength, packet loss rate, latency, signal-to-noise ratio, and traffic stability. The weight coefficients are dynamically adjusted according to the scenario type and business type. Compared with the existing single-index or dual-index schemes, the switching decision is more scientific and accurate.

[0054] (3) Seamless switching process: Through the "build first, switch later" hot backup mechanism and dual-path redundant transmission strategy, zero interruption and zero packet loss are achieved during the network switching process.

[0055] (4) Zero data loss: Automatic caching and breakpoint resume mechanism ensure that data is not lost during network interruption and resumes automatically after network recovery.

[0056] (5) Dynamic balance between power consumption and performance: Through adaptive adjustment of transmit power, heartbeat frequency and module sleep strategy, the power consumption of the device is reduced to the maximum extent while ensuring communication reliability, and the battery life of the battery-powered device is extended.

[0057] (6) Continuous self-optimization: The scoring model is iteratively optimized offline through the cloud platform and OTA is deployed, so that the system has the ability to continuously learn and evolve its performance.

[0058] Based on the above embodiments, the present invention also provides a multi-scenario adaptive network adaptation system for complex on-site network environments, the system being used to implement the steps in the above method embodiments. Figure 2As shown, the system includes: a communication scenario type analysis module 10, a multi-dimensional detection module 20, a network quality scoring module 30, and a network switching and power consumption control module 40. Specifically, the communication scenario type analysis module 10 is used to acquire the current geographical location information after the IoT terminal device is powered on and, in conjunction with a pre-set scenario feature database, identify the current communication scenario type of the IoT terminal device and determine the initial detection priority of each communication mode. The multi-dimensional detection module 20 is used to perform multi-dimensional quality detection on all communication links according to a preset detection cycle, obtaining multi-dimensional detection data. The detection dimensions include at least one of signal strength, packet loss rate, round-trip time, signal-to-noise ratio, and traffic stability. The network quality scoring module 30 is used to input the multi-dimensional detection data of each communication link into a pre-constructed multi-dimensional network quality scoring model, calculate the real-time quality score of each communication link, and determine the optimal communication link based on the real-time quality score. The network switching and power consumption control module 40 is used to trigger a network switching process when the optimal communication link is inconsistent with the currently used communication link, and during the normal operation of the IoT terminal device, dynamically adjust the device power consumption parameters according to the currently used communication mode and the real-time quality score of each communication link, including adaptive adjustment of transmit power, adaptive adjustment of heartbeat reporting frequency, and adaptive adjustment of backup module sleep strategy.

[0059] The principles of each module in this embodiment of the multi-scenario adaptive network adaptation system for complex on-site network environments are the same as the implementation process of each step in the above method embodiment, and will not be elaborated further here.

[0060] Based on the above embodiments, the present invention also provides a terminal, the principle block diagram of which can be as follows: Figure 3 As shown. The terminal may include one or more processors 100 ( Figure 3 (Only one is shown in the image), memory 101, and computer program 102 stored in memory 101 and executable on one or more processors 100. For example, a multi-scenario adaptive network adaptation program for complex on-site network environments. When one or more processors 100 execute computer program 102, they can implement the various steps in the multi-scenario adaptive network adaptation method embodiment for complex on-site network environments. Alternatively, when one or more processors 100 execute computer program 102, they can implement the functions of each module / unit in the multi-scenario adaptive network adaptation device embodiment for complex on-site network environments, which is not limited here.

[0061] In one embodiment, the processor 100 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0062] In one embodiment, memory 101 can be an internal storage unit of the terminal, such as a hard disk or RAM. Memory 101 can also be an external storage terminal of the terminal, such as a plug-in hard disk, smart media card (SM), secure digital card (SD), flash card, etc., all equipped on the terminal. Furthermore, memory 101 can include both internal and external storage units. Memory 101 is used to store computer programs and other programs and data required by the terminal. Memory 101 can also be used to temporarily store data that has been output or will be output.

[0063] Those skilled in the art will understand that Figure 3 The block diagram shown is merely a partial structural diagram related to the present invention and does not constitute a limitation on the terminal to which the present invention is applied. A specific terminal may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0064] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), direct memory bus RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0065] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A multi-scenario adaptive network adaptation method for complex on-site network environments, characterized in that, The method, applicable to IoT terminal devices integrating 4G / 5G full-network compatible modules, NB-IoT modules, LoRa modules, and WiFi modules, includes: After the IoT terminal device is powered on, the current geographical location information is obtained, and the communication scenario type of the IoT terminal device is identified by combining it with the preset scene feature database, and the initial detection priority of each communication mode is determined. According to the preset detection cycle, perform multi-dimensional quality detection on all communication links to obtain multi-dimensional detection data. The detection dimensions include at least one of signal strength, packet loss rate, round-trip time, signal-to-noise ratio, and traffic stability. The multidimensional detection data of each communication link is input into the pre-constructed multidimensional network quality scoring model to calculate the real-time quality score of each communication link, and the optimal communication link is determined based on the real-time quality score. When the optimal communication link is inconsistent with the currently used communication link, a network switching process is triggered. During the normal operation of the IoT terminal device, the device power consumption parameters are dynamically adjusted according to the currently used communication mode and the real-time quality score of each communication link, including adaptive adjustment of transmit power, adaptive adjustment of heartbeat reporting frequency, and adaptive adjustment of backup module sleep strategy.

2. The multi-scenario adaptive network adaptation method for complex network environments in the field according to claim 1, characterized in that, Based on real-time quality scoring, the optimal communication link is determined, including: All available communication links are sorted according to real-time quality scores; The communication link with the highest score is selected as the optimal communication channel, wherein the weight coefficients of each dimension of the multi-dimensional network quality scoring model are dynamically adjusted according to the identified communication scenario type. Alternatively, the weighting coefficients for each dimension can be dynamically adjusted based on the type of current data service, including: For alarm data services with high real-time requirements, increase the weight of the latency dimension; For batch meter reading data services, increase the weight of throughput and stability. For device configuration update services, increase the weight of the packet loss rate dimension.

3. The multi-scenario adaptive network adaptation method for complex network environments in the field according to claim 2, characterized in that, The real-time quality score is calculated as follows: Q=a S+β (1-L)+γ (1-D / D max )+d N+e (1-F) Where S is the normalized signal strength value, L is the normalized packet loss rate, and D is the normalized delay value. max α is the normalized maximum delay, N is the normalized signal-to-noise ratio, and F is the normalized traffic fluctuation value; α, β, γ, δ, and ε are the weighting coefficients corresponding to the five dimensions of signal strength, packet loss rate, delay, signal-to-noise ratio, and traffic stability, respectively.

4. The multi-scenario adaptive network adaptation method for complex network environments in the field according to claim 1, characterized in that, The network switching process is executed using a multi-link hot backup mechanism, including: Before the switchover is triggered, the communication module of the backup link is activated to standby mode to ensure that the backup link has completed the network attachment preprocessing. The data stream of the current communication session is sent redundantly in dual-path transmission at the application layer. During the handover transition period, the same data packet is sent simultaneously via the current link and the backup link. Once the communication quality of the backup link is confirmed to be stable, the main control unit will switch the default route of the data flow from the original link to the backup link. After the switch is completed, the communication resources of the original link will be released or the original link module will be put into a low-power standby state.

5. The multi-scenario adaptive network adaptation method for complex network environments in the field according to claim 1, characterized in that, The method further includes: When the real-time quality score of all available communication links is detected to be lower than the preset communication interruption threshold, the device is determined to enter a network outage state. The metering data, status data, and alarm data to be uploaded are stored in a local non-volatile circular cache queue according to timestamps and data types, and the network connection is periodically attempted to be restored at increasing time intervals. When the real-time quality score of any communication link rises above the preset communication recovery threshold, the cached data is resumed sequentially from the point of network disconnection according to the data timestamp order.

6. The multi-scenario adaptive network adaptation method for complex network environments in the field according to claim 1, characterized in that, The adaptive adjustment of the transmit power adopts a step-by-step gradual strategy, including: When the signal strength of the current communication link is lower than the preset first signal threshold, the transmission power of the corresponding module is gradually increased until the maximum allowable transmission power is reached. When the signal strength is higher than the preset second signal threshold, the transmission power is gradually reduced until the minimum allowable transmission power is reached. The adaptive adjustment of the heartbeat reporting frequency includes: When the real-time quality score is higher than the first network threshold, the IoT terminal device reports the heartbeat at a normal frequency; When the real-time quality score is lower than the second network threshold, the IoT terminal device automatically extends the heartbeat reporting interval; When the IoT terminal device is in a network outage caching mode, heartbeat reporting is suspended until the network is restored. The adaptive sleep strategy for the backup module includes: In a high-quality network environment, backup modules that are not currently in use enter a deep sleep state; In a weak network environment, the backup module maintains a shallow sleep state with rapid wake-up.

7. The multi-scenario adaptive network adaptation method for complex network environments in the field according to claim 1, characterized in that, The method further includes: Repeatedly execute the communication link detection, real-time quality score calculation, communication link screening, network switching execution, and power consumption control process; The system periodically reports link quality detection data, handover event records, and power consumption data to the cloud platform. The cloud platform then performs offline optimization and iteration of the weight coefficients of the multi-dimensional network quality scoring model based on the accumulated operating data, and sends the optimized model parameters to the device via OTA.

8. A multi-scenario adaptive network adaptation system for complex on-site network environments, characterized in that, The system is used to implement the steps of the multi-scenario adaptive network adaptation method for complex network environments in any one of claims 1-7, and the system includes: The communication scenario type analysis module is used to obtain the current geographical location information after the IoT terminal device is powered on and started up, and to identify the current communication scenario type of the IoT terminal device in combination with the preset scenario feature database, and determine the initial detection priority of each communication mode. The multi-dimensional detection module is used to perform multi-dimensional quality detection on all communication links according to a preset detection cycle to obtain multi-dimensional detection data. The detection dimensions include at least one of signal strength, packet loss rate, round-trip time, signal-to-noise ratio, and traffic stability. The network quality scoring module is used to input the multidimensional detection data of each communication link into a pre-built multidimensional network quality scoring model, calculate the real-time quality score of each communication link, and determine the optimal communication link based on the real-time quality score. The network switching and power consumption control module is used to trigger a network switching process when the optimal communication link is inconsistent with the currently used communication link. During the normal operation of the IoT terminal device, it dynamically adjusts the device power consumption parameters based on the currently used communication mode and the real-time quality scores of each communication link, including adaptive adjustment of transmit power, adaptive adjustment of heartbeat reporting frequency, and adaptive adjustment of backup module sleep strategy.

9. A terminal, characterized in that, The terminal includes a memory, a processor, and a multi-scenario adaptive network adaptation program for complex network environments stored in the memory and executable on the processor. When the processor executes the multi-scenario adaptive network adaptation program for complex network environments, it implements the steps of the multi-scenario adaptive network adaptation method for complex network environments as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a multi-scenario adaptive network adaptation program for complex on-site network environments, wherein the multi-scenario adaptive network adaptation program for complex on-site network environments implements the steps of the multi-scenario adaptive network adaptation method for complex on-site network environments as described in any one of claims 1-7 on the computer-readable storage medium.