Network connection method and electronic device

By identifying and resetting the packet switching domain status of electronic devices, network connectivity issues caused by underlying anomalies were resolved, enabling rapid network connection recovery and improving user experience.

CN119277568BActive Publication Date: 2026-01-13HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410376847.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-27
Publication Date
2026-01-13
Estimated Expiration
2044-03-27

AI Technical Summary

Technical Problem

When electronic devices malfunction at the underlying level, data packets cannot be transmitted, resulting in prolonged internet outages. Existing technologies struggle to quickly restore network connectivity.

Method used

By identifying events where the transport layer intercepts application layer data packets, the packet switching domain is disconnected and reconnected, and the underlying state is reset, thus restoring network connectivity.

Benefits of technology

It can quickly detect and resolve network problems, improve the efficiency of network anomaly recovery, and enhance the online experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119277568B_ABST
    Figure CN119277568B_ABST
Patent Text Reader

Abstract

The application provides a network connection method and an electronic device, and relates to the technical field of electronic devices.The method comprises the following steps: in the case that a first event is identified by the electronic device, the electronic device disconnects a packet switching domain of the electronic device, and reconnects the packet switching domain after the packet switching domain is disconnected, the first event comprising a data packet initiated by an application layer and intercepted by a transport layer in the electronic device; after the electronic device reconnects the packet switching domain, the electronic device identifies a second event, the second event comprising a data packet initiated by the application layer and not intercepted by the transport layer.The present scheme can automatically detect network problems and timely perform corresponding processing, thereby improving the efficiency of network anomaly recovery and improving the online experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic equipment technology, and more particularly to a network connection method and an electronic device. Background Technology

[0002] Currently, accessing the internet via mobile phones, computers, and other electronic devices has become an indispensable part of life.

[0003] When using electronic devices to access the internet, data packets are transmitted. For example, data packets from electronic device 1 are transmitted to electronic device 2 via the network. If an anomaly occurs at the lower layer (such as the data link layer) of electronic device 1, data packets sent from the upper layer (such as the application layer) of electronic device 1 will fail to reach the lower layer and thus cannot be successfully sent, causing the electronic device to be unable to access the internet for an extended period of time. Summary of the Invention

[0004] This application provides a network connection method and an electronic device, which can improve the efficiency of electronic devices in restoring network connectivity.

[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

[0006] In a first aspect, a network connection method is provided, applicable to an electronic device. The method includes: the electronic device identifying a first event, the first event including the transport layer intercepting a data packet initiated by the application layer. Upon identifying the first event, the electronic device disconnects its current packet-switched domain and reconnects to the packet-switched domain after disconnection. After reconnecting to the packet-switched domain, the electronic device identifies a second event, the second event including the transport layer failing to intercept a data packet initiated by the application layer. The electronic device identifying the first event can be considered a network connection disconnection, and the electronic device identifying the second event can be considered a network connection restoration.

[0007] By adopting the above technical solution, after detecting an event where the transport layer intercepts data packets initiated by the application layer, the electronic device can restore network connectivity by disconnecting and then reconnecting to the packet switching domain. Network connectivity restoration occurs when the electronic device detects that the transport layer has not intercepted data packets initiated by the application layer. Therefore, the electronic device can automatically detect network problems and take timely action, improving the efficiency of network anomaly recovery and enhancing the internet browsing experience.

[0008] In one possible implementation of the first aspect, the method further includes: upon detecting the first event, the electronic device shuts down the data service and then restarts the data service. In this solution, after detecting an event where the transport layer intercepts a data packet initiated by the application layer, the electronic device can restore network connectivity by first reactivating the data service—that is, shutting down and then restarting the data service. This method of shutting down and then restarting the data service restores network connectivity without the user's awareness, improving the user's internet experience.

[0009] In one possible implementation of the first aspect, the method further includes: the electronic device identifying a flag bit contained in the event; wherein the preset flag bit is used to instruct the transport layer in the electronic device to intercept the data packet initiated by the application layer; if the electronic device identifies the preset flag bit, the event corresponding to the preset flag bit is taken as the first event.

[0010] In one possible implementation of the first aspect, the electronic device disconnects its current packet switching domain and reconnects to it after disconnecting. This includes: if the electronic device restarts its data service but fails to restore network connectivity, the electronic device disconnects its current packet switching domain and reconnects to it after disconnecting. In this solution, the method of shutting down and restarting the data service may fail to restore network connectivity. In this case, the electronic device can also reset its underlying state by disconnecting and reconnecting to the packet switching domain to restore network connectivity.

[0011] In one possible implementation of the first aspect, after the electronic device restarts the data service, the method further includes: the electronic device detecting whether a first event has been identified; if the electronic device identifies the first event, the electronic device does not restore the network connection; if the electronic device does not identify the first event, the electronic device restores the network connection. In this scheme, if the electronic device identifies the first event, that is, if the electronic device detects that the transport layer is intercepting data packets initiated by the application layer, then the data initiated by the application layer cannot be transmitted to the lower layer and therefore cannot be transmitted to the network, indicating that the electronic device has not restored the network. If the electronic device does not identify the first event, that is, if the electronic device detects that the transport layer is no longer intercepting data packets initiated by the application layer, then the data initiated by the application layer can be transmitted to the lower layer and therefore can be transmitted to the network, indicating that the electronic device has restored the network. The electronic device can use the detection of a TCP not allowed command reported by the lower layer as the first event.

[0012] It should be noted that the electronic device identification command takes very little time, meaning that the electronic device can quickly determine whether the network connection has been restored. Alternatively, the electronic device can quickly identify the first event and then perform subsequent operations such as shutting down and restarting data services and / or disconnecting and reconnecting to the packet switching domain to improve the efficiency of restoring the network connection.

[0013] In one possible implementation of the first aspect, after the electronic device restarts data services, the method further includes: the electronic device calculating the retransmission ratio of retransmitted data packets in the total data packets of the transport layer; if the retransmission ratio is greater than a preset ratio, the electronic device does not restore network connection; if the retransmission ratio is not greater than the preset ratio, the electronic device restores network connection. The preset ratio can be 99%, and if the retransmission ratio is greater than 99%, the electronic device does not restore network connection.

[0014] In one possible implementation of the first aspect, when the electronic device detects the first event, the electronic device disconnects the current packet switching domain of the electronic device and reconnects to the packet switching domain after disconnecting the packet switching domain, including: when the electronic device detects the first event and an application using the network is running in the foreground of the electronic device, the electronic device disconnects the current packet switching domain of the electronic device and reconnects to the packet switching domain after disconnecting the packet switching domain.

[0015] This solution can restore network connectivity by disconnecting and reconnecting the packet switching domain when the first event is detected during internet access. It can quickly detect the cause of network anomalies and improve the efficiency of network connection restoration.

[0016] In this solution, to save power consumption, if no network-using applications are running in the foreground of the electronic device, the electronic device will not perform subsequent operations even if it recognizes the first event.

[0017] In one possible implementation of the first aspect, the first event includes the duration for which the transport layer in the electronic device intercepts data packets initiated by the application layer for a period exceeding a preset duration. In this scheme, if the electronic device detects that the underlying layer continuously reports a TCP notallowed command, and the duration exceeds the preset duration, it can be considered that the electronic device has detected that the transport layer in the electronic device has intercepted data packets initiated by the application layer for a period exceeding the preset duration. The preset duration can be, for example, 3 seconds. Therefore, by setting a preset duration, the electronic device can improve the accuracy of its identification of the first event and reduce the probability of false identification.

[0018] In one possible implementation of the first aspect, before the electronic device disconnects from its current packet-switched domain and reconnects to it after disconnection, the method further includes: the electronic device displaying a first interface, the first interface including a message indicating that the electronic device's data network is unavailable. If an application using the network is running in the foreground of the electronic device, and the application interface displays a message indicating that the data network is unavailable, it can be assumed that the electronic device cannot use the network normally at this time. In this case, the network connection can be restored by disconnecting and reconnecting to the current packet-switched domain.

[0019] In one possible implementation of the first aspect, after the electronic device recognizes the second event, it further includes: the electronic device displaying a second interface, the second interface not including a message indicating that the electronic device's data network is unavailable. In this solution, by disconnecting and then reconnecting the packet-switching domain of the current electronic device, the network connection can be restored. Therefore, the message indicating that the data network is unavailable no longer appears on the electronic device's interface, and the user can access the internet normally.

[0020] In a second aspect, this application provides an electronic device comprising: a communication module, a memory, and one or more processors; the communication module, the memory, and the processors are coupled; wherein the memory stores computer program code, the computer program code including computer instructions, which, when executed by the processor, cause the electronic device to perform the network connection method of any of the first aspects described above.

[0021] Thirdly, this application provides a computer-readable storage medium storing instructions that, when executed on a computer, enable the computer to perform any of the network connection methods described in the first aspect above.

[0022] Fourthly, this application provides a computer program product containing instructions that, when run on a computer, enable the computer to perform any of the network connection methods described in the first aspect above.

[0023] Understandably, the electronic device of the second aspect, the computer-readable storage medium of the third aspect, and the computer program product of the fourth aspect are all used to execute the corresponding network connection method provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding method provided above, and will not be repeated here. Attached Figure Description

[0024] Figure 1 A schematic diagram illustrating data transmission as provided in an embodiment of this application;

[0025] Figure 2A schematic diagram of an uplink data packet transmission path provided for an embodiment of this application;

[0026] Figure 3 This is a schematic diagram illustrating the interface display of a mobile phone that cannot access the internet, provided as an embodiment of this application.

[0027] Figure 4 A schematic diagram of the hardware structure of a mobile phone provided in an embodiment of this application;

[0028] Figure 5 A diagram illustrating interface changes of a mobile phone, provided as an embodiment of this application.

[0029] Figure 6 A diagram illustrating interface changes of a mobile phone, provided as an embodiment of this application.

[0030] Figure 7 A flowchart illustrating a network connection method provided in an embodiment of this application;

[0031] Figure 8 A flowchart illustrating another network connection method provided in an embodiment of this application;

[0032] Figure 9 A schematic diagram of the software architecture of an electronic device provided in an embodiment of this application;

[0033] Figure 10 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation

[0034] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort should fall within the scope of protection of this application.

[0035] It should be noted that the terms "first," "second," etc., used below are 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 with "first," "second," etc., may explicitly or implicitly include one or more of that feature. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0036] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.

[0037] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0038] To better illustrate the technical solution of this application, the terminology involved in this application is briefly summarized below.

[0039] (1) Transmission Control Protocol (TCP): A connection-oriented, reliable, byte-stream-based transport layer communication protocol. TCP is designed to adapt to layered protocol hierarchies that support multiple network applications. TCP can provide reliable communication services to paired processes in a host computer connected to different but interconnected computer communication networks. TCP assumes that simple, potentially unreliable datagram services can be obtained from lower-level protocols. TCP can operate over a variety of communication systems, from hardwired connections to packet-switched or circuit-switched networks.

[0040] (2) Dumping the traffic on a network (TCPdump) is a network data collection and analysis tool that can completely capture data packets transmitted on the network for analysis according to the user's needs.

[0041] (3) Transmission Control Protocol / Internet Protocol (TCP / IP), also known as network communication protocol, is the most basic communication protocol in network use. The TCP / IP protocol is divided into 4 layers from top to bottom: Application Layer, Transport Layer, Internet Layer (or Internet Layer), and Network Interface Layer (or Data Link Layer, Link Layer).

[0042] When two devices communicate over a network using TCP / IP, data packets are transmitted to the other end in a layered order. The sending end proceeds from the application layer downwards, while the receiving end proceeds from the link layer upwards. The data transmission order for each frame from client to server is: Application Layer --> Transport Layer --> Network Layer --> Link Layer --> Link Layer --> Network Layer --> Transport Layer --> Application Layer.

[0043] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating data transmission as provided in an embodiment of this application. Figure 1 As shown, electronic device 1 sends data to electronic device 2 via TCP / IP. After the data is encapsulated and processed at each layer, it is delegated to the next layer for processing. Data from electronic device 1 is transmitted sequentially from the application layer to the transport layer, network layer, and data link layer. Data from the data link layer of electronic device 1 is transmitted through the network medium to the data link layer of electronic device 2. Then, the data received by the data link layer of electronic device 2 is transmitted sequentially to the network layer, transport layer, and application layer. Figure 1 The arrows in the diagram indicate the direction of data transmission.

[0044] (4) Socket is an intermediate software abstraction layer for communication between the application layer and the TCP / IP protocol, and it is a set of interfaces. Applications on host A must establish a connection through a Socket to communicate with applications on host B. Establishing a Socket connection requires the underlying TCP / IP protocol to establish a TCP connection. Establishing a TCP connection requires the underlying IP protocol to address hosts in the network.

[0045] A socket connection is a communication mechanism in computer networks that allows two programs on different computers to communicate over a network. When communicating using sockets, one program acts as a client, and the other as a server; data transmission occurs between them by creating and using sockets. A socket can be understood as an interface for network communication, providing a standard communication method that enables different programs to exchange data over a network.

[0046] A socket connection is used to establish a communication node, enabling a local process to communicate with other processes or servers over a network, thus transmitting and receiving data.

[0047] As mentioned in the background section, when an electronic device is accessing the internet normally, data communication is also normal. Applications can use the Socket library to initiate a Socket connection and establish a data stream. If an error occurs at the underlying level of the electronic device, the underlying layer will report an error message (such as the "tcp not allowed" command) to the kernel module. This causes the Socket connections initiated by the application to be intercepted by the kernel module. Consequently, the data packets sent by the application cannot reach the underlying layer and therefore cannot be successfully sent out, resulting in the electronic device being unable to access the internet for an extended period of time.

[0048] When the underlying layer enters an abnormal state, it reports an event containing the command "tcp not allowed". After the upper layer registers the flag in this event, the TCP layer will intercept upstream data packets based on this flag. While kernel module logs show the print records corresponding to the application initiating a Socket connection, TCPdump cannot show the print records corresponding to the establishment of the Socket. Therefore, the TCP layer appears to be intercepted at the upper layer but not at the lower layer; data packets are intercepted at the TCP layer and cannot reach the transport layer, thus failing to reach the lower layer to complete transmission.

[0049] In this context, the "bottom layer" refers to the data link layer, the "upper layer" refers to the application layer, the TCP layer refers to the transport layer, and the uplink data packets refer to the data packets sent from user devices (such as computers and mobile phones) to the network. Please refer to [link to relevant documentation]. Figure 2 , Figure 2 This is a schematic diagram of an uplink data packet transmission path provided in an embodiment of this application. Figure 2 As shown, the data packets sent from the application layer notify the transport layer to establish a socket connection. After the transport layer establishes the socket connection, the data packets travel through the network card to the hardware acceleration module (IPA module), and then the IPA module transmits the data packets to the link layer. The link layer's Packet Data Convergence Protocol (PDCP) then sends the data packets onto the network. Figure 2 The direction indicated by the middle arrow is the direction of data packet transmission.

[0050] If an anomaly occurs at the link layer, it will report a "TCP not allowed" command, indicating that the link layer is unable to send data packets. Consequently, the transport layer will intercept data packets sent by the application layer based on this command reported by the link layer. In other words, the entire data packet transmission path of the electronic device is interrupted at the transport layer, and all data packets sent by the application layer at this time cannot successfully reach the lower layer to complete transmission, thus preventing the user from accessing the internet.

[0051] Please see Figure 3 , Figure 3This is a schematic diagram illustrating the interface display when a mobile phone cannot access the internet, as provided in an embodiment of this application. Figure 3 As shown, if an underlying error causes the phone to be unable to access the internet, the phone's interface can display message 101, which can be interpreted as "Current network unavailable".

[0052] Normally, when a phone encounters a low-level error that prevents the application from accessing the internet while it is running an application, the above message will be displayed on the application interface.

[0053] To address the aforementioned issues, this application proposes a network connection method that can be applied to electronic devices.

[0054] If an electronic device detects a target event (the first event), which indicates an anomaly at the device's underlying layer, such as the transport layer intercepting data packets initiated by the application layer, the device can restore network connectivity by disconnecting and reconnecting to its current packet-switching domain. This essentially initializes the underlying state and restores the network connection. The restoration of network connectivity occurs when the electronic device detects that the transport layer has not intercepted data packets initiated by the application layer (the second event). Thus, the electronic device can automatically detect network problems and take timely action, improving the efficiency of network anomaly recovery and enhancing the internet browsing experience.

[0055] For example, the electronic device in the embodiments of this application may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device, vehicle device, etc., which can execute the file processing method provided in the embodiments of this application. The embodiments of this application do not impose special limitations on the specific form of the electronic device.

[0056] This application uses a mobile phone as an example to illustrate the embodiments. Figure 4 A schematic diagram of the hardware structure of a mobile phone 100 is shown. (For example...) Figure 4As shown, the mobile phone 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, antenna 1, 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, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an accelerometer, a proximity sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0057] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the mobile phone 100. In other embodiments of this application, the mobile phone 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0058] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0059] The controller can serve as the central nervous system and command center of the mobile phone 100. Based on the instruction operation code and timing signals, the controller generates operation control signals to control the fetching and execution of instructions.

[0060] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0061] In this embodiment, process 110 can identify a first event, which includes the transport layer in the mobile phone intercepting data packets initiated by the application layer. Upon identifying the first event, the mobile phone disconnects from its current packet switching domain and reconnects to it after disconnection. By resetting the underlying state of the mobile phone, network connectivity is restored. After the mobile phone reconnects to the packet switching domain, process 110 can identify a second event, which includes the transport layer failing to intercept data packets initiated by the application layer.

[0062] In some embodiments, the processor 110 may include one or more interfaces. 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 subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0063] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the mobile phone 100. In other embodiments of this application, the mobile phone 100 may also adopt different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0064] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the mobile phone 100. While charging the battery 142, the charging management module 140 can also supply power to the mobile phone 100 via the power management module 141.

[0065] 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 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.

[0066] The wireless communication function of mobile phone 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.

[0067] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile phone 100 can be used to cover one or more 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 some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0068] The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G on the mobile phone 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0069] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0070] The wireless communication module 160 can provide solutions for wireless communication applications on the mobile phone 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0071] In some embodiments, antenna 1 of mobile phone 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling mobile phone 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0072] The mobile phone 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0073] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, mobile phone 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0074] The mobile phone 100 can achieve shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0075] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.

[0076] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the mobile phone 100 (such as audio data, phonebook, etc.). Furthermore, the internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0077] The mobile phone 100 can achieve audio functions such as music playback and recording through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0078] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0079] A pressure sensor is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor may be located on the display screen 194. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to the pressure sensor, the capacitance between the electrodes changes. The mobile phone 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to the display screen 194, the mobile phone 100 detects the intensity of the touch operation based on the pressure sensor. The mobile phone 100 may also calculate the touch position based on the detection signal from the pressure sensor. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities may correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS message is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS message is executed.

[0080] Keypad 190 includes a power button, volume buttons, etc. Keypad 190 can be a mechanical keypad or a touch keypad. Mobile phone 100 can receive keypad input and generate key signal inputs related to user settings and function control of mobile phone 100.

[0081] The methods described in the following embodiments can all be implemented in a mobile phone 100 having the above-described hardware structure.

[0082] This application provides a network connection method applied to an electronic device, taking a mobile phone as an example. The method specifically includes the following steps:

[0083] Step S201: Mobile phone identifies target event.

[0084] The mobile phone can determine whether to intercept uplink data packets based on the detected events.

[0085] Specifically, the target event can be defined as the underlying layer reporting a "TCP not allowed" command. If the phone recognizes this reported event as the target event, it will intercept data packets sent by the application layer at the transport layer. If the event detected by the phone does not contain the "TCP not allowed" command, then the phone will not intercept data packets sent by the application layer at the transport layer.

[0086] The mobile phone can determine whether to intercept data packets by detecting flags contained in the event. For example, let's assume the flag for the `tcpnot allowed` command is 1, and the flags for other commands are 0. If the mobile phone detects that the flag in the event is 1, then the mobile phone will intercept the uplink data packets at the transport layer. If the mobile phone detects that the flag in the event is 0, then the mobile phone will not intercept the uplink data packets at the transport layer.

[0087] In this embodiment, if the mobile phone detects that the underlying layer is continuously reporting TCP not allowed commands for a duration exceeding a preset duration, then the mobile phone recognizes the target event. The preset duration can be 3 seconds, 4 seconds, etc.

[0088] In this embodiment of the application, the mobile phone may also identify the underlying report of the TCP not allowed command as the identified target event. The subsequent steps are only performed when the mobile phone identifies the target event and the duration of the target event exceeds the preset duration.

[0089] The causes of underlying anomalies may include chip malfunctions, protocol stack interaction anomalies, timer anomalies, and so on.

[0090] Step S202: Reactivate data service on the mobile phone.

[0091] In this embodiment, the mobile phone can deactivate data services if it detects a network application running in the foreground and identifies a target event. Specifically, the mobile phone can scan its network connection interface to obtain applications currently running in the foreground that use the network. A network application refers to an application that uses the network. Data services include all services except for circuit-switched domain (CS) voice services in mobile communications.

[0092] When no network applications are running in the foreground, such as when the screen is off, the phone will not reactivate data service. This way, the phone only activates data service when a network application is running in the foreground, saving power.

[0093] It should be noted that the mobile phone can recognize events reported from the underlying layer regardless of whether there are network applications running in the foreground.

[0094] The mobile phone can reactivate its data service by first turning it off and then back on. When data service is off, the phone cannot use applications via mobile data, meaning it cannot send uplink data. When data service is on, the phone can use applications via mobile data, meaning it can send uplink data.

[0095] The activation and deactivation of mobile data services can be achieved through the TelephonyManager interface. The TelephonyManager interface, located at the application framework layer, provides access to device phone and mobile communication-related information.

[0096] In this embodiment, the mobile phone can also add a self-developed module between the application layer and the transport layer. This module can call the corresponding interface to enable or disable data services. This module is decoupled from the native code of the application framework to facilitate subsequent maintenance. The mobile phone can achieve the same functionality as the TelephonyManager interface described above through this self-developed module.

[0097] In this case, turning off and then turning on the data service on the aforementioned mobile phone simulates the user manually turning the data service off and on again in a way that is imperceptible to the user.

[0098] After a mobile phone turns off and then back on its data service, it will re-check the commands reported by the underlying layer. If the phone does not detect a "TCP not allowed" command, or if the flag bit in the re-detected event is 0, the phone will not intercept uplink data packets at the transport layer. In this case, the phone successfully reactivates its data service.

[0099] If the phone successfully reactivates its data service, the phone will regain its network connection and can access the internet again.

[0100] If the phone can still detect the TCP not allowed command reported by the underlying layer, it means that reactivating the data service has not restored the network connection.

[0101] In some embodiments, the mobile phone can also determine whether the network connection has been restored by judging whether the TCP layer is in a "no-reset" scenario. Specifically, the mobile phone counts TCP layer data packets once per second, calculating the ratio of abnormal TCP packets to normal TCP packets, that is, the proportion of retransmitted data packets. If the ratio of abnormal packets is 100%, it indicates that the current scenario is a "no-reset" scenario. If the mobile phone detects that it is still in a "no-reset" scenario at the TCP layer, that is, the data packet transmission link has not been restored, then it means that the network connection has not been restored. A TCP packet is a data unit transmitted at the TCP layer, also called a segment. Abnormal packets may be generated at the TCP layer due to problems with the mobile phone itself or the network.

[0102] Please see Figure 5 , Figure 5 This is a diagram illustrating the interface changes of a mobile phone as provided in an embodiment of this application. Figure 5 As shown, after the mobile phone turns off the data service and then turns the data service back on, the mobile phone interface changes from interface 501 to interface 502. Interface 502 no longer displays the prompt message used to inform the user that there is no network connection.

[0103] Understandably, the process of reactivating data service on the aforementioned phones is relatively quick, and the signal icon on the phone screen remains displayed. For example, Figure 5 The signal icon 503 remains displayed during the transition from interface 501 to interface 502.

[0104] Step S203: If the network connection cannot be restored after reactivating the data service, the mobile phone reconnects to the packet switch (PS) domain.

[0105] In this embodiment, if the mobile phone fails to reactivate the data service—that is, after turning off and then restarting the data service, the network connection cannot be restored—the phone can still detect the tcpnot allowed command reported by the underlying layer. Therefore, the phone can initialize the underlying state.

[0106] The mobile phone can initialize its underlying state by reattaching to the PS domain. The PS domain is primarily responsible for providing data transmission and multimedia services, such as web browsing, email, and instant messaging.

[0107] In this process, the mobile phone can first deregister the currently connected network, which means disconnecting the phone from the base station, and then re-request a network connection. Specifically, the phone sends a request to disconnect the network to the PS domain network connection management module in the phone. After deregistering the currently connected network, the phone sends a network connection request to the PS domain network connection management module to reconnect to the network.

[0108] Understandably, since the phone disconnected and then reconnected to the PS domain, it is equivalent to resetting the underlying state of the phone. The phone's transport layer will no longer intercept data packets sent by upper-layer applications, thus enabling the network connection to be restored.

[0109] Please see Figure 6 , Figure 6 This is a diagram illustrating the interface changes of a mobile phone as provided in an embodiment of this application. Figure 6 As shown, the phone's signal icon will change during the process of reconnecting to the PS domain. When the phone disconnects from the PS domain, the phone's interface displays error 601. Figure 6 As shown in (a), the signal icon is not displayed. When the phone reconnects to the PS domain, the phone interface displays error 601. Figure 6 As shown in (b), signal icon 603 is displayed.

[0110] Therefore, when a mobile phone detects a target event, such as a data packet intercepted by the transport layer in the electronic device from the application layer, it can first disconnect the data service and then reconnect to restore the network connection. If the above operations fail to restore the network connection, the mobile phone disconnects from the PS domain and then reconnects to the PS domain to restore the network connection, allowing the mobile phone to use the network again.

[0111] Another network connection method provided in this application embodiment is applied to an electronic device, taking a mobile phone as an example, and specifically includes the following steps:

[0112] Step S301: The mobile phone recognizes the target event.

[0113] Step S301 can be referred to the aforementioned step S201, and will not be described again in this embodiment.

[0114] Step S302: Reconnect the mobile phone to the PS domain.

[0115] Step S302 can refer to the specific steps of "reconnecting the mobile phone to the PS domain" in the aforementioned step S203, and will not be described in detail here.

[0116] In this embodiment, if a network application is detected running in the foreground and a target event is identified, the mobile phone can reconnect to the PS domain. If no network application is running in the foreground, such as when the screen is off, the mobile phone will not reconnect to the PS domain. This way, the mobile phone only reconnects to the PS domain when a network application is running in the foreground, saving power consumption.

[0117] It should be noted that the mobile phone can recognize the target event regardless of whether there are any network applications running in the foreground.

[0118] Therefore, when a target event is detected, such as a data packet initiated by the application layer being intercepted by the transport layer in the electronic device, the mobile phone can disconnect the PS domain and reconnect to the PS domain after disconnection, thereby restoring the network connection and improving the efficiency of restoring the network connection.

[0119] Please see Figure 7 , Figure 7 This is a flowchart illustrating a network connection method. (For example...) Figure 7 As shown, the mobile phone first detects whether any applications are accessing the internet in the foreground. If the phone detects such applications (S701), it checks whether the underlying layer reports a TCP not allowed command. If the phone detects that the underlying layer continuously reports a TCP not allowed command for more than 3 seconds (S702), it turns off and then on the data service and determines whether the network connection has been restored (S703). If the network connection is restored, it indicates that the phone's self-healing is effective (S704), and the phone can access the internet normally again. If the network connection is not restored, the phone reconnects to the PS domain (S705), and then the phone's self-healing is complete (S706), and the phone can access the internet normally again.

[0120] In some examples, after a mobile phone turns off and then on its data service again, it can also determine whether the network connection should be restored by analyzing the TCP layer data packets, calculating the proportion of retransmitted data packets, and judging whether it is in a TCP scenario where there is a top but no bottom.

[0121] Therefore, when a mobile phone is using an app to access the internet in the foreground and detects an event indicating an underlying anomaly, it can restore network connectivity by turning data service on and off, or by reconnecting to the PS domain if turning data service on and off fails. This solution can automatically perform network detection and self-healing, improving the user's internet experience.

[0122] In some schemes, please refer to Figure 8 , Figure 8 This is a flowchart illustrating a network connection method provided in an embodiment of this application. Figure 8 As shown, if the mobile phone detects that an application is accessing the internet in the foreground (S801), then the mobile phone counts the TCP layer data packets and retransmitted data packets once per second (S802). The mobile phone determines whether the data packets are continuously being retransmitted and whether the duration exceeds 6 seconds (S803).

[0123] The mobile phone calculates the ratio of abnormal to normal packets by analyzing TCP layer data packets every second, which is essentially the proportion of retransmitted data packets. If the percentage of abnormal packets is 100%, it indicates a scenario where there is no retransmission. If this continues for 6 consecutive seconds, the mobile phone can conclude that there is a problem with either the phone itself or the network.

[0124] If the mobile phone determines that the data packet is not continuously retransmitted, or the duration is less than 6 seconds, then the mobile phone does not meet the self-healing conditions and does not perform the self-healing action (S804). The duration can be customized and is not limited in this application.

[0125] If the mobile phone determines that data packets are continuously being retransmitted for more than 6 seconds, it will perform a cell handover operation and determine whether the network connection has been restored (S805). For example, the mobile phone can switch from the current cell to another cell. This cell handover operation can be set as the first self-healing operation.

[0126] It should be noted that in the current scenario, data packets are intercepted at the transport layer and cannot reach the underlying layer, so the underlying layer is idle, and switching cell interfaces will not take effect. Therefore, the above-mentioned cell switching operation cannot restore network connectivity in the current scenario.

[0127] Then, the phone performs the operation of disabling standalone (SA) networking and registering with the Long Term Evolution (LTE) network, restoring network connectivity (S806). The phone successfully self-heals, and can then access the internet normally again. Disabling SA and registering with LTE can be considered a second self-healing process.

[0128] In the above scheme, the mobile phone needs to perform cell handover first. If the network is still abnormal after cell handover, SA will be turned off and Internet access will be restored by registering LTE. The above statistical data packets, as well as the process of cell handover, turning off SA, and registering LTE, take longer and have lower efficiency in restoring network connection compared to the target event identification, data service shutdown and startup, and PS domain reconnection in this scheme.

[0129] The network connection method provided by this solution can be applied in 5G scenarios. It does not require waiting to identify scenarios with an upper limit but no lower limit, nor does it require waiting for the first self-healing and then performing a second self-healing after the first self-healing fails. Instead, the mobile phone directly shuts down and restarts the data service after recognizing the target event indicating an underlying abnormality, or reconnects to the PS domain when shutting down and restarting the data service fails, thus improving the efficiency of restoring network connectivity.

[0130] like Figure 9The diagram shows the internal software architecture of an electronic device. A layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the internal architecture of an electronic device can be divided into five layers, from top to bottom: the application layer, the application framework layer, the Android runtime (ART) and native C / C++ libraries, the hardware abstraction layer (HAL), and the kernel layer.

[0131] The application layer can include a series of application packages.

[0132] like Figure 9 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0133] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0134] like Figure 9 As shown, the application framework layer may include a window manager, content provider, view system, resource manager, notification manager, activity manager, input manager, etc.

[0135] The window manager provides a window management service (WMS), which can be used for window management, window animation management, surface management, and as a relay station for the input system.

[0136] Content providers store and retrieve data, making that data accessible to applications. This data can include videos, images, audio, phone calls made and received, browsing history and bookmarks, phone books, etc.

[0137] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0138] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0139] The notification manager allows applications to display notification information in the status bar. It can be used to convey informational messages and can disappear automatically after a short time without user interaction.

[0140] The Activity Manager Service (AMS) can be used to start, switch, and schedule system components (such as activities, services, content providers, and broadcast receivers), as well as manage and schedule application processes.

[0141] The input manager can provide an input management service (IMS), which can be used to manage system inputs, such as touchscreen input, keypad input, and sensor input. IMS retrieves events from input device nodes and, through interaction with the WMS, distributes these events to the appropriate windows.

[0142] The Android runtime consists of the core libraries and the Android runtime itself. The Android runtime is responsible for converting source code into machine code. The Android runtime primarily employs ahead-of-time (AOT) compilation and just-in-time (JIT) compilation techniques.

[0143] The core library primarily provides basic Java class library functionalities, such as libraries for fundamental data structures, mathematics, I / O, tools, databases, and networking. It also provides APIs for users to develop Android applications.

[0144] Native C / C++ libraries can include multiple functional modules. Examples include: surface manager, media framework, libc, OpenGL ES, SQLite, Webkit, etc.

[0145] The Hardware Abstraction Layer (HAL) runs in user space, encapsulates kernel-level drivers, and provides calling interfaces to higher layers. The HAL typically includes at least a display module, a camera module, an audio module, and a Bluetooth module.

[0146] The kernel layer is the layer between hardware and software. The kernel layer includes at least the display driver, camera driver, audio driver, and Bluetooth driver.

[0147] The network connection methods described in the foregoing embodiments can all be implemented in electronic devices with the aforementioned software structure.

[0148] This application also provides a chip system, such as... Figure 10As shown, the chip system 1000 includes at least one processor 1001 and at least one interface circuit 1002. The processor 1001 and the interface circuit 1002 are interconnected via lines. For example, the interface circuit 1002 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 1002 can be used to send signals to other devices (e.g., the processor 1001). Exemplarily, the interface circuit 1002 can read instructions stored in the memory and send those instructions to the processor 1001. When the instructions are executed by the processor 1001, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, and this application embodiment does not specifically limit this.

[0149] This application also provides a computer storage medium that includes computer instructions. When the computer instructions are executed on the electronic device, the electronic device causes the electronic device to perform various functions or steps performed by the mobile phone in the above method embodiment.

[0150] This application also provides a computer program product that, when run on a computer, causes the computer to perform the various functions or steps performed by the mobile phone in the above method embodiments.

[0151] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0152] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0153] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0154] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0155] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0156] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A network connection method, characterized in that, Applied to electronic devices, the method includes: Upon detecting the first event, the electronic device shuts down its data service and then restarts it. If, after restarting the data service, the electronic device fails to restore network connectivity, it disconnects its current packet switching domain and then reconnects to it. The first event includes the transport layer intercepting a data packet initiated by the application layer. Upon detecting the first event, the electronic device also displays a first interface, which includes a message indicating that the electronic device's data network is unavailable. After the electronic device reconnects to the packet switching domain, the electronic device recognizes a second event, the second event including the transport layer failing to intercept a data packet initiated by the application layer; after the electronic device recognizes the second event, the electronic device displays a second interface, the second interface not including a prompt message indicating that the electronic device's data network is unavailable.

2. The method according to claim 1, characterized in that, After the electronic device restarts the data service, the method further includes: The electronic device detects whether it has recognized the first event; if the electronic device recognizes the first event, it does not restore the network connection; if the electronic device does not recognize the first event, it restores the network connection.

3. The method according to claim 1 or 2, characterized in that, After the electronic device restarts the data service, the method further includes: The electronic device calculates the retransmission ratio of the retransmission data packets in the total data packets of the transport layer; if the retransmission ratio is greater than a preset ratio, the electronic device does not restore the network connection; if the retransmission ratio is not greater than the preset ratio, the electronic device restores the network connection.

4. The method according to claim 1 or 2, characterized in that, Upon detecting a first event, the electronic device disconnects its current packet switching domain and reconnects to the packet switching domain after disconnection, including: When the electronic device recognizes the first event and an application using the network is running in the foreground of the electronic device, the electronic device disconnects the current packet switching domain of the electronic device and reconnects to the packet switching domain after disconnecting the packet switching domain.

5. The method according to claim 1 or 2, characterized in that, The first event includes the duration for which the transport layer in the electronic device intercepts data packets initiated by the application layer for a period longer than a preset duration.

6. An electronic device, characterized in that, The electronic device includes: a communication module, a memory, and one or more processors; the communication module, the memory, and the processors are coupled; the memory is used to store computer program code, the computer program code including computer instructions, which, when executed by the electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed in an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 5.

8. A computer program product, characterized in that, The computer program product includes instructions that, when executed in an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Network fault recovery method, device and equipment and computer readable medium

    CN117768300A