Network anomaly optimization method and related products
By detecting the correctness of APN configuration parameters and triggering multiple cache cleanup mechanisms through a timer that starts when the network is disconnected, the problem of being unable to access the Internet due to modem-side cache after the APN configuration parameters are updated is solved, and a stable network connection is achieved.
Patent Information
- Application Number
- CN202211022824.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-24
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2042-08-24
AI Technical Summary
After the APN configuration parameters are updated, there is a problem of caching on the modem side causing Internet access failure, especially when the cache or historical data is not erased in time.
After the APN configuration parameters are updated, the correctness of the parameters is detected, and a timer is started when the network is disconnected, triggering multiple cache cleaning mechanisms to clear the cache on the modem side.
It effectively avoids the problem of being unable to access the Internet due to untimely caching or erasing of historical data, ensuring smooth network operation.
Smart Images

Figure CN115396922B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a network anomaly optimization method and related products. Background Art
[0002] Access point name (APN) configuration parameters are used by electronic devices to access the internet. Operators frequently need to update these APN configuration parameters, typically through server-side configuration. While correcting the APN configuration parameters can often resolve internet access issues, updating the APN configuration parameters can also cause internet access issues, for example, if there's cache on the modem. Summary of the Invention
[0003] The embodiment of the present application provides a network anomaly optimization method and related products. In the case of abnormal APN configuration parameters, after updating the APN configuration parameters, the cache on the modem side can be cleared through multiple cache cleaning mechanisms, which is beneficial to avoid the problem of being unable to access the Internet due to untimely caching or erasing of historical data.
[0004] In a first aspect, an embodiment of the present application provides a network anomaly optimization method, applied to an electronic device, the method comprising:
[0005] After updating the APN configuration parameters, detecting whether the APN configuration parameters are correct;
[0006] If the APN configuration parameters are correct, start a timer, wherein the timer is used to detect whether the current network is connected;
[0007] When the current network is disconnected, the timer is used to trigger a cache cleanup mechanism multiple times to make the current network accessible.
[0008] In a second aspect, an embodiment of the present application provides a network anomaly optimization device, which is applied to an electronic device. The device includes: a detection unit, a starting unit, and a triggering unit, wherein:
[0009] The detection unit is used to detect whether the APN configuration parameters are correct after the APN configuration parameters are updated;
[0010] The starting unit is configured to start a timer when the APN configuration parameters are correct, wherein the timer is used to detect whether the current network is connected;
[0011] The triggering unit is configured to trigger multiple cache cleaning mechanisms through the timer when the current network is disconnected, so as to make the current network accessible.
[0012] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program comprises instructions for executing the steps of any method of the first aspect of the embodiment of the present application.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables a computer to execute part or all of the steps described in any method of the first aspect of the embodiment of the present application.
[0014] In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
[0015] It can be seen that in the embodiment of the present application, after the electronic device updates the APN configuration parameters, it detects whether the APN configuration parameters are correct; if the APN configuration parameters are correct, it starts a timer, wherein the timer is used to detect whether the current network is connected; if the current network is not connected, the timer triggers a multiple cache clearing mechanism to enable the current network to be connected. In this way, if the APN configuration parameters are abnormal, after the APN configuration parameters are updated, the cache on the modem side can be cleared through the multiple cache clearing mechanism, which is beneficial to avoid the problem of being unable to access the Internet due to untimely caching or erasing of historical data. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0017] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0018] Figure 2 This is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0019] Figure 3This is a flow chart of a network anomaly optimization method provided by an embodiment of the present application;
[0020] Figure 4 This is a flow chart of a network anomaly optimization method provided by an embodiment of the present application;
[0021] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0022] Figure 6A This is a block diagram of the functional units of a network anomaly optimization device provided in an embodiment of the present application;
[0023] Figure 6B This is a block diagram of the functional units of a network anomaly optimization device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to help those skilled in the art better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
[0026] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0027] The electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication functions (such as a smart watch, smart glasses), a vehicle-mounted device, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with an iOS system, an Android system, a Microsoft system, or other operating systems. The portable electronic device may also be other portable electronic devices, such as a laptop computer. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but a desktop computer.
[0028] The software and hardware operating environment of the technical solution disclosed in this application is introduced as follows.
[0029] For example, Figure 1 FIG1 shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a compass 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195.
[0030] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0031] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent components or integrated into one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110. The controller may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. In other embodiments, the processor 110 may also include a memory for storing instructions and data. Exemplarily, the memory in the processor 110 may be a cache memory. This memory may store instructions or data that have just been used or are being recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the electronic device 100 in processing data or executing instructions.
[0032] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface, and / or a USB interface. Among them, the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. The USB interface 130 can also be used to connect headphones to play audio through the headphones.
[0033] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0034] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0035] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193 and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0036] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
[0037] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0038] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0039] The wireless communication module 160 can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), UWB, etc. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0040] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for relational analysis that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and render graphics. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0041] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (MiniLED), a MicroLED, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or more display screens 194.
[0042] The electronic device 100 can implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor, etc.
[0043] The ISP is used to process data fed back by the camera 193. For example, when taking a photo, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing to convert it into an image visible to the naked eye. The ISP can also optimize the noise, brightness, and skin color of the image through algorithms. The ISP can also optimize the exposure, color temperature, and other parameters of the shooting scene. In some embodiments, the ISP can be arranged in the camera 193.
[0044] The camera 193 is used to capture still images or videos. Objects generate optical images through lenses and project them onto photosensitive elements. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into a standard RGB, YUV, or other format image signal. In some embodiments, the electronic device 100 can include one or more cameras 193.
[0045] The digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0046] The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.
[0047] The NPU is a neural-network (NN) computing processor that learns from the structure of biological neural networks, such as the transmission mode between human brain neurons, to quickly process input information and continuously self-learn. Through the NPU, the electronic device 100 can implement intelligent cognitive applications such as image recognition, face recognition, voice recognition, and text understanding, etc.
[0048] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0049] The internal memory 121 can be used to store one or more computer programs, which include instructions. The processor 110 can execute the above instructions stored in the internal memory 121, so that the electronic device 100 performs the method of displaying page elements, various applications, and data processing provided in some embodiments of the present application. The internal memory 121 may include a program storage area and a data storage area. The program storage area can store an operating system; the program storage area can also store one or more applications (such as a gallery, contacts, etc.). The data storage area can store data created during the use of the electronic device 100 (such as photos, contacts, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), etc. In some embodiments, the processor 110 can execute the instructions stored in the internal memory 121 and / or the instructions stored in the memory provided in the processor 110, so that the electronic device 100 performs the method of displaying page elements, and other applications and data processing provided in the embodiments of the present application. The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0050] The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
[0051] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor 180A can be located on the display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 100 detects the touch intensity based on the pressure sensor 180A. The electronic device 100 can also calculate the touch location based on the detection signal from the pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the short message application icon, a command to create a new short message is executed.
[0052] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., X, Y, and Z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0053] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0054] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.
[0055] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0056] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.
[0057] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.
[0058] For example, Figure 2 The software structure diagram of the electronic device 100 is shown. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. The application layer can include a series of application packages.
[0059] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0060] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0061] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0062] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0063] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0064] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0065] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0066] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0067] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0068] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0069] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0070] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0071] The system library can include a plurality of functional modules. For example, a surface manager, media libraries, a three-dimensional graphics processing library (e.g., OpenGL ES), a 2D graphics engine (e.g., SGL), etc.
[0072] The surface manager is used to manage the display subsystem and provides a plurality of applications with fusion of 2D and 3D layers.
[0073] The media libraries support a plurality of commonly used audio, video format playback and recording, and static image files, etc. The media libraries can support a plurality of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0074] The three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, synthesis, and layer processing, etc.
[0075] The 2D graphics engine is a drawing engine for 2D drawing.
[0076] The kernel layer is a layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0077] An access point (APN) configuration parameter is a parameter configuration used by an electronic device for network access. The APN configuration parameter is often updated by an operator, and the configuration parameter is generally modified by a server configuration delivery manner.
[0078] When the server configuration delivery is performed, an APN configuration parameter configuration error can be caused due to insufficient verification, and thus a network activation problem can be caused.
[0079] In this case, the electronic device can generally correct the APN configuration parameter so that the electronic device can access the network. However, after the APN configuration parameter is updated or corrected, if a Modem side exists a cache that cannot be processed, an over-the-air technology (OTA) or the Modem cannot timely erase historical data, and thus a network access problem can be caused.
[0080] To address the above-mentioned issues, the present application proposes a network anomaly optimization method. After updating the APN configuration parameters, the electronic device detects whether the APN configuration parameters are correct. If the APN configuration parameters are correct, a timer is started, wherein the timer is used to detect whether the current network is connected. If the current network is not connected, the timer triggers a multiple cache clearing mechanism to enable access to the current network. In this way, after updating the APN configuration parameters in the event of an APN configuration parameter anomaly, the cache on the modem side can be cleared through the multiple cache clearing mechanism, which helps to avoid the problem of being unable to access the Internet due to untimely caching or erasing of historical data.
[0081] The present application is described in detail below with reference to specific embodiments.
[0082] See also Figure 3 , Figure 3 This is a flow chart of a network anomaly optimization method provided in an embodiment of the present application, which is applied to electronic devices. As shown in the figure, the network anomaly optimization method includes the following operations.
[0083] S301: After updating the APN configuration parameters, check whether the APN configuration parameters are correct.
[0084] Among them, the above-mentioned APN configuration parameters may include at least one of the following: APN configuration name, operator number, access point (APN), port number, APN access type, etc., which are not limited here.
[0085] In this application, the electronic device can synchronously detect whether the APN configuration parameters are correct after updating or correcting the above-mentioned APN configuration parameters, that is, detect whether the APN configuration parameters are normal or whether they can operate normally.
[0086] Among them, if the above-mentioned APN configuration parameters are incorrect, the subsequent process is stopped, and an error request is sent and a pop-up box prompts whether to confirm whether the APN configuration parameters are incorrect. If the APN configuration parameters are confirmed to be incorrect, the APN configuration parameters can be directly reset.
[0087] S302: When the APN configuration parameters are correct, start a timer, where the timer is used to detect whether the current network is connected.
[0088] Among them, the electronic device can pre-set a set time period corresponding to the timer, and the timer can be used to constrain the network connection time of the electronic device. That is, when the electronic device detects that the connection time exceeds the set time period, it is determined that the connection has timed out, that is, it is determined that the current network is not connected.
[0089] The time period corresponding to the above-mentioned set time period may be 2 minutes, 10 minutes, 30 minutes, 1 hour, 2 hours, etc., and is generally set to 2 minutes.
[0090] The electronic device can detect whether the current network is connected by pinging at set time intervals.
[0091] S303: When the current network is disconnected, trigger a cache clearing mechanism multiple times through the timer to make the current network accessible.
[0092] Among them, if the electronic device detects that the current network is not connected, it can trigger multiple cache cleaning mechanisms, which can be 2 times, 3 times, 5 times, etc. In this application, multiple can refer to two or more, and will not be repeated later.
[0093] The triggering time or triggering conditions of each of the multiple cache cleaning mechanisms are different, and the electronic device can set different triggering times or triggering conditions in advance. In this way, the cache cleaning mechanism can be triggered multiple times in different application situations to ensure the current network connectivity.
[0094] Wherein, when the current network is connected, the path or connectivity of the current network can still be monitored at set time intervals through a timer.
[0095] It can be seen that in the network anomaly optimization method described in the embodiment of the present application, after the electronic device updates the APN configuration parameters, it detects whether the APN configuration parameters are correct; if the APN configuration parameters are correct, it starts a timer, wherein the timer is used to detect whether the current network is connected; if the current network is not connected, the timer triggers multiple cache clearing mechanisms to enable the current network to be connected. In this way, in the case of APN configuration parameter anomalies, after the APN configuration parameters are updated, the cache on the modem side can be cleared through the multiple cache clearing mechanisms, which is conducive to avoiding the problem of being unable to access the Internet due to untimely caching or erasing of historical data.
[0096] In a possible example, the multiple cache cleaning mechanisms include a first cache cleaning mechanism and a second cache cleaning mechanism; when the current network is not connected, the multiple cache cleaning mechanisms are triggered by the timer to make the current network accessible. The above method may specifically include the following steps: when the current network is not connected, stop the timer and trigger the first cache cleaning mechanism, wherein the first cache cleaning mechanism is used to instruct the electronic device to reset the APN configuration parameters to complete the cache cleaning; start the timer; determine the set time period of the timer, and detect whether the current network is connected within the set time period; if the current network is not connected, trigger the second cache cleaning mechanism, and clean the cache through the secondary cache cleaning mechanism to make the current network accessible.
[0097] The multiple cache cleaning mechanisms mentioned above may include a first cache cleaning mechanism, a second cache cleaning mechanism and a third cache cleaning mechanism, and each cache cleaning mechanism has different triggering conditions.
[0098] In a specific implementation, when the electronic device determines through a timer that the current network is not connected, that is, when the network is detected to be disconnected for the first time, the first cache cleaning mechanism can be directly triggered. The first cache cleaning mechanism is used to instruct the electronic device to reset the APN configuration parameters so that the APN configuration parameters are aligned with the preset APN configuration parameters. The preset APN configuration parameters can be set by the user or by the system default, which is not limited here. The preset APN configuration parameters can be an XML configuration file.
[0099] Furthermore, after resetting the APN configuration parameters, the current network access status can be continued to be monitored through a timer, and whether the network is connected can be detected within a set time period through ping. If the current network is still disconnected within the set time period, the second cache cleaning mechanism can be triggered to clean up the cache data left by the modem or OTA through the second cache cleaning mechanism.
[0100] It can be seen that in this example, the problems caused by the APN configuration parameters are generally more serious. When the operator modifies the configuration parameters, it may cause the electronic device to download some data. These data may exist in the cache corresponding to the OTA version. In this case, the existence of these data may cause the electronic device to be unable to take effect on the cache under normal conditions of sending and receiving instruction data (or communication data), thereby causing the electronic device to be disconnected from the network or the electronic device to be unable to receive communication data normally. The user will not be able to use the electronic device normally, and the user generally has no experience in manually restoring the APN configuration parameters. Therefore, the electronic device can set multiple cache cleaning mechanisms to clean up unnecessary caches through multiple cache cleaning mechanisms, thereby ensuring that the electronic device can normally send and receive instructions or communication data, that is, it is conducive to ensuring the current network access of the electronic device.
[0101] In one possible example, the multiple cache cleaning mechanisms include a third cache cleaning mechanism; the cache is cleaned by the second cache cleaning mechanism to make the current network accessible. The above method may specifically include the following steps: updating the MBN configuration parameters to complete the cache cleaning, and detecting whether the current network is connected by the timer within the set time period; if the current network is not connected, triggering the third cache cleaning mechanism, and cleaning the cache by the third cache cleaning mechanism to make the current network accessible.
[0102] The third cache cleaning mechanism is different from the second cache cleaning mechanism and / or the second cache cleaning mechanism.
[0103] The second cache cleaning mechanism mentioned above is to update the MBN configuration parameters.
[0104] The MBN configuration parameters are binary files (ModemConfiguration Binary, MBN) of the activated modem configuration, which can be used to configure special requirements or network environments of operators, etc. Each operator will have a specific MBN configuration parameter included in the modem code.
[0105] It can be seen that in this example, the electronic device can set multiple cache cleaning mechanisms to clean up unnecessary caches through multiple cache cleaning mechanisms, thereby helping to ensure that the electronic device can normally send and receive instructions or communication data, that is, helping to ensure the current network access of the electronic device.
[0106] It should be noted that in the embodiment of the present application, the above-mentioned timer may be different from the timer used in the first cache cleaning mechanism or the second cache cleaning mechanism, that is, different set time periods are pre-set to use different timers to constrain or monitor the network access conditions in different situations (in the implementation of the cache cleaning mechanism).
[0107] In one possible example, the cache is cleaned by the third cache cleaning mechanism to make the current network accessible. The above method may specifically include the following steps: deleting the RFC configuration parameters and the MBN configuration parameters; if the current network is not connected within the preset time period, restarting the current network.
[0108] The RFC (Request For Comments) configuration parameters can be understood as a series of numbered files that can be used to collect Internet-related information, etc.
[0109] It can be seen that in this example, when the second cache cleaning mechanism fails, that is, when the electronic device is still disconnected from the current network after the second cache cleaning mechanism is implemented, the third cache cleaning mechanism can be adopted, that is, deleting the RFC configuration parameters and MBN configuration parameters; further, after the above three cache cleaning mechanisms, the current network or electronic device can be directly restarted to clear the cache to the greatest extent. In this way, the cache data that exists after the use of modules such as modems or technologies (such as OTA) can be implemented layer by layer, thereby ensuring that the electronic device can normally send and receive instructions or communication data, that is, it is beneficial to ensure the current network access of the electronic device.
[0110] In one possible example, after restarting the current network, the above method may further include the following steps: starting the timer; checking the electronic device database through the timer to delete the operation records corresponding to the first cache clearing mechanism and / or the second cache clearing mechanism and / or the third cache clearing mechanism, and canceling all timers.
[0111] In this embodiment, the function of the timer is still to detect the access status of the current network, and after the current use is completed, all timers can be stopped or canceled.
[0112] It can be seen that in this example, the electronic device can delete the operation record left when clearing the cache to prevent the operation record from affecting other operations of the electronic device and causing the current network of the electronic device to be disconnected.
[0113] In one possible example, the method for detecting whether the APN configuration parameters are correct may specifically include the following steps: obtaining preset APN configuration parameters; comparing the preset APN configuration parameters with the APN configuration parameters, and if the preset APN configuration parameters are consistent with the APN configuration parameters, determining that the APN configuration parameters are correct.
[0114] The electronic device may have preset APN configuration parameters, which may be stored in XML format. The preset APN configuration parameters may be default settings of the electronic device.
[0115] It can be seen that in this example, the preset APN configuration parameters can be compared with the APN configuration parameters updated or revised in real time to determine whether the APN configuration parameters are normal.
[0116] In a possible example, the method may further include the following step: within a preset time period, if it is detected that TR / RX is not paired, determining that the current network is disconnected.
[0117] TR (transport) refers to sending, and RX (receive) refers to receiving. Under normal circumstances, when network communication is normal, TR and RX signals appear in pairs, with sending and receiving forming a single pair. Furthermore, sending and receiving must occur simultaneously. Receiving without sending, or sending without receiving, are both problematic. Therefore, if unpaired TR / RX signals, or receiving without sending, or sending without receiving, are detected within a preset time period (which can be set by the user or set by the system), or if only sending without receiving, or receiving without sending, is detected, the network is considered disconnected.
[0118] See also Figure 4 , Figure 4 This is a flow chart of a network anomaly optimization method provided in an embodiment of the present application, which is applied to electronic devices. As shown in the figure, the network anomaly optimization method includes the following operations.
[0119] S401: After updating the APN configuration parameters, check whether the APN configuration parameters are correct.
[0120] S402: When the APN configuration parameters are correct, start a timer, where the timer is used to detect whether the current network is connected.
[0121] S403. When the current network is disconnected, stop the timer and trigger a first cache cleaning mechanism, wherein the first cache cleaning mechanism is used to instruct the electronic device to reset the APN configuration parameters to complete cache cleaning.
[0122] S404: Start the timer, determine a set time period of the timer, and detect whether the current network is connected within the set time period.
[0123] S405: If the current network is not connected, update the MBN configuration parameters to complete the cache cleanup, and detect whether the current network is connected by the timer within the set time period.
[0124] S406, if the current network is not connected, deleting the RFC configuration parameter and the MBN configuration parameter.
[0125] S407, if the current network is not connected within the preset time period, restarting the current network to make the current network connected.
[0126] Wherein, after each cache cleaning mechanism is implemented, the electronic device can restart the timer under the condition that the network is determined to be not connected, that is, after the timer is set for each time period, the use of the timer can be stopped, and after the first cache cleaning mechanism and / or the second cache cleaning mechanism and / or the third cache cleaning mechanism is implemented, the timer is restarted again to detect the connection of the current network through the timer. After each time the timer is restarted, if the network is connected within the set time period, the timer is stopped.
[0127] Alternatively, the specific description of steps 401-407 can be referred to Figure 3 The corresponding steps of the described network exception optimization method steps 301-303 are not described here.
[0128] It can be seen that the network exception optimization method described in the embodiment of the application, after updating the APN configuration parameter, detects whether the APN configuration parameter is correct; in the case that the APN configuration parameter is correct, the timer is started, wherein the timer is used to detect whether the current network is connected; in the case that the current network is not connected, the timer is stopped, and the first cache cleaning mechanism is triggered, wherein the first cache cleaning mechanism is used to instruct the electronic device to reset the APN configuration parameter to complete the cleaning of the cache; the timer is started, the set time period of the timer is determined, and within the set time period, it is detected whether the current network is connected; if the current network is not connected, the MBN configuration parameter is updated to complete the cache cleaning, and within the set time period, the timer is used to detect whether the current network is connected; if the current network is not connected, the RFC configuration parameter and the MBN configuration parameter are deleted; if the current network is not connected within the preset time period, the current network is restarted to make the current network connected. The electronic device can set multiple cache cleaning mechanisms to clean unnecessary caches through multiple cache cleaning mechanisms, thereby facilitating the electronic device to normally receive and transmit instructions or communication data, that is, facilitating the electronic device to be connected to the current network.
[0129] Please refer to Figure 5 , Figure 5This is a structural diagram of an electronic device provided by an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs, which are applied to the electronic device, wherein the one or more programs are stored in the memory, and the one or more programs are configured to cause the processor to execute the following steps:
[0130] After updating the APN configuration parameters, detecting whether the APN configuration parameters are correct;
[0131] If the APN configuration parameters are correct, start a timer, wherein the timer is used to detect whether the current network is connected;
[0132] When the current network is disconnected, the timer is used to trigger a cache cleanup mechanism multiple times to make the current network accessible.
[0133] It can be seen that the electronic device described in the embodiment of the present application, after updating the APN configuration parameters, detects whether the APN configuration parameters are correct; if the APN configuration parameters are correct, starts a timer, wherein the timer is used to detect whether the current network is connected; if the current network is not connected, the timer triggers a multiple cache clearing mechanism to enable the current network to be connected. In this way, in the event of an abnormal APN configuration parameter, after updating the APN configuration parameters, the cache on the modem side can be cleared through the multiple cache clearing mechanism, which is beneficial to avoid the problem of being unable to access the Internet due to untimely caching or erasing of historical data.
[0134] In one possible example, the multiple cache cleaning mechanisms include a first cache cleaning mechanism and a second cache cleaning mechanism; when the current network is disconnected, the multiple cache cleaning mechanisms are triggered by the timer to ensure that the current network is accessible. The program further includes instructions for performing the following steps:
[0135] If the current network is disconnected, the timer is stopped and a first cache cleaning mechanism is triggered, wherein the first cache cleaning mechanism is used to instruct the electronic device to reset the APN configuration parameters to complete the cache cleaning;
[0136] Starting the timer;
[0137] Determining a set time period of the timer, and detecting whether the current network is connected within the set time period;
[0138] If the current network is not connected, the second cache cleaning mechanism is triggered, and the cache is cleaned through the secondary cache cleaning mechanism to make the current network accessible.
[0139] In one possible example, the multiple cache cleaning mechanisms include a third cache cleaning mechanism.
[0140] In the cleaning of the cache by the second cache cleaning mechanism to make the current network accessible, the above procedure includes instructions for performing the following steps:
[0141] updating the MBN configuration parameters to complete the cache cleaning, and detecting whether the current network is accessible by the timer within the set time period;
[0142] if the current network is not accessible, triggering the third cache cleaning mechanism and cleaning the cache by the third cache cleaning mechanism to make the current network accessible.
[0143] In one possible example, in the cleaning of the cache by the third cache cleaning mechanism to make the current network accessible, the above procedure includes instructions for performing the following steps:
[0144] deleting the RFC configuration parameters and the MBN configuration parameters;
[0145] if the current network is not accessible within the preset time period, restarting the current network.
[0146] In one possible example, after the restarting of the current network, the above procedure further includes instructions for performing the following steps:
[0147] starting the timer;
[0148] checking the electronic device database by the timer to delete the operation records corresponding to the first cache cleaning mechanism and / or the second cache cleaning mechanism and / or the third cache cleaning mechanism, and canceling all timers.
[0149] In one possible example, in the detection of whether the APN configuration parameters are correct, the above procedure includes instructions for performing the following steps:
[0150] obtaining preset APN configuration parameters;
[0151] comparing the preset APN configuration parameters with the APN configuration parameters, and determining that the APN configuration parameters are correct if the preset APN configuration parameters are consistent with the APN configuration parameters.
[0152] In one possible example, the above procedure further includes instructions for performing the following steps:
[0153] if it is detected that the TR / RX is not paired within a preset time period, determining that the current network is not accessible.
[0154] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process of the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the range of this application.
[0155] The embodiment of the present application can divide the functional units of the electronic device according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0156] In the case of dividing each functional module into corresponding functional modules, Figure 6A A schematic diagram of a network anomaly optimization device is shown. Figure 6A As shown, the device is applied to electronic equipment. The network abnormality optimization device 600 may include: a detection unit 601, a starting unit 602 and a triggering unit 603, wherein:
[0157] The detection unit 601 is used to detect whether the APN configuration parameters are correct after the APN configuration parameters are updated;
[0158] The starting unit 602 is configured to start a timer when the APN configuration parameters are correct, wherein the timer is used to detect whether the current network is connected;
[0159] The triggering unit 603 is configured to trigger multiple cache clearing mechanisms through the timer when the current network is disconnected, so as to make the current network accessible.
[0160] It can be seen that the network anomaly optimization device described in the embodiment of the present application detects whether the APN configuration parameters are correct after updating the APN configuration parameters; if the APN configuration parameters are correct, a timer is started, wherein the timer is used to detect whether the current network is connected; if the current network is not connected, the timer triggers a multiple cache clearing mechanism to enable the current network to be connected. In this way, after updating the APN configuration parameters in the event of an APN configuration parameter anomaly, the cache on the modem side can be cleared through the multiple cache clearing mechanism, which is beneficial to avoid the problem of being unable to access the Internet due to untimely caching or erasing of historical data.
[0161] In a possible example, the multiple cache cleaning mechanism includes a first cache cleaning mechanism and a second cache cleaning mechanism; when the current network is disconnected, the multiple cache cleaning mechanism is triggered by the timer to ensure that the current network is accessible. The triggering unit 603 is specifically configured to:
[0162] If the current network is disconnected, the timer is stopped and a first cache cleaning mechanism is triggered, wherein the first cache cleaning mechanism is used to instruct the electronic device to reset the APN configuration parameters to complete the cache cleaning;
[0163] Starting the timer;
[0164] Determining a set time period of the timer, and detecting whether the current network is connected within the set time period;
[0165] If the current network is not connected, the second cache cleaning mechanism is triggered, and the cache is cleaned through the secondary cache cleaning mechanism to make the current network accessible.
[0166] In one possible example, the multiple cache cleaning mechanisms include a third cache cleaning mechanism;
[0167] In terms of clearing the cache by the second cache clearing mechanism to ensure the current network access, the triggering unit 603 is specifically configured to:
[0168] Updating MBN configuration parameters to complete the cache cleanup, and detecting whether the current network is connected by the timer within the set time period;
[0169] If the current network is not connected, a third cache cleaning mechanism is triggered, and the cache is cleaned by the third cache cleaning mechanism to make the current network accessible.
[0170] In a possible example, in terms of clearing the cache by using the third cache clearing mechanism to ensure the current network access, the triggering unit 603 is specifically configured to:
[0171] Delete the RFC configuration parameters and the MBN configuration parameters;
[0172] If the current network is not connected within the preset time period, restart the current network.
[0173] In a possible example, after restarting the current network, as shown in FIG. Figure 6B The figure shows a schematic diagram of a network abnormality optimization device. Figure 6A In comparison, the above-mentioned network anomaly optimization device 600 also includes: a deletion unit 604, the starting unit is used to start the timer; the deletion unit 604 is used to check the electronic device database through the timer to delete the operation records corresponding to the first cache clearing mechanism and / or the second cache clearing mechanism and / or the third cache clearing mechanism, and cancel all timers.
[0174] In a possible example, in terms of detecting whether the APN configuration parameters are correct, the detecting unit 601 is specifically configured to:
[0175] Get the preset APN configuration parameters;
[0176] The preset APN configuration parameters are compared with the APN configuration parameters. If the preset APN configuration parameters are consistent with the APN configuration parameters, it is determined that the APN configuration parameters are correct.
[0177] In a possible example, the detection unit 601 is further configured to:
[0178] If it is detected within the preset time period that TR / RX are not paired, it is determined that the current network is not connected.
[0179] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0180] The electronic device provided in this embodiment is used to execute the above-mentioned network anomaly optimization method, and thus can achieve the same effect as the above-mentioned implementation method.
[0181] When integrated units are used, the electronic device may include a processing module, a storage module, and a communication module. The processing module may be used to control and manage the actions of the electronic device. For example, it may be used to support the electronic device in executing the steps performed by the detection unit 601, the activation unit 602, the triggering unit 603, and the deletion unit 604. The storage module may be used to support the electronic device in executing and storing program code and data. The communication module may be used to support communication between the electronic device and other devices.
[0182] The processing module may be a processor or a controller. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on. The storage module may be a memory. The communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, or a Wi-Fi chip.
[0183] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0184] The present application also provides a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may comprise an electronic device.
[0185] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0186] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0187] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0188] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0189] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0190] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0191] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0192] The above has carried out the detailed introduction to the embodiment of the application, the principle and implementation mode of the application have been described in this article by applying specific examples; the above embodiment explanation is only for helping to understand the method of the application and its core idea; at the same time, for the general technical personnel in the art, according to the idea of the application, there will be changes in specific implementation mode and application range; in view of the above, the content of the specification should not be understood as the limitation of the application.
Claims
1. A network anomaly optimization method, applied to electronic equipment, characterized in that: include: After updating the APN configuration parameters, obtain the preset APN configuration parameters; Comparing the preset APN configuration parameter with the APN configuration parameter, and if the preset APN configuration parameter is consistent with the APN configuration parameter, starting a timer, wherein the timer is used to detect whether the current network is connected; When the current network is disconnected, triggering a cache cleanup mechanism multiple times through the timer to make the current network accessible; Among them, the multiple cache cleaning mechanisms include a first cache cleaning mechanism, a second cache cleaning mechanism and a third cache cleaning mechanism; the first cache cleaning mechanism is used to instruct the electronic device to reset the APN configuration parameters so that the APN configuration parameters are aligned with the preset APN configuration parameters; the second cache cleaning mechanism is used to update the MBN configuration parameters to complete cache cleaning; the third cache cleaning mechanism is used to delete the RFC configuration parameters and the MBN configuration parameters.
2. The method according to claim 1, characterized in that The multiple cache cleaning mechanisms include a first cache cleaning mechanism and a second cache cleaning mechanism; The method of triggering multiple cache cleaning mechanisms by the timer when the current network is disconnected, so as to make the current network accessible, includes: If the current network is disconnected, the timer is stopped and a first cache cleaning mechanism is triggered, wherein the first cache cleaning mechanism is used to instruct the electronic device to reset the APN configuration parameters to complete the cache cleaning; Starting the timer; Determining a set time period of the timer, and detecting whether the current network is connected within the set time period; If the current network is not connected, a second cache cleaning mechanism is triggered, and the cache is cleaned by the second cache cleaning mechanism to make the current network accessible.
3. The method according to claim 2, characterized in that The multiple cache cleaning mechanisms include a third cache cleaning mechanism; The step of clearing the cache by the second cache clearing mechanism so as to make the current network path clear comprises: Updating MBN configuration parameters to complete the cache cleanup, and detecting whether the current network is connected by the timer within the set time period; If the current network is not connected, a third cache cleaning mechanism is triggered, and the cache is cleaned by the third cache cleaning mechanism to make the current network accessible.
4. The method according to claim 3, characterized in that Cleaning the cache by the third cache cleaning mechanism so that the current network path includes: Delete the RFC configuration parameters and the MBN configuration parameters; If the current network is not connected within a preset time period, the current network is restarted.
5. The method according to claim 4, characterized in that After restarting the current network, the method further includes: Starting the timer; The electronic device database is checked by the timer to delete the operation records corresponding to the first cache clearing mechanism and / or the second cache clearing mechanism and / or the third cache clearing mechanism, and all timers are canceled.
6. The method according to claim 1, characterized in that The method further comprises: If it is detected within the preset time period that TR / RX are not paired, it is determined that the current network is not connected.
7. A network anomaly optimization device, applied to electronic equipment, characterized in that: The device comprises: a detection unit, a starting unit and a triggering unit, wherein: The detection unit is configured to obtain the preset APN configuration parameters after the APN configuration parameters are updated; The starting unit is configured to compare the preset APN configuration parameter with the APN configuration parameter, and if the preset APN configuration parameter is consistent with the APN configuration parameter, start a timer, wherein the timer is used to detect whether the current network is connected; The triggering unit is used to trigger multiple cache cleaning mechanisms through the timer when the current network is not connected, so that the current network is connected; wherein, the multiple cache cleaning mechanisms include a first cache cleaning mechanism, a second cache cleaning mechanism and a third cache cleaning mechanism; the first cache cleaning mechanism is used to instruct the electronic device to reset the APN configuration parameters so that the APN configuration parameters are aligned with the preset APN configuration parameters; the second cache cleaning mechanism is used to update the MBN configuration parameters to complete cache cleaning; the third cache cleaning mechanism is used to delete the RFC configuration parameters and the MBN configuration parameters.
8. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Terminal APN synchronization method, device and system
CN106612515A
APN parameter configuration method and device, mobile terminal and readable storage medium
CN109890066A