WO2024255337A1 - 数据业务恢复方法及终端设备 - Google Patents
数据业务恢复方法及终端设备 Download PDFInfo
- Publication number
- WO2024255337A1 WO2024255337A1 PCT/CN2024/080040 CN2024080040W WO2024255337A1 WO 2024255337 A1 WO2024255337 A1 WO 2024255337A1 CN 2024080040 W CN2024080040 W CN 2024080040W WO 2024255337 A1 WO2024255337 A1 WO 2024255337A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- modem
- message
- network
- allocated
- response
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Definitions
- the present application relates to the field of terminals, and in particular to a data service recovery method and terminal equipment.
- 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.
- a modem in the terminal device needs to allocate a resource identifier, which is used to identify context information for establishing the data link.
- a resource identifier which is used to identify context information for establishing the data link.
- the modem can release the resource identifier.
- the number of resource identifiers to be allocated is usually limited.
- the modem cannot obtain available resource identifiers, resulting in the terminal device being unable to establish a new data link and unable to access the mobile communication network, making it difficult for users to use the network normally, affecting the user experience.
- 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.
- the present application provides a data service recovery method, which is applied to a terminal device, wherein the terminal device includes an application processor and a modem; the method includes:
- the modem 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, 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 reboots in response to the second message
- the modem 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.
- the terminal device cannot access the network. Therefore, when the modem cannot obtain the resource identifier to be allocated, a first message for 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, so that the application processor can send a second message for instructing the modem to restart to the modem, and the modem can restart after receiving the second message.
- the resource to be allocated The source identifier can be restored to a 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, so that 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.
- sending a first message to the application processor includes:
- the modem receives a third message sent by the application processor, the third message being used to request the modem to activate data;
- 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 resource identifier to be allocated.
- the modem when the modem receives the third message for modem activation data, it can start accessing the network.
- 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, according to the first information in the first message used to indicate that the modem cannot obtain the resource identifier to be allocated, the second message for instructing the modem to restart is sent to the modem. After receiving the second message, the modem can restart, so that the terminal device can quickly access the network.
- 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:
- 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.
- 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.
- 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:
- the telephone service module sends a 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 a third message sent by the application processor
- sending a first message to the application processor includes:
- the application processor sends a second message to the modem in response to the first message, including:
- the telephone service module sends a second message to the modem through the wireless interface module in response to the first message.
- 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, and the application processor may also send a third message to the modem when the modem cannot obtain the resources to be allocated.
- a first message is sent to the telephone service module through the wireless interface module, and a second message is sent to the modem through the telephone service module and the wireless interface module.
- 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.
- the modem may also 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.
- the application processor includes a wireless interface module, and the modem sends a first response message to the application processor, including:
- the modem sends a first response message to the wireless interface module.
- the modem may send a first response message to the wireless interface module in the application processor.
- 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:
- the modem sends a first response message to the telephone service module through the wireless interface module.
- the modem may send the first response message to the telephone service module through the wireless interface module.
- the modem 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 a resource identifier to be allocated, and accesses the mobile communication network based on the resource identifier to be allocated, including:
- a fourth message is sent to the network device.
- a 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 a 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, the second response message being a response message to the fourth message, and the second response message being used to instruct the network device to accept 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.
- the modem 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 a data link.
- the modem 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 a resource identifier to be allocated, and accesses the mobile communication network based on the resource identifier to be allocated, including:
- a sixth message is sent to the network device, where the sixth message is used to request a network based on a fifth generation mobile communication technology network standard to register with the network device;
- 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 the registration of the modem to the network device;
- the modem obtains the resource identifier to be allocated and sends the first
- 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, 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;
- 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.
- the modem 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.
- 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 first aspect and any possible implementation of the first 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.
- the present application provides a computer-readable storage medium, including a computer program.
- 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.
- the present application provides a computer program product.
- 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.
- FIG1 is a schematic diagram of the relationship between a terminal device and a base station provided in an embodiment of the present application
- FIG2 is a schematic diagram of the structure of a terminal device provided by an embodiment of the present application.
- FIG3 is a schematic diagram of the relationship between a software system and a modem of a terminal device provided in an embodiment of the present application;
- FIG4 is a schematic diagram of a human-computer interaction interface provided by an embodiment of the present application.
- FIG5 is a schematic diagram of a flow chart of a data service recovery method provided in an embodiment of the present application.
- FIG6 is a schematic diagram of a flow chart of a data service recovery method provided in an embodiment of the present application.
- FIG. 7 is a flow chart of a data service recovery method provided in an embodiment of the present application.
- At least one means one or more, and “more” means two or more.
- “And/or” describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character “/” Generally indicates that the objects associated with each other 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 items or plural items.
- At least one of a alone, b alone, or c alone can mean: 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.
- the terms "first" and "second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
- the terminal device includes a card slot for inserting a subscriber identity module (SIM) card of a user.
- SIM subscriber identity module
- the terminal device also includes a modem corresponding to the card slot, and the subscriber identity module card can access the network through the modem.
- 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.
- 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).
- 5G fifth-generation mobile communication technology
- 4G fourth-generation mobile communication technology
- 3rd-generation mobile communication technology 3rd-generation mobile communication technology
- 2G second-generation mobile communication technology
- the network of the 5G network standard may be a new radio (NR) network
- the network of the 4G network standard may be a long term evolution (LTE) network
- the network of the 3G network standard may be a third generation wireless communication technology (wideband code division multiple access, WCDMA) network
- the network of the 2G network standard may be a global system for mobile communications (GSM) network.
- NR new radio
- LTE long term evolution
- WCDMA wideband code division multiple access
- GSM global system for mobile communications
- 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).
- the terminal device 100 may further include two modems, namely a first modem (modem1) and a second modem (modem2).
- modem1 a first modem
- modem2 a second modem
- SIM card 1 can communicate with base station 200 through modem 1 to search for and access the network
- SIM card 2 can communicate with base station 200 through modem 2 to search for and access the network.
- the above-mentioned modem1 and modem2 may be the same physical wireless communication module in the terminal device 100 .
- the SIM card 1 and the SIM card 2 may share the same physical wireless communication module to realize communication with the base station 200 .
- modem1 and modem2 may also be two different physical wireless communication modules in the terminal device 100.
- SIM card 1 may communicate with the base station 200 through the physical first wireless communication module
- SIM card 2 may communicate with the base station 200 through the physical second wireless communication module.
- the terminal device Since the 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.
- a modem in the terminal device needs to allocate a resource identifier to identify the establishment of the data link.
- the modem can release the resource identifier.
- the process of establishing the data link is the process of establishing a packet data network (PDN) connection.
- PDN packet data network
- the terminal device can perform data transmission and communication only after the packet data network is established.
- 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.
- 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.
- the terminal device can perform data transmission and communication only after the protocol data unit is established.
- 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.
- the resource identifier corresponds one-to-one to the EPS Bearer ID (EBI) and the packet-switched session Identity (PSI).
- EBI EPS Bearer ID
- PSI packet-switched session Identity
- EBI is used to identify data bearers in the evolved packet system (EPS) network and is one of the core parts of the LTE network.
- EPS evolved packet system
- each data bearer needs to be assigned a unique EBI.
- PSI is used to identify a connection established with a PDN.
- a unique PSI needs to be allocated whenever a PDN connection is established.
- PSI is often used together with a resource identifier.
- the resource identifier and PSI are usually mapped to the EBI and quality of service class identifier (QCI) of the data bearer, respectively.
- the number of resource identifiers to be allocated is pre-set (for example, 15).
- the modem is abnormal. For example, the modem cannot obtain available resource identifiers, resulting in the terminal device being unable to establish a new data link and access the network the next time it accesses the network. It is difficult for users to use the network normally, affecting the user experience.
- modem abnormalities may include at least the following situations:
- the present application can provide a data service recovery method, a terminal device, a chip system, a computer-readable storage medium and a computer program product.
- the modem can feedback the exception information that the resource identifier to be allocated cannot be obtained to the application processor.
- 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 a 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.
- the above-mentioned data service recovery method is applied to a terminal device, and the terminal device may be a terminal device having display screen hardware and corresponding software support.
- the terminal device may be a mobile phone, a tablet computer, a vehicle-mounted device, a laptop computer, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a smart car, a smart TV, a robot, and other devices.
- UMPC ultra-mobile personal computer
- PDA personal digital assistant
- the terminal device may also be called an electronic device, user equipment (UE), etc., which is not limited in the embodiments of the present application.
- UE user equipment
- the terminal device 100 is taken as an example of a mobile phone.
- 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 Power management module 109, power management module 110, and battery 111, etc.
- the processor 101 may include one or more processing units, for example, the processor 101 may include 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), etc. Different processing units may be independent devices or integrated in one or more processors 101.
- AP application processor
- ISP image signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- the controller may be the nerve center and command center of the terminal device 100.
- the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
- the processor 101 may also be provided with a memory for storing instructions and data.
- the memory in the processor 101 is a cache memory.
- the memory can store instructions or data that have just been used or are used cyclically by the processor 101. If the processor 101 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 101, and thus improves the efficiency of the system.
- the processor 101 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
- I2C inter-integrated circuit
- I2S inter-integrated circuit sound
- PCM pulse code modulation
- UART universal asynchronous receiver/transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low-frequency baseband signal to be sent 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.
- the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 103.
- the modem processor may be an independent device.
- 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.
- the communication module 102 may include antenna 1 and antenna 2, a mobile communication module, and/or a wireless communication module.
- Each antenna in the terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
- the mobile communication module can provide solutions for wireless communications including 2G/3G/4G/5G, etc., 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 modem processor for demodulation.
- the mobile communication module can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation through the antenna 1.
- at least some of the functional modules of the mobile communication module may be arranged in the processor 101.
- at least some of the functional modules of the mobile communication module may be arranged together with at least some of the modules of the processor 101. placed in the same device.
- the wireless communication module can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied on the terminal device 100.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared
- the wireless communication module can be one or more devices integrating at least one communication processing module.
- the wireless communication module receives electromagnetic waves via antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to processor 101.
- the wireless communication module can also receive the signal to be sent from processor 101, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation via antenna 2.
- 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), MiniLED, MicroLED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc.
- the terminal device 100 may include 1 or N display screens 103, where N is a positive integer greater than 1.
- 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.
- 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, and then transmitting them through the antenna; it also converts the 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 realizing the mutual conversion between digital data and analog signals. Whether it is making a phone call, sending text messages or surfing the Internet, a modem is needed to connect to the network and realize the transmission and reception of data.
- the charging management module 109 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.
- the charging management module 109 may receive charging input from a wired charger through the USB interface 107 .
- 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.
- 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 supplies 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 number, and battery health status (leakage, impedance).
- the power management module 110 may also be disposed in the processor 101 .
- the power management module 110 and the charging management module 109 may also be disposed in the same device.
- 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 through the external memory interface 108 to implement a data storage function. For example, files such as music and video streams are saved in the external memory card.
- the internal memory 106 can be used to store computer executable program codes, which include instructions.
- the processor 101 executes various functional applications and data processing of the terminal device 100 by running the instructions stored in the internal memory 106.
- the internal memory 106 can include a program storage area and a data storage area.
- the program storage area may store an operating system, an application required for at least one 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.
- 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.
- 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 sensing and/or acquisition functions for different signals.
- the terminal device 100 may also include peripheral devices, such as a mouse, buttons, indicator lights, a keyboard, a speaker, a microphone, etc.
- peripheral devices such as a mouse, buttons, indicator lights, a keyboard, a speaker, a microphone, etc.
- the buttons include a power button, a volume button, etc.
- the buttons may be mechanical buttons or touch buttons.
- the terminal device 100 may receive button inputs and generate key signal inputs related to user settings and function control of the terminal device 100.
- the indicator may be a light indicator, which may be used to indicate the charging status and the change in the power level, and may also be used to indicate messages, missed calls, and notifications, etc.
- the terminal device 100 may include more or fewer components than shown, or combine some components, or split some components, or arrange the components differently.
- the components shown may be implemented in hardware, software, or a combination of software and hardware.
- FIG3 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.
- 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 FIG3.
- the application processor (AP) is the core of the entire software system, and plays a role of linking and coordinating between the aforementioned different software layers.
- Multiple applications may be installed in the application layer 201, which may include a first application.
- the first application may be a network setting application (application, APP).
- the network setting application is used to implement the switch data service.
- 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.
- the hardware abstraction layer 203 is a software located between the operating system kernel and the hardware circuit, which is usually used to convert the hardware
- the hardware abstraction layer 203 may include a camera hardware abstraction layer (camera HAL) that enables the camera application and the image sensor to interact at the logical layer.
- camera HAL camera hardware abstraction layer
- 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.
- SIM subscriber identification module
- the driver layer 205 may be installed with a plurality of drivers for driving the hardware.
- 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.
- 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 in sequence.
- RIL radio interface layer
- FIG4 a schematic diagram of a human-computer interaction interface of a terminal device implementing the data service recovery method of an embodiment of the present application is introduced in detail.
- a mobile phone is taken as an example in which the terminal device is a mobile phone and the display direction of the mobile phone is a vertical screen direction.
- FIG. 4 shows a schematic diagram of a human-computer interaction interface provided in an embodiment of the present application.
- 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.
- PDU protocol data unit
- the wireless interface module here is the wireless interface layer in FIG3 .
- the modem can send an activation data response message to the telephone service module through the wireless interface module, which includes an activation data response message for indicating that the modem cannot obtain the resource identifier to be allocated.
- 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.
- the resource identifier is restored to a preset number.
- the modem can perform a network registration process with the network device. After the 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.
- 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.
- Implementation method 1 is applicable to terminal devices accessing the fourth generation mobile communication technology network standard (4G) network, namely LTE Attach the scene.
- 4G fourth generation mobile communication technology network standard
- the modem when it cannot obtain the resource identifier to be allocated, it can notify the wireless interface module in the application processor (AP), and the wireless interface module triggers the modem to restart, so that the number of resource identifiers reaches a preset number again, so that the modem can resume sending network attachment requests to the network device to access the network; as shown in Figure 5.
- AP application processor
- the wireless interface module here is the wireless interface layer in FIG3 .
- Fig. 5 shows a flow chart of a data service recovery method provided by the present application. As shown in Fig. 5, the method can be divided into two different stages, namely 1.1 first attachment stage and 1.2 second attachment stage.
- 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 .
- the modem cannot obtain the resource identifier to be allocated.
- a terminal device 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.
- PDN packet data network
- the modem 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, when 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 identifier to be allocated.
- 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.
- the number of resource identifiers to be allocated is a preset number; for example, the number of resource identifiers to be allocated ranges from [0, 14], that is, the number of resource identifiers to be allocated is 15.
- the resource identifier is a context information ID (context ID).
- 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 as shown in Figure 5.
- AP application processor
- the modem sends an abnormal status message to the wireless interface module.
- the abnormal status message is used to indicate that the modem cannot obtain the resource identifier to be allocated.
- abnormal status message can be presented in a variety of message modes.
- the modem may send an interface control document (ICD) to the wireless interface module, where the interface control document carries an abnormal status message indicating that the modem cannot obtain a resource identifier to be allocated.
- ICD interface control document
- the modem may send an unsolicited result code (URC) to the wireless interface module, and the unsolicited result code carries an abnormal status message indicating that the modem cannot obtain the identifier of the resource to be allocated.
- URC unsolicited result code
- 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.
- the wireless interface module parses and processes the abnormal status message sent by the modem.
- 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 message sent by the modem according to the parsing result.
- 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.
- the wireless interface module sends a restart request to the modem.
- 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.
- restart request can be presented in a variety of message forms.
- the wireless interface module may send an AT command to the modem, carrying a restart request via the AT command.
- the wireless interface module may send a control interface (MediaTek Modem Control Interface, MIPC) message to the modem, carrying a restart request via the control interface message.
- MIPC MediaTek Modem Control Interface
- the wireless interface module may send a Qualcom message interface (QMI) message to the modem, carrying a restart request via the information interface message.
- QMI Qualcom message interface
- the wireless interface module can send a restart request to the modem, and prepare for the modem to restart.
- the modem sends a restart response message to the wireless interface module.
- the restart response message is used to indicate that the modem has received the restart request and is ready to restart.
- 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.
- the modem may receive a restart request, and thus, the modem may restart based on the restart request.
- restarting the modem may release all resource identifiers, and after the modem restarts, the number of resource identifiers may reach the preset number again.
- restarting the modem can release all resource identifiers and restore them to the preset number.
- S15 and S16 there is no particular order between S15 and S16 in terms of timing, and the modem may execute S15 and S16 sequentially or simultaneously.
- the modem sends an attachment request to the network device.
- the modem can send a network attachment request to the network device or re-establish a packet data network (PDN) connection.
- PDN packet data network
- the attachment 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.
- a mobile communication network such as 4G LTE, etc.
- the network device may return an attachment confirmation message to the modem to indicate that the network device accepts the attachment of the modem.
- the modem can attach to the network device based on the first network standard.
- the modem can send an attachment completion message to the network device to enable the terminal device to access the network, thereby facilitating normal data transmission and communication of the terminal device.
- the network of the first network standard is a network under the fourth generation mobile communication technology network standard, namely 4G LTE.
- the process of the modem sending an attachment request to the network device can be accompanied by the process of establishing a PDN connection, and the modem can allocate a resource identifier to identify the establishment of this PDN connection.
- 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, and prepare 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.
- 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 a 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.
- 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.
- 4G fourth-generation mobile communication technology network standard
- 5G fifth-generation mobile communication technology network standard
- SA standalone
- implementation method 2 is also applicable when a new PDN connection needs to be established after a fourth generation mobile communication technology network standard (4G) network (for example, an LTE network) is attached to a network device.
- 4G fourth generation mobile communication technology network standard
- a modem when a modem cannot 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 network attachment requests to a network device to access the network; as shown in FIG6 .
- AP application processor
- the wireless interface module here is the wireless interface layer in FIG3 .
- the method for notifying the wireless interface module in the application processor 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.
- the abnormal status message may not include a failure cause value.
- Fig. 6 shows a flow chart of a data service recovery method provided by the present application. As shown in Fig. 6, the method can be divided into two different stages, namely 2.1 first link establishment stage and 2.2 second link establishment stage.
- 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 resource identifier to be allocated; for example, S21-S23 as shown in FIG6 .
- the telephone service module sends an activation data request to the wireless interface module.
- the data activation request is used to indicate the opening or activation of a data service.
- the terminal device may display a startup interface, which may include a data activation control for activating or enabling a data service.
- the first interface may be the interface shown in FIG. 4
- the data activation control may be control 1001 in the interface shown in FIG. 4 ; after receiving an operation on control 1001 , the telephone service module in the terminal device may send an activation data request to the wireless interface module in response to the operation.
- the wireless interface module sends an activation data request to the modem.
- 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.
- the modem cannot obtain the resource identifier to be allocated.
- S23 is implemented in a similar manner to S11 in the embodiment shown in FIG5 , and will not be described in detail here.
- 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 as shown in Figure 6.
- AP application processor
- the modem sends an activation data response message to the wireless interface module.
- the activation data response message includes a failure reason value, which is used to indicate that the modem cannot obtain the 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.
- the wireless interface module sends an activation data response message to the telephone service module.
- 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.
- the telephone service module sends a restart request to the wireless interface module.
- the restart request is used to request the modem to restart.
- the telephone service module may send a restart request to the wireless interface module via the hardware abstraction layer interface definition language (HIDL).
- HIDL hardware abstraction layer interface definition language
- the telephone service module sends a restart request to the wireless interface module to prepare for the modem to restart.
- the wireless interface module sends a restart request to the modem.
- the modem sends a restart response message to the wireless interface module.
- S27, S28 and S29 are implemented in a similar manner to S14, S15 and S16 in the embodiment shown in FIG5 , and are not described in detail here.
- S30 The modem performs network registration with the network device.
- the number of resource identifiers reaches the preset number again, so that the modem can perform network registration with the network device.
- 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.
- the modem can complete the network registration between the network and the network device based on the second network standard.
- the network of the second network standard is a network under the fifth generation mobile communication technology network standard, that is, an SA network.
- the modem sends a data link establishment request to the network device.
- the modem can perform network registration with the network device.
- a data link establishment request can be sent to the network device, that is, the protocol data unit (PDU) session can be re-established.
- PDU protocol data unit
- the data link establishment request is used to instruct the modem to request to start a data transmission service.
- 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.
- 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 by the terminal device.
- the modem can allocate a resource identifier to identify the establishment of this PDU session.
- the modem after receiving the activation data request sent by the telephone service module through the wireless interface module, since 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, so as to prepare for the wireless interface module to trigger the restart of the modem; in this way, after receiving the activation data response message, the wireless interface module can upload the activation data response message to the telephone service module, and 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, and after receiving the restart request, the modem can restart based on the restart request so that the resource identifier is restored to the preset number, based on which, the modem can re-register with the network device and re-send
- Terminal devices can access networks of various network standards, and the way of accessing each network standard is different.
- 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.
- the terminal device may simultaneously adopt the embodiment shown in FIG. 5 and the embodiment shown in FIG. 6 to avoid the situation where the modem in the terminal device is unable to obtain the resource identifier to be allocated when accessing a 4G network and when accessing a 5G network, thereby preventing the terminal device from accessing the network.
- 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.
- 4G fourth generation mobile communication technology network standard
- the terminal device can select the embodiment shown in Figure 5.
- 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, changing 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.
- 4G fourth generation mobile communication technology network standard
- 5G fifth generation mobile communication technology network standard
- SA 5G independent networking
- the embodiment shown in FIG. 5 and the embodiment shown in FIG. 6 are not only applicable to the case where the modem cannot obtain the resource identifier to be allocated, so that the terminal device cannot access the network, but also applicable to the case where other modem abnormalities make the terminal device unable to access the network normally.
- the abnormal status message may indicate information corresponding to the abnormalities of other modems
- the activation data response message may include information corresponding to the abnormalities of other modems.
- FIG. 7 shows a flow chart of a data service recovery method provided in an embodiment of the present application.
- 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.
- the data service recovery method provided in the present application may include:
- a first message is sent to an application processor, where the first message is used to indicate that the modem cannot obtain the resource identifier to be allocated.
- the specific implementation of the first message can refer to the abnormal status message of S12 in Figure 5, and the relevant description of the activation data response message of S24-S25 in Figure 6.
- the specific implementation of S301 can refer to the relevant description of S11-S12 in Figure 5, and the relevant description of S21-S25 in Figure 6, which will not be repeated here.
- 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.
- the specific implementation of the second message can refer to 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 refer to 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.
- S303 can refer to 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.
- the modem 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.
- S304 can refer to 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.
- 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, and the modem can restart after receiving the second message.
- the resource identifier to be allocated can be restored to a 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, so that 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.
- the data service recovery method of the present application may further include:
- the modem receives a third message sent by the application processor, the third message being used to request the modem to activate data;
- 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 resource identifier to be allocated.
- the specific implementation of the third message can refer to the relevant description of the activation data request in S21-S22 in Figure 6.
- the specific implementation of the above steps can refer to the relevant description of S21-S25 in Figure 6, which will not be repeated here.
- 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, according to the first information in the first message used to indicate that the modem cannot obtain the resource identifier to be allocated, the second message for instructing the modem to restart is sent to the modem. After receiving the second message, the modem can restart, so that the terminal device can quickly access the network.
- the application processor includes a wireless interface module. If the modem cannot obtain the resource identifier to be allocated, the data service recovery method of the present application may further include:
- 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.
- the wireless interface module is the wireless interface layer in Figure 3.
- the application processor includes a telephone service module and a wireless interface module.
- the business recovery method may also include:
- the telephone service module sends a 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 a third message sent by the application processor
- sending a first message to the application processor includes:
- the application processor sends a second message to the modem in response to the first message, including:
- the telephone service module sends a second message to the modem through the wireless interface module in response to the first message.
- the specific implementation of the first interface can refer to the relevant description of the interface in Figure 4.
- the specific implementation of the first operation can refer to the relevant description of the operation on the control 1001 on the interface in Figure 4.
- the specific implementation of the above steps can refer to the relevant description of S21-S26 in Figure 6, which will not be repeated here.
- the data service recovery method of the present application may further include:
- the modem sends a first response message to the application processor, where the first response message is a response message to the second message.
- 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.
- the application processor includes a wireless interface module
- the data service recovery method of the present application may further include:
- the modem sends a first response message to the wireless interface module.
- the application processor includes a telephone service module and a wireless interface module
- the data service recovery method of the present application may further include:
- the modem sends a first response message to the telephone service module through the wireless interface module.
- the data service recovery method of the present application may also include:
- a fourth message is sent to the network device.
- a 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 a 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, the second response message being a response message to the fourth message, and the second response message being used to instruct the network device to accept 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.
- the specific implementation of the fourth message can refer to the relevant description of the attach request in S17 in Figure 5. Also, the specific implementation of the above steps can refer to the relevant description of S17 in Figure 5, which will not be repeated here.
- the data service recovery method of the present application can obtain the resource identifier to be allocated after the modem is restarted. And based on the resource identifier to be allocated, a data link is established with the network device. 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.
- the data service recovery method of the present application may also include:
- a sixth message is sent to the network device, where the sixth message is used to request a network based on a fifth generation mobile communication technology network standard to register with the network device;
- 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 the registration of the modem to the network device;
- the modem obtains the resource identifier to be allocated, and sends a seventh message to the network device based on the resource identifier to be allocated, where 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, 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;
- 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.
- the specific implementation of the sixth message can refer to the relevant description of network registration in S29 of Figure 6.
- the specific implementation of the seventh message can refer to the relevant description of data link establishment request in S31 of Figure 6.
- the specific implementation of the above steps can refer to the relevant description of S30-S31 in Figure 6, which will not be repeated here.
- the data service recovery method of the present application can obtain the resource identifier to be allocated after the modem is restarted, 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.
- 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.
- 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 foregoing embodiment.
- the present application provides a computer-readable storage medium, including a computer program, which, when executed on a terminal device, enables the terminal device to execute the data service recovery method in the foregoing embodiment.
- 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.
- all or part of the functions can be implemented by software, hardware, or a combination of software and hardware.
- software When implemented using software, 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.
- 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 can be accessed by a computer or a data storage device such as a server, a data center, etc.
- the available medium can be It may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
- a magnetic medium eg, a floppy disk, a hard disk, a magnetic tape
- an optical medium eg, a DVD
- a semiconductor medium eg, a solid state disk (SSD)
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请提供了一种数据业务恢复方法及终端设备,该方法应用于终端设备,终端设备包括应用处理器和调制解调器;该方法包括:在接入移动通信网络的过程中,若调制解调器无法获取待分配的资源标识,向应用处理器发送第一消息,第一消息用于指示调制解调器无法获取待分配的资源标识;应用处理器响应于第一消息,向调制解调器发送第二消息,第二消息用于指示调制解调器进行重启;调制解调器响应于第二消息进行重启;在调制解调器重启后,调制解调器获取待分配的资源标识,并基于待分配的资源标识接入移动通信网络。从而,本申请通过调制解调器重启,使得能够获取待分配的资源标识,并接入网络,保证了恢复数据业务的速度,提高了用户的使用体验。
Description
本申请要求于2023年06月16日提交国家知识产权局、申请号为202310724543.7、申请名称为“数据业务恢复方法及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及终端领域,具体涉及一种数据业务恢复方法及终端设备。
终端设备在每次接入网络时,都需要伴随数据链接的建立过程,数据链接建立完成后终端设备才能进行正常的数据传输与通信。
目前,终端设备在建立数据链接时,终端设备中的调制解调器(modem)需要分配一个资源标识,该资源标识用于标识此次数据链接建立的上下文信息;在断开数据链接时,modem可释放该资源标识;待分配的资源标识的数量通常是有限的。
然而,在一些情况下,modem无法获取到可用的资源标识,导致终端设备无法建立新的数据链接,无法接入移动通信网络,用户难以正常使用网络,影响用户的使用体验。
发明内容
本申请提供了一种数据业务恢复方法及终端设备,能够保证终端设备尽快恢复数据业务,用户尽快正常使用网络,提高用户体验感。
第一方面,本申请提供一种数据业务恢复方法,应用于终端设备,终端设备包括应用处理器和调制解调器;该方法包括:
在接入移动通信网络的过程中,若调制解调器无法获取待分配的资源标识,向应用处理器发送第一消息,第一消息用于指示调制解调器无法获取待分配的资源标识;
应用处理器响应于第一消息,向调制解调器发送第二消息,第二消息用于指示调制解调器进行重启;
调制解调器响应于第二消息进行重启;
在调制解调器重启后,调制解调器获取待分配的资源标识,并基于待分配的资源标识接入移动通信网络。
上述方法中,由于在调制解调器无法获取待分配的资源标识时,调制解调器无法与网络设备建立数据链接,终端设备无法接入网络,由此,可在调制解调器无法获取待分配的资源标识时,向应用处理器发送用于指示调制解调器无法获取待分配的资源标识第一消息,便于应用处理器在接收到第一消息时,确定调制解调器无法获取待分配的资源标识,从而,应用处理器能够向调制解调器发送用于指示调制解调器进行重启的第二消息,调制解调器在接收到第二消息后,可以进行重启,如此,待分配的资
源标识可以恢复到预设数量,调制解调器能够获取到待分配的资源标识,并基于待分配的资源标识接入移动通信网络,这样,终端设备可以尽快接入网络,便于终端设备可以尽快恢复正常的数据传输与通信。
结合第一方面,在第一方面的某些实现方式中,在接入移动通信网络的过程中,若调制解调器无法获取待分配的资源标识,向应用处理器发送第一消息,包括:
在接入移动通信网络的过程中,调制解调器接收应用处理器发送的第三消息,第三消息用于请求调制解调器激活数据;
响应于第三消息,若调制解调器无法获取待分配的资源标识,向应用处理器发送第一消息,第一消息包括第一信息,第一信息用于指示调制解调器无法获取待分配的资源标识。
上述方法中,通常,调制解调器在接收到用于调制解调器激活数据的第三消息时,可以启动接入网络,然而,在调制解调器无法获取待分配的资源标识时,调制解调器无法与网络设备建立数据链接,终端设备无法接入网络,由此,可在调制解调器无法获取待分配的资源标识时,向应用处理器发送第一消息,便于应用处理器在接收到第一消息时,根据第一消息中用于指示调制解调器无法获取待分配的资源标识的第一信息,向调制解调器发送用于指示调制解调器进行重启的第二消息,调制解调器在接收到第二消息后,可以进行重启,由此,终端设备可快速地接入网络。
结合第一方面,在第一方面的某些实现方式中,应用处理器包括无线接口模块,若调制解调器无法获取待分配的资源标识,向应用处理器发送第一消息,包括:
若调制解调器无法获取待分配的资源标识,向无线接口模块发送第一消息;
应用处理器响应于第一消息,向调制解调器发送第二消息,包括:
无线接口模块响应于第一消息,向调制解调器发送第二消息。
上述方法中,应用处理器可通过无线接口模块接收调制解调器发送的第一消息,并通过无线接口模块向调制解调器发送第二消息。
结合第一方面,在第一方面的某些实现方式中,应用处理器包括电话服务模块和无线接口模块,在接入移动通信网络的过程中,调制解调器接收应用处理器发送的第三消息,包括:
在接入移动通信网络的过程中,电话服务模块在接收到终端设备的第一界面上的第一操作后,通过无线接口模块向调制解调器发送第三消息,第一操作用于启动数据业务;
调制解调器接收应用处理器发送的第三消息;
响应于第三消息,若调制解调器无法获取待分配的资源标识,向应用处理器发送第一消息,包括:
响应于第三消息,若调制解调器无法获取待分配的资源标识,通过无线接口模块向电话服务模块发送第一消息;
应用处理器响应于第一消息,向调制解调器发送第二消息,包括:
电话服务模块响应于第一消息,通过无线接口模块向调制解调器发送第二消息。
上述方法中,应用处理器可在电话服务模块接收到第一操作后,通过无线接口模块向调制解调器发送第三消息,应用处理器还可在调制解调器无法获取待分配的资源
标识时,通过无线接口模块向电话服务模块发送第一消息,以及通过电话服务模块和无线接口模块向调制解调器发送第二消息。
结合第一方面,在第一方面的某些实现方式中,应用处理器响应于第一消息,向调制解调器发送第二消息之后,且调制解调器响应于第二消息进行重启之前,或者调制解调器响应于第二消息进行重启的过程中,该方法还包括:
调制解调器向应用处理器发送第一响应消息,第一响应消息为第二消息的响应消息。
上述方法中,调制解调器在接收到第二消息后,还可向应用处理器发送第一响应消息,便于应用处理器通过第一响应消息确认调制解调器已重启。
结合第一方面,在第一方面的某些实现方式中,应用处理器包括无线接口模块,调制解调器向应用处理器发送第一响应消息,包括:
调制解调器向无线接口模块发送第一响应消息。
上述方法中,调制解调器可向应用处理器中的无线接口模块发送第一响应消息。
结合第一方面,在第一方面的某些实现方式中,应用处理器包括电话服务模块和无线接口模块,调制解调器向应用处理器发送第一响应消息,包括:
调制解调器通过无线接口模块向电话服务模块发送第一响应消息。
上述方法中,调制解调器可通过无线接口模块向电话服务模块发送第一响应消息。
结合第一方面,在第一方面的某些实现方式中,在移动通信网络为第四代移动通信技术网络制式下的网络时,在调制解调器重启后,调制解调器获取待分配的资源标识,并基于待分配的资源标识接入移动通信网络,包括:
在调制解调器重启后,向网络设备发送第四消息,在发送第四消息的过程中,获取待分配的资源标识,并基于待分配的资源标识与网络设备建立数据链接,第四消息用于请求基于第四代移动通信技术网络制式下的网络附着到网络设备;
调制解调器接收网络设备发送的第二响应消息,第二响应消息为第四消息的响应消息,第二响应消息用于指示网络设备接受调制解调器的附着;
调制解调器向网络设备发送第五消息,第五消息为附着完成消息,第五消息用于指示终端设备接入移动通信网络。
上述方法中,调制解调器重启后,能够获取待分配的资源标识,并基于待分配的资源标识与网络设备建立数据链接,由此,在移动通信网络为第四代移动通信技术网络制式下的网络时,调制解调器可在附着到网络设备的过程中建立数据链接,再建立数据链接的方式接入移动通信网络。
结合第一方面,在第一方面的某些实现方式中,在移动通信网络为第五代移动通信技术网络制式下的网络时,在调制解调器重启后,调制解调器获取待分配的资源标识,并基于待分配的资源标识接入移动通信网络,包括:
在调制解调器重启后,向网络设备发送第六消息,第六消息用于请求基于第五代移动通信技术网络制式下的网络注册到网络设备;
调制解调器接收网络设备发送的第三响应消息,第三响应消息用于指示网络设备接受调制解调器注册到网络设备;
调制解调器获取待分配的资源标识,并基于待分配的资源标识向网络设备发送第
七消息,第七消息用于请求与网络设备建立数据链接;
调制解调器接收网络设备发送的第四响应消息,第四响应消息用于指示网络设备接受调制解调器与网络设备建立数据链接;
调制解调器向网络设备发送第八消息,第七消息为数据链接建立完成消息,第八消息用于指示终端设备接入移动通信网络。
上述方法中,调制解调器重启后,能够获取待分配的资源标识,并基于待分配的资源标识与网络设备建立数据链接,由此,在移动通信网络为第五代移动通信技术网络制式下的网络时,调制解调器可通过先与网络设备之间进行网络注册,再建立数据链接的方式接入移动通信网络。
第二方面,本申请提供一种终端设备,包括一个或多个处理器,存储器以及一个或多个计算机程序,其中一个或多个计算机程序存储在存储器上,当计算机程序被一个或多个处理器执行时,使得终端设备执行第一方面及第一方面任一种可能的实现方式中的数据业务恢复方法。
第三方面,本申请提供一种芯片系统,该芯片系统包括处理器,用于从存储器中调用并运行计算机程序,使得安装有芯片系统的终端设备执行第一方面及第一方面任一种可能的实现方式中的数据业务恢复方法。
第四方面,本申请提供一种计算机可读存储介质,包括计算机程序,当计算机程序在终端设备上运行时,使得终端设备执行第一方面及第一方面任一种可能的实现方式中的数据业务恢复方法。
第五方面,本申请提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行第一方面及第一方面任一种可能的实现方式中的数据业务恢复方法。
可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。
图1为本申请一实施例提供的一种终端设备与基站的关系示意图;
图2为本申请一实施例提供的一种终端设备的结构示意图;
图3为本申请一实施例提供的一种终端设备的软件系统与调制解调器的关系示意图;
图4为本申请一实施例提供的一种人机交互界面示意图;
图5为本申请一实施例提供的一种数据业务恢复方法的流程示意图;
图6为本申请一实施例提供的一种数据业务恢复方法的流程示意图;
图7为本申请一实施例提供的一种数据业务恢复方法的流程示意图。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”
一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,单独a,单独b或单独c中的至少一项(个),可以表示:单独a,单独b,单独c,组合a和b,组合a和c,组合b和c,或组合a、b和c,其中a,b,c可以是单个,也可以是多个。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性。
可以理解的是,终端设备中包括卡槽,该卡槽用于插入用户的用户识别模块(subscriber identity module,SIM)卡。终端设备中还包括与卡槽对应的调制解调器,用户识别模块卡可以通过调制解调器接入网络。
其中,调制解调器(modem)是一种网络接口设备,用于将数字信号转换为模拟信号,使其能够在移动通信网络上进行传输。
其中,用户识别模块卡可以通过调制解调器接入的网络可以为第五代移动通信技术(5th-generation mobile communication technology,5G)网络、第四代移动通信技术(4th-generation mobile communication technology,4G)、第三代移动通信技术(3rd-generation mobile communication technology,3G)、第二代移动通信技术(2-generation mobile communication technology,2G)中的一种或多种网络制式的网络。
并且,5G网络制式的网络可以为新空口(new radio,NR)网络,4G网络制式的网络可以为长期演进(long term evolution,LTE)网络,3G网络制式的网络可以为第三代无线通讯技术(wideband code division multiple access,WCDMA)网络,2G网络制式的网络可以为全球移动通讯系统(global system for mobile communications,GSM)网络。
图1示例性示出了本申请实施例适用的一种通信系统架构示意图,该通信系统可以包括终端设备100和基站200(网络设备)。
以终端设备100支持SIM卡1和SIM卡2为例,终端设备中还可包括两个调制解调器,分别为第一调制解调器(modem1)和第二调制解调器(modem2)。
SIM卡1可以通过modem1实现与基站200通信,来搜索网络并接入网络,SIM卡2可以通过modem2实现与基站200通信,来搜索网络并接入网络。
上述的modem1和modem2可以是终端设备100中的同一实体无线通信模块,这种情况下,SIM卡1和SIM卡2可共用该同一实体无线通信模块实现与基站200通信。
可选的,modem1和modem2也可以是终端设备100中的两个不同的实体无线通信模块,这种情况下,SIM卡1可通过实体的第一无线通信模块实现与基站200通信,SIM卡2可通过实体的第二无线通信模块实现与基站200通信。
由于终端设备在接入网络时,需要伴随数据链接的建立过程,数据链接建立完成后终端设备才能进行正常的数据传输与通信。
其中,终端设备在建立数据链接时,终端设备中的调制解调器(modem)需要分配一个资源标识,来标识此次数据链接的建立,在断开数据链接时,modem可释放该资源标识。
示例性地,在终端设备接入的网络为4G网络时,数据链接的建立过程为数据分组网络(packet data network,PDN)连接的建立过程,数据分组网络建立完成后终端设备才能进行数据传输与通信。
其中,数据分组网络也称为数据包网络,是一种分组交换的网络系统,用于与公网互联,为用户提供数据通道。
示例性地,在终端设备接入的网络为5G网络时,通过网络切片实现分离处理和数据传输,数据链接的建立过程为协议数据单元(protocol data unit,PDU)会话的建立过程,协议数据单元建立完成后终端设备才能进行数据传输与通信。
其中,协议数据单元也称为数据包单元,它是一个数据包的基本单位,是数据在网络中传输和处理的基本单元。
另外,资源标识分别与承载标识符(EPS Bearer ID,EBI)、分组交换会话标识符(packet-switched session Identity,PSI)一一对应。
EBI用于标识进化分组系统(evolved packet system,EPS)网络中的数据承载,是LTE网络的核心部分之一。在EPS网络中,每个数据承载都需要分配唯一的EBI。
PSI用于标识一个与PDN建立的连接。在移动网络中,每当建立一个PDN连接时,都需要分配一个唯一的PSI。PSI常与资源标识一起使用,在建立PDN连接时,资源标识和PSI通常会分别映射到数据承载的EBI和服务质量等级标识符(quality of service class Identifier,QCI)。
然而,待分配的资源标识的数量是预先设定的(例如,15个),在一些情况下,modem异常,例如,modem无法获取到可用的资源标识,导致终端设备在下次接入网络时,无法建立新的数据链接,无法接入网络,用户难以正常使用网络,影响用户的使用体验。
例如,modem异常还可以至少包括以下情况:
1、modem与AP之间的数据通道出现阻塞;
2、其他一些modem内部处理异常无法自行恢复。
面对上述问题,本申请可提供一种数据业务恢复方法、终端设备、芯片系统、计算机可读存储介质以及计算机程序产品,在确定调制解调器无法获取待分配的资源标识时,调制解调器可将无法获取待分配的资源标识的异常信息反馈到应用处理器,应用处理器响应于该异常信息可调用调制解调器向应用处理器提供的重启接口,触发调制解调器重启,来使得待分配的资源标识恢复到预设数量,便于调制解调器能够为下一次接入网络时分配资源标识,保证了数据业务能够尽快恢复,提高了用户的使用体验。
其中,上述的数据业务恢复方法应用于终端设备,终端设备可以为具有显示屏硬件以及相应软件支持的终端设备。
例如,终端设备可以为手机、平板电脑、车载设备、笔记本电脑、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、智能汽车、智能电视、机器人等设备。
需要指出的是,在一些可能的实现方式中,终端设备也可能称为电子设备、用户设备(user equipment,UE)等,本申请实施例对此不作限制。
为了便于说明,图2中,以终端设备100为手机为例进行示意。
如图2所示,终端设备100可以包括处理器101、通信模块102、显示屏103、调制解调器104、传感器105、内部存储器106、USB接口107、外部存储器接口108、充
电管理模块109、电源管理模块110、和电池111等。
其中,处理器101可以包括一个或多个处理单元,例如:处理器101可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器,图像信号处理器(image signal processor,ISP),控制器,存储器,视频流编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器101中。
控制器可以是终端设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器101中还可以设置存储器,用于存储指令和数据。
在一些实施例中,处理器101中的存储器为高速缓冲存储器。该存储器可以保存处理器101刚用过或循环使用的指令或数据。如果处理器101需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器101的等待时间,因而提高了系统的效率。
在一些实施例中,处理器101可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏103显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器101,与移动通信模块150或其他功能模块设置在同一个器件中。
通信模块102可以包括天线1和天线2,移动通信模块,和/或无线通信模块。
终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块的至少部分功能模块可以被设置于处理器101中。在一些实施例中,移动通信模块的至少部分功能模块可以与处理器101的至少部分模块被设
置在同一个器件中。
无线通信模块可以提供应用在终端设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器101。无线通信模块还可以从处理器101接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
其中,显示屏103用于显示人机交互界面中的图像或视频等。显示屏103包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emittingdiode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),MiniLED,MicroLED,Micro-OLED,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏103,N为大于1的正整数。
调制解调器(Modem)104用于将数字信号转换为模拟信号并发送到网络上,同时也可以接收并将网络上的模拟信号转换成数字信号。在终端设备中,调制解调器连接着移动通信网络运营商所提供的基站,并负责将终端设备(如手机等)生成的数字信号转换成适合无线传输的模拟信号,然后通过天线发射出去;同时也会把从基站接收到的模拟信号转换成数字信号,以便用户设备能够正确地解读和处理这些数据。调制解调器在移动通信技术中扮演着重要的角色,是实现数字数据与模拟信号之间相互转换的关键设备。无论是打电话、发短信还是上网,都需要调制解调器来连接到网络并实现数据的传输和接收。
充电管理模块109用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。
在一些有线充电的实施例中,充电管理模块109可以通过USB接口107接收有线充电器的充电输入。
在一些无线充电的实施例中,充电管理模块109可以通过终端设备100的无线充电线圈接收无线充电输入。充电管理模块109为电池111充电的同时,还可以通过电源管理模块110为终端设备100供电。
电源管理模块110用于连接电池111,充电管理模块109与处理器101。电源管理模块110接收电池111和/或充电管理模块109的输入,为处理器101,内部存储器106,外部存储器,和通信模块102等供电。电源管理模块110还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。
在其他一些实施例中,电源管理模块110也可以设置于处理器101中。
在另一些实施例中,电源管理模块110和充电管理模块109也可以设置于同一个器件中。
外部存储器接口108可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口108与处理器101通信,实现数据存储功能。例如将音乐,视频流等文件保存在外部存储卡中。
内部存储器106可以用于存储计算机可执行程序代码,可执行程序代码包括指令。处理器101通过运行存储在内部存储器106的指令,从而执行终端设备100的各种功能应用以及数据处理。内部存储器106可以包括存储程序区和存储数据区。
其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器106可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
终端设备100中的传感器105可以包括图像传感器、触摸传感器、压力传感器、陀螺仪传感器、气压传感器、磁传感器、加速度传感器、距离传感器、接近光传感器、环境光传感器、指纹传感器、温度传感器、骨传导传感器等部件,以实现对于不同信号的感应和/或获取功能。
可选地,终端设备100还可以包括外设设备,例如鼠标、按键、指示灯、键盘、扬声器、麦克风等。
按键包括开机键,音量键等。按键可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。
指示器可以是指示灯,可以用于指示充电状态和电量变化,也可以用于指示消息、未接来电、和通知等。
可以理解的是,本实施例示意的结构并不构成对终端设备100的具体限定。
在另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
请参考图3,为本申请实施例提供的一种终端设备的软件系统与调制解调器的关系示意图。本申请实施例提供的数据业务恢复方法应用于图2所示的终端设备100时,终端设备100中的软件系统可以划分为如图3所示的应用程序层201、应用程序框架层202、硬件抽象层(hardware abstraction layer,HAL)203、无线接口层(radio interface layer,RIL)204,以及驱动层205。其中,应用处理器(application processor,AP)是整个软件系统的核心,在前述不同的软件层次之间扮演链接和协调的角色。
应用程序层201中可以安装有多个应用程序,其中可以包括第一应用程序。例如,第一应用程序可以为网络设置应用程序(application,APP)。其中,网络设置应用程序用于实现开关数据业务。
应用程序框架层202可以包括电话服务模块(telephony)等。其中,电话服务模块用于提供开关数据业务相关的接口和功能,以便网络设置应用程序进行使用。
硬件抽象层203是一个位于操作系统内核与硬件电路之间的软件,通常用于将硬
件抽象化,以实现操作系统与硬件电路在逻辑层的交互。在本申请实施例中,硬件抽象层203可以包括能够实现相机应用程序与图像传感器在逻辑层交互的相机硬件抽象层(camera hardware abstraction layer,camera HAL)。
无线接口层204,主要负责处理与移动通信网络相关的请求和数据传输,包括与基带芯片通信、处理用户识别模块(subscriber identification module,SIM)卡和网络注册等工作。
驱动层205中可以安装有多个用于驱动硬件工作的驱动(driver)。
需要说明的是,应用程序层201、应用程序框架层202、硬件抽象层203、无线接口层204以及驱动层205中也可以包括其他内容,在此不做具体限定。
调制解调器(Modem)104可通过驱动层205与无线接口层(radio interface layer,RIL)204实现通信,或者调制解调器(Modem)104依次通过驱动层205、无线接口层(radio interface layer,RIL)204、硬件抽象层203与应用程序框架层202中的电话服务模块实现通信。
基于前述描述,结合图4,详细介绍终端设备实现本申请实施例的数据业务恢复方法的人机交互界面示意图。
为了便于说明,图4中,以终端设备为手机,手机的显示方向为竖屏方向为例进行示意。
请参阅图4,图4示出了本申请一实施例提供的人机交互界面示意图。
在接收到用户对图4所示的控件1001进行触发的操作后,手机的电话服务模块(telephony)可终端设备中的无线接口模块向终端设备中的调制解调器发送激活数据请求,若调制解调器无法获取待分配的资源标识,调制解调器可以确定调制解调器无法向网络设备发送数据链接请求,无法建立协议数据单元(protocol data unit,PDU)会话,进而无法接入网络。
其中,此处的无线接口模块为图3中的无线接口层。
基于此,调制解调器可通过无线接口模块向电话服务模块发送包括有用于指示调制解调器无法获取待分配的资源标识的激活数据响应消息,电话服务模块在接收到激活数据响应消息后,可通过无线接口模块向调制解调器发送重启请求,使得调制解调器在接收到重启请求后进行重启,调制解调器重启后,资源标识恢复到预设数量,如此,调制解调器可与网络设备执行网络注册过程,在网络注册后,向网络设备发送数据链接建立请求,调制解调器能够建立PDU会话,并为此次建立的PDU会话分配一个资源标识,由此,终端设备可以尽快接入网络,便于终端设备可以成功访问网络并与网络进行有效的通信。
下面,结合图5和图6,本申请以终端设备为例,结合附图和应用场景,对本申请实施例提供的数据业务恢复方法进行详细阐述。
下面,结合图5和图6,分别对本申请实施例提供的数据业务恢复方法的两种实现方式进行详细描述。
实现方式一
实现方式一适用于终端设备接入第四代移动通信技术网络制式(4G)网络,即LTE
attach(附着)场景。
示例性地,调制解调器(modem)在无法获取待分配的资源标识时,可通知应用处理器(application processor,AP)中的无线接口模块,由无线接口模块触发调制解调器重启,使得资源标识的数量重新达到预设数量,便于调制解调器能够恢复向网络设备发送网络附着请求来接入网络;如图5所示。
其中,此处的无线接口模块为图3中的无线接口层。
图5示出了本申请提供的一例数据业务恢复方法的流程示意图。如图5所示,该方法可以划分为两个不同的阶段,分别为1.1第一附着阶段和1.2第二附着阶段。
1.1第一附着阶段
其中,第一附着阶段可理解为由于调制解调器无法获取待分配的资源标识,调制解调器无法向网络设备发送附着请求的阶段;例如,如图5所示的S11。
S11、调制解调器无法获取待分配的资源标识。
终端设备接入网络时,需要先向网络设备发送附着请求,发送附着请求的过程需要伴随分组数据网络(packet data network,PDN)连接的建立过程。
其中,分组数据网络连接建立时,调制解调器需要分配一个资源标识,用于标识此次分组数据网络连接的建立的上下文信息;由于待分配的资源标识的数量为预设数量,在调制解调器内部出现异常的情况下,存在分配多个资源标识而没有释放的情况,使得调制解调器无法获取待分配的资源标识。
可以理解的是,调制解调器无法获取待分配的资源标识时,调制解调器无法向网络设备发送网络附着请求,无法建立分组数据网络连接,也无法接入网络。
在一些实施例中,待分配的资源标识的数量为预先设定的预设数量;例如,待分配的资源标识的数量取值范围为[0,14],即待分配的资源标识的数量为15个。
应理解,上述以待分配的资源标识的数量为15个进行举例描述;本申请对待分配的资源标识的数量不做限定。
在一些实施例中,在调制解调器属于MTK芯片平台时,资源标识为上下文信息ID(context ID)。
1.2第二附着阶段
其中,第二附着阶段可理解为应用处理器(application processor,AP)中的无线接口模块在确定调制解调器无法获取待分配的资源标识后,触发调制解调器重启,以使得调制解调器能够向网络设备发送网络附着请求的阶段;例如,如图5所示的S12-S17。
S12、调制解调器向无线接口模块发送异常状态消息。
其中,异常状态消息用于指示调制解调器无法获取待分配的资源标识。
另外,异常状态消息可以通过多种消息方式呈现。
在一些实施例中,调制解调器可向无线接口模块发送接口控制文件(interface control document,ICD),通过接口控制文件携带用于指示调制解调器无法获取待分配的资源标识的异常状态消息。
在另一些实施例中,调制解调器可向无线接口模块发送非请求结果码(unsolicited result code,URC),通过非请求结果码携带用于指示调制解调器无法获取待分配的资源标识的异常状态消息。
基于上述描述,调制解调器向无线接口模块发送用于指示调制解调器无法获取待分配的资源标识的异常状态消息,为无线接口模块触发调制解调器进行重启做好准备。
S13、无线接口模块对调制解调器发送异常状态消息进行解析处理。
可以理解的是,调制解调器通常可向无线接口模块发送多种类型的消息,因此,无线接口模块需要对调制解调器发送的消息进行解析处理,根据解析结果来确定调制解调器发送的消息属于哪一类型的消息。
由于当前调制解调器发送的消息为异常状态消息,无线接口模块对消息进行解析,可以确定该消息为用于指示调制解调器无法获取待分配的资源标识的异常状态消息,便于无线接口模块能够根据该异常状态消息触发调制解调器进行重启。
S14、无线接口模块向调制解调器发送重启请求。
其中,重启请求用于指示无线接口模块基于调制解调器向无线接口模块提供的重启接口,请求调制解调器进行重启。
另外,重启请求可以通过多种消息方式呈现。
在一些实施例中,无线接口模块可向调制解调器发送AT指令(AT command),通过AT指令携带重启请求。
在另一些实施例中,无线接口模块可向调制解调器发送控制接口(mediatek modem control interface,MIPC)消息,通过控制接口消息携带重启请求。
在另一些实施例中,无线接口模块可向调制解调器发送信息接口(qualcom message interface,QMI)消息,通过信息接口消息携带重启请求。
基于上述描述,无线接口模块能够向调制解调器发送重启请求,可为调制解调器进行重启做好准备。
S15、调制解调器向无线接口模块发送重启响应消息。
其中,重启响应消息用于指示调制解调器已接收到重启请求,准备重启。
在调制解调器接收到重启请求后,可向无线接口模块发送重启响应消息,来通知无线接口模块调制解调器已接收到重启请求,准备重启。
S16、调制解调器对调制解调器进行重启。
基于S14,调制解调器可接收到重启请求,从而,调制解调器可以基于该重启请求进行重启。
可以理解的是,调制解调器重启,可使得资源标识全部释放,调制解调器重启后,资源标识的数量可重新达到预设数量。
可以理解的是,调制解调器进行重启,可使得资源标识全部释放,并恢复到预设数量。
其中,S15和S16在时序上不分先后,调制解调器可顺序执行S15和S16,也可同时执行S15和S16。
S17、调制解调器向网络设备发送附着请求。
基于S16,调制解调器重启后,资源标识的数量重新达到预设数量,调制解调器可以向网络设备发送网络附着请求,也可以重新建立数据分组网络(packet data network,PDN)连接。
其中,附着请求用于通过移动通信网络(如4G LTE等)请求连接到网络设备,并获取该网络设备提供的资源和服务。
在一些实施例中,网络设备在接收到附着请求后,可向调制解调器返回附着确认消息,用于指示网络设备接受调制解调器的附着,由此,调制解调器可基于第一网络制式的网络附着到网络设备,调制解调器可向网络设备发送附着完成消息,以使得终端设备接入网络,便于终端设备进行正常的数据传输与通信。
在一些实施例中,第一网络制式的网络为第四代移动通信技术网络制式下的网络,即4G LTE。
可以理解的是,由于调制解调器重启后,资源标识的数量重新达到预设数量,那么,调制解调器向网络设备发送附着请求的过程中,能够伴随PDN连接的建立过程,调制解调器能够分配一个资源标识,用来标识此次PDN连接的建立。
本申请中,在调制解调器无法获取待分配的资源标识时,终端设备中的调制解调器可以确定调制解调器无法向网络设备发送网络附着请求,无法建立分组数据网络连接,也无法接入网络;从而,终端设备中的调制解调器可向无线接口模块发送用于指示调制解调器无法获取待分配的资源标识的异常状态消息,为无线接口模块触发调制解调器的重启做好准备;如此,无线接口模块在接收到异常状态消息后,可向调制解调器发送重启请求,调制解调器在接收到重启请求后,可以基于该重启请求进行重启,使得资源标识恢复到预设数量,基于此,调制解调器可再次向网络设备发送附着请求,并在发送附着请求的过程中,能够伴随PDN连接的建立,以及调制解调器能够成功为此次PDN连接的建立分配一个资源标识,由此,终端设备可以尽快接入网络,便于终端设备可以尽快恢复正常的数据传输与通信。
实现方式二
实现方式二适用于终端设备接入第四代移动通信技术网络制式(4G)网络、第五代移动通信技术网络制式(5G)网络(例如,5G独立组网(standalone,SA))、无法激活数据业务或其他类型的建立数据链接场景。
可以理解的是,第四代移动通信技术网络制式(4G)网络(例如,LTE网络)附着到网络设备后,需要另外再建立新的PDN连接的情况下,也适用于实现方式二。
示例性地,调制解调器(modem)在无法获取待分配的资源标识时,可通知应用处理器(application processor,AP)中的无线接口模块,由无线接口模块触发调制解调器重启,使得资源标识的数量重新达到预设数量,便于调制解调器能够恢复向网络设备发送网络附着请求来接入网络;如图6所示。
其中,此处的无线接口模块为图3中的无线接口层。
需要说明的是,实现方式二中,调制解调器(modem)在无法获取待分配的资源标识时,通知应用处理器(application processor,AP)中的无线接口模块的方式可采用实现方式二中发送激活数据响应消息的方式,还可以采用实现方式一中发送异常状态消息的方式,采用实现方式一中发送异常状态消息的方式时,异常状态消息中可不包括失败原因值。
图6示出了本申请提供的一例数据业务恢复方法的流程示意图。如图6所示,该方法可以划分为两个不同的阶段,分别为2.1第一链接建立阶段和2.2第二链接建立阶段。
2.1第一链接建立阶段
其中,第一链接建立阶段可理解为由于调制解调器无法获取待分配的资源标识,调制解调器无法与网络设备建立数据链接的阶段;例如,如图6所示的S21-S23。
S21、电话服务模块向无线接口模块发送激活数据请求。
其中,激活数据请求用于指示开通或启用数据业务。
在一些实施例中,终端设备可以显示一个启动界面,启动界面中可以包括数据激活控件,该数据激活控件用于开通或启用数据业务。
例如,第一界面可以为图4所示的界面,数据激活控件可以为图4所示的界面中的控件1001;终端设备中的电话服务模块在接收到控件1001上的操作后,可响应于该操作,向无线接口模块发送激活数据请求。
应理解,上述以图4所示的界面为启动界面,数据激活控件为控件1001进行举例描述;本申请对启动界面的具体实现方式不做限定。本申请对数据激活控件的显示位置、显示样式、显示大小等参数不做限定。
S22、无线接口模块向调制解调器发送激活数据请求。
基于S21,无线接口模块可接收到电话服务模块发送的激活数据请求,从而,无线接口模块可继续将该激活数据请求下传,即向调制解调器发送激活数据请求,便于调制解调器基于该激活数据请求向网络设备发送数据链接请求,以使得终端设备接入网络。
S23、调制解调器无法获取待分配的资源标识。
其中,S23与图5所示实施例中的S11实现方式类似,此处不再赘述。
2.2第二链接建立阶段
其中,第二链接建立阶段可理解为应用处理器(application processor,AP)中的无线接口模块在确定调制解调器无法获取待分配的资源标识后,触发调制解调器重启,以使得调制解调器能够向网络设备发送数据链接建立请求的阶段;例如,如图6所示的S24-S31。
S24、调制解调器向无线接口模块发送激活数据响应消息。
其中,激活数据响应消息中包括有失败原因值,失败原因值用于表示调制解调器无法获取待分配的资源标识,无法向网络设备发送数据链接请求,无法建立分组数据网络连接,也无法接入网络。
S25、无线接口模块向电话服务模块发送激活数据响应消息。
基于S24,无线接口模块可接收到调制解调器发送的激活数据响应消息,从而,无线接口模块可继续将激活数据响应消息上传,即向电话服务模块发送激活数据响应消息,便于电话服务模块基于该激活数据响应消息向调制解调器发送重启请求,来重启调制解调器。
S26、电话服务模块向无线接口模块发送重启请求。
其中,重启请求用于请求调制解调器进行重启。
在一些实施例中,电话服务模块可通过硬件抽象接口层接口定义语言(hardware abstraction layer interface definition language,HIDL)向无线接口模块发送重启请求。
基于上述描述,电话服务模块向无线接口模块发送重启请求,可为调制解调器进行重启做好准备。
S27、无线接口模块向调制解调器发送重启请求。
S28、调制解调器向无线接口模块发送重启响应消息。
S29、调制解调器对调制解调器进行重启。
其中,S27、S28和S29与图5所示实施例中的S14、S15和S16实现方式类似,此处不再赘述。
S30、调制解调器进行与网络设备之间的网络注册。
基于S29,调制解调器重启后,资源标识的数量重新达到预设数量,从而,调制解调器可进行与网络设备之间的网络注册。
在一些实施例中,网络注册过程可以包括:调制解调器向网络设备发送注册请求,网络设备在接受到注册请求后,可向调制解调器返回用于指示网络设备接受调制解调器注册到网络设备的响应消息,由此,调制解调器可基于第二网络制式的网络与网络设备之间完成网络注册。
在一些实施例中,第二网络制式的网络为第五代移动通信技术网络制式下的网络,即SA网络。
S31、调制解调器向网络设备发送数据链接建立请求。
基于S29,调制解调器重启后,资源标识的数量重新达到预设数量,调制解调器能够进行与网络设备之间的网络注册,在网络注册完成后,可以向网络设备发送数据链接建立请求,即可以重新建立协议数据单元(protocol data unit,PDU)会话。
其中,数据链接建立请求用于指示调制解调器请求启动数据传输业务。
在一些实施例中,网络设备在接收到数据链接建立请求后,可向调制解调器返回链接建立确认消息,来确认网络设备接受调制解调器与网络设备建立数据链接,由此,调制解调器可与网络设备建立数据链接,并向网络设备发送链接建立完成消息,从而终端设备可接入网络,便于终端设备进行正常的数据传输与通信。
可以理解的是,由于调制解调器重启后,资源标识的数量重新达到预设数量,那么,调制解调器向网络设备发送数据链接建立请求,从而建立PDU会话,从而,调制解调器能够分配一个资源标识,用来标识此次PDU会话的建立。
本申请中,在接收到电话服务模块通过无线接口模块发送的激活数据请求后,由于终端设备中的调制解调器无法获取待分配的资源标识,调制解调器可以确定调制解调器无法向网络设备发送数据链接请求,无法建立PDU会话,也无法接入网络;从而,终端设备中的调制解调器可向无线接口模块发送用于指示调制解调器无法获取待分配的资源标识的激活数据响应消息,为无线接口模块触发调制解调器的重启做好准备;如此,无线接口模块在接收到激活数据响应消息后,可向电话服务模块上传该激活数据响应消息,由此,电话服务模块在接收到该激活数据响应消息后,可通过无线接口模块向调制解调器发送重启请求,调制解调器在接收到重启请求后,可以基于该重启请求进行重启,使得资源标识恢复到预设数量,基于此,调制解调器可与网络设备之间再次进行网络注册,并再次向网络设备发送数据链接建立请求,来建立PDU会话,以及调制解调器能够成功为此次PDU会话的建立分配一个资源标识,由此,终端设备可以尽快接入网络,便于终端设备可以尽快恢复正常的数据传输与通信。
终端设备可以接入多种网络制式的网络,且接入每种网络制式的网络的方式不同。
基于此,终端设备可采用图5所示的实施例,接入第四代移动通信技术网络制式(4G)网络。终端设备可采用图6所示的实施例,接入第五代移动通信技术网络制式(5G)网络。
终端设备可同时采用图5所示的实施例,以及图6所示的实施例,来避免终端设备中的调制解调器在接入4G网络,以及在接入5G网络时调制解调器无法获取待分配的资源标识,使得终端设备无法接入网络的情况。
考虑到终端设备可接入第四代移动通信技术网络制式(4G)网络,即LTE attach(附着)场景,调制解调器无法获取待分配的资源标识,调制解调器无法向网络设备发送附着请求,终端设备可选择图5所示的实施例。
考虑到终端设备可接入第四代移动通信技术网络制式(4G)网络(例如,需要再建立一个PDN连接,例如,更改网络接入技术(access point name,APN))或第五代移动通信技术网络制式(5G)网络(即非LTE attach场景,例如,5G独立组网(standalone,SA)),调制解调器无法获取待分配的资源标识,调制解调器无法向网络设备发送数据链接请求,终端设备可选择图6所示的实施例。
需要说明的是,图5所示的实施例,以及图6所示的实施例,不仅适用于调制解调器无法获取待分配的资源标识,使得终端设备无法接入网络的情况,还适用于其他调制解调器异常,使得终端设备无法正常接入网络的情况。在图5所示的实施例适用于其他调制解调器异常无法正常接入网络的情况时,异常状态消息可指示与其他调制解调器异常对应的信息,图6所示的实施例适用于其他调制解调器异常无法正常接入网络的情况时,激活数据响应消息可包括与其他调制解调器异常对应的信息。
基于前述的一些实施例,下面介绍本申请提供的数据业务恢复方法。
请参阅图7,图7示出了本申请实施例提供的数据业务恢复方法的流程示意图。
如图7所示,本申请提供一种数据业务恢复方法,应用于终端设备,终端设备包括应用处理器和调制解调器。
如图7所示,本申请提供的数据业务恢复方法可以包括:
S301、在接入移动通信网络的过程中,若调制解调器无法获取待分配的资源标识,向应用处理器发送第一消息,第一消息用于指示调制解调器无法获取待分配的资源标识。
其中,第一消息的具体实现方式可参见图5中S12的异常状态消息,以及图6中的S24-S25的激活数据响应消息的相关描述。S301的具体实现方式可参见图5中的S11-S12的相关描述,以及图6中的S21-S25的相关描述,此处不做赘述。
S302、应用处理器响应于第一消息,向调制解调器发送第二消息,第二消息用于指示调制解调器进行重启。
其中,第二消息的具体实现方式可参见图5中S14的重启请求,以及图6中的S22的激活数据响应消息的相关描述。S302的具体实现方式可参见图5中的S13-S14的相关描述,以及图6中的S26-S27的相关描述,此处不做赘述。
S303、调制解调器响应于第二消息进行重启。
其中,S303的具体实现方式可参见图5中的S16的相关描述,以及图6中的S29的相关描述,此处不做赘述。
S304、在调制解调器重启后,调制解调器获取待分配的资源标识,并基于待分配的资源标识接入移动通信网络。
其中,S304的具体实现方式可参见图5中的S17的相关描述,以及图6中的S30-S31的相关描述,此处不做赘述。
本申请中,由于在调制解调器无法获取待分配的资源标识时,调制解调器无法与网络设备建立数据链接,终端设备无法接入网络,由此,可在调制解调器无法获取待分配的资源标识时,向应用处理器发送用于指示调制解调器无法获取待分配的资源标识第一消息,便于应用处理器在接收到第一消息时,确定调制解调器无法获取待分配的资源标识,从而,应用处理器能够向调制解调器发送用于指示调制解调器进行重启的第二消息,调制解调器在接收到第二消息后,可以进行重启,如此,待分配的资源标识可以恢复到预设数量,调制解调器能够获取到待分配的资源标识,并基于待分配的资源标识接入移动通信网络,这样,终端设备可以尽快接入网络,便于终端设备可以尽快恢复正常的数据传输与通信。
在一些实施例中,本申请的数据业务恢复方法还可以包括:
在接入移动通信网络的过程中,调制解调器接收应用处理器发送的第三消息,第三消息用于请求调制解调器激活数据;
响应于第三消息,若调制解调器无法获取待分配的资源标识,向应用处理器发送第一消息,第一消息包括第一信息,第一信息用于指示调制解调器无法获取待分配的资源标识。
其中,第三消息的具体实现方式可参见图6中S21-S22的激活数据请求的相关描述。并且,上述步骤的具体实现方式可参见图6中的S21-S25的相关描述,此处不做赘述。
本申请的数据业务恢复方法,在调制解调器无法获取待分配的资源标识时,调制解调器无法与网络设备建立数据链接,终端设备无法接入网络,由此,可在调制解调器无法获取待分配的资源标识时,向应用处理器发送第一消息,便于应用处理器在接收到第一消息时,根据第一消息中用于指示调制解调器无法获取待分配的资源标识的第一信息,向调制解调器发送用于指示调制解调器进行重启的第二消息,调制解调器在接收到第二消息后,可以进行重启,由此,终端设备可快速地接入网络。
在一些实施例中,应用处理器包括无线接口模块,若调制解调器无法获取待分配的资源标识,本申请的数据业务恢复方法还可以包括:
若调制解调器无法获取待分配的资源标识,向无线接口模块发送第一消息;
应用处理器响应于第一消息,向调制解调器发送第二消息,包括:
无线接口模块响应于第一消息,向调制解调器发送第二消息。
其中,无线接口模块为图3中的无线接口层。
其中,上述步骤的具体实现方式可参见图5中的S11-S14的相关描述,以及图6中的S23-S25的相关描述,此处不做赘述。
在一些实施例中,应用处理器包括电话服务模块和无线接口模块,本申请的数据
业务恢复方法还可以包括:
在接入移动通信网络的过程中,电话服务模块在接收到终端设备的第一界面上的第一操作后,通过无线接口模块向调制解调器发送第三消息,第一操作用于启动数据业务;
调制解调器接收应用处理器发送的第三消息;
响应于第三消息,若调制解调器无法获取待分配的资源标识,向应用处理器发送第一消息,包括:
响应于第三消息,若调制解调器无法获取待分配的资源标识,通过无线接口模块向电话服务模块发送第一消息;
应用处理器响应于第一消息,向调制解调器发送第二消息,包括:
电话服务模块响应于第一消息,通过无线接口模块向调制解调器发送第二消息。
其中,第一界面的具体实现方式可参见图4中的界面的相关描述。第一操作的具体实现方式可参见图4中的界面上对控件1001上的操作的相关描述。上述步骤的具体实现方式可参见图6中的S21-S26的相关描述,此处不做赘述。
在一些实施例中,本申请的数据业务恢复方法还可以包括:
调制解调器向应用处理器发送第一响应消息,第一响应消息为第二消息的响应消息。
本申请的数据业务恢复方法,通过向应用处理器发送第一响应消息,来通知应用处理器,调制解调器已接收到重启请求,准备重启。
在一些实施例中,应用处理器包括无线接口模块,本申请的数据业务恢复方法还可以包括:
调制解调器向无线接口模块发送第一响应消息。
其中,上述步骤的具体实现方式可参见图5中的S15的相关描述,此处不做赘述。
在一些实施例中,应用处理器包括电话服务模块和无线接口模块,本申请的数据业务恢复方法还可以包括:
调制解调器通过无线接口模块向电话服务模块发送第一响应消息。
其中,上述步骤的具体实现方式可参见图6中的S28的相关描述,此处不做赘述。
在一些实施例中,在移动通信网络为第四代移动通信技术网络制式下的网络时,本申请的数据业务恢复方法还可以包括:
在调制解调器重启后,向网络设备发送第四消息,在发送第四消息的过程中,获取待分配的资源标识,并基于待分配的资源标识与网络设备建立数据链接,第四消息用于请求基于第四代移动通信技术网络制式下的网络附着到网络设备;
调制解调器接收网络设备发送的第二响应消息,第二响应消息为第四消息的响应消息,第二响应消息用于指示网络设备接受调制解调器的附着;
调制解调器向网络设备发送第五消息,第五消息为附着完成消息,第五消息用于指示终端设备接入移动通信网络。
其中,第四消息的具体实现方式可参见图5中S17的附着请求的相关描述。并且,上述步骤的具体实现方式可参见图5中的S17的相关描述,此处不做赘述。
本申请的数据业务恢复方法,调制解调器重启后,能够获取待分配的资源标识,
并基于待分配的资源标识与网络设备建立数据链接,由此,在移动通信网络为第四代移动通信技术网络制式下的网络时,调制解调器可在附着到网络设备的过程中建立数据链接,来接入移动通信网络。
在一些实施例中,在移动通信网络为第五代移动通信技术网络制式下的网络时,本申请的数据业务恢复方法还可以包括:
在调制解调器重启后,向网络设备发送第六消息,第六消息用于请求基于第五代移动通信技术网络制式下的网络注册到网络设备;
调制解调器接收网络设备发送的第三响应消息,第三响应消息用于指示网络设备接受调制解调器注册到网络设备;
调制解调器获取待分配的资源标识,并基于待分配的资源标识向网络设备发送第七消息,第七消息用于请求与网络设备建立数据链接;
调制解调器接收网络设备发送的第四响应消息,第四响应消息用于指示网络设备接受调制解调器与网络设备建立数据链接;
调制解调器向网络设备发送第八消息,第八消息为数据链接建立完成消息,第七消息用于指示终端设备接入移动通信网络。
其中,第六消息的具体实现方式可参见图6中S29的网络注册的相关描述。第七消息的具体实现方式可参见图6中S31的数据链接建立请求的相关描述.并且,上述步骤的具体实现方式可参见图6中的S30-S31的相关描述,此处不做赘述。
本申请的数据业务恢复方法,调制解调器重启后,能够获取待分配的资源标识,并基于待分配的资源标识与网络设备建立数据链接,由此,在移动通信网络为第五代移动通信技术网络制式下的网络时,调制解调器可通过先与网络设备之间进行网络注册,再建立数据链接的方式接入移动通信网络。
示例性地,本申请提供一种终端设备,包括一个或多个处理器,存储器以及一个或多个计算机程序,其中一个或多个计算机程序存储在存储器上,当计算机程序被一个或多个处理器执行时,使得终端设备执行前文实施例中的数据业务恢复方法。
示例性地,本申请提供一种芯片系统,该芯片系统包括处理器,用于从存储器中调用并运行计算机程序,使得安装有芯片系统的终端设备执行前文实施例中的数据业务恢复方法。
示例性地,本申请提供一种计算机可读存储介质,包括计算机程序,当计算机程序在终端设备上运行时,使得终端设备执行实现前文实施例中的数据业务恢复方法。
示例性地,本申请提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行前文实施例中的数据业务恢复方法。
在上述实施例中,全部或部分功能可以通过软件、硬件、或者软件加硬件的组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机代码或指令。在计算机上加载和执行计算机程序代码或指令时,全部或部分地产生按照本申请的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机代码或指令可以存储在计算机可读存储介质中。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以
是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:只读存储器(read only memory,ROM)或随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可存储程序代码的介质。最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (12)
- 一种数据业务恢复方法,其特征在于,应用于终端设备,所述终端设备包括应用处理器和调制解调器;所述方法包括:在接入移动通信网络的过程中,若所述调制解调器无法获取待分配的资源标识,向所述应用处理器发送第一消息,所述第一消息用于指示所述调制解调器无法获取待分配的资源标识;所述应用处理器响应于所述第一消息,向所述调制解调器发送第二消息,所述第二消息用于指示所述调制解调器进行重启;所述调制解调器响应于所述第二消息进行重启;在所述调制解调器重启后,所述调制解调器获取所述待分配的资源标识,并基于所述待分配的资源标识接入所述移动通信网络。
- 根据权利要求1所述的方法,其特征在于,所述在接入移动通信网络的过程中,若所述调制解调器无法获取待分配的资源标识,向所述应用处理器发送第一消息,包括:在接入所述移动通信网络的过程中,所述调制解调器接收所述应用处理器发送的第三消息,所述第三消息用于请求所述调制解调器激活数据;响应于所述第三消息,若所述调制解调器无法获取所述待分配的资源标识,向所述应用处理器发送所述第一消息,所述第一消息包括第一信息,所述第一信息用于指示所述调制解调器无法获取待分配的资源标识。
- 根据权利要求1或2所述的方法,其特征在于,所述应用处理器包括无线接口模块,若所述调制解调器无法获取待分配的资源标识,向所述应用处理器发送第一消息,包括:若所述调制解调器无法获取待分配的资源标识,向所述无线接口模块发送第一消息;所述应用处理器响应于所述第一消息,向所述调制解调器发送第二消息,包括:所述无线接口模块响应于所述第一消息,向所述调制解调器发送第二消息。
- 根据权利要求2所述的方法,其特征在于,所述应用处理器包括电话服务模块和无线接口模块,所述在接入所述移动通信网络的过程中,所述调制解调器接收所述应用处理器发送的第三消息,包括:在接入所述移动通信网络的过程中,所述电话服务模块在接收到所述终端设备的第一界面上的第一操作后,通过所述无线接口模块向所述调制解调器发送所述第三消息,所述第一操作用于启动数据业务;所述调制解调器接收所述应用处理器发送的所述第三消息;响应于所述第三消息,若所述调制解调器无法获取所述待分配的资源标识,向所述应用处理器发送所述第一消息,包括:响应于所述第三消息,若所述调制解调器无法获取所述待分配的资源标识,通过所述无线接口模块向所述电话服务模块发送所述第一消息;所述应用处理器响应于所述第一消息,向所述调制解调器发送第二消息,包括:所述电话服务模块响应于所述第一消息,通过所述无线接口模块向所述调制解调 器发送所述第二消息。
- 根据权利要求1至4中任一项所述的方法,其特征在于,所述应用处理器响应于所述第一消息,向所述调制解调器发送第二消息之后,且所述调制解调器响应于所述第二消息进行重启之前,或者所述调制解调器响应于所述第二消息进行重启的过程中,所述方法还包括:所述调制解调器向所述应用处理器发送第一响应消息,所述第一响应消息为所述第二消息的响应消息。
- 根据权利要求5所述的方法,所述应用处理器包括无线接口模块,所述调制解调器向所述应用处理器发送第一响应消息,包括:所述调制解调器向所述无线接口模块发送所述第一响应消息。
- 根据权利要求5所述的方法,所述应用处理器包括电话服务模块和无线接口模块,所述调制解调器向所述应用处理器发送第一响应消息,包括:所述调制解调器通过所述无线接口模块向所述电话服务模块发送所述第一响应消息。
- 根据权利要求1至7中任一项所述的方法,其特征在于,在所述移动通信网络为第四代移动通信技术网络制式下的网络时,在所述调制解调器重启后,所述调制解调器获取所述待分配的资源标识,并基于所述待分配的资源标识接入所述移动通信网络,包括:在所述调制解调器重启后,向网络设备发送第四消息,在发送所述第四消息的过程中,获取所述待分配的资源标识,并基于所述待分配的资源标识与所述网络设备建立数据链接,所述第四消息用于请求基于所述第四代移动通信技术网络制式下的网络附着到所述网络设备;所述调制解调器接收所述网络设备发送的第二响应消息,所述第二响应消息为所述第四消息的响应消息,所述第二响应消息用于指示所述网络设备接受所述调制解调器的附着;所述调制解调器向所述网络设备发送第五消息,所述第五消息为附着完成消息,所述第五消息用于指示所述终端设备接入所述移动通信网络。
- 根据权利要求1至7任一项所述的方法,其特征在于,在所述移动通信网络为第五代移动通信技术网络制式下的网络时,在所述调制解调器重启后,所述调制解调器获取所述待分配的资源标识,并基于所述待分配的资源标识接入所述移动通信网络,包括:在所述调制解调器重启后,向网络设备发送第六消息,所述第六消息用于请求基于所述第五代移动通信技术网络制式下的网络注册到所述网络设备;所述调制解调器接收所述网络设备发送的第三响应消息,所述第三响应消息用于指示所述网络设备接受所述调制解调器注册到所述网络设备;所述调制解调器获取所述待分配的资源标识,并基于所述待分配的资源标识向所述网络设备发送第七消息,所述第七消息用于请求与所述网络设备建立数据链接;所述调制解调器接收所述网络设备发送的第四响应消息,所述第四响应消息用于指示所述网络设备接受所述调制解调器与所述网络设备建立数据链接;所述调制解调器向所述网络设备发送第八消息,所述第八消息为数据链接建立完成消息,所述第七消息用于指示所述终端设备接入所述移动通信网络。
- 一种终端设备,其特征在于,包括:一个或多个处理器,存储器,以及一个或多个计算机程序;其中,所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述终端设备执行如权利要求1至9中任一项所述的数据业务恢复方法。
- 一种芯片系统,其特征在于,所述芯片系统包括处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片系统的终端设备执行如权利要求1至9中任一项所述的数据业务恢复方法。
- 一种计算机可读存储介质,包括计算机程序,其特征在于,当所述计算机程序在终端设备上运行时,使得所述终端设备执行如权利要求1至9中任一项所述的数据业务恢复方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310724543.7 | 2023-06-16 | ||
| CN202310724543.7A CN119155711A (zh) | 2023-06-16 | 2023-06-16 | 数据业务恢复方法及终端设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024255337A1 true WO2024255337A1 (zh) | 2024-12-19 |
Family
ID=93814590
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/080040 Ceased WO2024255337A1 (zh) | 2023-06-16 | 2024-03-05 | 数据业务恢复方法及终端设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN119155711A (zh) |
| WO (1) | WO2024255337A1 (zh) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103227984A (zh) * | 2013-04-02 | 2013-07-31 | 广东欧珀移动通信有限公司 | 通用无线分组业务恢复方法、装置及移动终端 |
| CN105376788A (zh) * | 2015-11-24 | 2016-03-02 | 广东欧珀移动通信有限公司 | 一种网络通信功能异常的处理方法、装置及移动终端 |
| CN113676894A (zh) * | 2020-05-14 | 2021-11-19 | 成都鼎桥通信技术有限公司 | 业务处理方法及设备 |
| WO2022177354A1 (en) * | 2021-02-20 | 2022-08-25 | Samsung Electronics Co., Ltd. | Method and device for continuity of modem service |
-
2023
- 2023-06-16 CN CN202310724543.7A patent/CN119155711A/zh active Pending
-
2024
- 2024-03-05 WO PCT/CN2024/080040 patent/WO2024255337A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103227984A (zh) * | 2013-04-02 | 2013-07-31 | 广东欧珀移动通信有限公司 | 通用无线分组业务恢复方法、装置及移动终端 |
| CN105376788A (zh) * | 2015-11-24 | 2016-03-02 | 广东欧珀移动通信有限公司 | 一种网络通信功能异常的处理方法、装置及移动终端 |
| CN113676894A (zh) * | 2020-05-14 | 2021-11-19 | 成都鼎桥通信技术有限公司 | 业务处理方法及设备 |
| WO2022177354A1 (en) * | 2021-02-20 | 2022-08-25 | Samsung Electronics Co., Ltd. | Method and device for continuity of modem service |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119155711A (zh) | 2024-12-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP4142349B1 (en) | Gap configuration method, ue, and network device | |
| CN110896528B (zh) | 操作电子装置的功能和资源的方法 | |
| US11874743B2 (en) | Method for handling trusted execution environment operating system crash and electronic device | |
| CN109788546B (zh) | 一种定时提前信息的传输方法、网络设备及终端 | |
| CN107438243B (zh) | 一种网络注册方法、车辆装置及计算机可读存储介质 | |
| US20250324242A1 (en) | Information processing method and apparatus, communication device, and storage medium | |
| CN114828126B (zh) | 一种被叫寻呼方法和装置 | |
| CN111277998B (zh) | 一种无线通信方法及终端设备 | |
| US12199913B2 (en) | Control resource set processing method, device, and computer storage medium | |
| WO2021104114A1 (zh) | 一种提供无线保真WiFi网络接入服务的方法及电子设备 | |
| CN112954823B (zh) | 重建数据连接的方法、终端设备及存储介质 | |
| CN112469014A (zh) | 配置蓝牙连接参数的方法和电子设备 | |
| CN109587704B (zh) | 信息传输方法、终端、网络设备及计算机可读存储介质 | |
| US12262394B2 (en) | Network switching method | |
| CN114980045B (zh) | 蓝牙连接方法及电子设备 | |
| CN110621034A (zh) | 一种传输控制方法、装置及系统 | |
| CN119155711A (zh) | 数据业务恢复方法及终端设备 | |
| CN115884140B (zh) | 跨设备连接方法、电子设备及存储介质 | |
| CN113543166B (zh) | 一种状态通知方法、设备及系统 | |
| CN116709393B (zh) | 蜂窝数据业务激活失败时的恢复方法及电子设备 | |
| CN107438242B (zh) | 一种网络注册方法、单车装置及计算机可读存储介质 | |
| CN117135618B (zh) | 设置本机号码功能的方法、设备及存储介质 | |
| CN115551117B (zh) | 一种pdn连接方法和通信系统 | |
| CN118450384B (zh) | 一种控制方法及电子设备 | |
| CN111800821A (zh) | 一种数据传输方法及设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24822295 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |