Cpe dialing self-recovery method, device and equipment based on multi-dimensional image and strategy table
By using a multi-dimensional feature sliding window and an adaptive strategy table, the problem of single fault judgment dimension and lack of prediction in CPE dialing self-healing is solved. It can identify fault precursors and select the optimal repair path before dialing failure, reduce the number of invalid restarts, and improve the self-healing capability of CPE devices.
Patent Information
- Application Number
- CN202611073941.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-17
- Publication Date
- 2026-11-27
AI Technical Summary
The existing CPE dialing self-healing solution has a single fault judgment dimension, which cannot reflect the trend of wireless signal strength change and network registration status in the period before dialing failure. This leads to a mismatch between the selected repair action and the actual root cause, and lacks the ability to actively predict fault precursor signals, resulting in frequent invalid repair actions.
By collecting features through a multi-dimensional sliding window, a fault profile vector is generated. A dual-trigger judgment mechanism is used to identify fault precursors. An adaptive strategy table and a greedy strategy are used to select a sequence of repair actions. An adaptive threshold is calculated by combining wireless signal quality and network congestion level to dynamically adjust the triggering of high-cost repair actions.
It enables the identification of early signs of failure before dialing failure, generates a detailed fault profile, dynamically selects the optimal repair path, significantly reduces the number of invalid restarts, and improves the self-healing capability of CPE devices in complex network environments.
Smart Images

Figure CN123185583A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automatic control and fault repair technology for communication terminal equipment, and in particular to a CPE dialing self-healing method, apparatus and equipment based on multi-dimensional profile and strategy table. Background Technology
[0002] Customer Premises Equipment (CPE), acting as a bridging device between the cellular mobile network and the user's local area network (LAN), relies on its automatic dialing capability for users to access the core network and obtain various data services. The CPE uses its built-in modem chip to complete cellular registration, attachment, and packet data protocol context activation, presenting an Ethernet or wireless LAN exit to the upper layers. If automatic dialing fails, the entire device will be unable to provide data connectivity, affecting users' access to all upper-layer services such as entertainment, real-time social networking, and remote conferencing, and potentially leading to complaints in after-sales service and bidding scenarios.
[0003] In existing CPE dial-up self-healing solutions, fault diagnosis generally adopts a binary classification method based on error code strings: after automatic dialing failure, the error code is obtained from the callback parameters of the modem's application programming interface, and the error code is classified into two categories according to the string mapping: internal terminal cause or network-side cause, and then the corresponding fixed repair process is initiated. This judgment method relies only on the feedback of a single dialing failure result. The information dimensions provided by the error code string are limited and cannot reflect key environmental characteristics such as the trend of wireless signal strength changes, network registration status fluctuations, and data plane keep-alive detection results in the period before the dialing failure. Therefore, there is a technical problem of single fault diagnosis dimension: the same error code is classified into the same category in two completely different wireless environments, namely strong coverage cell and weak coverage cell edge, leading to a mismatch between the selection of subsequent repair actions and the current actual root cause. Taking network-side cause-related error codes as an example, in a strong coverage scenario with a Reference Signal Received Power (RSRP) of -75 dBm, the root cause is often a transient rejection by the core network, which can be resolved by performing a single reattachment. However, in a weak coverage cell edge scenario with an RSRP of -115 dBm, the root cause is insufficient coverage due to the terminal's geographical location. In this case, it is necessary to wait for the RSRP to recover or switch frequency bands, rather than repeatedly performing reattachment. Existing solutions cannot distinguish between these two scenarios and can only handle them with the same fixed process. This may introduce unnecessary repair delays in strong coverage scenarios and trigger a large number of invalid repair actions in weak coverage scenarios. Furthermore, existing solutions only passively initiate repair after a dial-up failure event occurs, without utilizing early warning signals such as RSRP sliding window downlink, network registration state reversal, and loss of data plane keep-alive probe packets before the dial-up failure. This results in all repair actions being performed only after the user has perceived the interruption. Therefore, the single fault determination dimension and lack of proactive prediction capabilities for early fault signals in existing technologies are technical problems that need to be solved in the field of CPE dial-up self-healing. Summary of the Invention
[0004] Based on this, this application provides a CPE dialing self-healing method based on multi-dimensional profiling and strategy tables, characterized by including: Based on the multi-dimensional operational features and dialing failure events collected within the sliding window, a fault profile vector is generated through dual-trigger judgment. Based on the fault profile vector, the following is adopted: - The greedy strategy retrieves the recommended repair action sequence from the adaptive strategy table; Based on the wireless signal quality and network congestion level, an adaptive threshold is calculated to control the triggering of high-cost repair actions; Based on the recommended repair action sequence and the adaptive threshold, repair actions are executed sequentially, and the adaptive strategy table is updated based on the exponentially weighted moving average.
[0005] Optionally, the step of generating a fault profile vector based on multi-dimensional operational features and dialing failure events collected within the sliding window, through dual-trigger determination, includes: Based on the arrival of the sampling period, non-blocking subscription to Modem chip API callback parameters is performed, along with the sending and parsing of AT commands and QMI interface messages. Error codes, RSRP, RSRQ, SINR, network registration status, SIM status, data plane keep-alive detection results, and recent data are collected. The dialing results are then processed, and the collected feature samples are stored in a circular buffer of length W to maintain the multi-dimensional running feature sliding window. Based on the samples in the sliding window and the dialing failure events reported by the service module, a dual-trigger judgment is performed: when the error code contained in the dialing failure event is not empty, the failure trigger is hit; when the sample satisfies one of the following rules: weak coverage persistence, registration jitter, PDP false online, or dialing failure rate, the prediction trigger is hit. Based on the sliding window end sample at the time of triggering the hit and the most recent The dialing result is then processed by standardizing the error code or assigning a PRED-Rx identifier, categorizing and quantizing RSRP / RSRQ / SINR, hashing and reducing the dimensionality of PLMN and cell identifier, organizing the dialing result into a bitmap integer, and combining the components into a fault profile vector. The process of combining the components into a fault profile vector is described below. For error codes or prediction identifier components, RSRP gradation quantization values, RSRQ quantization values, SINR quantization values for different ranges, The lower 8 bits of the PLMN hash value. The lower 8 bits of the cell identifier hash value. For SIM state enumeration values, For network registration status enumeration values, For the most recent The integer value of the second dialing result bitmap indicates the fault profile vector. The above nine components are combined in sequence as follows: .
[0006] Optionally, the step of using the fault profile vector... - The greedy strategy obtains the recommended repair action sequence from the adaptive strategy table, including: Based on the fault profile vector, perform key-value calculation, query the adaptive strategy table in local non-volatile storage, and when the fault profile vector does not have a corresponding entry in the adaptive strategy table, initialize the success rate estimate of each action with the prior value and write the new entry back to the adaptive strategy table. Based on the estimated success rate of each action corresponding to the fault profile vector in the adaptive strategy table, execute... - Greedy sorting: Sort all actions except A5 and A6 in descending order of their estimated success rates to generate a candidate sequence. For each action in the candidate sequence, sort them by probability. Bernoulli sampling is performed. When the sampling result is exploration, an action is randomly selected from the set of actions to be explored and inserted at the beginning of the candidate sequence. Then, A5 and A6 are placed at the end of the sequence to obtain the recommended repair action sequence.
[0007] Optionally, the step of calculating an adaptive threshold based on wireless signal quality and network congestion level to control the triggering of high-cost repair actions includes: The average RSRP is calculated based on the RSRP samples within the circular buffer, and a congestion indication is calculated based on the network registration success rate and paging response rate within the sliding window. The calculation of congestion indication, assuming To improve the success rate of registration within the sliding window, For the paging response rate within the sliding window, when or When unavailable, the value is always 1, indicating a congestion indicator. The calculation formula is: ; An adaptive factor is determined from a preset grading table based on the average RSRP and the grading interval to which the congestion indication belongs. The value of ; According to the adaptive factor The current number of system restarts n and the base threshold base are used to calculate the adaptive threshold using the adaptive threshold formula; The adaptive threshold formula assumes that base is a preset base number of iterations. This represents the number of times the entire system has been restarted. Based on the average RSRP and Given a defined adaptive factor, the adaptive threshold is... The calculation formula is: .
[0008] Optionally, the step of sequentially executing repair actions based on the recommended repair action sequence and the adaptive threshold, and updating the adaptive strategy table based on an exponentially weighted moving average, includes: According to the recommended repair action sequence, the AT command interaction process defined for each repair action is executed sequentially, and the success or failure of dialing is used as the basis for determining the action execution result. Based on the adaptive threshold, before executing A5 or A6, check if the current consecutive failure count is greater than or equal to the adaptive threshold. If the threshold is met, execution is allowed; otherwise, the high-cost action is skipped. Based on the result of the action execution The success rate estimate of the corresponding action in the adaptive strategy table is updated according to the exponentially weighted moving average formula, and the updated strategy table is serialized and written into non-volatile storage. The index-weighted moving average update is set as follows: Profiling the fault Corresponding actions The current success rate estimate, For learning rate, If the result of this action is 1 for success and 0 for failure, then the formula for calculating the updated success rate estimate is: .
[0009] Optionally, based on the samples within the sliding window and the dialing failure events reported by the service module, a dual-trigger determination is performed: when the error code contained in the dialing failure event is not empty, the failure trigger is hit; when the sample satisfies one of the following rules: persistent weak coverage, registration jitter, PDP false online status, or dialing failure rate, the prediction trigger is hit, including: Based on the data plane keep-alive probe results of multiple consecutive sampling periods in the circular buffer, the PDP false online rule determination is performed: extract the data plane keep-alive probe sample sequence of the most recent P sampling periods from the circular buffer, convert the response results of DNS queries and ICMP probes in each sampling period into identifier values respectively, and count the number of consecutive identifier values of "no response" in the P sampling periods; when the number of consecutive values is equal to P, it is determined that the PDP false online rule is hit, and the hit rule number participates in the generation of the error code component in the fault profile vector.
[0010] Optionally, the step of executing the action success rate estimate corresponding to the fault profile vector in the adaptive strategy table is performed. - Greedy sorting: Sort all actions except A5 and A6 in descending order of their estimated success rates to generate a candidate sequence. For each action in the candidate sequence, sort them by probability. Bernoulli sampling is performed. When the sampling result is exploration, an action is randomly selected from the set of actions to be explored and inserted at the beginning of the candidate sequence. Then, A5 and A6 are placed at the end of the sequence to obtain the recommended repair action sequence, including: Based on the candidate sequence and the preset exploration probability Insertion of exploratory actions: For each action in the candidate sequence, according to a Bernoulli distribution with probability... Perform a sampling; when the Bernoulli sampling result is exploration, retrieve the actions that have not been tried within the most recent preset number of times from the remaining actions in the action pool except A5 and A6, form a set of actions to be explored, and randomly select an action from the set of actions to be explored, place the action at the beginning of the candidate sequence, and keep the relative order of the remaining actions in the original candidate sequence and continue to the end.
[0011] This application also provides a CPE dialing self-healing device based on multi-dimensional profiles and strategy tables, the device comprising: The dual-trigger fault profile generation module is used to generate a fault profile vector based on the multi-dimensional operational features and dialing failure events collected within the sliding window, through dual-trigger judgment. The adaptive strategy action sorting module is used to sort actions based on the fault profile vector. - The greedy strategy retrieves the recommended repair action sequence from the adaptive strategy table; The adaptive threshold calculation module is used to calculate an adaptive threshold based on the wireless signal quality and network congestion level, and control the triggering of high-cost repair actions. The action execution and strategy update module is used to execute repair actions sequentially according to the recommended repair action sequence and the adaptive threshold, and update the adaptive strategy table based on the exponentially weighted moving average.
[0012] Optionally, the dual-trigger fault profile generation module further includes: The multi-dimensional feature acquisition module is used to periodically collect error codes, wireless signal indicators, network registration status, SIM status, data plane keep-alive detection results, and dialing history results through Modem chip API, AT commands, and QMI interface, and store them in a circular buffer. The dual-trigger determination module is used to perform failure trigger determination and prediction trigger determination based on weak coverage persistence, registration jitter, PDP false online, and dialing failure rate rules, respectively, according to the samples and dialing failure events in the circular buffer. The fault profile vector generation module is used to standardize or assign a prediction label to the error code after a trigger hit, classify and quantize the signal parameters, perform hash dimensionality reduction on the PLMN and cell identifier, organize the dialing history into bitmap integers, and combine the components to generate a fault profile vector.
[0013] This application also provides an electronic device, characterized in that it is used to implement any of the CPE dialing self-healing methods based on multi-dimensional profiles and strategy tables, comprising: The processor is used to execute tasks such as collecting multi-dimensional operational features and maintenance sliding windows, generating fault profile vectors through dual-trigger judgment, and employing... - The greedy strategy obtains the recommended repair action sequence from the adaptive strategy table, calculates the adaptive threshold based on the wireless signal quality and network congestion level, and executes the repair actions in sequence and updates the adaptive strategy table based on the exponentially weighted moving average. The memory is used to store the circular buffer samples, adaptive policy table, key dimension records for cross-scene decontamination, repair action sequence, adaptive threshold calculation results, and intermediate data during the policy table update process necessary to implement the complete calculation and control process.
[0014] The beneficial effects of this application are as follows: By using a sliding window-style acquisition and dual-trigger judgment based on multi-dimensional operational characteristics such as error codes, wireless signal strength, network registration status, data plane keep-alive results, and dialing history, it identifies fault precursors such as persistent weak coverage, registration jitter, and PDP false online status before dialing failure events occur, and generates refined fault profile vectors, achieving a leap from passive response to proactive prediction in fault perception; and through an adaptive strategy table with fault profile vectors as index keys and - A greedy action sequencing mechanism enables the selection of repair actions to autonomously converge to the optimal sequence for each sub-fault scenario as the device runs, realizing the evolution of repair decision-making from a static fixed process to dynamic self-learning; and by using an adaptive threshold jointly calculated based on wireless signal quality and network congestion, the trigger threshold for high-cost repair actions is dynamically adjusted, automatically relaxing restart conditions in weak coverage or congested scenarios and maintaining strict suppression in good signal scenarios, thus significantly reducing the number of invalid restarts. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings required in the description of the embodiments or the prior art are briefly introduced below. Obviously, the accompanying drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0016] Figure 1 A flowchart illustrating a specific embodiment of the CPE dialing self-healing method based on multi-dimensional profile and strategy table according to this application is shown. Figure 2 This document illustrates a flowchart of the steps of a CPE dialing self-healing method based on a multi-dimensional profile and strategy table according to a specific embodiment of this application. Figure 3 This is a block diagram of a CPE dialing self-healing device based on a multi-dimensional profile and strategy table according to a specific embodiment of this application. Table 1 shows the segmented value table of the CPE dialing self-healing method based on multi-dimensional profile and strategy table according to a specific embodiment of this application. Detailed Implementation
[0017] Various exemplary embodiments, features, and aspects of this application will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0018] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0019] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.
[0020] Furthermore, to better illustrate this application, numerous specific details are provided in the following detailed embodiments. Those skilled in the art should understand that this application can be implemented without certain specific details. In some instances, methods, means, components, and circuits well-known to those skilled in the art have not been described in detail in order to highlight the main points of this application.
[0021] This application proposes a CPE dialing self-healing method based on multi-dimensional profiling and a strategy table to address technical issues in existing solutions, such as single fault judgment dimensions, fixed repair processes, hard-coded upgrade thresholds, and lack of prediction and self-learning capabilities. This application constructs a complete closed-loop process within the CPE device, consisting of multi-dimensional feature acquisition, dual-trigger judgment, fault profile generation, adaptive strategy decision-making, and exponentially weighted moving average updates. At the fault perception level, it overcomes the limitation of relying solely on a single error code for binary classification. By periodically collecting multi-dimensional features such as error codes, RSRP, RSRQ, SINR, registration status, SIM status, data plane keep-alive results, and dialing history, and organizing them into a sliding window, it introduces a dual-engine mechanism driven by four types of rules: persistent weak coverage, registration jitter, PDP false online status, and dialing failure rate. This mechanism can capture fault precursors and identify PDP false online vulnerabilities before dialing failure occurs. At the decision-making level, the operating state at the trigger time is encoded into a fault profile vector composed of nine components. Based on this, the local adaptive strategy table is queried, and an exponentially weighted moving average update is applied. The greedy strategy strikes a balance between utilizing historically optimal actions and exploring unknown actions, enabling the CPE to autonomously learn the best repair path for different scenarios during long-term operation. For high-cost actions, an adaptive threshold dynamically calculated based on signal quality and congestion level is introduced to replace the hard-coded linear threshold, effectively suppressing invalid restarts in weak coverage scenarios. For cross-scenario conditions, a mechanism of decaying rather than clearing historical strategy table entries is adopted to preserve the possibility of experience reuse. Experimental results show that in weak coverage and high congestion scenarios, the number of system restarts can be reduced to one-third of the existing solutions, PDP false online faults can be automatically repaired within 25 seconds, and newly deployed devices can converge to the optimal action sequence within five dialing interactions.
[0022] Example 1 like Figure 1 The diagram shown is a flowchart of a CPE dialing self-healing method based on a multi-dimensional profile and strategy table according to an embodiment of this application, which specifically includes the following: S100 generates a fault profile vector based on the multi-dimensional operational features and dialing failure events collected within the sliding window, through dual-trigger judgment.
[0023] Specifically, after the CPE starts up, the health monitoring process continuously collects six types of operational characteristics at a fixed sampling period: obtaining error codes through Modem chip API callbacks; obtaining wireless signal indicators such as RSRP, RSRQ, and SINR through AT commands and QMI interfaces; subscribing to and querying network registration status and cell identification information through AT commands; obtaining SIM card status enumeration values through AT commands; obtaining data plane keep-alive detection results by sending DNS query requests and ICMP probe messages to public DNS servers and public IP addresses respectively and counting the arrival of responses; and extracting the most recent dialing event logs from the service module. The success and failure records of each dialing result are recorded. Each set of six features constitutes a sample for a given moment. All samples are stored in a fixed-length circular buffer in chronological order. When a new sample is enqueued, the oldest sample is dequeued, thus maintaining a multi-dimensional sliding window of running features covering the most recent continuous time window. At the end of each sampling period, a dual-trigger judgment is executed: Trigger A is a failure trigger, which is triggered when the business module reports an automatic dialing failure event and the callback parameter returns a non-empty error code; Trigger B is a prediction trigger, which applies a set of fault prediction rules to the samples within the most recent time period in the sliding window. The rule set includes weak coverage persistence rules, registration jitter rules, PDP false online rules, and dialing failure rate rules. A hit occurs when the condition of any one of these rules is met. If either trigger is hit, the profile generation process begins, based on the current sliding window end sample and the most recent... The dialing result generates a fault profile vector, where the error code component is taken as the standardized error code string when a failed trigger hit occurs, and as a special identifier containing the hit rule number when only a predicted trigger hit occurs. Wireless signal parameters are quantized according to preset levels. PLMN and cell identifier are hashed and then reduced to their lower 8 bits for dimensionality reduction. SIM status and registration status retain enumerated values. Most recently... The dialing results are organized into bitmap integers in chronological order, and the nine discrete integer components are finally combined in sequence to form a fault profile vector.
[0024] S200, based on the fault profile vector, adopt... - The greedy strategy obtains the recommended repair action sequence from the adaptive strategy table.
[0025] Specifically, the adaptive strategy table is stored as a hash dictionary in the CPE's local non-volatile storage. The key is the calculated key value obtained by concatenating the components of the fault profile vector, and the values are floating-point arrays corresponding to six candidate repair actions. Each component represents the historical success rate estimate of that action under that fault profile, with values ranging from zero to one. After generating the fault profile vector, its corresponding key value is first calculated and the adaptive strategy table is queried. If the key value does not have a corresponding entry in the strategy table, it is determined to be a cold start entry. The success rate estimates of all six actions are initialized to the same prior value, and the entry is written back to the strategy table. When a corresponding entry already exists in the strategy table, the success rate estimate of each action is directly obtained. Then, according to... - Greedy strategy to generate recommended repair action sequence: First, arrange the remaining actions except for modem soft reset and system restart in descending order of success rate estimate to form a candidate sequence; for each action in the candidate sequence, sample once according to Bernoulli distribution with a preset exploration probability. When the sampling result indicates exploration, retrieve actions that have not been tried or have not been tried within the most recent preset number of times from the action pool to form a set of actions to be explored, and randomly select one action from it to insert at the beginning of the candidate sequence; finally, place the two high-cost actions, modem soft reset and system restart, at the end of the sequence. These two actions are only allowed to be executed when the adaptive threshold condition is met in subsequent steps, thus obtaining the complete recommended repair action sequence.
[0026] The S300 calculates an adaptive threshold based on wireless signal quality and network congestion levels to control the triggering of high-cost repair actions.
[0027] Specifically, the adaptive threshold is used to control the triggering conditions for two high-cost repair actions: modem soft reset and system reboot. Its calculation relies on a joint assessment of the current wireless signal quality and network congestion level. All RSRP samples are extracted from the circular buffer, and their arithmetic mean is calculated as a characterization index of wireless signal quality. Simultaneously, statistical information on network registration status is extracted from the sliding window, and the registration success rate is calculated as the proportion of registered samples to the total number of samples. The paging response rate is queried using AT commands. When the registration success rate or paging response rate cannot be obtained due to interface unavailability, it is set to one. Based on this, a congestion indicator is calculated using a weighted formula, where the registration success rate and paging response rate each account for half of the weight. The congestion indicator ranges from zero to one; a higher value indicates a more severe network congestion. Based on the values of the RSRP average and the congestion indication, the value of the adaptive factor is determined from a preset grading lookup table. This grading table divides the RSRP average into multiple signal strength intervals and the congestion indication into multiple congestion degree intervals. Different interval combinations correspond to different adaptive factor values. When the RSRP average and the congestion indication fall into different grading combinations, the factor value of the larger grading is taken, thereby prioritizing the suppression of high-cost actions when either indicator deteriorates. The final calculation of the adaptive threshold is based on a preset base number, multiplied by the current number of system restarts plus one, and then multiplied by the adaptive factor. The resulting product is the adaptive threshold under the current operating condition. This threshold increases as signal quality deteriorates or congestion intensifies.
[0028] S400, based on the recommended repair action sequence and the adaptive threshold, perform repair actions sequentially, and update the adaptive strategy table based on the exponentially weighted moving average.
[0029] Specifically, the repair action pool contains six candidate actions, arranged from low to high according to the duration and perceptibility of user interruption. Each action defines its own AT command interaction process, expected execution time, and success / failure criteria. During action execution, actions are attempted sequentially according to the recommended repair action sequence. For each action in the sequence, its defined AT command interaction process is executed, including filling the command string into the message queue and sending it to the AT module, waiting for the callback result, and querying the dialing status. Successful dialing is used as the criterion for action success. After each action is executed, regardless of success or failure, the success rate estimate of that action under the corresponding fault profile vector in the adaptive strategy table is updated using an exponentially weighted moving average formula. The learning rate is a fixed value, and the reward value is set to one for success and zero for failure. After the update, the strategy table is serialized and written to non-volatile storage. If the current action is successful, the current repair process is terminated, the consecutive failure count and the number of system reboots are cleared to zero, and real-time dialing status detection begins. If the current action fails and there are still unexecuted ordinary actions in the sequence, continue to try the next action. If all ordinary actions except for modem soft reset and system reboot have been executed and all have failed, increment the consecutive failure count by one, compare the current consecutive failure count with the adaptive threshold, and execute the modem soft reset and system reboot in sequence when the consecutive failure count reaches or exceeds the adaptive threshold; otherwise, skip these two high-cost actions and end the current repair round directly. Before executing system reboot, persist the current policy table. After reboot, clear the consecutive failure count to zero, increment the system reboot count by one, and re-enter the sliding window maintenance and feature collection process.
[0030] In summary, this application breaks away from the traditional model of "passive post-event response, single error code binary classification, fixed repair process and hard-coded threshold" in existing CPE dialing self-healing solutions. It constructs an intelligent dialing self-healing closed-loop system with multi-dimensional fault profiles as indexes, an adaptive strategy table as the decision core, and exponentially weighted moving average updates as the learning mechanism. First, addressing the problem of existing solutions having a single fault judgment dimension and lacking predictive ability, a dual-trigger judgment mechanism based on a multi-dimensional operational feature sliding window is introduced. This mechanism unifies heterogeneous features such as error codes, wireless signal strength, network registration status, data plane keep-alive detection results, and dialing history into the fault perception scope. Predictive triggering is driven by four types of rules: persistent weak coverage, registration jitter, PDP false online status, and dialing failure rate. This allows the CPE to capture fault precursors and identify hidden faults such as PDP false online status before dialing failure occurs, achieving a leap from passive response to proactive prediction. Second, addressing the problem of fixed repair processes and lack of self-learning ability, an adaptive strategy table structure with a nine-dimensional fault profile vector as the key is designed, employing... - The greedy strategy strikes a balance between utilizing historically optimal actions and exploring unknown actions, allowing the selection of repair actions to autonomously converge to the optimal sequence for each subdivided fault scenario as the device runs, thus eliminating the dependence on a fixed APN polling order and realizing the evolution of repair decision-making from static mapping to dynamic learning. Furthermore, addressing the issue of frequent invalid restarts in weak coverage scenarios due to hard-coded upgrade thresholds, an adaptive threshold mechanism jointly calculated based on wireless signal quality and network congestion is introduced. This mechanism dynamically adjusts the triggering threshold for high-cost repair actions through a tiered lookup table, strictly suppressing them when the signal is good and automatically relaxing them when there is weak coverage or congestion, significantly reducing the number of invalid restarts. Finally, a fully automated closed loop is constructed, from feature collection, fault profiling, policy decision-making, action execution to policy updates. Combined with a cross-scenario decontamination attenuation mechanism and a cold-start compatible rollback mechanism, this ensures that the lower bound of the solution's capabilities in all operational stages is no lower than existing solutions, providing systematic technical support for CPE's dialing self-healing in complex and ever-changing cellular network environments.
[0031] As an optional implementation of this application, optionally, in step S100, based on the multi-dimensional operational features and dialing failure events collected within the sliding window, a fault profile vector is generated through dual-trigger determination, including: 110. Based on the arrival of the sampling period, perform non-blocking subscription to the Modem chip API callback parameters, as well as sending and parsing AT commands and QMI interface messages, and collect error codes, RSRP, RSRQ, SINR, network registration status, SIM status, data plane keep-alive detection results, and the most recent... The dialing results are then processed, and the collected feature samples are stored in a circular buffer of length W to maintain the multi-dimensional running feature sliding window.
[0032] Specifically, after the CPE device starts up and completes modem initialization, a multi-dimensional feature acquisition and control process is initiated. The health monitoring process is triggered periodically at preset sampling intervals. At the end of each sampling interval, feature acquisition is performed through three parallel channels. The first channel is a non-blocking subscription channel for modem chip API callback parameters, which subscribes to modem status change events. When the modem reports a dialing failure event, the original error code string is extracted from the callback parameters. This error code is an integer value defined by the 3GPP standard or a modem manufacturer-defined extension code. The second channel is an active query channel for AT commands and the QMI interface. By sending standard AT commands such as AT+CSQ, AT+CEREG, and AT+CPIN to the modem in sequence, it obtains the received signal strength indication and converts it into RSRP and RSRQ, queries the EPS / 5GS network registration status and cell identifier, and reads the SIM card status, respectively. At the same time, it obtains underlying physical layer parameters such as SINR through the NAS indication message of the QMI interface. The third channel is the data plane keep-alive probe channel. It sends A record query requests to the public DNS server and waits for responses. Simultaneously, it sends ICMP echo request messages to reference IP addresses with public network reachability and listens for responses, recording the arrival status of DNS and ICMP responses for each probe. Additionally, it reads the most recent dial-up event logs from the service module. The results of each automatic dialing attempt are recorded, with success marked as 1 and failure as 0, organized as a fixed-length Boolean sequence. The results of the six feature acquisition categories within each sampling period are encapsulated into a feature sample, containing six fields: error code, signal quality, registration status, SIM status, keep-alive detection, and dialing history. This sample is appended chronologically to the end of a circular buffer of length W. When the buffer is full, the oldest sample is automatically overwritten, thus maintaining a multi-dimensional sliding window covering the most recent W sampling periods. For example, with W = 60 and a sampling period of 3 seconds, the sliding window can cover the operational status within the most recent 180 seconds, sufficient to capture the slow fading of wireless signals and long-period patterns such as periodic rejections by the network. Maintaining the sliding window allows subsequent decision-making steps to perform joint analysis of heterogeneous features on a unified time dimension, rather than viewing single sample values in isolation, providing a data foundation for detecting multi-feature coupling precursors of faults.
[0033] 120. Based on the samples in the sliding window and the dialing failure events reported by the service module, perform a dual-trigger judgment: when the error code contained in the dialing failure event is not empty, the failure trigger is hit; when the sample satisfies one of the following rules: weak coverage persistence, registration jitter, PDP false online or dialing failure rate, the prediction trigger is hit.
[0034] Specifically, a dual-trigger judgment logic is executed at the end of each sampling period and after the sliding window update. This logic includes two independent judgment paths: a failure trigger and a prediction trigger, running in parallel. The judgment condition of the failure trigger is relatively straightforward: if the service module reports an automatic dialing failure event during the sampling period and the error code string returned by the Modem API callback is not empty, it will immediately trigger. The judgment of the prediction trigger is based on four types of fault precursor rules contained in the most recent continuous samples within the sliding window. Each of the four types of rules maintains independent judgment conditions. The weak coverage persistence rule continuously monitors the RSRP values of the most recent M samples within the sliding window. When all of the most recent M RSRP values are lower than the preset weak coverage threshold, it triggers, indicating that the device has been continuously in a weak coverage environment, and the success rate of continuing to attempt dialing is extremely low. The registration jitter rule counts the number of times the network registration status within the sliding window flips between registered and unregistered. When the number of flips exceeds the threshold within the preset time window, it triggers, indicating that the device is at the edge of cell coverage or is undergoing ping-pong reselection. At this time, initiating a dialing attempt is very likely to be rejected because the core network side location update is not completed. The PDP fake online rule extracts the data plane keep-alive probe sample sequence from the most recent P sampling periods from the circular buffer. It converts the response results of DNS queries and ICMP probes within each sampling period into identifier values. When neither responds, it is marked as "no response." The rule counts the number of consecutive "no response" identifiers; a hit is determined when the consecutive count equals P. This rule is specifically used to detect a fake online state where the PDP context is active but the data plane is disconnected. The dialing failure rate rule counts the failure rate of dialing results within a sliding window. A hit occurs when the rate exceeds a preset threshold, indicating a persistent obstacle in the current network environment or terminal configuration. The four types of rules are combined using "OR" logic; a hit occurs when any rule condition is met. In environments with good signal strength (RSRP above -85dBm, stable registration, normal keep-alive, and high dialing success rate), none of the four rules will hit, and the prediction trigger remains silent to avoid unnecessary repair actions. In weak coverage edge scenarios, the weak coverage persistence rule and the dialing failure rate rule may be triggered simultaneously. In this case, the predictive trigger will trigger the repair process in advance, and the intervention will be started before the user experiences the service interruption. This is one of the core differences between this application and the existing passive response solution.
[0035] The process includes a cold start rollback determination after hitting a failure trigger or prediction trigger and before generating a fault profile vector. When the number of samples collected within the sliding window is less than a preset rollback threshold, or when the entry in the adaptive strategy table corresponding to the current fault profile vector has just been initialized by a priori values and has not undergone an exponentially weighted moving average update within the most recent preset number of interactions, the rollback process is initiated. During the rollback process, the fault cause is determined to be either internal to the terminal or a network-side cause based on the error code. Fixed repair operations consistent with existing solutions are performed, and a hard-coded threshold with an adaptive factor of 1.0 is used to control high-cost actions. When the number of samples in the sliding window reaches the rollback threshold and the strategy table entry completes its first exponentially weighted moving average update, the rollback process exits and the main process continues execution.
[0036] 130, based on the sliding window end sample at the time of triggering the hit and the most recent The dialing result is processed by standardizing the error code or assigning a PRED-Rx identifier, grading and quantizing RSRP / RSRQ / SINR, hashing and reducing the dimensionality of PLMN and cell identifier, organizing the dialing result into a bitmap integer, and combining the components into a fault profile vector.
[0037] Specifically, this process is executed after either trigger in the dual-trigger determination is hit. It is responsible for converting the sliding window end sample and historical dialing records at the trigger moment into a structured fault profile vector. The generation of the fault profile vector follows a standardized construction process of nine components. The first component is the error code or prediction identifier. If the current fault is hit by a failure trigger, the original error code is standardized: the 3GPP standard error code is mapped to a standardized string according to the protocol specification, and the Modem vendor-defined error code retains its original value and adds a vendor prefix to enable experience generalization across device models in subsequent policy tables. If the current fault is hit only by a prediction trigger, the actual error code is not used, but a special identifier PRED-Rx is assigned, where x is the rule number that was hit. For example, PRED-R1 is assigned when only the weak coverage persistence rule is hit, and PRED-R3 is assigned when the PDP false online rule is hit. When multiple rules are hit simultaneously, the rule numbers are concatenated in order, thereby explicitly distinguishing the prediction trigger scenario and the failure trigger scenario in the profile space. The second to fourth dimensions are the quantized values of RSRP, RSRQ, and SINR, respectively. The original dBm or dB values are mapped to discrete integers according to preset levels. For example, RSRP is divided into multiple levels in 5dB intervals from -140dBm to -44dBm, and the level number is the quantized value. This leveling process retains the main information of signal quality while significantly compressing the state space, allowing different operating conditions within the same level to share learning experience. The fifth and sixth dimensions are the hash-reduced dimensionality values of the PLMN and cell identifier, respectively. The combined MCC and MNC strings of the PLMN and the integer value of the cell identifier are hashed, and the lower 8 bits are taken to obtain an integer value in the range of 0 to 255. This dimensionality reduction process retains the distinguishability of network-side information while avoiding the problem of linear growth of the state space with network size. The seventh and eighth dimensions are the SIM state enumeration value and the network registration state enumeration value, respectively, directly retaining the integer encoding of the original enumeration. The ninth dimension is the most recent... The second dialing result bitmap integer, The dialing results are arranged in chronological order, with 1 for success and 0 for failure, and are combined into one. A binary integer, ranging from 0 to 1. This component encodes the recent dialing success and failure patterns, enabling the strategy table to perceive temporal characteristics such as consecutive successes and consecutive failures. Let... For error codes or prediction identifier components, RSRP gradation quantization values, RSRQ quantization values, SINR quantization values for different ranges, The lower 8 bits of the PLMN hash value. The lower 8 bits of the cell identifier hash value. For SIM state enumeration values, For network registration status enumeration values, For the most recent The integer value of the second dialing result bitmap indicates the fault profile vector. The above nine components are combined in sequence as follows: All nine components are discrete integer values, making the fault profile itself the direct index key of the adaptive strategy table, eliminating the need for additional similarity calculations or feature embedding, and ensuring real-time performance of the entire process from profile generation to strategy query on the embedded CPE processor.
[0038] Before generating the fault profile vector, a cross-scenario decontamination step is included: reading the key dimensions of the most recent record from non-volatile storage, including the previous Public Land Mobile Network (PLN) identifier and the previous International Mobile Subscriber Identity (IMSI); comparing the current PLAN identifier and IMSI with the previous record values respectively; if either is inconsistent, all entries in the adaptive strategy table that are composed of the hash component of the previous PLAN identifier or associated with the previous IMSI are attenuated according to the attenuation factor, and the attenuated entries are retained while their success rate estimates are reduced; after attenuation, the current PLAN identifier and IMSI are written back to the non-volatile storage; if both are consistent, no attenuation is performed.
[0039] As an optional implementation of this application, optionally, in step S200, based on the fault profile vector, the following is adopted: - The greedy strategy obtains the recommended repair action sequence from the adaptive strategy table, including: 210. Based on the fault profile vector, perform key-value calculation, query the adaptive strategy table in the local non-volatile storage, and when the fault profile vector does not have a corresponding entry in the adaptive strategy table, initialize the success rate estimate of each action with the prior value and write the new entry back to the adaptive strategy table.
[0040] Specifically, in the fault profiling vector Executed immediately after generation, this function is responsible for querying the adaptive strategy table and initializing cold-start entries. The adaptive strategy table is organized and serialized in a hash dictionary structure and stored in non-volatile storage media such as the CPE's flash memory. The dictionary keys are strings, obtained by fast hashing the nine components of the fault profile vector concatenated with a fixed delimiter, ensuring fixed key lengths and uniform distribution. The dictionary values are arrays of six floating-point numbers, each corresponding to a candidate repair action's estimated historical success rate under that fault profile. During queries, the fault profile vector is first processed according to the same rules. Calculate the key value and then search it in the hash dictionary. If the search finds a match, directly retrieve the corresponding success rate estimate array. If the search fails, a cold start entry appears, and an initialization operation is performed: set the success rate estimates of all six actions to the same prior value (e.g., 0.5 to represent an unbiased assumption about the effect of each action initially), then insert the new entry into the hash dictionary and immediately write it back to non-volatile storage. After cold start initialization, subsequent steps are processed using the same logic as existing entries. In cross-scenario scenarios, such as when the PLMN changes after the CPE replaces the SIM card, the new fault profile vector cannot find existing entries in the policy table due to the different PLMN hash components. In this case, cold start initialization allows the device to start the learning process in the new scenario in a fair exploration manner, instead of using the converged policy from the old scenario, thus avoiding policy mis-migration in cross-carrier scenarios. At the same time, the policy table entries of the old scenario are completely retained in non-volatile storage, so that when the device returns to the original carrier network, the previously accumulated experience can be directly reused.
[0041] 220. Based on the estimated success rate of each action corresponding to the fault profile vector in the adaptive strategy table, execute... Greedy sorting: Sort all actions except A5 and A6 in descending order of their estimated success rates to generate a candidate sequence. For each action in the candidate sequence, sort them by probability. Bernoulli sampling is performed. When the sampling result is exploration, an action is randomly selected from the set of actions to be explored and inserted at the beginning of the candidate sequence. Then, A5 and A6 are placed at the end of the sequence to obtain the recommended repair action sequence.
[0042] Specifically, in obtaining fault profile vectors After estimating the success rate of each corresponding action, execute. - Greedy sorting is used to generate a recommended sequence of repair actions. The repair action pool contains six candidate actions, arranged from low to high according to the perceived impact on user service interruption and system resource consumption: A1 is to redial using the current APN, A2 is to switch APNs in descending order of historical success rate and then redial, A3 is to redial after performing RF online / offline actions with AT+CFUN=0 and AT+CFUN=1, A4 is to redial after frequency band locking or unlocking, A5 is to redial after a modem chip soft reset, and A6 is to redial after a system reboot. The sorting process first arranges the four common actions A1 to A4 (excluding A5 and A6) in descending order of their estimated success rates to form an initial candidate sequence. Then, an exploration mechanism is entered, where each action in the initial candidate sequence is sorted according to a Bernoulli distribution with a preset exploration probability. A sampling is performed. When the sampling result is "utilization," the action retains its original position in the candidate sequence. When the sampling result is "exploration," actions that have not been tried or have not been tried within the most recent preset number of attempts are retrieved from the action pool (excluding A5 and A6) to form a set of actions to be explored. An action is then randomly selected from this set and inserted at the beginning of the candidate sequence. The remaining actions maintain their original relative order and are deferred sequentially. Finally, the two high-cost actions, A5 (modem soft reset) and A6 (system reboot), are placed at the end of the sequence. They are only allowed to execute if the adaptive threshold condition is met in subsequent steps. For example, if the estimated success rate of A2 is 0.8, A4 is 0.6, A1 is 0.4, and A3 is 0.2 under a certain fault profile, the initial candidate sequence is [A2, A4, A1, A3]. If the Bernoulli sampling result for A2 is exploration, and the set of actions to be explored is {A1}, the candidate sequence after exploration becomes [A1, A2, A4, A3]. If the exploration probability... Setting it to 0.1 means that on average, one out of every ten repairs will attempt an exploratory action, while nine will utilize the current best experience. This mechanism ensures that the best historical action is chosen in most cases, while reserving the opportunity to evaluate actions that have not been fully tried. This allows the strategy table to gradually discover potentially better repair paths in specific scenarios, avoiding getting trapped in local optima. The final recommended repair action sequence has a three-level structure: exploratory actions first, normal actions in descending order of estimated success rate, and high-cost actions at the end.
[0043] As an optional implementation of this application, optionally, in step S300, an adaptive threshold is calculated based on the wireless signal quality and network congestion level to control the triggering of high-cost repair actions, including: 310. Calculate the average RSRP based on the RSRP samples in the circular buffer, and calculate the congestion indication based on the network registration success rate and paging response rate in the sliding window.
[0044] Specifically, this process executes when the adaptive threshold calculation procedure starts, and is responsible for extracting quantitative indicators of wireless signal quality and network congestion from the circular buffer. First, the average RSRP is calculated by iterating through all valid RSRP samples in the circular buffer, summing them, and then dividing by the number of valid samples to obtain the arithmetic mean. A default value is used when there are no valid RSRP samples in the circular buffer. The average RSRP reflects the average coverage strength at the device's location within the sliding window time span. Compared to instantaneous RSRP values, averaging filters out short-term fluctuations caused by fast fading, providing a more stable representation of coverage conditions. Then, the congestion indicator is calculated, which integrates two dimensions: network registration success rate and paging response rate within the sliding window. Let... Let the proportion of samples with a registered status within the sliding window be the total number of samples. The paging response rate is obtained by querying via AT commands. or When the modem interface is unavailable and cannot be accessed, the value is always 1 to assume there is no congestion on the network side. The formula for calculating the congestion indicator is: The registration success rate and paging response rate are each weighted equally. The failure rates of these two indicators are weighted and summed to obtain a congestion indication value between 0 and 1. The higher the value, the more severe the network congestion. When the network access side load is normal, Close to 1 and When the value is close to 1, congestion approaches 0; however, when signaling congestion occurs on the network access side, leading to registration timeout failures or paging response delays and packet loss, congestion increases significantly. This weighted formula equally weights the relatively high-frequency registration failures with the relatively low-frequency paging failures, ensuring that the congestion indicator remains sensitive to different types of network-side anomalies, thus providing accurate network environment input for the subsequent tiered selection of adaptive factors.
[0045] 320. Based on the average RSRP and the tiered range to which the congestion indication belongs, determine an adaptive factor from a preset tiered table. The value of .
[0046] Specifically, after obtaining the RSRP average and congestion indication, an adaptive factor is executed. The tiering is determined. The adaptive factor is selected based on a pre-defined tier lookup table. This lookup table has a two-dimensional structure, with rows corresponding to multiple signal strength intervals of the RSRP average and columns corresponding to multiple congestion degree intervals of the congestion indication. Each table cell stores one tier. The signal strength range is divided based on typical coverage scenarios. For example, greater than -85dBm corresponds to strong coverage, -85dBm to -105dBm corresponds to medium coverage, -105dBm to -115dBm corresponds to weak coverage, and less than -115dBm corresponds to very weak coverage. The congestion level range is divided using 0.2, 0.5, and 0.8 as dividing points, forming four levels: light congestion, moderate congestion, high congestion, and severe congestion. (See the classification table.) The design principle for the value is that the weaker the signal or the more severe the congestion, the better. A larger value relaxes the threshold for triggering high-cost actions. For example, in a lightly congested area with strong coverage where RSRP is greater than -85dBm and congestion indication is less than 0.2, A value of 1.0 indicates that the threshold is not relaxed further, and high-cost actions are strictly suppressed; in the extreme range where RSRP is less than -115dBm or congestion indication is greater than 0.8, A value of 3.0 or higher indicates a significantly increased threshold, allowing high-cost actions to be triggered after a relatively small number of failures, as the marginal benefit of continuing to attempt low-cost actions is extremely low at this point. During a two-dimensional lookup, the row interval is first located based on the RSRP average, the column interval is located based on the congestion indicator, and then the data is read from the corresponding cell. Value. When the RSRP average value differs from the congestion indication given in the tiers. When taking a value, use the larger value. As the final output, this large value strategy ensures that the trigger threshold can be relaxed first when any single environmental indicator deteriorates, reflecting full protection for extreme working conditions.
[0047] Among them, adaptive factor The value is determined according to the following grading table: when the average RSRP is greater than or equal to -85dBm and the congestion indication is less than 0.3, Take 0.5; when the average RSRP is in the range of [-100, -85) dBm and the congestion indication is in the range of [0.3, 0.5), Take 1.0; when the average RSRP is in the range of [-110, -100) dBm and the congestion indication is in the range of [0.5, 0.7), Take 1.5; when the average RSRP is less than -110 dBm or the congestion indication is greater than or equal to 0.7, Take 3.0; when the average RSRP and the congestion indicator fall into different range combinations, take the larger range. value.
[0048] The adaptive factor α is assigned values in segments according to the following table: Table 1. Segmented Value Table 330, according to the adaptive factor The current number of system restarts (n) and the base threshold (base) are used to calculate the adaptive threshold using the adaptive threshold formula.
[0049] Specifically, in the adaptive factor Once determined, the adaptive threshold T is calculated using the adaptive threshold formula, taking into account the current number of system restarts (n) and the base threshold (base). Let base be the preset base number of restarts, and n be the number of system restarts that have occurred. The adaptive factor determined in step 320 based on the average RSRP and congestion is then calculated using the following formula: The value of the base number (`base`) determines the baseline level of the adaptive threshold; in a typical configuration, `base` can be an empirical constant. That is, before the entire machine has been restarted. At this point, the threshold is entirely determined by the current signal and the congestion environment. As n increases, the factor (n+1) increases successively, and the threshold grows linearly. Even if the device is in a harsh environment for a long time, it can trigger a high-cost action after accumulating a certain number of failures, avoiding a deadlock of infinite retries. For example, in a scenario with strong coverage and low congestion where RSRP is -75dBm, Take 1.0, The value of T is the base, and the trigger threshold for high-cost actions is relatively high; however, in scenarios with weak coverage at the edge and network congestion where RSRP is -115dBm, Take 3.0, hour If the base value is preset, a high-cost action can be triggered after about one-third of the failures in a normal scenario, thus initiating a system reboot or soft reset earlier in weak coverage environments to attempt to restore the connection. This adaptive threshold formula integrates environmental awareness and historical repair experience into a single threshold parameter. When the signal is good, a smaller T value is used to suppress invalid reboots to reduce user interruptions, while a larger T value is used to accelerate the triggering of high-cost actions to end the repair cycle as soon as possible when the signal is poor or the network is congested, achieving flexible control that dynamically adjusts with the environment.
[0050] As an optional implementation of this application, optionally, in step S400, repair actions are executed sequentially according to the recommended repair action sequence and the adaptive threshold, and the adaptive strategy table is updated based on an exponentially weighted moving average, including: 410. According to the recommended repair action sequence, the AT command interaction process defined for each repair action is executed sequentially, and the success or failure of dialing is used as the basis for determining the action execution result.
[0051] Specifically, after the recommended repair action sequence and adaptive threshold are ready, the sequential execution process of the repair actions is initiated. Actions are executed one by one in the recommended repair action sequence from beginning to end. For each action in the sequence, its predefined AT command interaction process is executed. The AT command interaction process for each action is encapsulated into a unified execution interface during the design phase. The interface includes four stages: command sending, callback waiting, status query, and timeout handling. Taking action A1 (re-dialing using the current APN) as an example, the execution process involves sending AT+CGACT=0,1 to the AT module to deactivate the current PDP context, waiting for the Modem to return OK confirmation, then sending AT+CGACT=1,1 to reactivate the PDP context, waiting for OK or an error code, and finally querying the dialing status to confirm whether the data plane has been restored. Taking action A4 (frequency band locking or unlocking) as an example, the execution process involves obtaining the list of currently locked frequency bands through AT+QBAND or an equivalent QMI frequency band constraint message, removing the currently failed registration frequency bands from the list or unlocking all frequency band restrictions, sending the updated frequency band configuration to the Modem, and then executing a re-registration process. After each action is completed, the success of the dialing is used as the criterion for determining the action's outcome: a successful dialing means the upper-layer service module confirms that an IP address has been obtained and the data plane is reachable, in which case the action is considered successful; if the dialing fails or the AT command returns an error, the action is considered a failure. Each action has a preset timeout duration to accommodate the expected execution time of different actions. A1 and A2 have shorter timeouts, A3 and A4 have medium timeouts, and A5 and A6 have longer timeouts due to chip resets or system restarts; actions that time out are treated as failures. This step-by-step approach ensures the principle of escalating costs for repair methods, prioritizing lightweight actions with the least impact on the user, and only considering higher-level interventions after all preceding actions have failed.
[0052] Action A2 is only allowed to be executed when the PDP false online rule is hit; Action A3 is only allowed to be executed when the weak coverage persistent rule is hit; when the corresponding rule is not hit, although the action is reserved in the recommended repair action sequence, it is skipped directly and treated as a failure during execution.
[0053] 420. Based on the adaptive threshold, before executing A5 or A6, check if the current consecutive failure count is greater than or equal to the adaptive threshold. If the threshold is met, execution is allowed; otherwise, the high-cost action is skipped.
[0054] Specifically, before executing the A5 modem soft reset or A6 system reboot actions in the sequence, an adaptive threshold condition check is performed. During the check, the current consecutive failure count is obtained. This count is incremented after all ordinary actions below A5 have been executed and failed in each repair process, indicating that conventional repair methods have repeatedly failed in the current scenario. The current consecutive failure count is compared with the adaptive threshold T. If the consecutive failure count is greater than or equal to T, the threshold condition is met, and the high-cost A5 or A6 action is allowed. If the consecutive failure count is less than T, the threshold condition is not met, the high-cost action is skipped, and the current repair process ends. If the threshold condition is not met, the current repair will not trigger a system reboot. The device will continue monitoring in the next sampling period and may re-trigger the repair process, but the next repair will face a higher accumulated consecutive failure count, closer to the threshold trigger point. This mechanism achieves dynamic control over the timing of high-cost action triggering: in a good environment with strong coverage and low congestion, T is smaller, and even if the consecutive failure count is not high, A5 or A6 can be triggered quickly to restore service as soon as possible; in a weak coverage or high congestion environment, due to… Increasing the value of T results in a larger value, causing the device to tolerate more consecutive failed attempts before finally triggering a system reboot. This is because in a weak coverage environment, a reboot is likely to return the device to the same weak coverage cell. Rebooting itself cannot change the coverage conditions; frequent reboots only increase the perceived downtime for users. Taking a CPE deployment at the entrance of an underground parking lot as an example, RSRP fluctuates around -115dBm, and the congestion indicator is high. Take 3.0, hour Compared to standard scenarios, the device needs to go through more rounds of normal operation failures before triggering a full machine restart, thus significantly reducing long-term network outages caused by repeated restarts at such coverage edge locations.
[0055] 430, based on the result of the action execution The success rate estimate of the corresponding action in the adaptive strategy table is updated according to the exponentially weighted moving average formula, and the updated strategy table is serialized and written to non-volatile storage.
[0056] Specifically, after each action is completed and a success or failure result is obtained, the adaptive strategy table is immediately updated. Let... Profiling the fault Corresponding actions The current success rate estimate, For learning rate, The success rate estimate is calculated using the exponentially weighted moving average formula, where 1 represents success and 0 represents failure. The calculation involves combining historical estimates with the actual results using a weighted average, where η determines the proportion of the new result in the estimate. When a larger value is used, the strategy table reacts more quickly to recent results but also experiences greater volatility. Taking smaller values results in smoother estimates but slower convergence, which is typical in configurations. A value of 0.2 can be chosen to strike a balance between convergence speed and stability. After the update is complete, the entire strategy table is serialized and written to the non-volatile storage of the CPE to ensure that the accumulated learning experience is not lost even if the device experiences an unexpected power outage or a complete restart during subsequent operation. Taking the update process of action A2 under a certain fault profile as an example, if its current success rate is estimated to be 0.8, If the value is 0.2, and A2 was successfully executed this time, then the update will be successful. The estimated value is adjusted towards success; if execution A2 fails this time, the updated value will be adjusted accordingly. The estimated values are then revised downwards. After multiple updates and iterations, the estimated success rates of each action under this fault profile will gradually approach their true success rates. - The action value function upon which the greedy sorting relies tends to be more accurate, and the recommended repair action sequence in the policy table will automatically converge to the optimal repair path in the scenario. The entire process requires no manual annotation or offline training, relying entirely on the online self-learning of the CPE during operation. In addition, this application uses a decay mechanism for historical policy table entries instead of a clearing mechanism to handle cross-scenario conditions. When changing SIM cards or roaming to a new PLMN, new fault profiles naturally create new entries due to changes in the PLMN hash components, while old entries are retained in non-volatile storage. When the device returns to the original network environment, it can be directly reused, avoiding experience loss and repetitive learning.
[0057] When any repair action is successfully executed, resulting in a successful dialing, the process includes resetting the current consecutive failure count and the number of machine restarts to zero, updating the successful action and fault profile vector with a return value of 1 using the final exponentially weighted moving average, and entering real-time dialing status detection. The status detection uses the sampling period as an interval to jointly query the packet data protocol context status and data plane reachability. When any detection fails, it is determined to be an abnormal network outage, the sliding window and consecutive failure count are re-initialized, and the process returns to step 110 to start a new round of monitoring and repair.
[0058] Example 2 like Figure 2 As shown, as an end-to-end application example of this application, the specific application is as follows: Phase 1 (Initial Power-On and Cold Start): Upon initial power-on of the CPE, the sliding window is empty, and the policy table is empty. The health monitoring process starts and presses... =5-second sampling period to collect features. Within the first 25 seconds, the service module performed 1 failed automatic dialing attempt with a callback error code of "internal". Since the fallback condition was triggered, the dialing process was initiated according to the existing scheme, and polling was performed in the fixed APN order; dialing succeeded at the 30th second. The first entry was written to the policy table according to the write policy.
[0059] Phase 2 (Steady-state operation): After successful dialing, the device enters the data connection state. The health monitoring process continuously fills the sliding window at a =5-second sampling period, and the bitmap of the most recent 10 dialing results .
[0060] Phase 3 (Weak coverage prediction trigger): The user moves the CPE to the entrance of an underground parking lot. degrades from -90 dBm to -115 dBm and persists for 50 seconds (10 consecutive sampling periods), R1 is hit (consecutive samples <-110 dBm). Trigger B is hit, takes the value "PRED-R1", and the profile = ⟨"PRED-R1", 3, 2,2, 17, 224, READY, REGISTERED, 1111111111⟩.
[0061] Phase 4 (Action selection and execution): This entry in the policy table is a cold-start entry, . Sorted by -greedy ranking yields , Bernoulli sampling does not trigger exploration insertion, and are screened to the last position and cannot be executed due to . Execute in sequence: fails (dialing is not successful at the 8th second, ); is skipped because R3 is not hit; dialing succeeds at the 4th candidate APN ( ). The entire repair process takes 48 seconds, and the user does not perceive a complete interruption.
[0062] Phase 5 (Roaming scenario): The user travels across provinces with the CPE, and the PLMN switches from 46000 to 46001. The decontamination step is hit, and for all entries in the policy table whose component is the lower 8 bits of , attenuation is performed according to .
[0063] Phase 6 (Relaxed Deep Repair Threshold): CPE enters the bottom of the underground parking garage, and continuous dialing fails. Currently... and Find it in the table Calculate according to formula (2) .when Only when it reaches 180 is it allowed and The number of executions far exceeds the existing plan's 60.
[0064] Phase 7 (Successful Recovery and State Preservation): The user drives out of the garage. It rose to -85 dBm. The call was successfully made in 5 seconds. and Clear the status and enter real-time status monitoring; if ping 8.8.8.8 fails, return to step one.
[0065] Example 3 Based on the same principle as the aforementioned methods, a CPE dialing self-healing device based on multi-dimensional profiling and strategy tables is also proposed, see [link to relevant documentation]. Figure 3 The CPE dialing self-healing device 100 based on multi-dimensional profiles and strategy tables according to this disclosure includes: The dual-trigger fault profile generation module 110 is used to generate a fault profile vector based on the multi-dimensional operational features and dialing failure events collected within the sliding window, through dual-trigger judgment. The adaptive strategy action sorting module 120 is used to sort the actions according to the fault profile vector. - The greedy strategy obtains the recommended repair action sequence from the adaptive strategy table; The adaptive threshold calculation module 130 is used to calculate an adaptive threshold based on the wireless signal quality and network congestion level, and control the triggering of high-cost repair actions. The action execution and strategy update module 140 is used to execute repair actions sequentially according to the recommended repair action sequence and the adaptive threshold, and update the adaptive strategy table based on the exponentially weighted moving average.
[0066] Optionally, the dual-trigger fault profile generation module 110 further includes: The multi-dimensional feature acquisition module 111 is used to periodically acquire error codes, wireless signal indicators, network registration status, SIM status, data plane keep-alive detection results and dialing history results through Modem chip API, AT commands and QMI interface, and store them in a circular buffer. The dual-trigger determination module 112 is used to perform failure trigger determination and prediction trigger determination based on weak coverage persistence, registration jitter, PDP false online, and dialing failure rate rules, respectively, according to the samples and dialing failure events in the circular buffer. The fault profile vector generation module 113 is used to standardize the error code or assign a prediction identifier after a trigger hit, classify and quantize the signal parameters, perform hash dimensionality reduction on the PLMN and cell identifier, organize the dialing history into bitmap integers, and combine the components to generate a fault profile vector.
[0067] Obviously, those skilled in the art should 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 program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the control methods described above. The modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Therefore, this application is not limited to any specific hardware and software combination.
[0068] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the control methods described above. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium can also include combinations of the above types of memory.
[0069] Example 4 Furthermore, an electronic device for implementing any of the described CPE dialing self-healing methods based on multi-dimensional profiles and strategy tables includes: The processor is used to execute tasks such as collecting multi-dimensional operational features and maintenance sliding windows, generating fault profile vectors through dual-trigger judgment, and employing... - The greedy strategy obtains the recommended repair action sequence from the adaptive strategy table, calculates the adaptive threshold based on the wireless signal quality and network congestion level, and executes the repair actions in sequence and updates the adaptive strategy table based on the exponentially weighted moving average. The memory is used to store the circular buffer samples, adaptive policy table, key dimension records for cross-scene decontamination, repair action sequence, adaptive threshold calculation results, and intermediate data during the policy table update process necessary to implement the complete calculation and control process.
[0070] The electronic device of this disclosure includes a processor and a memory for storing processor-executable instructions. The processor is configured to implement, when executing the executable instructions, any of the CPE dialing self-healing methods described above based on multi-dimensional profiling and policy tables.
[0071] It should be noted that the number of processors can be one or more. Furthermore, the electronic device in this embodiment may also include input devices and output devices. The processor, memory, input devices, and output devices can be connected via a bus or other means, without specific limitations herein.
[0072] The memory, serving as a computer-readable storage medium for automated fault handling and self-learning methods for modules, can be used to store software programs, computer-executable programs, and various modules, such as the program or module corresponding to the CPE dialing self-healing method based on multi-dimensional profiling and strategy tables in this disclosure. The processor executes various functional applications and data processing of the electronic device by running the software programs or modules stored in the memory.
[0073] The various embodiments of this application have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A CPE dialing self-healing method based on multi-dimensional profiling and strategy tables, characterized in that, include: Based on the multi-dimensional operational features and dialing failure events collected within the sliding window, a fault profile vector is generated through dual-trigger judgment. Based on the fault profile vector, the following is adopted: - The greedy strategy retrieves the recommended repair action sequence from the adaptive strategy table; Based on the wireless signal quality and network congestion level, an adaptive threshold is calculated to control the triggering of high-cost repair actions; Based on the recommended repair action sequence and the adaptive threshold, repair actions are executed sequentially, and the adaptive strategy table is updated based on the exponentially weighted moving average.
2. The CPE dialing self-healing method based on multi-dimensional profiling and strategy table as described in claim 1, characterized in that, The process involves generating a fault profile vector based on multi-dimensional operational features and dialing failure events collected within the sliding window, using a dual-trigger determination method. This vector includes: Based on the arrival of the sampling period, non-blocking subscription to Modem chip API callback parameters is performed, along with the sending and parsing of AT commands and QMI interface messages. Error codes, RSRP, RSRQ, SINR, network registration status, SIM status, data plane keep-alive detection results, and recent data are collected. The dialing results are then processed, and the collected feature samples are stored in a circular buffer of length W to maintain the multi-dimensional running feature sliding window. Based on the samples in the sliding window and the dialing failure events reported by the service module, a dual-trigger judgment is performed: when the error code contained in the dialing failure event is not empty, the failure trigger is hit; when the sample satisfies one of the following rules: weak coverage persistence, registration jitter, PDP false online, or dialing failure rate, the prediction trigger is hit. Based on the sliding window end sample at the time of triggering the hit and the most recent The dialing result is then processed by standardizing the error code or assigning a PRED-Rx identifier, categorizing and quantizing RSRP / RSRQ / SINR, hashing and reducing the dimensionality of PLMN and cell identifier, organizing the dialing result into a bitmap integer, and combining the components into a fault profile vector. The process of combining the components into a fault profile vector is described below. For error codes or prediction identifier components, RSRP gradation quantization values, RSRQ quantization values, SINR quantization values for different ranges, The lower 8 bits of the PLMN hash value. The lower 8 bits of the cell identifier hash value. For SIM state enumeration values, For network registration status enumeration values, For the most recent The integer value of the second dialing result bitmap indicates the fault profile vector. The above nine components are combined in sequence as follows: 。 3. The CPE dialing self-healing method based on multi-dimensional profiling and strategy table as described in claim 1, characterized in that, The method based on the fault profile vector is as follows: - The greedy strategy obtains the recommended repair action sequence from the adaptive strategy table, including: Based on the fault profile vector, perform key-value calculation, query the adaptive strategy table in local non-volatile storage, and when the fault profile vector does not have a corresponding entry in the adaptive strategy table, initialize the success rate estimate of each action with the prior value and write the new entry back to the adaptive strategy table. Based on the estimated success rate of each action corresponding to the fault profile vector in the adaptive strategy table, execute... - Greedy sorting: Sort all actions except A5 and A6 in descending order of their estimated success rates to generate a candidate sequence. For each action in the candidate sequence, sort them by probability. Bernoulli sampling is performed. When the sampling result is exploration, an action is randomly selected from the set of actions to be explored and inserted at the beginning of the candidate sequence. Then, A5 and A6 are placed at the end of the sequence to obtain the recommended repair action sequence.
4. The CPE dialing self-healing method based on multi-dimensional profiling and strategy table as described in claim 1, characterized in that, The step of calculating an adaptive threshold based on wireless signal quality and network congestion level to control the triggering of high-cost repair actions includes: The average RSRP is calculated based on the RSRP samples within the circular buffer, and a congestion indication is calculated based on the network registration success rate and paging response rate within the sliding window. The calculation of congestion indication, assuming To improve the success rate of registration within the sliding window, For the paging response rate within the sliding window, when or When unavailable, the value is always 1, indicating a congestion indicator. The calculation formula is: ; An adaptive factor is determined from a preset grading table based on the average RSRP and the grading interval to which the congestion indication belongs. The value of ; According to the adaptive factor The current number of system restarts n and the base threshold base are used to calculate the adaptive threshold using the adaptive threshold formula; The adaptive threshold formula assumes that base is a preset base number of iterations. This represents the number of times the entire system has been restarted. Based on the average RSRP and Given a defined adaptive factor, the adaptive threshold is... The calculation formula is: 。 5. The CPE dialing self-healing method based on multi-dimensional profiling and strategy table as described in claim 1, characterized in that, The step of sequentially executing repair actions based on the recommended repair action sequence and the adaptive threshold, and updating the adaptive strategy table based on an exponentially weighted moving average, includes: According to the recommended repair action sequence, the AT command interaction process defined for each repair action is executed sequentially, and the success or failure of dialing is used as the basis for determining the action execution result. Based on the adaptive threshold, before executing A5 or A6, check if the current consecutive failure count is greater than or equal to the adaptive threshold. If the threshold is met, execution is allowed; otherwise, the high-cost action is skipped. Based on the result of the action execution The success rate estimate of the corresponding action in the adaptive strategy table is updated according to the exponentially weighted moving average formula, and the updated strategy table is serialized and written into non-volatile storage. The index-weighted moving average update is set as follows: Profiling the fault Corresponding actions The current success rate estimate, For learning rate, If the result of this action is 1 for success and 0 for failure, then the formula for calculating the updated success rate estimate is: 。 6. The CPE dialing self-healing method based on multi-dimensional profiling and strategy table as described in claim 2, characterized in that, The process involves performing a dual-trigger determination based on the samples within the sliding window and the dialing failure events reported by the service module: when the error code contained in the dialing failure event is not empty, the failure trigger is hit. When the sample satisfies one of the following rules: persistent weak coverage, registration jitter, PDP false online status, or dialing failure rate, the prediction trigger is hit, including: Based on the data plane keep-alive probe results of multiple consecutive sampling periods in the circular buffer, the PDP false online rule determination is performed: extract the data plane keep-alive probe sample sequence of the most recent P sampling periods from the circular buffer, convert the response results of DNS queries and ICMP probes in each sampling period into identifier values respectively, and count the number of consecutive identifier values of "no response" in the P sampling periods; when the number of consecutive values is equal to P, it is determined that the PDP false online rule is hit, and the hit rule number participates in the generation of the error code component in the fault profile vector.
7. The CPE dialing self-healing method based on multi-dimensional profiling and strategy table as described in claim 3, characterized in that, The step involves executing the action success rate estimate corresponding to the fault profile vector in the adaptive strategy table. - Greedy sorting: Sort all actions except A5 and A6 in descending order of their estimated success rates to generate a candidate sequence. For each action in the candidate sequence, sort them by probability. Bernoulli sampling is performed. When the sampling result is exploration, an action is randomly selected from the set of actions to be explored and inserted at the beginning of the candidate sequence. Then, A5 and A6 are placed at the end of the sequence to obtain the recommended repair action sequence, including: Based on the candidate sequence and the preset exploration probability Insertion of exploratory actions: For each action in the candidate sequence, according to a Bernoulli distribution with probability... Perform a sampling; when the Bernoulli sampling result is exploration, retrieve the actions that have not been tried within the most recent preset number of times from the remaining actions in the action pool except A5 and A6, form a set of actions to be explored, and randomly select an action from the set of actions to be explored, place the action at the beginning of the candidate sequence, and keep the relative order of the remaining actions in the original candidate sequence and continue to the end.
8. A CPE dialing self-healing device based on multi-dimensional profiling and strategy table, the device comprising: The dual-trigger fault profile generation module is used to generate a fault profile vector based on the multi-dimensional operational features and dialing failure events collected within the sliding window, through dual-trigger judgment. The adaptive strategy action sorting module is used to sort actions based on the fault profile vector. - The greedy strategy retrieves the recommended repair action sequence from the adaptive strategy table; The adaptive threshold calculation module is used to calculate an adaptive threshold based on the wireless signal quality and network congestion level, and control the triggering of high-cost repair actions. The action execution and strategy update module is used to execute repair actions sequentially according to the recommended repair action sequence and the adaptive threshold, and update the adaptive strategy table based on the exponentially weighted moving average.
9. The CPE dialing self-healing device based on multi-dimensional profile and strategy table according to claim 8, wherein the dual-trigger fault profile generation module further comprises: The multi-dimensional feature acquisition module is used to periodically collect error codes, wireless signal indicators, network registration status, SIM status, data plane keep-alive detection results, and dialing history results through Modem chip API, AT commands, and QMI interface, and store them in a circular buffer. The dual-trigger determination module is used to perform failure trigger determination and prediction trigger determination based on weak coverage persistence, registration jitter, PDP false online, and dialing failure rate rules, respectively, according to the samples and dialing failure events in the circular buffer. The fault profile vector generation module is used to standardize or assign a prediction label to the error code after a trigger hit, classify and quantize the signal parameters, perform hash dimensionality reduction on the PLMN and cell identifier, organize the dialing history into bitmap integers, and combine the components to generate a fault profile vector.
10. An electronic device, characterized in that, The method for implementing the CPE dialing self-healing method based on multi-dimensional profile and strategy table as described in any one of claims 1 to 7 includes: The processor is used to execute tasks such as collecting multi-dimensional operational features and maintenance sliding windows, generating fault profile vectors through dual-trigger judgment, and employing... - The greedy strategy obtains the recommended repair action sequence from the adaptive strategy table, calculates the adaptive threshold based on the wireless signal quality and network congestion level, and executes the repair actions in sequence and updates the adaptive strategy table based on the exponentially weighted moving average. The memory is used to store the circular buffer samples, adaptive policy table, key dimension records for cross-scene decontamination, repair action sequence, adaptive threshold calculation results, and intermediate data during the policy table update process necessary to implement the complete calculation and control process.
