CN112954823B - Method for reestablishing data connection, terminal equipment and storage medium - Google Patents

Method for reestablishing data connection, terminal equipment and storage medium Download PDF

Info

Publication number
CN112954823B
CN112954823B CN202110124461.XA CN202110124461A CN112954823B CN 112954823 B CN112954823 B CN 112954823B CN 202110124461 A CN202110124461 A CN 202110124461A CN 112954823 B CN112954823 B CN 112954823B
Authority
CN
China
Prior art keywords
data connection
request
network
terminal equipment
reestablishment
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.)
Active
Application number
CN202110124461.XA
Other languages
Chinese (zh)
Other versions
CN112954823A (en
Inventor
向祺鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110124461.XA priority Critical patent/CN112954823B/en
Publication of CN112954823A publication Critical patent/CN112954823A/en
Application granted granted Critical
Publication of CN112954823B publication Critical patent/CN112954823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a method for reestablishing data connection, terminal equipment and a computer-readable storage medium, which are used for improving the probability of successful data connection recovery. The method of the embodiment of the invention comprises the following steps: under the condition that the terminal equipment detects the disconnection, a first reestablishment data connection request is initiated; under the condition that the data connection is not restored according to the first reestablishment data connection request, the terminal equipment performs network disconnection and network searching, and initiates a second reestablishment data connection request; and ending the recovery data connection under the condition of recovering the data connection according to the second recovery data connection request.

Description

Method for reestablishing data connection, terminal equipment and storage medium
Technical Field
The present invention relates to the field of terminal devices, and in particular, to a method for reestablishing data connection, a terminal device, and a computer readable storage medium.
Background
The Android terminal equipment has a reconstruction (retry) mechanism, if there is a local release (local release), a packet data network (Packet Data Network, PDN) carrying # cause (cause) connection reject (PDN CONNECTIVITY REJECT)/evolved packet system (Evolved Packet System, EPS) context reject (EPS CONTEXT REJECT)/protocol data unit (Protocol Data Unit, PDU) session reject (PDU SESSION REJECT), or if there is an abnormal disconnection of the data call, a corresponding data connection configuration (setup data call) request is reinitiated after a certain time until the data call is established successfully, and the reconstruction (retry) is stopped.
When encountering special anomalies, these problems are generally caused by incompatibility between User Equipment (UE) and network, imperfect design of baseband processor (Baseband processor, BP), or incomplete communication design between BP and application processor (Application processor, AP), which cannot recover data call using the Android default retry mechanism.
Disclosure of Invention
The embodiment of the invention provides a method for reestablishing data connection, terminal equipment and a computer readable storage medium, which are used for improving the probability of successful data connection recovery.
A first aspect of the present application provides a method of reestablishing a data connection, which may include:
under the condition that the terminal equipment detects the disconnection, a first reestablishment data connection request is initiated;
under the condition that the data connection is not restored according to the first reestablishment data connection request, the terminal equipment performs network disconnection and network searching, and initiates a second reestablishment data connection request;
and ending the recovery data connection under the condition of recovering the data connection according to the second recovery data connection request.
A further aspect of the present application provides a terminal device, which may include:
the initiation module is used for initiating a first reestablishment data connection request under the condition that the terminal equipment detects the network disconnection; under the condition that the data connection is not restored according to the first reestablishment data connection request, the terminal equipment performs network disconnection and network searching, and initiates a second reestablishment data connection request;
And the processing module is used for ending the recovery data connection under the condition of recovering the data connection according to the second recovery data connection request.
A further aspect of the present application provides a terminal device, which may include:
a memory storing executable program code;
a processor and transceiver coupled to the memory;
the transceiver and the processor invoke the executable program code stored in the memory for performing the method according to the first aspect of the present application.
Yet another aspect of the present application provides a computer readable storage medium comprising instructions which, when run on a processor, cause the processor to perform the method as described in the first aspect of the present application.
In yet another aspect, an embodiment of the invention discloses a computer program product, which when run on a computer causes the computer to perform the method according to the first aspect of the application.
In yet another aspect, an embodiment of the present invention discloses an application publishing platform, which is configured to publish a computer program product, where the computer program product, when run on a computer, causes the computer to perform the method according to the first aspect of the present application.
From the above technical solutions, the embodiment of the present invention has the following advantages:
in the embodiment of the application, under the condition that the terminal equipment detects the disconnection, a first reestablishment data connection request is initiated; under the condition that the data connection is not restored according to the first reestablishment data connection request, the terminal equipment performs network disconnection and network searching, and initiates a second reestablishment data connection request; and ending the recovery data connection under the condition of recovering the data connection according to the second recovery data connection request. After the embodiment of the application is applied, when the terminal equipment is disconnected, the data connection can be rebuilt through an Android default mode, then the network is searched again through the disconnected network, the data call is rebuilt, and the probability of successful data connection recovery is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments and the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings.
FIG. 1 is a schematic diagram of one embodiment of a method of reconstructing a data connection in an embodiment of the present application;
FIG. 2 is a schematic diagram of another embodiment of a method of reestablishing a data connection in an embodiment of the present application;
fig. 3 is a schematic diagram of an embodiment of a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another embodiment of a terminal device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method for reestablishing data connection, terminal equipment and a computer readable storage medium, which are used for improving the probability of successful data connection recovery.
In order that those skilled in the art will better understand the present invention, reference will now be made to the accompanying drawings in which embodiments of the invention are illustrated, it being apparent that the embodiments described are only some, but not all, of the embodiments of the invention. Based on the embodiments of the present invention, it should be understood that the present invention is within the scope of protection.
Any data interaction with the network on the Android terminal device needs to be performed after the data connection corresponding to the access point name (Access Point Name, APN) is established successfully. For example, the mobile data transmission corresponds to a default (default) type APN, and the multimedia messaging service (Multimedia Messaging Service, MMS) type APN corresponds to a multimedia messaging service. The AP side is generally required to initiate a data connection request for establishing a corresponding APN type before data transmission, and the APN information and the request are issued to the BP side through a data connection configuration (setup data call) of the radio interface layer (Radio Interface Layer, RIL). If on long term evolution (Long Term Evolution, LTE) or ENDC (Evolved-UMTS Terrestrial Radio Access-New Radio (Evolved UMTS (Universal Mobile Telecommunications System, universal mobile telecommunications system) terrestrial Radio access-New Radio)) Dual Connectivity,4G and 5G dual connectivity), a packet data network (Packet Data Network, PDN) connection request (PDN CONNECTIVITY REQUEST) is initiated to the network end, and a default Evolved packet system (Evolved Packet System, EPS) bearer context request (ACTIVATE DEFAULT EPS BEARER CONTEXT REQUEST) is re-activated; if on a stand alone networking (SA) NR, a protocol data unit (Protocol Data Unit, PDU) session establishment request is initiated (PDU SESSION ESTABLISHMENT REQUEST). Normally, the network replies and activates the default EPS bearer context response (ACTIVATE DEFAULT EPS BEARER CONTEXT ACCEPT), or the PDU session establishment response (PDU SESSION ESTABLISHMENT ACCEPT), then transmits the corresponding information to the RIL, and finally feeds back to the AP side upper layer data connection (data call) that the establishment is successful, and the related data can be transmitted.
Android has a reestablishment mechanism, if there is a local release (local release), PDN connection rejection (PDN CONNECTIVITY REJECT)/EPS context rejection (EPS CONTEXT REJECT)/PDU session rejection (PDU SESSION REJECT) carrying the cause (cause), or when there is an abnormal disconnection of the data connection (data call), the corresponding setup data call request is reinitiated after a certain time until the data call is established successfully, and reestablishment is stopped (retry).
When encountering some special exceptions, these problems are generally caused by incompatibility between User Equipment (UE) and a network, imperfect BP design or incomplete communication design between BP and AP, and the data call cannot be recovered by using the Android default retry mechanism.
The method provided by the embodiment of the invention is applied to the Android terminal equipment. A method capable of automatically recovering data connection is provided based on an Android default retry mechanism. Under the condition that the original method cannot recover the data call, firstly, trying to reconstruct the data connection for a plurality of times after a period of time, if the data connection is not recovered, then, disconnecting the network and searching the network again after a period of time, and reconstructing the data connection again; if the data connection is not restored, the data connection is rebuilt by switching the flight mode after the last period of time, so that the probability of successful restoration of the data connection is improved.
In this embodiment of the present application, the terminal device may also be referred to as a User Equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a User terminal, a wireless communication device, a User agent, a User Equipment, or the like.
The terminal device may be a Station (ST) in a WLAN, may be a cellular telephone, a cordless telephone, a session initiation protocol (Session Initiation Protocol, SIP) phone, a wireless local loop (Wireless Local Loop, WLL) station, a personal digital assistant (Personal Digital Assistant, PDA) device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a vehicle device, a wearable device, a terminal device in a next generation communication system such as an NR network, or a terminal device in a future evolved public land mobile network (Public Land Mobile Network, PLMN) network, etc.
In embodiments of the present application, the terminal device may be deployed on land, including indoor or outdoor, hand-held, wearable or vehicle-mounted; can also be deployed on the water surface (such as ships, etc.); but may also be deployed in the air (e.g., on aircraft, balloon, satellite, etc.).
In the embodiment of the present application, the terminal device may be a Mobile Phone (Mobile Phone), a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an augmented Reality (Augmented Reality, AR) terminal device, a wireless terminal device in industrial control (industrial control), a wireless terminal device in unmanned driving (self driving), a wireless terminal device in remote medical (remote medical), a wireless terminal device in smart grid (smart grid), a wireless terminal device in transportation security (transportation safety), a wireless terminal device in smart city (smart city), or a wireless terminal device in smart home (smart home), and the like.
By way of example, and not limitation, in embodiments of the present application, the terminal device may also be a wearable device. The wearable device can also be called as a wearable intelligent device, and is a generic name for intelligently designing daily wear by applying wearable technology and developing wearable devices, such as glasses, gloves, watches, clothes, shoes and the like. The wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also can realize a powerful function through software support, data interaction and cloud interaction. The generalized wearable intelligent device includes full functionality, large size, and may not rely on the smart phone to implement complete or partial functionality, such as: smart watches or smart glasses, etc., and focus on only certain types of application functions, and need to be used in combination with other devices, such as smart phones, for example, various smart bracelets, smart jewelry, etc. for physical sign monitoring.
In the following, by way of example, the technical solution of the present application is further described, as shown in fig. 1, which is a schematic diagram of an embodiment of a method for reconstructing a data connection in an embodiment of the present application, and may include:
101. and under the condition that the terminal equipment detects the disconnection, initiating a first reestablishment data connection request.
Optionally, the breaking network includes: local release (local release), packet data network PDN connection rejection, evolved packet system EPS context rejection, protocol data unit PDU session rejection, or baseband anomaly, etc.
It is understood that a disconnection can be understood as a terminal device detach (detach).
Illustratively, the BP side local release, cause is reported to the AP side of the terminal device by the network PDP reject, PDN reject, PDU reject, or other abnormal disconnect PDP, PDN, PDU.
The initiating the first request for reestablishing the data connection when the terminal device detects the disconnection may include, but is not limited to, the following implementation manners:
(1) And under the condition that the terminal equipment detects the disconnection, if a preset protocol is not available for defining a timer and a recovery mode, initiating a first reestablishment data connection request.
(2) And under the condition that the terminal equipment detects the disconnection, a first reestablishment data connection request is initiated through a first time period.
(3) And under the condition that the terminal equipment detects the network disconnection, if a preset protocol is not available for defining a timer and a recovery mode, initiating a first reestablishment data connection request through a first duration.
For example, if the terminal device detects a network outage, it determines whether there are a protocol specification timer (timer) and a reestablishment recovery PDP, PDN, PDU mode, and if so, it can recover the data connection according to the protocol specification timer and the reestablishment recovery PDP, PDN, PDU mode; if not, namely the network is disconnected in a non-protocol specification, a first reestablishment data connection request is initiated, or the first reestablishment data connection request is initiated through a first time.
102. And under the condition that the data connection is not restored according to the first reestablishment data connection request, the terminal equipment performs network disconnection and network searching, and initiates a second reestablishment data connection request.
In the case that the data connection is not restored according to the first request for reestablishing the data connection, the terminal device performs network disconnection and network searching, and initiates a second request for reestablishing the data connection, which may include, but is not limited to, the following implementation manners:
(1) And under the condition that the data connection is not restored according to the first reestablishment data connection request, if a preset protocol is not available for defining a timer and a restoration mode, the terminal equipment performs network disconnection and network searching, and initiates a second reestablishment data connection request.
(2) And under the condition that the data connection is not restored according to the first reestablishment data connection request, the terminal equipment performs network disconnection and network searching after a second duration, and initiates a second reestablishment data connection request.
(3) And under the condition that the data connection is not restored according to the first reestablishment data connection request, if a timer and a restoration mode specified by a preset protocol do not exist, the terminal equipment performs network disconnection and network searching for a second duration, and initiates a second reestablishment data connection request.
The terminal device judges whether the data call is successful or not according to the first reestablishment data connection request at the AP side, if yes, the data connection is ended, if not, whether a protocol specification timer (timer) and a reestablishment recovery PDP, PDN, PDU mode exist at the current disconnection, and if yes, the data connection can be recovered according to the protocol specification timer and the reestablishment recovery PDP, PDN, PDU mode; if not, the terminal equipment automatically cuts off the network and searches for the network, completes the network residence flow and retries to initiate the second reestablished data connection request, or after a second duration, the terminal equipment automatically cuts off the network and searches for the network, completes the network residence flow and retries to initiate the second reestablished data connection request.
It will be appreciated that after the handset is loaded into the SIM card, the handset is typically not immediately called on, but rather undergoes a short "signal search" process. When the signal icon of the operator appears on the top of the mobile phone, normal communication can be performed. This short "search signal" action, in essence, involves cell search, reading system broadcast and network side registration. The process ends with the appearance of a signal identity on the handset indicating that the UE is camping on the cell at this time and that subsequent UEs can perform a service operation in the cell. Cell search is a very critical step in a mobile communication system and is also the first step in establishing a communication link between a terminal and a network side. The purpose of cell search is to ensure that the terminal device obtains time and frequency synchronization of the system, so as to be able to read system information (cell Identification (ID) number, system bandwidth, other cell broadcast information, etc.) and perform subsequent data transmission.
In the application of the mobile communication system, after the terminal device is started, a suitable cell (such as the cell with the largest power measured from the radio frequency connector) must be searched as soon as possible, and then the cell is synchronized with the cell in time slot and frequency, so that the detailed information of the cell can be obtained. The terminal device can use the services of the network only after logging into the cell. The process from power-on search to log in to the appropriate cell is generally defined as the initial cell search (initial cell search) process, abbreviated as initial cell search. Synchronization is a key step in the initial search of a cell, and refers to the process from power on to time synchronization and frequency synchronization with the cell.
The LTE cell search procedure is as follows:
1. the UE completes the downlink synchronization procedure using PSS (Primary Synchronization Signal ) and SSS (Secondary Synchronization Signal, secondary synchronization signal).
Acquiring physical layer cell ID and time slot synchronization through PSS; and acquiring the CP (Cyclic Prefix) length, the physical layer cell group ID and the frame synchronization through SSS.
2. Time and frequency synchronization and channel estimation are further realized through DL RS (Reference Signal).
3. The PBCH (Physical Broadcasting Channel, physical broadcast channel) is decoded to obtain MIB (Master Information Block ) containing common antenna port number, SFN (System Frame Number ), downlink system bandwidth, PHICH (Physical Hybrid ARQ Indicator Channel, physical hybrid automatic repeat request (Hybrid Automatic Repeat reQuest, HARQ) indicator channel) configuration information.
4. The PDSCH (Physical Downlink Shared Channel ) is decoded to obtain SIBs (System Information Block, system information block), i.e., other system information.
Optionally, under the condition that the terminal device does not recover the data connection according to the first reestablishment data connection request, the terminal device outputs the indication information of the first data connection failure, performs network disconnection and network searching, and initiates the second reestablishment data connection request.
Optionally, the terminal device outputs the indication information of the first data connection failure in a text, voice or picture mode.
103. And ending the recovery data connection under the condition of recovering the data connection according to the second recovery data connection request.
The terminal device determines whether the data call is successful according to the second request for reconstructing the data connection at the AP side, and if yes, ends the recovery of the data connection.
Optionally, when the terminal device resumes the data connection according to the second request for resuming the data connection, the resuming the data connection is ended, and the terminal device outputs the indication information that the first data connection is successful.
Optionally, the terminal device outputs the indication information of successful connection of the first data in a text, voice or picture mode.
104. And under the condition that the data connection is not recovered according to the second reestablished data connection request, switching the flight mode by the terminal equipment to search the network, and initiating a third reestablished data connection request.
In the case that the data connection is not recovered according to the second request for reconstructing the data connection, the terminal device switches the flight mode to search the network, and initiates a third request for reconstructing the data connection, which may include, but is not limited to, the following implementation manners:
(1) And under the condition that the data connection is not restored according to the second reestablished data connection request, if a preset protocol is not available for defining a timer and a restoration mode, switching a flight mode of the terminal equipment to search the network, and initiating a third reestablished data connection request.
(2) And under the condition that the data connection is not recovered according to the second reestablished data connection request, switching the flight mode of the terminal equipment to search the network after a third duration, and initiating a third reestablished data connection request.
(3) And under the condition that the data connection is not restored according to the second reestablished data connection request, if a preset protocol is not available for defining a timer and a restoration mode, switching a flight mode of the terminal equipment to search the network, and initiating a third reestablished data connection request.
The terminal device judges whether the data call is successful or not according to the second reestablishment data connection request at the AP side, if not, judges whether the current disconnected network has a protocol specification timer (timer) and a reestablishment recovery PDP, PDN, PDU mode, and if so, can recover the data connection according to the protocol specification timer and the reestablishment recovery PDP, PDN, PDU mode; if not, the terminal device performs an automatic switching flight mode, performs network searching to complete a network residence process, and retries to initiate a third reestablished data connection request, or performs an automatic switching flight mode, performs network searching to complete the network residence process, and retries to initiate the third reestablished data connection request after a third duration.
It can be understood that the flight mode of the mobile phone is called aviation mode, and when taking the airplane, the mobile phone must be turned off or the own flight mode of the mobile phone must be turned on to cut off all communication signals, so as to avoid the influence of the emission and the reception of the mobile phone signal on the airplane flight, and some mobile phones have the function and can turn off the signal transceiver of the subscriber identity module (Subscriber Identity Module, SIM) card.
Some of the functions of the mobile phone in the flight mode can be implemented by some software, for example, the System tools (systems) in the S60 software have the aviation mode. The mode can turn off the SIM card function, so that the mobile phone is in a state of not transmitting and receiving signals, and other functional operations of the mobile phone are not affected (generally, the mobile phone cannot perform any operation without the SIM card).
The flight mode turns off the GSM (Global System for Mobile Communications )/GPRS (General packet radio service, general packet radio service) module of the handset, which does not actively send paging signals to the base station, i.e., does not attempt to contact the base station, but typically dials an emergency call (similar to the SIM card-less principle, in which mode the handset typically dials 110, 120, 112, etc.). Because the mobile phone paging signal can interfere with the electronic equipment on the airplane, the airplane is not allowed to turn on the mobile phone, and related functions of the mobile phone signal are turned off in the mode, the mobile phone can continue to use other functions, such as checking a phone book, enjoying articles, movies, playing games and the like on the mobile phone, so that the airplane is called a flight mode. The electric quantity of the mobile phone is mostly consumed on the signal, and the signal is turned off in the flight mode, so that the power is saved.
Optionally, when the terminal device does not recover the data connection according to the second reestablished data connection request, the terminal device outputs indication information of the failure of the second data connection, switches the flight mode to search the network, and initiates a third reestablished data connection request.
Optionally, the terminal device outputs the indication information of the second data connection failure in a text, voice or picture mode.
105. And ending the recovery data connection under the condition of recovering the data connection according to the third reconstruction data connection request.
The terminal device, on the AP side, determines whether the data call is successful according to the third reestablished data connection request, and if yes, ends the recovery data connection.
Optionally, when the terminal device resumes the data connection according to the third reestablished data connection request, the data connection is ended, and the terminal device outputs the indication information that the second data connection is successful.
Optionally, the terminal device outputs the indication information of successful connection of the second data in a text, voice or picture mode.
It can be appreciated that the long term evolution (Long Term Evolution, LTE) power-on and network-down procedure may include:
Whether the LTE terminal equipment supports Long Term Evolution Voice-Term Evolution (VoLTE) is not considered temporarily, and even if the LTE terminal equipment supports the VoLTE, the premise of registration of the VoLTE is that the LTE is registered first. LTE power-on registration can be divided into the following steps:
1. a random access process, obtaining wireless resources for signaling interaction between terminal equipment and EPC;
2. interaction such as Attach request (Attach request), identity (Identity), authentication (Authentication), security (Security), attach Accept (Attach Accept), attach complete (Attach complete) and the like between the terminal device and the EPC;
3. if both the terminal equipment and the EPC support VoLTE, the process of LTE Attach also includes a P-CSCF Discovery (Proxy Call Session Control Function, call session control proxy) process.
In the embodiment of the application, under the condition that the terminal equipment detects the disconnection, a first reestablishment data connection request is initiated; under the condition that the data connection is not restored according to the first reestablishment data connection request, the terminal equipment performs network disconnection and network searching, and initiates a second reestablishment data connection request; and ending the recovery data connection under the condition of recovering the data connection according to the second recovery data connection request. After the embodiment of the application is applied, when the terminal equipment is disconnected, the data connection can be rebuilt through an Android default mode, then the network is searched again through the disconnected network, the data call is rebuilt, and the probability of successful data connection recovery is improved.
As shown in fig. 2, a schematic diagram of another embodiment of a method for reconstructing a data connection in an embodiment of the present application may include:
step1, the BP side local release of the terminal device, the local release of the terminal device by the network PDP, PDN, PDU reject, or other abnormal disconnection PDP, PDN, PDU mode, and report to the AP side of the terminal device.
Step2, the terminal equipment judges whether the current disconnection has a protocol specification timer (timer) and a reconstruction PDP, PDN, PDU mode, if yes, step3 is executed, and otherwise Step4 is executed.
Step3, the terminal equipment rebuilds and initiates a data call according to the protocol specification timer and a rebuilding PDP, PDN, PDU mode.
Step4, after a period of time t1, the terminal equipment re-initiates a data call reestablishing request by using an Android default method.
Step5, the terminal equipment judges whether the recovery of the data call is successful or not at the AP side, if yes, the recovery is ended, and otherwise, step6 is executed.
Step6, the terminal equipment judges whether the current disconnection has a protocol specification timer and a reconstruction PDP, PDN, PDU mode, if yes, step3 is executed, and otherwise Step7 is executed.
Step7, after a period of time t2, the terminal equipment automatically breaks the network and searches the network again, so as to complete the network residence process and re-attempt to establish the data call.
Step8, the terminal equipment judges whether the recovery of the data call is successful or not at the AP side, if yes, the recovery is ended, and otherwise Step9 is executed.
Step9, the terminal equipment judges whether the current disconnection has a protocol specification timer and a reconstruction PDP, PDN, PDU mode, if yes, step3 is executed, and otherwise Step10 is executed.
Step10, after a period of time t3, the terminal equipment automatically switches on and off the flight mode, searches the network again, completes the network residence flow and retries to establish the data call.
Step11, the terminal equipment judges whether the recovery of the data call is successful or not at the AP side, if yes, the recovery is ended, and otherwise, step2 is executed.
Illustratively, t1, t2, t3 may be 10s.
In the prior art, any data interacted with a network on an Android terminal device can be transmitted only after the data connection corresponding to an APN is established successfully. When a local release, a ca-carrying PDN CONNECTIVITY REJECT/EPS CONTEXT REJECT/PDU SESSION REJECT occurs, or there is an abnormal disconnection of the data connection, the default retry mechanism will reinitiate the establishment of the data connection after a certain period of time until the establishment is successful, but the mechanism cannot recover from some special exceptions. The invention provides a method capable of automatically recovering data connection based on an Android default retry mechanism for solving the problem that an Android mobile phone possibly has the problem.
In the embodiment of the application, the hardware structure is not required to be modified. When the terminal equipment is disconnected, if the terminal equipment is judged to be disconnected according to the non-protocol specification, the data call can be rebuilt through Android defaults, if the data connection is not restored, then after a period of time, the network is rebuilt through disconnected again, the data call is rebuilt, if the data connection is not restored yet, then after a period of time, the flight mode is switched on again, and the mode of rebuilt data call is restored. The scheme can simulate special modes such as a user carrying terminal equipment to leave a problem cell, a manual switching flight mode and the like to avoid the problems of incompatibility between the terminal equipment and a network, imperfect BP design or incomplete communication design between the BP and the AP, reduce the condition of no recovery of a long-time discontinuous network, and further improve the probability of successful data connection recovery.
As shown in fig. 3, which is a schematic diagram of an embodiment of a terminal device in an embodiment of the present application, may include:
an initiating module 301, configured to initiate a first request for reestablishing data connection when the terminal device detects a network outage; under the condition that the data connection is not restored according to the first reestablishment data connection request, the terminal equipment performs network disconnection and network searching, and initiates a second reestablishment data connection request;
A processing module 302, configured to end the recovery data connection in case of recovering the data connection according to the second recovery data connection request.
Optionally, the initiating module 301 is further configured to switch the flight mode to perform network searching and initiate a third reestablished data connection request when the data connection is not restored according to the second reestablished data connection request;
the processing module 302 is further configured to end the restoration data connection if the restoration data connection is requested according to the third reestablished data connection request.
Optionally, the initiating module 301 is specifically configured to initiate the first request for reestablishing data connection if the timer and the recovery mode specified by the preset protocol do not exist in the case that the terminal device detects a network outage.
Optionally, the initiating module 301 is specifically configured to, if the timer and the recovery mode specified by the preset protocol do not exist under the condition that the data connection is not recovered according to the first request for reconstructing the data connection, perform network disconnection and network searching by the terminal device, and initiate a second request for reconstructing the data connection.
Optionally, the initiating module 301 is specifically configured to, if the timer and the recovery mode specified by the preset protocol do not exist in the case that the data connection is not recovered according to the second request for reconstructing data connection, switch the flight mode of the terminal device to perform network searching, and initiate a third request for reconstructing data connection.
Optionally, the breaking network includes:
local release, packet data network PDN connection rejection, evolved packet system EPS context rejection, protocol data unit PDU session rejection, or baseband anomaly.
Optionally, the initiating module 301 is specifically configured to initiate the first request for reestablishing the data connection through the first time period when the terminal device detects a network outage.
As shown in fig. 4, which is a schematic diagram of another embodiment of a terminal device in an embodiment of the present invention, may include:
fig. 4 is a block diagram showing a part of the structure of a mobile phone related to a terminal device provided by an embodiment of the present invention. Referring to fig. 4, the mobile phone includes: radio Frequency (RF) circuitry 410, memory 420, input unit 430, display unit 440, sensor 450, audio circuitry 440, wireless fidelity (wireless fidelity, wiFi) module 470, processor 480, and power supply 490. Those skilled in the art will appreciate that the handset configuration shown in fig. 4 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or may be arranged in a different arrangement of components.
The following describes the components of the mobile phone in detail with reference to fig. 4:
The RF circuit 410 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, in particular, after receiving downlink information of the base station, the downlink information is processed by the processor 480; in addition, the data of the design uplink is sent to the base station. In general, RF circuitry 410 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 410 may also communicate with networks and other devices via wireless communications. The wireless communications may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (Short Messaging Service, SMS), and the like.
The memory 420 may be used to store software programs and modules, and the processor 480 may perform various functional applications and data processing of the cellular phone by executing the software programs and modules stored in the memory 420. The memory 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the handset. In particular, the input unit 430 may include a touch panel 431 and other input devices 432. The touch panel 431, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 431 or thereabout using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 431 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 480, and can receive commands from the processor 480 and execute them. In addition, the touch panel 431 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 430 may include other input devices 432 in addition to the touch panel 431. In particular, other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 440 may be used to display information input by a user or information provided to the user as well as various menus of the mobile phone. The display unit 440 may include a display panel 441, and optionally, the display panel 441 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 431 may cover the display panel 441, and when the touch panel 431 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 480 to determine the type of the touch event, and then the processor 480 provides a corresponding visual output on the display panel 441 according to the type of the touch event. Although in fig. 4, the touch panel 431 and the display panel 441 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 431 and the display panel 441 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 441 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the handset are not described in detail herein.
Audio circuitry 460, a speaker 461, a microphone 462 can provide an audio interface between the user and the handset. The audio circuit 460 may transmit the received electrical signal after the audio data conversion to the speaker 461, and the electrical signal is converted into a sound signal by the speaker 461 and output; on the other hand, the microphone 462 converts the collected sound signals into electrical signals, which are received by the audio circuit 460 and converted into audio data, which are processed by the audio data output processor 480 and sent to, for example, another cell phone via the RF circuit 410, or which are output to the memory 420 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive e-mails, browse web pages, access streaming media and the like through a WiFi module 470, so that wireless broadband Internet access is provided for the user. Although fig. 4 shows a WiFi module 470, it is understood that it does not belong to the necessary constitution of the mobile phone, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The processor 480 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions and processes data of the mobile phone by running or executing software programs and/or modules stored in the memory 420 and invoking data stored in the memory 420, thereby performing overall monitoring of the mobile phone. Optionally, the processor 480 may include one or more processing units; preferably, the processor 480 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 480.
The handset further includes a power supply 490 (e.g., a battery) for powering the various components, which may be logically connected to the processor 480 by a power management system, such as to provide for managing charging, discharging, and power consumption by the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which will not be described herein.
In the embodiment of the present invention, the processor 480 is configured to initiate a first request for reestablishing data connection when the terminal device detects a network disconnection; under the condition that the data connection is not restored according to the first reestablishment data connection request, the terminal equipment performs network disconnection and network searching, and initiates a second reestablishment data connection request; and ending the recovery data connection under the condition of recovering the data connection according to the second recovery data connection request.
Optionally, the processor 480 is further configured to switch the flight mode of the terminal device to perform network searching and initiate a third reestablished data connection request when the data connection is not restored according to the second reestablished data connection request; and ending the recovery data connection under the condition of recovering the data connection according to the third reconstruction data connection request.
Optionally, the processor 480 is specifically configured to initiate the first request for reestablishing the data connection if the terminal device detects that the network is disconnected, and if a timer and a recovery mode specified by a preset protocol do not exist.
Optionally, the processor 480 is specifically configured to, if the timer and the recovery mode are not specified by the preset protocol, perform network disconnection and network searching by the terminal device, and initiate a second request for reestablishing data connection when the data connection is not recovered according to the first request for reestablishing data connection.
Optionally, the processor 480 is specifically configured to, if the timer and the recovery mode are not specified by the preset protocol, switch the flight mode of the terminal device to search the network, and initiate a third request for reconstructing data connection if the data connection is not recovered according to the second request for reconstructing data connection.
Optionally, the breaking network includes:
local release, packet data network PDN connection rejection, evolved packet system EPS context rejection, protocol data unit PDU session rejection, or baseband anomaly.
Optionally, the processor 480 is specifically configured to initiate the first request for reestablishing the data connection over the first time period when the terminal device detects a network outage.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method of reestablishing a data connection, comprising:
under the condition that the terminal equipment detects the network disconnection, if a preset protocol is not available for defining a timer and a recovery mode, initiating a first reestablishment data connection request through a first duration;
under the condition that the data connection is not restored according to the first reestablishment data connection request, the terminal equipment outputs indication information of failure of the first data connection, performs network disconnection and network searching, and initiates a second reestablishment data connection request;
and under the condition that the data connection is restored according to the second reestablished data connection request, ending the data connection restoration, and outputting the indication information of successful first data connection by the terminal equipment.
2. The method according to claim 1, wherein the method further comprises:
under the condition that the data connection is not recovered according to the second reestablished data connection request, switching a flight mode by the terminal equipment to search the network, and initiating a third reestablished data connection request;
and ending the recovery data connection under the condition of recovering the data connection according to the third reconstruction data connection request.
3. The method according to claim 1 or 2, wherein the terminal device performs network disconnection and network searching in a case that the data connection is not restored according to the first request for reestablishing the data connection, and initiating the second request for reestablishing the data connection comprises:
and under the condition that the data connection is not restored according to the first reestablishment data connection request, if a preset protocol is not available for defining a timer and a restoration mode, the terminal equipment performs network disconnection and network searching, and initiates a second reestablishment data connection request.
4. The method according to claim 2, wherein the switching the flight mode of the terminal device to perform network searching in the case that the data connection is not restored according to the second request for reconstructing the data connection, and initiating the third request for reconstructing the data connection, comprises:
And under the condition that the data connection is not restored according to the second reestablished data connection request, if a preset protocol is not available for defining a timer and a restoration mode, switching a flight mode of the terminal equipment to search the network, and initiating a third reestablished data connection request.
5. The method according to claim 1 or 2, wherein the web breaking comprises:
local release, packet data network PDN connection rejection, evolved packet system EPS context rejection, protocol data unit PDU session rejection, or baseband anomaly.
6. A terminal device, comprising:
the initiation module is used for initiating a first reestablishment data connection request through a first duration if a timer and a recovery mode specified by a preset protocol do not exist under the condition that the terminal equipment detects network disconnection; under the condition that the data connection is not restored according to the first reestablishment data connection request, the terminal equipment outputs indication information of failure of the first data connection, performs network disconnection and network searching, and initiates a second reestablishment data connection request;
and the processing module is used for ending the data connection restoration under the condition of restoring the data connection according to the second data connection restoration request, and the terminal equipment outputs the indication information of successful first data connection.
7. A terminal device, comprising:
a memory storing executable program code;
a processor and transceiver coupled to the memory;
the transceiver and the processor invoke the executable program code stored in the memory for performing the method of any of claims 1-5.
8. A computer readable storage medium comprising instructions which, when run on a processor, cause the processor to perform the method of any of claims 1-5.
CN202110124461.XA 2021-01-29 2021-01-29 Method for reestablishing data connection, terminal equipment and storage medium Active CN112954823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110124461.XA CN112954823B (en) 2021-01-29 2021-01-29 Method for reestablishing data connection, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110124461.XA CN112954823B (en) 2021-01-29 2021-01-29 Method for reestablishing data connection, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112954823A CN112954823A (en) 2021-06-11
CN112954823B true CN112954823B (en) 2023-06-27

Family

ID=76239360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110124461.XA Active CN112954823B (en) 2021-01-29 2021-01-29 Method for reestablishing data connection, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112954823B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116667875B (en) * 2022-09-29 2024-03-08 荣耀终端有限公司 Switching method and device of internet access and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014187214A1 (en) * 2013-05-21 2014-11-27 华为终端有限公司 Webpage real-time communication method and system, and terminal
CN107124718A (en) * 2017-05-22 2017-09-01 努比亚技术有限公司 Data transmission method, mobile terminal and storage medium
CN107172720A (en) * 2017-07-07 2017-09-15 深圳天珑无线科技有限公司 Call control method and device
CN109495909A (en) * 2018-12-13 2019-03-19 广东天波信息技术股份有限公司 The mobile network's control method and device of Android device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9615377B2 (en) * 2015-05-29 2017-04-04 Apple Inc. Apparatus, systems and methods for prioritizing frequency selection for a mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014187214A1 (en) * 2013-05-21 2014-11-27 华为终端有限公司 Webpage real-time communication method and system, and terminal
CN107124718A (en) * 2017-05-22 2017-09-01 努比亚技术有限公司 Data transmission method, mobile terminal and storage medium
CN107172720A (en) * 2017-07-07 2017-09-15 深圳天珑无线科技有限公司 Call control method and device
CN109495909A (en) * 2018-12-13 2019-03-19 广东天波信息技术股份有限公司 The mobile network's control method and device of Android device

Also Published As

Publication number Publication date
CN112954823A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
US10757755B2 (en) Method and apparatus for communication between wearable device and mobile terminal
CN110896528B (en) Method for operating functions and resources of electronic device
CN110012554B (en) Wireless link recovery method and terminal
KR102613334B1 (en) Information instruction method, information acquisition method, terminal and network node
CN110022553B (en) User identity identification card management method and mobile terminal
CN112788783B (en) Relay connection establishment method and device
EP4007361A1 (en) Method for network switching and terminal
WO2019214503A1 (en) Bearer configuration method for rrc connection reestablishment, terminal and network device
CN106445739B (en) Data migration method and terminal equipment
WO2022116651A1 (en) Method for preferentially selecting endc cell, terminal device, and storage medium
WO2021129244A1 (en) Method, device, and system for displaying network identifier
CN113825163A (en) Reconstruction method in communication abnormality, terminal device, and storage medium
WO2022193798A1 (en) Method for standalone weak coverage, and terminal device and storage medium
CN111885748A (en) Method for releasing RRC connection, terminal equipment and network equipment
CN106484563B (en) Data migration method and terminal equipment
CN112954823B (en) Method for reestablishing data connection, terminal equipment and storage medium
CN110881205B (en) Terminal residing method, information transmission method, terminal and network equipment
CN105335238A (en) Inter-process communication method and apparatus
CN108476441A (en) Cell switching method and terminal device
EP4007372A1 (en) Network handover method, network device, and terminal
US20230224798A1 (en) Wireless communication method, terminal device, and network device
WO2022252716A1 (en) Method for acquiring timer parameters, terminal device, and storage medium
CN111615175A (en) Network searching method and terminal
CN111615158B (en) Updating method, reconstruction request processing method, terminal and network equipment
CN111601364B (en) Method for sending and receiving network identification information and communication equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant