Data service recovery method and terminal device

By implementing the modem restart mechanism in the terminal device, the problem of data link establishment failure caused by the modem's inability to obtain resource identifiers is solved, and the terminal device's rapid network recovery and normal communication is achieved.

WO2024255337A1PCT designated stage expired Publication Date: 2024-12-19HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080040
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-16
Filing Date
2024-03-05
Publication Date
2024-12-19

AI Technical Summary

Technical Problem

When the terminal device is connected to the network, the modem cannot obtain the resource identification to be allocated, resulting in the inability to establish a data link, which affects the user's user experience.

Method used

When the modem cannot obtain the resource identification to be allocated, a message is sent to the application processor, triggering the modem to restart, and the resource identification to be allocated is restored to the preset number, thereby reconnecting to the network.

Benefits of technology

Ensure that terminal equipment can quickly restore data services, improve users' network usage experience, and ensure that terminal equipment can access the network as soon as possible and conduct normal data transmission and communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080040_19122024_PF_FP_ABST
    Figure CN2024080040_19122024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a data service recovery method and a terminal device. The method is applied to the terminal device, and the terminal device comprises an application processor and a modem. The method comprises: in the process of accessing a mobile communication network, if the modem cannot obtain a resource identifier to be allocated, the modem sends a first message to the application processor, wherein the first message is used for indicating that the modem cannot obtain a resource identifier to be allocated; in response to the first message, the application processor sends a second message to the modem, wherein the second message is used for instructing the modem to restart; in response to the second message, the modem restarts; and after the modem restarts, the modem obtains a resource identifier to be allocated, and accesses the mobile communication network on the basis of the resource identifier to be allocated. Therefore, in the present application, after a modem restarts, a resource identifier to be allocated can be obtained, and a network is accessed, thereby ensuring the speed of data service recovery and improving the use experience of users.
Need to check novelty before this filing date? Find Prior Art

Description

Data service recovery method and terminal equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on June 16, 2023, with application number 202310724543.7 and application name “Data Service Recovery Method and Terminal Equipment”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminals, and in particular to a data service recovery method and terminal equipment. Background Art

[0003] Each time a terminal device accesses the network, it needs to go through the process of establishing a data link. Only after the data link is established can the terminal device perform normal data transmission and communication.

[0004] Currently, when a terminal device establishes a data link, a modem in the terminal device needs to allocate a resource identifier, which is used to identify the context information of the data link establishment. When the data link is disconnected, the modem can release the resource identifier. The number of resource identifiers to be allocated is usually limited.

[0005] However, in some cases, the modem cannot obtain the available resource identifier, resulting in the terminal device being unable to establish a new data link and unable to access the mobile communication network. This makes it difficult for users to use the network normally, affecting the user experience.

[0006] Summary of the Invention

[0007] The present application provides a data service recovery method and terminal device, which can ensure that the terminal device recovers the data service as soon as possible, and the user can use the network normally as soon as possible, thereby improving the user experience.

[0008] In a first aspect, the present application provides a data service recovery method, applied to a terminal device, the terminal device including an application processor and a modem; the method comprising:

[0009] During access to the mobile communication network, if the modem cannot obtain the identifier of the resource to be allocated, sending a first message to the application processor, where the first message is used to indicate that the modem cannot obtain the identifier of the resource to be allocated;

[0010] The application processor sends a second message to the modem in response to the first message, where the second message is used to instruct the modem to restart;

[0011] The modem reboots in response to the second message;

[0012] After the modem is restarted, the modem obtains the identifier of the resource to be allocated and accesses the mobile communication network based on the identifier of the resource to be allocated.

[0013] In the above method, since the modem cannot establish a data link with the network device when the modem cannot obtain the resource identifier to be allocated, the modem cannot establish a data link with the network device, and the terminal device cannot access the network. Therefore, when the modem cannot obtain the resource identifier to be allocated, a first message indicating that the modem cannot obtain the resource identifier to be allocated can be sent to the application processor, so that the application processor can determine that the modem cannot obtain the resource identifier to be allocated when receiving the first message, and thus, the application processor can send a second message to the modem to instruct the modem to restart. After receiving the second message, the modem can restart. In this way, the resource identifier to be allocated can be restored to the preset number, the modem can obtain the resource identifier to be allocated, and access the mobile communication network based on the resource identifier to be allocated. In this way, the terminal device can access the network as soon as possible, so that the terminal device can resume normal data transmission and communication as soon as possible.

[0014] In conjunction with the first aspect, in certain implementations of the first aspect, during access to the mobile communication network, if the modem cannot obtain a resource identifier to be allocated, sending a first message to the application processor includes:

[0015] During access to the mobile communication network, the modem receives a third message sent by the application processor, the third message being used to request the modem to activate data;

[0016] In response to the third message, if the modem cannot obtain the identifier of the resource to be allocated, a first message is sent to the application processor, where the first message includes first information, and the first information is used to indicate that the modem cannot obtain the identifier of the resource to be allocated.

[0017] In the above method, usually, the modem can start accessing the network when it receives the third message for modem activation data. However, when the modem cannot obtain the resource identifier to be allocated, the modem cannot establish a data link with the network device, and the terminal device cannot access the network. Therefore, when the modem cannot obtain the resource identifier to be allocated, a first message can be sent to the application processor, so that when the application processor receives the first message, it can send a second message to the modem to instruct the modem to restart based on the first information in the first message for indicating that the modem cannot obtain the resource identifier to be allocated. After receiving the second message, the modem can restart, so that the terminal device can quickly access the network.

[0018] In conjunction with the first aspect, in certain implementations of the first aspect, the application processor includes a wireless interface module, and if the modem cannot obtain the identifier of the resource to be allocated, sending a first message to the application processor includes:

[0019] If the modem cannot obtain the identifier of the resource to be allocated, sending a first message to the wireless interface module;

[0020] The application processor sends a second message to the modem in response to the first message, including:

[0021] The wireless interface module sends a second message to the modem in response to the first message.

[0022] In the above method, the application processor may receive the first message sent by the modem through the wireless interface module, and send the second message to the modem through the wireless interface module.

[0023] In conjunction with the first aspect, in certain implementations of the first aspect, the application processor includes a telephone service module and a wireless interface module, and during access to the mobile communication network, the modem receives a third message sent by the application processor, including:

[0024] During access to the mobile communication network, the telephone service module sends a third message to the modem via the wireless interface module after receiving a first operation on the first interface of the terminal device, wherein the first operation is used to start a data service;

[0025] The modem receives a third message sent by the application processor;

[0026] In response to the third message, if the modem cannot obtain the identifier of the resource to be allocated, sending a first message to the application processor includes:

[0027] In response to the third message, if the modem cannot obtain the identifier of the resource to be allocated, sending the first message to the telephone service module through the wireless interface module;

[0028] The application processor sends a second message to the modem in response to the first message, including:

[0029] The telephone service module sends a second message to the modem through the wireless interface module in response to the first message.

[0030] In the above method, the application processor may send a third message to the modem through the wireless interface module after the telephone service module receives the first operation. The application processor may also send the first message to the telephone service module through the wireless interface module when the modem cannot obtain the resource identifier to be allocated, and send the second message to the modem through the telephone service module and the wireless interface module.

[0031] In conjunction with the first aspect, in certain implementations of the first aspect, after the application processor sends the second message to the modem in response to the first message and before the modem restarts in response to the second message, or while the modem restarts in response to the second message, the method further includes:

[0032] The modem sends a first response message to the application processor, where the first response message is a response message to the second message.

[0033] In the above method, after receiving the second message, the modem may further send a first response message to the application processor, so that the application processor can confirm through the first response message that the modem has been restarted.

[0034] In conjunction with the first aspect, in certain implementations of the first aspect, the application processor includes a wireless interface module, and the modem sends a first response message to the application processor, including:

[0035] The modem sends a first response message to the wireless interface module.

[0036] In the above method, the modem may send a first response message to the wireless interface module in the application processor.

[0037] In conjunction with the first aspect, in certain implementations of the first aspect, the application processor includes a telephone service module and a wireless interface module, and the modem sends a first response message to the application processor, including:

[0038] The modem sends a first response message to the telephone service module through the wireless interface module.

[0039] In the above method, the modem may send the first response message to the telephone service module through the wireless interface module.

[0040] In conjunction with the first aspect, in certain implementations of the first aspect, when the mobile communication network is a network using a fourth generation mobile communication technology network standard, after the modem is restarted, the modem obtains a resource identifier to be allocated and accesses the mobile communication network based on the resource identifier to be allocated, including:

[0041] After the modem is restarted, a fourth message is sent to the network device. During the sending of the fourth message, an identifier of the resource to be allocated is obtained, and a data link is established with the network device based on the identifier of the resource to be allocated. The fourth message is used to request attachment to the network device to a network based on a fourth generation mobile communication technology network standard.

[0042] The modem receives a second response message sent by the network device, where the second response message is a response message to the fourth message and is used to instruct the network device to accept the attachment of the modem;

[0043] The modem sends a fifth message to the network device, where the fifth message is an attachment completion message and is used to instruct the terminal device to access the mobile communication network.

[0044] In the above method, after the modem is restarted, it can obtain the resource identifier to be allocated and establish a data link with the network device based on the resource identifier to be allocated. Therefore, when the mobile communication network is a network under the fourth-generation mobile communication technology network standard, the modem can establish a data link in the process of attaching to the network device, and then access the mobile communication network by establishing the data link.

[0045] In conjunction with the first aspect, in certain implementations of the first aspect, when the mobile communication network is a fifth-generation mobile communication technology network, after the modem is restarted, the modem obtains a resource identifier to be allocated and accesses the mobile communication network based on the resource identifier to be allocated, including:

[0046] After the modem restarts, sending a sixth message to the network device, the sixth message being used to request registration with the network device on a network based on a fifth generation mobile communication technology network standard;

[0047] The modem receives a third response message sent by the network device, where the third response message is used to instruct the network device to accept registration of the modem with the network device;

[0048] The modem obtains the identifier of the resource to be allocated, and sends a seventh message to the network device based on the identifier of the resource to be allocated, where the seventh message is used to request to establish a data link with the network device;

[0049] The modem receives a fourth response message sent by the network device, where the fourth response message is used to instruct the network device to accept the establishment of a data link between the modem and the network device;

[0050] The modem sends an eighth message to the network device. The seventh message is a data link establishment completion message. The eighth message is used to instruct the terminal device to access the mobile communication network.

[0051] In the above method, after the modem is restarted, it can obtain the resource identifier to be allocated and establish a data link with the network device based on the resource identifier to be allocated. Therefore, when the mobile communication network is a network under the fifth-generation mobile communication technology network standard, the modem can access the mobile communication network by first registering with the network device and then establishing a data link.

[0052] In a second aspect, the present application provides a terminal device comprising one or more processors, a memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory. When the computer programs are executed by one or more processors, the terminal device executes the data service recovery method in the first aspect and any possible implementation of the first aspect.

[0053] In a third aspect, the present application provides a chip system comprising a processor for calling and running a computer program from a memory, so that a terminal device equipped with the chip system executes the data service recovery method in the first aspect and any possible implementation of the first aspect.

[0054] In a fourth aspect, the present application provides a computer-readable storage medium comprising a computer program. When the computer program runs on a terminal device, the terminal device executes the data service recovery method in the first aspect and any possible implementation of the first aspect.

[0055] In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the data service recovery method in the first aspect and any possible implementation of the first aspect.

[0056] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] FIG1 is a schematic diagram of the relationship between a terminal device and a base station provided in an embodiment of the present application;

[0058] FIG2 is a schematic structural diagram of a terminal device provided in one embodiment of the present application;

[0059] FIG3 is a schematic diagram showing the relationship between a software system and a modem of a terminal device provided in one embodiment of the present application;

[0060] FIG4 is a schematic diagram of a human-computer interaction interface provided by an embodiment of the present application;

[0061] FIG5 is a flow chart of a data service recovery method provided in an embodiment of the present application;

[0062] FIG6 is a flow chart of a data service recovery method according to an embodiment of the present application;

[0063] FIG7 is a flow chart of a data service recovery method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] In this application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a alone, b alone, or c alone can represent: a alone, b alone, c alone, a and b in combination, a and c in combination, b and c in combination, or a, b, and c in combination, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance.

[0065] It is understood that the terminal device includes a card slot for inserting a user's subscriber identity module (SIM) card. The terminal device also includes a modem corresponding to the card slot, and the SIM card can access the network through the modem.

[0066] Among them, a modem is a network interface device used to convert digital signals into analog signals so that they can be transmitted on a mobile communication network.

[0067] Among them, the network that the user identification module card can access through the modem can be a network of one or more network standards among the fifth generation mobile communication technology (5th-generation mobile communication technology, 5G) network, the fourth generation mobile communication technology (4th-generation mobile communication technology, 4G), the third generation mobile communication technology (3rd-generation mobile communication technology, 3G), and the second generation mobile communication technology (2-generation mobile communication technology, 2G).

[0068] Furthermore, the 5G network standard may be a new radio (NR) network, the 4G network standard may be a long term evolution (LTE) network, the 3G network standard may be a third generation wireless communication technology (wideband code division multiple access, WCDMA) network, and the 2G network standard may be a global system for mobile communications (GSM) network.

[0069] FIG1 exemplarily shows a schematic diagram of a communication system architecture applicable to an embodiment of the present application. The communication system may include a terminal device 100 and a base station 200 (network device).

[0070] Taking the terminal device 100 supporting SIM card 1 and SIM card 2 as an example, the terminal device may further include two modems, namely a first modem (modem1) and a second modem (modem2).

[0071] SIM card 1 can communicate with base station 200 through modem 1 to search for and access the network, and SIM card 2 can communicate with base station 200 through modem 2 to search for and access the network.

[0072] The above-mentioned modem1 and modem2 may be the same physical wireless communication module in the terminal device 100 . In this case, the SIM card 1 and the SIM card 2 may share the same physical wireless communication module to communicate with the base station 200 .

[0073] Optionally, modem1 and modem2 may also be two different physical wireless communication modules in the terminal device 100. In this case, SIM card 1 may communicate with the base station 200 through the physical first wireless communication module, and SIM card 2 may communicate with the base station 200 through the physical second wireless communication module.

[0074] Since a terminal device needs to establish a data link when accessing the network, the terminal device can perform normal data transmission and communication only after the data link is established.

[0075] When the terminal device establishes a data link, a modem in the terminal device needs to allocate a resource identifier to identify the establishment of the data link. When the data link is disconnected, the modem can release the resource identifier.

[0076] For example, when the network accessed by the terminal device is a 4G network, the process of establishing the data link is the process of establishing a packet data network (PDN) connection. The terminal device can perform data transmission and communication only after the packet data network is established.

[0077] Among them, the data packet network, also known as the data packet network, is a packet switching network system used to interconnect with the public network and provide data channels for users.

[0078] For example, when the network accessed by the terminal device is a 5G network, network slicing is used to achieve separation processing and data transmission. The process of establishing a data link is the process of establishing a protocol data unit (PDU) session. Only after the protocol data unit is established can the terminal device perform data transmission and communication.

[0079] Among them, the protocol data unit is also called a data packet unit. It is the basic unit of a data packet and the basic unit for data transmission and processing in the network.

[0080] In addition, the resource identifier corresponds one-to-one with the EPS Bearer ID (EBI) and the packet-switched session identity (PSI).

[0081] The EBI is used to identify data bearers in the evolved packet system (EPS) network and is a core component of the LTE network. In the EPS network, each data bearer needs to be assigned a unique EBI.

[0082] The PSI is used to identify a connection established with a PDN. In mobile networks, a unique PSI is assigned whenever a PDN connection is established. The PSI is often used in conjunction with a resource identifier. When establishing a PDN connection, the resource identifier and PSI are typically mapped to the data bearer's EBI and quality of service class identifier (QCI), respectively.

[0083] However, the number of resource identifiers to be allocated is pre-set (for example, 15). In some cases, the modem is abnormal. For example, the modem cannot obtain the available resource identifiers, resulting in the terminal device being unable to establish a new data link the next time it accesses the network. The terminal device cannot access the network, making it difficult for the user to use the network normally, affecting the user experience.

[0084] For example, modem exceptions may include at least the following:

[0085] 1. The data channel between the modem and the AP is blocked;

[0086] 2. Some other modem internal processing exceptions cannot be recovered by itself.

[0087] In response to the above problems, the present application can provide a data service recovery method, terminal equipment, chip system, computer-readable storage medium and computer program product. When it is determined that the modem cannot obtain the resource identifier to be allocated, the modem can feedback the exception information that the resource identifier to be allocated cannot be obtained to the application processor. In response to the exception information, the application processor can call the restart interface provided by the modem to the application processor to trigger the modem to restart, so that the resource identifier to be allocated is restored to the preset number, so that the modem can allocate resource identifiers for the next time it accesses the network, ensuring that the data service can be restored as soon as possible and improving the user experience.

[0088] The above-mentioned data service recovery method is applied to a terminal device, which may be a terminal device having display screen hardware and corresponding software support.

[0089] For example, the terminal device may be a mobile phone, tablet computer, vehicle-mounted device, laptop computer, wearable device, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), smart car, smart TV, robot, etc.

[0090] It should be noted that in some possible implementations, the terminal device may also be called an electronic device, user equipment (UE), etc., and the embodiments of the present application do not limit this.

[0091] For ease of explanation, FIG2 takes the terminal device 100 as a mobile phone as an example.

[0092] As shown in Figure 2, the terminal device 100 may include a processor 101, a communication module 102, a display screen 103, a modem 104, a sensor 105, an internal memory 106, a USB interface 107, an external memory interface 108, a charging management module 109, a power management module 110, and a battery 111, etc.

[0093] The processor 101 may include one or more processing units, for example, an application processor (AP), a modem processor, a graphics processor, an image signal processor (ISP), a controller, a memory, a video stream codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors 101.

[0094] The controller can be the nerve center and command center of the terminal device 100. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of instruction fetching and execution.

[0095] The processor 101 may also include a memory for storing instructions and data.

[0096] In some embodiments, the memory in processor 101 is a high-speed cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 101. If processor 101 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces processor 101's waiting time, and thus improves system efficiency.

[0097] In some embodiments, the processor 101 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 subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0098] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 103. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 101 and be set in the same device as the mobile communication module 150 or other functional modules.

[0099] The communication module 102 may include antenna 1 and antenna 2 , a mobile communication module, and / or a wireless communication module.

[0100] Each antenna in terminal 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 antenna can be used in conjunction with a tuning switch.

[0101] The mobile communication module can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal device 100. The mobile communication module may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 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 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 functional modules of the mobile communication module can be set in the processor 101. In some embodiments, at least some functional modules of the mobile communication module can be set in the same device as at least some modules of the processor 101.

[0102] The wireless communication module can provide wireless communication solutions 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), infrared (IR), etc. applied to the terminal device 100. The wireless communication module can be one or more devices that integrate at least one communication processing module. The wireless communication module receives electromagnetic waves via antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 101. The wireless communication module can also receive the signal to be sent from the processor 101, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through antenna 2.

[0103] The display screen 103 is used to display images or videos in the human-computer interaction interface. The display screen 103 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 MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include one or N display screens 103, where N is a positive integer greater than one.

[0104] The modem 104 is used to convert digital signals into analog signals and send them to the network. It can also receive and convert analog signals on the network into digital signals. In the terminal device, the modem is connected to the base station provided by the mobile communication network operator and is responsible for converting the digital signals generated by the terminal device (such as a mobile phone, etc.) into analog signals suitable for wireless transmission, which are then transmitted through the antenna. It also converts analog signals received from the base station into digital signals so that the user device can correctly interpret and process these data. The modem plays an important role in mobile communication technology and is a key device for converting digital data into analog signals. Whether making a phone call, sending text messages, or surfing the Internet, a modem is required to connect to the network and transmit and receive data.

[0105] The charging management module 109 is used to receive charging input from a charger, which can be a wireless charger or a wired charger.

[0106] In some wired charging embodiments, the charging management module 109 may receive charging input from a wired charger through the USB interface 107 .

[0107] In some wireless charging embodiments, the charging management module 109 may receive wireless charging input via a wireless charging coil of the terminal device 100. While the charging management module 109 charges the battery 111, it may also power the terminal device 100 via the power management module 110.

[0108] The power management module 110 is used to connect the battery 111, the charging management module 109, and the processor 101. The power management module 110 receives input from the battery 111 and / or the charging management module 109 and provides power to the processor 101, the internal memory 106, the external memory, and the communication module 102. The power management module 110 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance), etc.

[0109] In some other embodiments, the power management module 110 may also be disposed in the processor 101 .

[0110] In other embodiments, the power management module 110 and the charging management module 109 may also be provided in the same device.

[0111] The external memory interface 108 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 101 via the external memory interface 108 to implement data storage functions. For example, files such as music and video streams can be stored on the external memory card.

[0112] The internal memory 106 can be used to store computer executable program codes, which include instructions. The processor 101 executes the instructions stored in the internal memory 106 to execute various functional applications and data processing of the terminal device 100. The internal memory 106 can include a program storage area and a data storage area.

[0113] The program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 106 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0114] The sensor 105 in the terminal device 100 may include image sensors, touch sensors, pressure sensors, gyroscope sensors, air pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity light sensors, ambient light sensors, fingerprint sensors, temperature sensors, bone conduction sensors and other components to realize the sensing and / or acquisition functions of different signals.

[0115] Optionally, the terminal device 100 may further include peripheral devices, such as a mouse, buttons, indicator lights, a keyboard, a speaker, a microphone, etc.

[0116] The buttons include a power button, a volume button, etc. The buttons can be mechanical buttons or touch buttons. The terminal device 100 can receive button inputs and generate key signal inputs related to user settings and function control of the terminal device 100.

[0117] The indicator may be a light indicator, which may be used to indicate the charging status and power level change, and may also be used to indicate messages, missed calls, and notifications, etc.

[0118] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the terminal device 100 .

[0119] In other embodiments, the terminal device 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0120] Please refer to Figure 3, which is a schematic diagram of the relationship between the software system and the modem of a terminal device provided in an embodiment of the present application. When the data service recovery method provided in an embodiment of the present application is applied to the terminal device 100 shown in Figure 2, the software system in the terminal device 100 can be divided into an application layer 201, an application framework layer 202, a hardware abstraction layer (HAL) 203, a radio interface layer (RIL) 204, and a driver layer 205 as shown in Figure 3. Among them, the application processor (AP) is the core of the entire software system, playing the role of linking and coordinating between the aforementioned different software layers.

[0121] Multiple applications may be installed in the application layer 201, including a first application. For example, the first application may be a network setting application (APP). The network setting application is used to implement the switch data service.

[0122] The application framework layer 202 may include a telephony module, etc. The telephony module is used to provide interfaces and functions related to switch data services so that the network setting application can use them.

[0123] The hardware abstraction layer 203 is software located between the operating system kernel and the hardware circuits. It is generally used to abstract the hardware to enable interaction between the operating system and the hardware circuits at the logical layer. In the embodiment of the present application, the hardware abstraction layer 203 may include a camera hardware abstraction layer (camera HAL) that enables interaction between the camera application and the image sensor at the logical layer.

[0124] The wireless interface layer 204 is mainly responsible for processing requests and data transmission related to the mobile communication network, including communicating with the baseband chip, processing the subscriber identification module (SIM) card and network registration, etc.

[0125] The driver layer 205 may be installed with a plurality of drivers for driving the hardware.

[0126] It should be noted that the application layer 201 , the application framework layer 202 , the hardware abstraction layer 203 , the wireless interface layer 204 and the driver layer 205 may also include other contents, which are not specifically limited here.

[0127] The modem 104 can communicate with the radio interface layer (RIL) 204 through the driver layer 205, or the modem 104 can communicate with the telephone service module in the application framework layer 202 through the driver layer 205, the radio interface layer (RIL) 204, the hardware abstraction layer 203 and the application framework layer 202 in sequence.

[0128] Based on the above description, in combination with FIG4 , a schematic diagram of a human-computer interaction interface of a terminal device implementing the data service recovery method according to an embodiment of the present application is introduced in detail.

[0129] For ease of explanation, FIG4 takes a mobile phone as an example in which the terminal device is in a vertical orientation and the display direction of the mobile phone is in a vertical orientation.

[0130] Please refer to FIG4 , which shows a schematic diagram of a human-computer interaction interface provided in an embodiment of the present application.

[0131] After receiving the user's triggering operation on the control 1001 shown in Figure 4, the telephone service module (telephony) of the mobile phone can send an activation data request to the modem in the terminal device through the wireless interface module in the terminal device. If the modem cannot obtain the resource identifier to be allocated, the modem can determine that the modem cannot send a data link request to the network device, cannot establish a protocol data unit (PDU) session, and thus cannot access the network.

[0132] The wireless interface module here is the wireless interface layer in FIG3 .

[0133] Based on this, the modem can send an activation data response message including an activation data indicating that the modem cannot obtain the resource identifier to be allocated to the telephone service module through the wireless interface module. After receiving the activation data response message, the telephone service module can send a restart request to the modem through the wireless interface module, so that the modem restarts after receiving the restart request. After the modem restarts, the resource identifier is restored to the preset number. In this way, the modem can perform a network registration process with the network device. After network registration, it sends a data link establishment request to the network device. The modem can establish a PDU session and allocate a resource identifier for the PDU session established this time. As a result, the terminal device can access the network as soon as possible, so that the terminal device can successfully access the network and communicate effectively with the network.

[0134] Below, in combination with Figures 5 and 6, this application takes the terminal device as an example, and in combination with the accompanying drawings and application scenarios, the data service recovery method provided in the embodiment of the present application is described in detail.

[0135] 5 and 6 , two implementations of the data service recovery method provided in the embodiments of the present application are described in detail.

[0136] Implementation method 1

[0137] Implementation method 1 is applicable to the terminal device accessing the fourth generation mobile communication technology network standard (4G) network, that is, the LTE attach scenario.

[0138] For example, when a modem is unable to obtain a resource identifier to be allocated, it may notify a wireless interface module in an application processor (AP), which triggers a modem restart so that the number of resource identifiers reaches a preset number again, allowing the modem to resume sending a network attachment request to a network device to access the network; as shown in FIG5 .

[0139] The wireless interface module here is the wireless interface layer in FIG3 .

[0140] Figure 5 shows a flow chart of a data service recovery method provided by the present application. As shown in Figure 5, the method can be divided into two different stages, namely 1.1 first attachment stage and 1.2 second attachment stage.

[0141] 1.1 The first attachment stage

[0142] The first attachment stage may be understood as a stage in which the modem cannot send an attachment request to the network device because the modem cannot obtain the identifier of the resource to be allocated; for example, as shown in S11 in FIG. 5 .

[0143] S11. The modem cannot obtain the resource identifier to be allocated.

[0144] When a terminal device accesses a network, it needs to first send an attachment request to the network device. The process of sending the attachment request needs to be accompanied by the process of establishing a packet data network (PDN) connection.

[0145] Among them, when a packet data network connection is established, the modem needs to allocate a resource identifier for identifying the context information for establishing the packet data network connection; since the number of resource identifiers to be allocated is a preset number, if an abnormality occurs inside the modem, there is a situation where multiple resource identifiers are allocated but not released, making it impossible for the modem to obtain the resource identifiers to be allocated.

[0146] It is understandable that when the modem cannot obtain the identifier of the resource to be allocated, the modem cannot send a network attachment request to the network device, cannot establish a packet data network connection, and cannot access the network.

[0147] In some embodiments, the number of resource identifiers to be allocated is a pre-set number; for example, the number of resource identifiers to be allocated is in the range of [0, 14], that is, the number of resource identifiers to be allocated is 15.

[0148] It should be understood that the above description uses 15 resource identifiers to be allocated as an example; this application does not limit the number of resource identifiers to be allocated.

[0149] In some embodiments, when the modem belongs to an MTK chip platform, the resource identifier is a context information ID (context ID).

[0150] 1.2 Second Attachment Stage

[0151] Among them, the second attachment stage can be understood as the stage in which the wireless interface module in the application processor (AP) triggers the modem to restart after determining that the modem cannot obtain the resource identifier to be allocated, so that the modem can send a network attachment request to the network device; for example, S12-S17 shown in Figure 5.

[0152] S12. The modem sends an abnormal status message to the wireless interface module.

[0153] The abnormal status message is used to indicate that the modem cannot obtain the resource identifier to be allocated.

[0154] In addition, abnormal status messages can be presented in a variety of message formats.

[0155] In some embodiments, the modem may send an interface control document (ICD) to the wireless interface module, where the ICD carries an abnormal status message indicating that the modem cannot obtain an identifier of a resource to be allocated.

[0156] In other embodiments, the modem may send an unsolicited result code (URC) to the wireless interface module, where the URC carries an abnormal status message indicating that the modem cannot obtain the identifier of the resource to be allocated.

[0157] Based on the above description, the modem sends an abnormal status message to the wireless interface module, indicating that the modem cannot obtain the identifier of the resource to be allocated, so as to prepare for the wireless interface module to trigger the modem to restart.

[0158] S13. The wireless interface module parses and processes the abnormal status message sent by the modem.

[0159] It is understandable that the modem can usually send multiple types of messages to the wireless interface module. Therefore, the wireless interface module needs to parse the message sent by the modem and determine the type of the message sent by the modem based on the parsing result.

[0160] Since the message currently sent by the modem is an abnormal status message, the wireless interface module parses the message and can determine that the message is an abnormal status message indicating that the modem cannot obtain the resource identifier to be allocated, so that the wireless interface module can trigger the modem to restart according to the abnormal status message.

[0161] S14. The wireless interface module sends a restart request to the modem.

[0162] The restart request is used to instruct the wireless interface module to request the modem to restart based on a restart interface provided by the modem to the wireless interface module.

[0163] In addition, the restart request can be presented in various message forms.

[0164] In some embodiments, the wireless interface module may send an AT command to the modem, where the AT command carries a restart request.

[0165] In some other embodiments, the wireless interface module may send a mediatek modem control interface (MIPC) message to the modem, and the MIPC message may carry the restart request.

[0166] In some other embodiments, the wireless interface module may send a Qualcom message interface (QMI) message to the modem, and the QMI message may carry the restart request.

[0167] Based on the above description, the wireless interface module can send a restart request to the modem, and prepare for the modem to restart.

[0168] S15. The modem sends a restart response message to the wireless interface module.

[0169] The restart response message is used to indicate that the modem has received the restart request and is ready to restart.

[0170] After receiving the restart request, the modem may send a restart response message to the wireless interface module to notify the wireless interface module that the modem has received the restart request and is ready to restart.

[0171] S16. The modem restarts the modem.

[0172] Based on S14 , the modem may receive a restart request, and thus, the modem may restart based on the restart request.

[0173] It is understandable that restarting the modem may release all resource identifiers, and after the modem restarts, the number of resource identifiers may reach the preset number again.

[0174] It is understandable that restarting the modem can release all resource identifiers and restore them to the preset number.

[0175] There is no particular order between S15 and S16 in terms of timing, and the modem may execute S15 and S16 sequentially or simultaneously.

[0176] S17. The modem sends an attach request to the network device.

[0177] Based on S16 , after the modem is restarted, the number of resource identifiers reaches the preset number again, and the modem can send a network attachment request to the network device, and can also re-establish a packet data network (PDN) connection.

[0178] The attach request is used to request connection to a network device through a mobile communication network (such as 4G LTE, etc.) and obtain resources and services provided by the network device.

[0179] In some embodiments, after receiving an attachment request, the network device may return an attachment confirmation message to the modem to indicate that the network device accepts the modem's attachment. Thus, the modem may attach to the network device based on the first network standard. The modem may send an attachment completion message to the network device to enable the terminal device to access the network, facilitating normal data transmission and communication of the terminal device.

[0180] In some embodiments, the network of the first network standard is a network under the fourth generation mobile communication technology network standard, namely 4G LTE.

[0181] It is understandable that since the number of resource identifiers reaches the preset number again after the modem is restarted, the process of the modem sending an attachment request to the network device can be accompanied by the process of establishing the PDN connection. The modem can allocate a resource identifier to identify the establishment of this PDN connection.

[0182] In the present application, when the modem cannot obtain the resource identifier to be allocated, the modem in the terminal device can determine that the modem cannot send a network attachment request to the network device, cannot establish a packet data network connection, and cannot access the network; thus, the modem in the terminal device can send an abnormal status message to the wireless interface module to indicate that the modem cannot obtain the resource identifier to be allocated, preparing for the wireless interface module to trigger the restart of the modem; in this way, after receiving the abnormal status message, the wireless interface module can send a restart request to the modem, and after receiving the restart request, the modem can restart based on the restart request so that the resource identifier is restored to a preset number. Based on this, the modem can send an attachment request to the network device again, and in the process of sending the attachment request, it can be accompanied by the establishment of the PDN connection, and the modem can successfully allocate a resource identifier for the establishment of this PDN connection, thereby, the terminal device can access the network as soon as possible, so that the terminal device can resume normal data transmission and communication as soon as possible.

[0183] Implementation method 2

[0184] Implementation method 2 is applicable to scenarios where the terminal device accesses the fourth-generation mobile communication technology network standard (4G) network, the fifth-generation mobile communication technology network standard (5G) network (for example, 5G independent networking (standalone, SA)), data services cannot be activated, or other types of data link establishment scenarios.

[0185] It is understandable that implementation method 2 is also applicable when a fourth generation mobile communication technology network (4G) network (e.g., LTE network) needs to establish a new PDN connection after being attached to a network device.

[0186] For example, when a modem is unable to obtain a resource identifier to be allocated, it may notify a wireless interface module in an application processor (AP), which triggers a modem restart so that the number of resource identifiers reaches a preset number again, allowing the modem to resume sending a network attachment request to a network device to access the network; as shown in FIG6 .

[0187] The wireless interface module here is the wireless interface layer in FIG3 .

[0188] It should be noted that in implementation method two, when the modem is unable to obtain the resource identifier to be allocated, the method for notifying the wireless interface module in the application processor (AP) can be the method of sending an activation data response message in implementation method two, or the method of sending an abnormal status message in implementation method one. When the method of sending an abnormal status message in implementation method one is adopted, the abnormal status message may not include a failure cause value.

[0189] Figure 6 shows a flow chart of a data service recovery method provided by the present application. As shown in Figure 6, the method can be divided into two different stages, namely 2.1 first link establishment stage and 2.2 second link establishment stage.

[0190] 2.1 The first link establishment phase

[0191] The first link establishment phase may be understood as a phase in which the modem cannot establish a data link with the network device because the modem cannot obtain the identifier of the resource to be allocated; for example, S21-S23 shown in FIG6 .

[0192] S21. The telephone service module sends an activation data request to the wireless interface module.

[0193] The data activation request is used to indicate the activation or enabling of a data service.

[0194] In some embodiments, the terminal device may display a startup interface, which may include a data activation control for activating or enabling a data service.

[0195] For example, the first interface can be the interface shown in Figure 4, and the data activation control can be control 1001 in the interface shown in Figure 4; after receiving the operation on control 1001, the telephone service module in the terminal device can respond to the operation and send an activation data request to the wireless interface module.

[0196] It should be understood that the above description uses the interface shown in FIG4 as the startup interface and the data activation control as control 1001 as an example; this application does not limit the specific implementation of the startup interface. This application does not limit the display position, display style, display size and other parameters of the data activation control.

[0197] S22. The wireless interface module sends an activation data request to the modem.

[0198] Based on S21, the wireless interface module can receive the activation data request sent by the telephone service module, so that the wireless interface module can continue to transmit the activation data request, that is, send the activation data request to the modem, so that the modem can send a data link request to the network device based on the activation data request, so that the terminal device can access the network.

[0199] S23. The modem cannot obtain the resource identifier to be allocated.

[0200] Among them, S23 is implemented in a similar manner to S11 in the embodiment shown in FIG5 , and will not be described again here.

[0201] 2.2 Second link establishment phase

[0202] Among them, the second link establishment stage can be understood as the stage in which the wireless interface module in the application processor (AP) triggers the modem to restart after determining that the modem cannot obtain the resource identifier to be allocated, so that the modem can send a data link establishment request to the network device; for example, S24-S31 shown in Figure 6.

[0203] S24. The modem sends an activation data response message to the wireless interface module.

[0204] The activation data response message includes a failure reason value, which indicates that the modem cannot obtain a resource identifier to be allocated, cannot send a data link request to the network device, cannot establish a packet data network connection, and cannot access the network.

[0205] S25. The wireless interface module sends an activation data response message to the telephone service module.

[0206] Based on S24, the wireless interface module can receive the activation data response message sent by the modem, so that the wireless interface module can continue to upload the activation data response message, that is, send the activation data response message to the telephone service module, so that the telephone service module can send a restart request to the modem based on the activation data response message to restart the modem.

[0207] S26. The telephone service module sends a restart request to the wireless interface module.

[0208] The restart request is used to request the modem to restart.

[0209] In some embodiments, the telephony module may send a restart request to the wireless interface module via a hardware abstraction layer interface definition language (HIDL).

[0210] Based on the above description, the telephone service module sends a restart request to the wireless interface module to prepare for the modem to restart.

[0211] S27: The wireless interface module sends a restart request to the modem.

[0212] S28. The modem sends a restart response message to the wireless interface module.

[0213] S29. The modem restarts the modem.

[0214] Among them, S27, S28 and S29 are implemented in a similar manner to S14, S15 and S16 in the embodiment shown in Figure 5, and will not be repeated here.

[0215] S30: The modem performs network registration with the network device.

[0216] Based on S29 , after the modem is restarted, the number of resource identifiers reaches the preset number again, so that the modem can perform network registration with the network device.

[0217] In some embodiments, the network registration process may include: the modem sends a registration request to the network device, and after receiving the registration request, the network device may return a response message to the modem to indicate that the network device accepts the modem's registration with the network device. Thus, the modem can complete the network registration between the network and the network device based on the second network standard.

[0218] In some embodiments, the network of the second network standard is a network under the fifth generation mobile communication technology network standard, that is, an SA network.

[0219] S31. The modem sends a data link establishment request to the network device.

[0220] Based on S29, after the modem is restarted, the number of resource identifiers reaches the preset number again, and the modem can perform network registration with the network device. After the network registration is completed, a data link establishment request can be sent to the network device, that is, a protocol data unit (PDU) session can be re-established.

[0221] The data link establishment request is used to instruct the modem to request to start a data transmission service.

[0222] In some embodiments, after receiving a data link establishment request, the network device may return a link establishment confirmation message to the modem to confirm that the network device accepts the establishment of a data link between the modem and the network device. Thus, the modem can establish a data link with the network device and send a link establishment completion message to the network device, so that the terminal device can access the network, facilitating normal data transmission and communication of the terminal device.

[0223] It is understandable that since the number of resource identifiers reaches the preset number again after the modem is restarted, the modem sends a data link establishment request to the network device to establish a PDU session. As a result, the modem can allocate a resource identifier to identify the establishment of this PDU session.

[0224] In the present application, after receiving an activation data request sent by the telephone service module through the wireless interface module, because the modem in the terminal device cannot obtain the resource identifier to be allocated, the modem can determine that the modem cannot send a data link request to the network device, cannot establish a PDU session, and cannot access the network; thus, the modem in the terminal device can send an activation data response message to the wireless interface module to indicate that the modem cannot obtain the resource identifier to be allocated, preparing for the wireless interface module to trigger a modem restart; thus, after receiving the activation data response message, the wireless interface module can upload the activation data response message to the telephone service module. Thus, after receiving the activation data response message, the telephone service module can send a restart request to the modem through the wireless interface module. After receiving the restart request, the modem can restart based on the restart request so that the resource identifiers are restored to a preset number. Based on this, the modem can re-register with the network device and re-send a data link establishment request to the network device to establish a PDU session. The modem can successfully allocate a resource identifier for the establishment of this PDU session. Thus, the terminal device can access the network as soon as possible, so that the terminal device can resume normal data transmission and communication as soon as possible.

[0225] Terminal devices can access networks of various network standards, and the method of accessing each network standard is different.

[0226] Based on this, the terminal device can use the embodiment shown in Figure 5 to access the fourth generation mobile communication technology network standard (4G) network. The terminal device can use the embodiment shown in Figure 6 to access the fifth generation mobile communication technology network standard (5G) network.

[0227] The terminal device can simultaneously adopt the embodiment shown in Figure 5 and the embodiment shown in Figure 6 to avoid the situation where the modem in the terminal device is unable to obtain the resource identifier to be allocated when accessing the 4G network and when accessing the 5G network, making the terminal device unable to access the network.

[0228] Considering that the terminal device can access the fourth generation mobile communication technology network standard (4G) network, that is, the LTE attach scenario, the modem cannot obtain the resource identifier to be allocated, and the modem cannot send an attachment request to the network device. The terminal device can select the embodiment shown in Figure 5.

[0229] Considering that the terminal device can access the fourth generation mobile communication technology network standard (4G) network (for example, it is necessary to establish another PDN connection, for example, to change the network access technology (access point name, APN)) or the fifth generation mobile communication technology network standard (5G) network (that is, non-LTE attach scenario, for example, 5G independent networking (standalone, SA)), the modem cannot obtain the resource identifier to be allocated, and the modem cannot send a data link request to the network device. The terminal device can select the embodiment shown in Figure 6.

[0230] It should be noted that the embodiment shown in FIG. 5 and the embodiment shown in FIG. 6 are applicable not only to situations where a modem cannot obtain a resource identifier to be allocated, preventing a terminal device from accessing the network, but also to situations where other modem anomalies prevent a terminal device from properly accessing the network. When the embodiment shown in FIG. 5 is applicable to situations where other modems are abnormal and preventing normal network access, the abnormality status message may indicate information corresponding to the other modem anomaly. When the embodiment shown in FIG. 6 is applicable to situations where other modems are abnormal and preventing normal network access, the activation data response message may include information corresponding to the other modem anomaly.

[0231] Based on some of the aforementioned embodiments, the data service recovery method provided by this application is introduced below.

[0232] Please refer to FIG. 7 , which shows a flow chart of a data service recovery method provided in an embodiment of the present application.

[0233] As shown in FIG7 , the present application provides a data service recovery method, which is applied to a terminal device, and the terminal device includes an application processor and a modem.

[0234] As shown in FIG7 , the data service recovery method provided in this application may include:

[0235] S301. During access to a mobile communication network, if a modem cannot obtain an identifier of a resource to be allocated, a first message is sent to an application processor, where the first message is used to indicate that the modem cannot obtain the identifier of the resource to be allocated.

[0236] The specific implementation of the first message can be found in the abnormal status message of S12 in Figure 5 and the related description of the activation data response message of S24-S25 in Figure 6. The specific implementation of S301 can be found in the related description of S11-S12 in Figure 5 and the related description of S21-S25 in Figure 6, which will not be repeated here.

[0237] S302: The application processor sends a second message to the modem in response to the first message, where the second message is used to instruct the modem to restart.

[0238] The specific implementation of the second message can be found in the restart request of S14 in Figure 5 and the related description of the activation data response message of S22 in Figure 6. The specific implementation of S302 can be found in the related description of S13-S14 in Figure 5 and the related description of S26-S27 in Figure 6, which will not be repeated here.

[0239] S303: The modem restarts in response to the second message.

[0240] The specific implementation of S303 can be found in the relevant description of S16 in FIG. 5 and the relevant description of S29 in FIG. 6 , which will not be described in detail here.

[0241] S304: After the modem is restarted, the modem obtains an identifier of the resource to be allocated, and accesses the mobile communication network based on the identifier of the resource to be allocated.

[0242] The specific implementation of S304 can be found in the relevant description of S17 in FIG. 5 and the relevant description of S30 - S31 in FIG. 6 , which will not be described in detail here.

[0243] In the present application, since the modem cannot establish a data link with the network device and the terminal device cannot access the network when the modem cannot obtain the resource identifier to be allocated, a first message indicating that the modem cannot obtain the resource identifier to be allocated can be sent to the application processor when the modem cannot obtain the resource identifier to be allocated, so that the application processor can determine that the modem cannot obtain the resource identifier to be allocated when receiving the first message, and thus, the application processor can send a second message to the modem to instruct the modem to restart. After receiving the second message, the modem can restart. In this way, the resource identifier to be allocated can be restored to the preset number, the modem can obtain the resource identifier to be allocated, and access the mobile communication network based on the resource identifier to be allocated. In this way, the terminal device can access the network as soon as possible, so that the terminal device can resume normal data transmission and communication as soon as possible.

[0244] In some embodiments, the data service recovery method of the present application may further include:

[0245] During access to the mobile communication network, the modem receives a third message sent by the application processor, the third message being used to request the modem to activate data;

[0246] In response to the third message, if the modem cannot obtain the identifier of the resource to be allocated, a first message is sent to the application processor, where the first message includes first information, and the first information is used to indicate that the modem cannot obtain the identifier of the resource to be allocated.

[0247] The specific implementation of the third message can be found in the description of the activation data request in S21-S22 in Figure 6. Also, the specific implementation of the above steps can be found in the description of S21-S25 in Figure 6, which will not be repeated here.

[0248] The data service recovery method of the present application is that when the modem cannot obtain the resource identifier to be allocated, the modem cannot establish a data link with the network device, and the terminal device cannot access the network. Therefore, when the modem cannot obtain the resource identifier to be allocated, a first message can be sent to the application processor, so that when the application processor receives the first message, it can send a second message to the modem to instruct the modem to restart based on the first information in the first message used to indicate that the modem cannot obtain the resource identifier to be allocated. After receiving the second message, the modem can restart, thereby allowing the terminal device to quickly access the network.

[0249] In some embodiments, the application processor includes a wireless interface module. If the modem cannot obtain the identifier of the resource to be allocated, the data service recovery method of the present application may further include:

[0250] If the modem cannot obtain the identifier of the resource to be allocated, sending a first message to the wireless interface module;

[0251] The application processor sends a second message to the modem in response to the first message, including:

[0252] The wireless interface module sends a second message to the modem in response to the first message.

[0253] The wireless interface module is the wireless interface layer in FIG3 .

[0254] The specific implementation of the above steps can be found in the relevant description of S11-S14 in FIG5 and the relevant description of S23-S25 in FIG6 , which will not be described in detail here.

[0255] In some embodiments, the application processor includes a telephone service module and a wireless interface module, and the data service recovery method of the present application may further include:

[0256] During access to the mobile communication network, the telephone service module sends a third message to the modem via the wireless interface module after receiving a first operation on the first interface of the terminal device, wherein the first operation is used to start a data service;

[0257] The modem receives a third message sent by the application processor;

[0258] In response to the third message, if the modem cannot obtain the identifier of the resource to be allocated, sending a first message to the application processor includes:

[0259] In response to the third message, if the modem cannot obtain the identifier of the resource to be allocated, sending a first message to the telephone service module through the wireless interface module;

[0260] The application processor sends a second message to the modem in response to the first message, including:

[0261] The telephone service module sends a second message to the modem through the wireless interface module in response to the first message.

[0262] The specific implementation of the first interface can be found in the description of the interface in Figure 4. The specific implementation of the first operation can be found in the description of the operation on the control 1001 on the interface in Figure 4. The specific implementation of the above steps can be found in the description of S21-S26 in Figure 6, which will not be repeated here.

[0263] In some embodiments, the data service recovery method of the present application may further include:

[0264] The modem sends a first response message to the application processor, where the first response message is a response message to the second message.

[0265] The data service recovery method of the present application notifies the application processor that the modem has received the restart request and is ready to restart by sending a first response message to the application processor.

[0266] In some embodiments, the application processor includes a wireless interface module, and the data service recovery method of the present application may further include:

[0267] The modem sends a first response message to the wireless interface module.

[0268] The specific implementation of the above steps can be found in the relevant description of S15 in Figure 5, which will not be repeated here.

[0269] In some embodiments, the application processor includes a telephone service module and a wireless interface module, and the data service recovery method of the present application may further include:

[0270] The modem sends a first response message to the telephone service module through the wireless interface module.

[0271] The specific implementation of the above steps can be found in the relevant description of S28 in FIG6 , which will not be described in detail here.

[0272] In some embodiments, when the mobile communication network is a network under the fourth generation mobile communication technology network standard, the data service recovery method of the present application may further include:

[0273] After the modem is restarted, a fourth message is sent to the network device. During the sending of the fourth message, an identifier of the resource to be allocated is obtained, and a data link is established with the network device based on the identifier of the resource to be allocated. The fourth message is used to request attachment to the network device to a network based on a fourth generation mobile communication technology network standard.

[0274] The modem receives a second response message sent by the network device, where the second response message is a response message to the fourth message and is used to instruct the network device to accept the attachment of the modem;

[0275] The modem sends a fifth message to the network device, where the fifth message is an attachment completion message and is used to instruct the terminal device to access the mobile communication network.

[0276] The specific implementation of the fourth message can refer to the description of the attach request in S17 in Figure 5. Also, the specific implementation of the above steps can refer to the description of S17 in Figure 5, which will not be repeated here.

[0277] The data service recovery method of the present application is that after the modem is restarted, it can obtain the resource identifier to be allocated and establish a data link with the network device based on the resource identifier to be allocated. Therefore, when the mobile communication network is a network under the fourth-generation mobile communication technology network standard, the modem can establish a data link during the process of attaching to the network device to access the mobile communication network.

[0278] In some embodiments, when the mobile communication network is a fifth-generation mobile communication technology network, the data service recovery method of the present application may further include:

[0279] After the modem restarts, sending a sixth message to the network device, the sixth message being used to request registration with the network device on a network based on a fifth generation mobile communication technology network standard;

[0280] The modem receives a third response message sent by the network device, where the third response message is used to instruct the network device to accept registration of the modem with the network device;

[0281] The modem obtains the identifier of the resource to be allocated, and sends a seventh message to the network device based on the identifier of the resource to be allocated, where the seventh message is used to request to establish a data link with the network device;

[0282] The modem receives a fourth response message sent by the network device, where the fourth response message is used to instruct the network device to accept the establishment of a data link between the modem and the network device;

[0283] The modem sends an eighth message to the network device, where the eighth message is a data link establishment completion message. The seventh message is used to instruct the terminal device to access the mobile communication network.

[0284] The specific implementation of the sixth message can be found in the description of network registration in S29 of FIG6 . The specific implementation of the seventh message can be found in the description of data link establishment request in S31 of FIG6 . Furthermore, the specific implementation of the above steps can be found in the description of S30-S31 of FIG6 , which will not be repeated here.

[0285] The data service recovery method of the present application is that after the modem is restarted, it can obtain the resource identifier to be allocated and establish a data link with the network device based on the resource identifier to be allocated. Therefore, when the mobile communication network is a network under the fifth-generation mobile communication technology network standard, the modem can access the mobile communication network by first registering with the network device and then establishing a data link.

[0286] Exemplarily, the present application provides a terminal device comprising one or more processors, a memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by one or more processors, the terminal device executes the data service recovery method in the foregoing embodiment.

[0287] Exemplarily, the present application provides a chip system, which includes a processor for calling and running a computer program from a memory, so that a terminal device equipped with the chip system executes the data service recovery method in the above embodiment.

[0288] Exemplarily, the present application provides a computer-readable storage medium, including a computer program. When the computer program runs on a terminal device, the terminal device executes the data service recovery method in the above embodiment.

[0289] Illustratively, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the data service recovery method in the foregoing embodiment.

[0290] In the above embodiments, all or part of the functions can be implemented by software, hardware, or a combination of software and hardware. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer codes or instructions. When the computer program code or instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer code or instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0291] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by a computer program to instruct the relevant hardware to complete the process, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: various media that can store program codes, such as read-only memory (ROM) or random access memory (RAM), magnetic disk or optical disk. Finally, it should be noted that the above is only a specific implementation method of the present application, but the scope of protection of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A data service recovery method, characterized in that: Applied to a terminal device, the terminal device includes an application processor and a modem; the method includes: In the process of accessing the mobile communication network, if the modem cannot obtain the resource identifier to be allocated, sending a first message to the application processor, wherein the first message is used to indicate that the modem cannot obtain the resource identifier to be allocated; The application processor sends a second message to the modem in response to the first message, where the second message is used to instruct the modem to restart; The modem restarts in response to the second message; After the modem is restarted, the modem obtains the identifier of the resource to be allocated, and accesses the mobile communication network based on the identifier of the resource to be allocated.

2. The method according to claim 1, characterized in that: The method of sending a first message to the application processor if the modem cannot obtain a resource identifier to be allocated during access to the mobile communication network comprises: In the process of accessing the mobile communication network, the modem receives a third message sent by the application processor, wherein the third message is used to request the modem to activate data; In response to the third message, if the modem cannot obtain the resource identifier to be allocated, the first message is sent to the application processor, where the first message includes first information, and the first information is used to indicate that the modem cannot obtain the resource identifier to be allocated.

3. The method according to claim 1 or 2, characterized in that: The application processor includes a wireless interface module, and if the modem cannot obtain the resource identifier to be allocated, sending a first message to the application processor includes: If the modem cannot obtain the resource identifier to be allocated, sending a first message to the wireless interface module; The application processor sends a second message to the modem in response to the first message, including: The wireless interface module sends a second message to the modem in response to the first message.

4. The method according to claim 2, characterized in that: The application processor includes a telephone service module and a wireless interface module, and in the process of accessing the mobile communication network, the modem receives a third message sent by the application processor, including: In the process of accessing the mobile communication network, the telephone service module sends the third message to the modem through the wireless interface module after receiving a first operation on the first interface of the terminal device, wherein the first operation is used to start a data service; The modem receives the third message sent by the application processor; In response to the third message, if the modem cannot obtain the resource identifier to be allocated, sending the first message to the application processor includes: In response to the third message, if the modem cannot obtain the resource identifier to be allocated, sending the first message to the telephone service module through the wireless interface module; The application processor sends a second message to the modem in response to the first message, including: The telephone service module responds to the first message by sending a signal to the modem through the wireless interface module. The device sends the second message.

5. The method according to any one of claims 1 to 4, characterized in that After the application processor sends a second message to the modem in response to the first message and before the modem restarts in response to the second message, or during the process of the modem restarting in response to the second message, the method further includes: The modem sends a first response message to the application processor, where the first response message is a response message to the second message.

6. The method according to claim 5, wherein the application processor comprises a wireless interface module, and the modem sending a first response message to the application processor comprises: The modem sends the first response message to the wireless interface module.

7. The method according to claim 5, wherein the application processor comprises a telephone service module and a wireless interface module, and the modem sends a first response message to the application processor, comprising: The modem sends the first response message to the telephone service module through the wireless interface module.

8. The method according to any one of claims 1 to 7, characterized in that When the mobile communication network is a network under the fourth generation mobile communication technology network standard, after the modem is restarted, the modem obtains the resource identifier to be allocated, and accesses the mobile communication network based on the resource identifier to be allocated, including: After the modem is restarted, a fourth message is sent to the network device, and in the process of sending the fourth message, the resource identifier to be allocated is obtained, and a data link is established with the network device based on the resource identifier to be allocated, wherein the fourth message is used to request a network based on the fourth generation mobile communication technology network standard to attach to the network device; The modem receives a second response message sent by the network device, where the second response message is a response message to the fourth message, and the second response message is used to indicate that the network device accepts the attachment of the modem; The modem sends a fifth message to the network device, where the fifth message is an attachment completion message and is used to instruct the terminal device to access the mobile communication network.

9. The method according to any one of claims 1 to 7, characterized in that: When the mobile communication network is a network under the fifth generation mobile communication technology network standard, after the modem is restarted, the modem obtains the resource identifier to be allocated, and accesses the mobile communication network based on the resource identifier to be allocated, including: After the modem is restarted, sending a sixth message to the network device, wherein the sixth message is used to request to register with the network device based on the network under the fifth generation mobile communication technology network standard; The modem receives a third response message sent by the network device, wherein the third response message is used to indicate that the network device accepts the registration of the modem to the network device; The modem acquires the identifier of the resource to be allocated, and sends a seventh message to the network device based on the identifier of the resource to be allocated, wherein the seventh message is used to request to establish a data link with the network device; The modem receives a fourth response message sent by the network device, wherein the fourth response message is used to indicate that the network device accepts the establishment of a data link between the modem and the network device; The modem sends an eighth message to the network device, where the eighth message is a data link establishment completion message, and the seventh message is used to instruct the terminal device to access the mobile communication network.

10. A terminal device, characterized in that: include: One or more processors, a memory, and one or more computer programs; wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the terminal device executes the data service recovery method as described in any one of claims 1 to 9.

11. A chip system, characterized in that: The chip system includes a processor for calling and running a computer program from a memory, so that a terminal device equipped with the chip system executes a data service recovery method as described in any one of claims 1 to 9.

12. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program runs on a terminal device, the terminal device executes the data service recovery method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method and device for restoring general packet radio service, and mobile terminal

    CN103227984A

  • Method and device for processing network communication function abnormity and mobile terminal

    CN105376788A

  • Service processing method and equipment

    CN113676894A

  • Method and device for continuity of modem service

    WO2022177354A1