Data link recovery method, device, electronic device, and storage medium

By sending an RRC re-establishment request to the base station in the 5G network and processing it according to the reception status, the problem of data link recovery after the wireless link failure between the terminal device and the base station is solved, and the successful recovery and stability improvement of the data link are achieved. .

CN115397040BActive Publication Date: 2024-10-11XI AN FIBOCOM WIRELESS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210971787.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-12
Publication Date
2024-10-11
Estimated Expiration
2042-08-12

AI Technical Summary

Technical Problem

In the 5G network, when the wireless link fails between the terminal device and the base station, the data link cannot be effectively restored, causing the link to remain in a failed state for a long time.

Method used

By sending an RRC re-establishment request to the base station, the reception status of the re-establishment response message is obtained. If the reception fails, it enters flight mode, disconnects from the non-access layer, and re-registers for network search to restore the data link.

Benefits of technology

It improves the probability of data link recovery, ensures successful recovery of the data link between the terminal equipment and the base station, and reduces the occurrence of uplink desynchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115397040B_ABST
    Figure CN115397040B_ABST
Patent Text Reader

Abstract

The present application relates to a data link recovery method, device, electronic device, and storage medium. The method includes: sending an RRC re-establishment request to a base station, so that the base station sends a re-establishment response message according to the RRC re-establishment request; when the sending of the RRC re-establishment request is caused by a wireless link failure between the terminal device and the base station, obtaining the message reception status corresponding to the re-establishment response message; if the message reception status is a message reception failure state, entering flight mode; releasing the flight mode, and performing a network search registration to restore the data link with the base station. The use of this method can increase the probability of data link recovery after the RLF phenomenon occurs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data link recovery method, device, electronic device, and storage medium. Background Art

[0002] Due to the advantages of high speed, low latency, high security and large access volume of 5G networks, the use of 5G networks and terminal devices is becoming more and more widespread. However, due to the immaturity of 5G network deployment, some terminals may lose uplink synchronization during the interaction with the base station, resulting in RLF (Radio Link failure). After the RLF phenomenon occurs, according to the protocol, the terminal should initiate a Radio Resource Control (RRC) re-establishment request, but if the terminal device does not receive the RRC SETUP (Radio Resource Control Establishment) response message sent by the base station, the data link re-establishment will fail.

[0003] In the related art, after initiating a re-establishment request, if the terminal device fails to receive the RRC SETUP message sent by the base station, it will continue to send the RRC re-establishment request. However, if the RLF phenomenon has occurred at this time, the base station will not receive the RRC re-establishment request sent by the terminal, and then the terminal device will not receive the RRC SET UP message sent by the base station, and then the data link between the terminal device and the base station will remain in an infinite link failure state. Therefore, after the RLF phenomenon occurs, how to restore the data link with the base station becomes a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] Based on this, it is necessary to provide a data link recovery method, device, electronic device, and storage medium that can improve the probability of data link recovery after the RLF phenomenon occurs in response to the above technical problems.

[0005] In a first aspect, the present application provides a data link recovery method, which is applied to a terminal device. The method comprises:

[0006] Sending an RRC re-establishment request to a base station, so that the base station sends a re-establishment response message according to the RRC re-establishment request;

[0007] When the sending of the RRC re-establishment request is caused by a radio link failure between the terminal device and the base station, obtaining a message reception status corresponding to the re-establishment response message;

[0008] If the message receiving state is a state of message receiving failure, entering the flight mode;

[0009] The flight mode is released, and network search and registration are performed to restore the data link with the base station.

[0010] In one embodiment, step A comprises: the method further comprises:

[0011] If the message reception status is a state of successful message reception, initiating an uplink resource request to the base station;

[0012] When the acquisition of uplink resources based on the uplink resource request fails, the flight mode is entered.

[0013] In one embodiment, the method further comprises:

[0014] When the uplink resource is successfully acquired based on the uplink resource request, the data link between the base station and the base station is successfully restored.

[0015] In one embodiment, the method further comprises:

[0016] If the network search registration is successful, the PDU connection status is obtained;

[0017] Based on the PDU connection status, a recovery status of a data link with the base station is determined.

[0018] In one of the embodiments, the PDU connection status includes a PDU connection success status and a PDU connection failure status;

[0019] The determining, based on the PDU connection state, a recovery status of a data link with the base station includes:

[0020] If the PDU connection fails, the data link recovery between the base station fails;

[0021] If the PDU is successfully connected, the data link between the base station is successfully restored.

[0022] In a second aspect, the present application also provides a data link recovery device, which is applied to a terminal device. The device comprises:

[0023] An RRC re-establishment request sending module, configured to send an RRC re-establishment request to a base station, so that the base station sends a re-establishment response message according to the RRC re-establishment request;

[0024] A message reception status acquisition module, used for acquiring a message reception status corresponding to the re-establishment response message when the sending of the RRC re-establishment request is caused by a radio link failure between the terminal device and the base station;

[0025] A first flight mode control module, configured to enter a flight mode if the message reception state is a message reception failure state;

[0026] The network search registration module is used to release the flight mode and perform network search registration to restore the data link with the base station.

[0027] In one embodiment, the device further comprises:

[0028] An uplink resource request initiating module, configured to initiate an uplink resource request to the base station if the message reception status is a state in which the message reception is successful;

[0029] The second flight mode control module is used to enter the flight mode when the acquisition of uplink resources based on the uplink resource request fails.

[0030] In a third aspect, the present application further provides an electronic device, wherein the electronic device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the data link recovery method in the embodiment of the first aspect are implemented.

[0031] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the data link recovery method in the embodiment of the first aspect are implemented.

[0032] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the data link recovery method in the embodiment of the first aspect are implemented.

[0033] The above-mentioned data link recovery method, device, electronic device, and storage medium send an RRC re-establishment request to the base station so that the base station sends a re-establishment response message according to the RRC re-establishment request. When the sending of the RRC re-establishment request is caused by a wireless link failure between the terminal device and the base station, the message reception status corresponding to the re-establishment response message is obtained. When the message reception status is a message reception failure state, the flight mode is entered to disconnect the connection with the non-access layer, and then the flight mode is released, and the network search registration is re-performed to establish a connection with the non-access layer, thereby restoring the data link with the base station. Through such a setting, when the RRC re-establishment request is caused by a wireless link failure between the terminal device and the base station, the connection with the non-access layer is disconnected, and the network search registration is re-performed to re-establish the wireless bearer, thereby improving the probability of data link recovery with the base station, facilitating the recovery of the data link with the base station, and at the same time, since the wireless bearer is re-established, the restored data link is not prone to uplink loss of synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 An application environment diagram of a data link recovery method in an embodiment;

[0035] Figure 2 A schematic diagram of a flow chart of a data link recovery method in an embodiment;

[0036] Figure 3 is a flow chart of a data link recovery method in another embodiment;

[0037] Figure 4 is a flow chart of a data link recovery method in another embodiment;

[0038] Figure 5 for Figure 4 A flowchart of a specific implementation method of step 404;

[0039] Figure 6 is a flow chart of a data link recovery method in another embodiment;

[0040] Figure 7 is a structural block diagram of a data link recovery device in one embodiment;

[0041] Figure 8 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] The data link recovery method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal device 102 communicates with the base station 104 through the network. When the communication connection between the terminal device and the base station fails, the terminal device 102 initiates an RRC re-establishment request to the base station 104, so that the base station sends a re-establishment response message according to the RRC re-establishment request. When the sending of the RRC re-establishment request is caused by a failure of the wireless link between the terminal device and the base station, the message reception status corresponding to the re-establishment response message is obtained. If the message reception status is a state of message reception failure, the flight mode is entered, the flight mode is released, and the network search registration is performed to restore the data link between the terminal device and the base station. This arrangement increases the probability of data link recovery between the terminal device and the base station, and facilitates the recovery of the data link between the terminal device and the base station.

[0044] The terminal device 102 may include, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc.

[0045] In some embodiments, Figure 2 As shown, a data link recovery method is provided, which is applied to Figure 1 Taking the terminal device 102 in the example as an example, the following steps are included:

[0046] Step 202: Send an RRC re-establishment request to the base station, so that the base station sends a re-establishment response message according to the RRC re-establishment request.

[0047] In step 202 of some embodiments, RRC refers to the radio resource control layer, and its full English name is Radio Resource Control.

[0048] RRC re-establishment request means that when the terminal device and the base station are in the RRC connection state, if RRC reconfiguration failure, radio link failure, integrity protection failure, switching failure, etc. occur, the terminal device will be triggered to initiate an RRC re-establishment request to the base station to trigger the RRC connection reconstruction process, which aims to rebuild the RRC connection, including the recovery of SRB1 (signalling radio bearers) operation and secure reactivation.

[0049] Among them, radio link failure includes RLC (Radio Link Control, radio link layer control protocol) reaching the maximum number of retransmissions, uplink desynchronization, and downlink desynchronization. Switching failure includes switching within the system and outside the system, which means that if the RRC connection reconfiguration message sent by the network side to the terminal device contains Mobility ControlInfo (mobility control information), the switching is performed. If the switching fails, the terminal device will initiate an RRC re-establishment request and carry the HO failure message when encapsulating the re-establishment reason, so as to find the cause of the failure in the HO failure message. Integrity protection failure refers to the failure of the underlying system integrity check, for example, the confidentiality algorithm or integrity protection algorithm of the terminal device and the base station are inconsistent.

[0050] The re-establishment response message refers to the RRC SETUP message. When the base station receives the RRC re-establishment request initiated by the terminal device, the base station sends a response message based on the RRC re-establishment request. The re-establishment response message includes an RRC Connection Setup message that allows the terminal device to access the base station and an RRCConnection Reject message that refuses the terminal device to access the base station.

[0051] When the RRC connection between the terminal device and the base station fails, the terminal device will initiate an RRC re-establishment request to the base station to restore the RRC connection.

[0052] Step 204, when the sending of the RRC re-establishment request is caused by a failure of the wireless link between the terminal device and the base station, the message reception status corresponding to the re-establishment response message is obtained.

[0053] In step 204 of some embodiments, when the sending of the RRC re-establishment request is caused by a wireless link failure between the terminal device and the base station, the message reception status corresponding to the re-establishment response message is obtained to determine whether the terminal device has received the re-establishment response message sent by the base station.

[0054] When the sending of the RRC re-establishment request is not caused by a failure of the radio link between the terminal device and the base station, it can be processed according to the standard RRC re-establishment process, that is, the terminal device directly initiates a re-establishment request to the base station, and no additional processing is required for the terminal device.

[0055] Step 206: If the message receiving status is a message receiving failure status, enter the flight mode.

[0056] In step 206 of some embodiments, the flight mode refers to a mode in which all wireless communication modules on the terminal device are turned off. The message reception failure state refers to the terminal device not receiving the RRCSETUP message sent by the base station.

[0057] When the terminal device does not receive the RRC SETUP message sent by the base station, it enters the flight mode to disconnect from the non-access stratum (NAS).

[0058] Step 208, cancel the flight mode and perform network search registration to restore the data link with the base station.

[0059] In step 208 of some embodiments, network search registration refers to the terminal device re-searching the network and re-establishing the network connection.

[0060] When the terminal device enters the flight mode and disconnects from the NAS, the flight mode of the terminal device is released, thereby resetting the terminal device connection. Then, the terminal device re-initiates the network search registration to re-establish the connection with the NAS, thereby re-establishing the wireless bearer to facilitate the restoration of the data link with the base station.

[0061] The data link recovery method of the embodiment of the present application sends an RRC re-establishment request to the base station so that the base station sends a re-establishment response message according to the RRC re-establishment request. When the sending of the RRC re-establishment request is caused by a wireless link failure between the terminal device and the base station, the message reception status corresponding to the re-establishment response message is obtained. When the message reception status is a message reception failure state, the flight mode is entered to disconnect the connection with the non-access layer, and then the flight mode is released, and the network search registration is re-performed to establish the connection with the non-access layer, thereby restoring the data link with the base station. Through such a setting, when the RRC re-establishment request is caused by a wireless link failure between the terminal device and the base station, the connection with the non-access layer is disconnected, and the network search registration is re-performed to re-establish the wireless bearer, thereby improving the probability of data link recovery with the base station, facilitating the recovery of the data link with the base station, and at the same time, since the wireless bearer is re-established, the recovered data link is not prone to uplink loss of synchronization.

[0062] Please refer to Figure 3 In some embodiments, the data link recovery method further includes but is not limited to step 302 and step 304. Figure 3 These two steps are introduced in detail.

[0063] Step 302: If the message reception status is a state of successful message reception, an uplink resource request is initiated to the base station.

[0064] In step 302 of some embodiments, the state of successful message reception refers to the terminal device receiving the RRC SETUP message sent by the base station. The uplink resource request refers to the request for uplink resources initiated by the terminal device to the base station, that is, the UL Grant (uplink grant) message.

[0065] Step 304: When the acquisition of uplink resources based on the uplink resource request fails, entering the flight mode.

[0066] In step 304 of some embodiments, when the terminal device fails to request to obtain uplink resources, it means that even if the terminal device has received the RRC SETUP message sent by the base station, the RRC connection between the terminal device and the base station is still in a faulty state. In this case, the terminal device is controlled to enter flight mode to disconnect from the NAS, and then the flight mode of the terminal device is released, thereby resetting the terminal device connection. Then, the terminal device re-initiates a network search registration to re-establish the connection with the NAS, thereby re-establishing the wireless bearer to facilitate the restoration of the data link with the base station.

[0067] In some embodiments, the data link recovery method further includes but is not limited to the following steps:

[0068] When the uplink resource is successfully acquired based on the uplink resource request, the data link with the base station is successfully restored.

[0069] In this embodiment, when the base station successfully requests to obtain uplink resources, it indicates that the RRC connection between the terminal device and the base station is successfully reestablished. In this case, the data link between the terminal device and the base station is restored.

[0070] In some embodiments, Figure 4 As shown, the data link recovery method further includes step 402 and step 404. It should be understood that the data link recovery method includes but is not limited to these two steps. Figure 4 These two steps are introduced in detail.

[0071] Step 402: If the network search registration is successful, the PDU connection status is obtained.

[0072] In some embodiments, a PDU (Protocol Data Unit) connection refers to a service of exchanging PDU data packets between a terminal device and a data network. The PDU connection service is implemented by initiating the establishment of a PDU session by a terminal device or an application server. A PDU session refers to the process of communication between a terminal device and a data network. After a PDU session is established, a data transmission channel between the terminal device and the data network is established.

[0073] When the network search registration is successful, the terminal device obtains the connection status of the PDU to determine the connection status with the data network.

[0074] When the search network registration fails, it means that the data network cannot be registered in this case.

[0075] Step 404: Determine the recovery status of the data link with the base station based on the PDU connection status.

[0076] In step 404 of some embodiments, the connection status between the terminal device and the data network is determined based on the connection status of the current PDU, and then the recovery status of the data link between the terminal device and the base station is determined.

[0077] like Figure 5 As shown, in some embodiments, the PDU connection status includes a PDU connection success status and a PDU connection failure status, step 404 includes but is not limited to step 502 and step 504, and the following is combined with Figure 5 These two steps are introduced in detail.

[0078] Step 502: If the PDU connection fails, the data link recovery with the base station fails.

[0079] In step 502 of some embodiments, the state of PDU connection failure refers to a connection failure between the terminal device and the data network. In this case, the data link recovery between the terminal device and the base station fails.

[0080] Step 504: If the PDU is successfully connected, the data link with the base station is successfully restored.

[0081] In step 504 of some embodiments, the state of successful PDU connection refers to a successful connection between the terminal device and the data network. In this case, it indicates that the data link between the terminal device and the base station has been successfully restored.

[0082] Please refer to Figure 6 Some embodiments of the present application provide a data link recovery method, including but not limited to the following steps:

[0083] Step 602: Send an RRC re-establishment request to the base station, so that the base station sends a re-establishment response message according to the RRC re-establishment request.

[0084] In step 602 of some embodiments, the RRC re-establishment request refers to when the terminal device and the base station are in an RRC connection state, if RRC reconfiguration failure, radio link failure, integrity protection failure, switching failure, etc. occur, the terminal device will be triggered to initiate an RRC re-establishment request to the base station to trigger the RRC connection reconstruction process, which aims to rebuild the RRC connection, including the recovery of SRB1 (signalling radio bearers) operation and secure reactivation.

[0085] The re-establishment response message refers to the RRC SETUP message. When the base station receives the RRC re-establishment request initiated by the terminal device, the base station sends a response message based on the RRC re-establishment request. The re-establishment response message includes an RRC Connection Setup message that allows the terminal device to access the base station and an RRCConnection Reject message that refuses the terminal device to access the base station.

[0086] When the RRC connection between the terminal device and the base station fails, the terminal device will initiate an RRC re-establishment request to the base station to restore the RRC connection.

[0087] Step 604: Is the sending of the RRC re-establishment request caused by a failure of a wireless link between the terminal device and the base station?

[0088] In step 604 of some embodiments, if the sending of the RRC re-establishment request is not caused by a radio link failure between the terminal device and the base station, the standard RRC re-establishment process is used. If the sending of the RRC re-establishment request is caused by a radio link failure between the terminal device and the base station, step 606 is performed.

[0089] Step 606: Receive the RRC SETUP message sent by the base station?

[0090] In step 606 of some embodiments, if the RRC SETUP message sent by the base station is received, step 608 is executed; if the RRC SETUP message sent by the base station is not received, step 610 is executed.

[0091] Step 608: Initiate an uplink resource request to the base station. Does obtaining the uplink resource fail?

[0092] In some embodiments, if the acquisition of uplink resources fails, it means that even if the terminal device receives the RRC SETUP message sent by the base station, the RRC connection between the terminal device and the base station is still in a faulty state. In this case, step 610 is executed. If the acquisition of uplink resources succeeds, it means that the RRC connection between the terminal device and the base station is successfully reestablished. In this case, the data link between the terminal device and the base station is successfully restored.

[0093] Step 610, enter flight mode.

[0094] In step 610 of some embodiments, the flight mode refers to a mode in which all wireless communication modules on the terminal device are turned off. When the terminal device does not receive the RRC SETUP message sent by the base station, the flight mode is entered to disconnect from the non-access stratum (NAS).

[0095] Step 612, cancel the flight mode and perform network search and registration.

[0096] In step 612 of some embodiments, when the terminal device enters the flight mode and disconnects from the NAS, the flight mode of the terminal device is released, thereby resetting the terminal device connection. Then, the terminal device re-initiates the network search registration to re-establish the connection with the NAS, thereby re-establishing the wireless bearer to facilitate the restoration of the data link with the base station.

[0097] Step 614, is the search network registration successful?

[0098] When the network search registration is successful, step 616 is executed, and the terminal device obtains the connection status of the PDU to determine the connection status with the data network. When the network search registration fails, it means that the data network cannot be registered in the current state.

[0099] Step 616, is the PDU connection successful?

[0100] In step 616 of some embodiments, a PDU (Protocol Data Unit) connection refers to a service of exchanging PDU data packets between a terminal device and a data network, and the PDU connection service is implemented by initiating the establishment of a PDU session by a terminal device or an application server. A PDU session refers to a process of communication between a terminal device and a data network. After a PDU session is established, a data transmission channel between the terminal device and the data network is established.

[0101] When the PDU connection is successful, it means that the data link between the terminal device and the base station has been successfully restored. When the PDU connection fails, it means that the data link between the terminal device and the base station has failed to be restored.

[0102] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0103] Based on the same inventive concept, the embodiment of the present application also provides a data link recovery device for implementing the data link recovery method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data link recovery device embodiments provided below can refer to the limitations on the data link recovery method above, and will not be repeated here.

[0104] In one embodiment, Figure 7 As shown, a data link recovery device is provided, including: an RRC re-establishment request sending module 702, a message receiving state acquisition module 704, a first flight mode control module 706 and a network search registration module 708, wherein:

[0105] The RRC re-establishment request sending module 702 is used to send an RRC re-establishment request to the base station, so that the base station sends a re-establishment response message according to the RRC re-establishment request.

[0106] The message reception status acquisition module 704 is used to obtain the message reception status corresponding to the re-establishment response message when the sending of the RRC re-establishment request is caused by a radio link failure between the terminal device and the base station.

[0107] The first flight mode control module 706 is configured to enter the flight mode if the message reception status is a message reception failure status.

[0108] The network search registration module 708 is used to release the flight mode and perform network search registration to restore the data link with the base station.

[0109] In some embodiments, the data link recovery device further comprises:

[0110] An uplink resource request initiating module, configured to initiate an uplink resource request to a base station if the message reception status is a message reception success status;

[0111] The second flight mode control module is used to enter the flight mode when the acquisition of uplink resources based on the uplink resource request fails.

[0112] In some embodiments, the data link recovery device further comprises:

[0113] The data link recovery judgment module is used to determine that the data link between the base station and the base station is successfully recovered when the uplink resource is successfully acquired based on the uplink resource request.

[0114] In some embodiments, the data link recovery device further comprises:

[0115] The PDU connection status acquisition module is used to obtain the PDU connection status if the network search registration is successful.

[0116] The data link recovery status judgment module is used to determine the recovery status of the data link with the base station based on the PDU connection status.

[0117] In some embodiments, the data link recovery situation determination module includes:

[0118] The first judgment module is used to determine if the data link recovery between the base station and the PDU fails if the PDU connection fails.

[0119] The second judgment module is used to determine if the PDU is successfully connected and the data link with the base station is successfully restored.

[0120] Each module in the above data link recovery device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0121] In one embodiment, an electronic device is provided. The electronic device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The electronic device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data link recovery method is implemented.

[0122] Those skilled in the art will understand that Figure 8The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0123] Those skilled in the art will understand that the electronic device may be a wireless communication module, or a smart device (such as a smart car, a smart cabinet, a smart meter, etc.) that includes a wireless communication module, or a communication device such as a mobile phone, a computer, or a tablet.

[0124] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0125] Step 202: Send an RRC re-establishment request to the base station, so that the base station sends a re-establishment response message according to the RRC re-establishment request.

[0126] Step 204, when the sending of the RRC re-establishment request is caused by a failure of the wireless link between the terminal device and the base station, the message reception status corresponding to the re-establishment response message is obtained.

[0127] Step 206: If the message receiving status is a message receiving failure status, enter the flight mode.

[0128] Step 208, cancel the flight mode and perform network search registration to restore the data link with the base station.

[0129] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0130] Step 302: If the message reception status is a state of successful message reception, an uplink resource request is initiated to the base station.

[0131] Step 304: When the acquisition of uplink resources based on the uplink resource request fails, entering the flight mode.

[0132] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0133] When the uplink resource is successfully acquired based on the uplink resource request, the data link with the base station is successfully restored.

[0134] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0135] Step 402: If the network search registration is successful, the PDU connection status is obtained.

[0136] Step 404: Determine the recovery status of the data link with the base station based on the PDU connection status.

[0137] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0138] Step 502: If the PDU connection fails, the data link recovery with the base station fails.

[0139] Step 504: If the PDU is successfully connected, the data link with the base station is successfully restored.

[0140] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0141] Step 202: Send an RRC re-establishment request to the base station, so that the base station sends a re-establishment response message according to the RRC re-establishment request.

[0142] Step 204, when the sending of the RRC re-establishment request is caused by a failure of the wireless link between the terminal device and the base station, the message reception status corresponding to the re-establishment response message is obtained.

[0143] Step 206: If the message receiving status is a message receiving failure status, enter the flight mode.

[0144] Step 208, cancel the flight mode and perform network search registration to restore the data link with the base station.

[0145] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0146] Step 302: If the message reception status is a state of successful message reception, an uplink resource request is initiated to the base station.

[0147] Step 304: When the acquisition of uplink resources based on the uplink resource request fails, entering the flight mode.

[0148] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0149] When the uplink resource is successfully acquired based on the uplink resource request, the data link with the base station is successfully restored.

[0150] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0151] Step 402: If the network search registration is successful, the PDU connection status is obtained.

[0152] Step 404: Determine the recovery status of the data link with the base station based on the PDU connection status.

[0153] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0154] Step 502: If the PDU connection fails, the data link recovery with the base station fails.

[0155] Step 504: If the PDU is successfully connected, the data link with the base station is successfully restored.

[0156] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0157] Step 202: Send an RRC re-establishment request to the base station, so that the base station sends a re-establishment response message according to the RRC re-establishment request.

[0158] Step 204, when the sending of the RRC re-establishment request is caused by a failure of the wireless link between the terminal device and the base station, the message reception status corresponding to the re-establishment response message is obtained.

[0159] Step 206: If the message receiving status is a message receiving failure status, enter the flight mode.

[0160] Step 208, cancel the flight mode and perform network search registration to restore the data link with the base station.

[0161] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0162] Step 302: If the message reception status is a state of successful message reception, an uplink resource request is initiated to the base station.

[0163] Step 304: When the acquisition of uplink resources based on the uplink resource request fails, entering the flight mode.

[0164] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0165] When the uplink resource is successfully acquired based on the uplink resource request, the data link with the base station is successfully restored.

[0166] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0167] Step 402: If the network search registration is successful, the PDU connection status is obtained.

[0168] Step 404: Determine the recovery status of the data link with the base station based on the PDU connection status.

[0169] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0170] Step 502: If the PDU connection fails, the data link recovery with the base station fails.

[0171] Step 504: If the PDU is successfully connected, the data link with the base station is successfully restored.

[0172] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0173] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0174] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data link recovery method, characterized in that: Applied to a terminal device, the method comprises: Sending an RRC re-establishment request to a base station, so that the base station sends a re-establishment response message according to the RRC re-establishment request; When the sending of the RRC re-establishment request is caused by a radio link failure between the terminal device and the base station, obtaining a message reception status corresponding to the re-establishment response message; If the message receiving state is a state of message receiving failure, entering the flight mode; The flight mode is released, and network search registration is performed to restore the data link with the base station, wherein the method further includes: If the network search registration is successful, the connection status of the PDU is obtained; Based on the connection status of the PDU, the recovery status of the data link with the base station is determined, wherein the connection of the PDU is achieved by establishing a PDU session initiated by the terminal device, and the PDU session refers to a data transmission channel between the terminal device and the data network.

2. The method according to claim 1, characterized in that The method further comprises: If the message reception status is a state of successful message reception, initiating an uplink resource request to the base station; When the acquisition of uplink resources based on the uplink resource request fails, the flight mode is entered.

3. The method according to claim 2, characterized in that The method further comprises: When the uplink resource is successfully acquired based on the uplink resource request, the data link between the base station and the base station is successfully restored.

4. The method according to claim 1, characterized in that: The connection status of the PDU includes a status of successful PDU connection and a status of failed PDU connection; The determining, based on the connection status of the PDU, a recovery status of a data link with the base station, includes: If the PDU connection fails, the data link recovery between the base station fails; If the PDU is successfully connected, the data link between the base station is successfully restored.

5. A data link recovery device, characterized in that: Applied to a terminal device, the device comprises: An RRC re-establishment request sending module, configured to send an RRC re-establishment request to a base station, so that the base station sends a re-establishment response message according to the RRC re-establishment request; A message reception status acquisition module, used for acquiring a message reception status corresponding to the re-establishment response message when the sending of the RRC re-establishment request is caused by a radio link failure between the terminal device and the base station; A first flight mode control module, configured to enter a flight mode if the message reception state is a message reception failure state; A network search registration module is used to release the flight mode and perform network search registration to restore the data link with the base station, wherein the data link recovery device also includes: PDU connection status acquisition module, used to obtain the connection status of PDU if the network search registration is successful; A data link recovery status judgment module is used to determine the recovery status of the data link between the base station and the terminal device based on the connection status of the PDU, wherein the connection of the PDU is achieved by establishing a PDU session initiated by the terminal device, and the PDU session refers to a data transmission channel between the terminal device and the data network.

6. The device according to claim 5, characterized in that The device also includes: An uplink resource request initiating module, configured to initiate an uplink resource request to the base station if the message reception status is a state in which the message reception is successful; The second flight mode control module is used to enter the flight mode when the acquisition of uplink resources based on the uplink resource request fails.

7. The device according to claim 6, characterized in that The data link recovery device also includes: The data link recovery judgment module is used to determine that when the uplink resource is successfully acquired based on the uplink resource request, the data link between the base station and the base station is successfully recovered.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.