Communication method and device, electronic equipment and computer readable storage medium

By adjusting the request type of PDU session establishment request, the terminal device solves the problem of PDU session establishment failure during network switching, improves communication quality and ensures user experience.

CN119967461APending Publication Date: 2025-05-09HUIZHOU TCL CLOUD INTERNET CORP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510138245.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-07
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

After the voice call is switched from VoNR to VoWiFi, the terminal device does not receive the IMS PDU session release command, resulting in a network error, affecting the subsequent call quality of switching from VoWiFi to VoNR.

Method used

By receiving the first notification message from the network server of the first network, the terminal device adjusts the request type of the PDU session establishment request, so as to realize the re-establishment of the PDU session when the other network is switched back to the first network.

Benefits of technology

It solves the problem that PDU session establishment fails during network switching of terminal devices, improves communication quality, and ensures user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119967461A_ABST
    Figure CN119967461A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a communication method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: receiving a first notification message from a network server of a first network, the first notification message being used for indicating that the network server cannot release a protocol data unit PDU session; sending a first request to a network server, wherein the first request is used for requesting the network server to establish a PDU session; receiving a second notification message from the network server, wherein the second notification message is used for indicating the network server to reject the first request; and sending a second request to the network server, wherein the second request is used for requesting to establish the initial PDU session. According to the communication method provided by the embodiment of the invention, the terminal equipment can switch back to the first network for communication by adjusting the request type of the PDU session establishment request under the condition that the PDU session establishment fails when the terminal equipment is switched back to the first network from other networks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and specifically to a communication method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the coexistence of multiple access technologies, users' demand for voice services has changed, and seamless switching between different access technologies (such as NR and WiFi) is required. When the voice call access mode switches from VoNR (5G voice call) to VoWiFi (call via WiFi access), the voice bearer resources of the 5G core network will initiate an IMS PDU session release request through 3GPP access to release the voice bearer resources. Both the terminal device and the network (the operator corresponding to the 5G core network) can request to trigger the release process of the session.

[0003] In the prior art, after the terminal device switches from VoNR to VoWiFi, there is a situation where the operator network (the operator corresponding to the 5G core network) requests to trigger the release of related wireless bearer resources to the terminal device, but no IMS PDU session release command is sent to the terminal device. Since the terminal device does not receive the PDU session release command, the terminal device will send an IMS PDU session release request to the network, and send a 5G registration request to the operator network to indicate that the IMS PDU session is inactive.

[0004] However, at this time, the operator network believes that the request from the terminal device is unexpected. In order to ensure seamless data mobility, the PDU should be active for the terminal device to switch the voice call from WiFi to NR, and the terminal device should no longer send a PDU release request to the network. Therefore, when the terminal device needs to switch the voice call from VoWiFi to VoNR, the network will reply to the terminal device with a corresponding notification message (error reason), which will cause the terminal device to fail to switch to VoNR, affecting the call quality and reducing the user experience. Summary of the invention

[0005] The embodiments of the present application provide a communication method, an apparatus, an electronic device, and a computer-readable storage medium, which enable a terminal device to switch back to a first network from another network and, in the event of a PDU session establishment failure, adjust the request type of a PDU session establishment request to achieve switching back to the first network for communication, thereby improving the technical effect of the communication quality.

[0006] In a first aspect, an embodiment of the present application provides a communication method, applied to a terminal device, the method comprising:

[0007] Receiving a first notification message from a network server of a first network, wherein the first notification message is used to indicate that the network server cannot release a protocol data unit (PDU) session;

[0008] Sending a first request to the network server, where the first request is used to request the network server to establish a PDU session;

[0009] receiving a second notification message from the network server, where the second notification message is used to instruct the network server to reject the first request;

[0010] A second request is sent to the network service end, where the second request is used to request establishment of an initial PDU session.

[0011] Optionally, in some embodiments of the present application, before receiving the first notification message from the network server of the first network, the method further includes:

[0012] Determine that the current communication network of the terminal device is switched from the first network to the second network;

[0013] Send a session resource release request to the network server.

[0014] Optionally, in some embodiments of the present application, the receiving a first notification message from a network server of the first network, the method further includes:

[0015] Determine the public land mobile network PLMN information currently registered by the terminal device;

[0016] The PLMN information is stored, and the PLMN information is used to determine whether to send the first request when the terminal device switches from the first network to the second network again.

[0017] Optionally, in some embodiments of the present application, when the communication network of the terminal device is switched from the first network to the second network again, the method includes:

[0018] Determine that the terminal device stores the PLMN information, and do not send the first request to the network service end.

[0019] Optionally, in some embodiments of the present application, before sending the second request to the network server, the method further includes:

[0020] Determining time information of the second notification message;

[0021] Determine a time difference based on the time information and current time information;

[0022] When the time difference is greater than or equal to the preset time difference, the second request is generated.

[0023] Optionally, in some embodiments of the present application, after sending the second request to the network server, the method further includes:

[0024] The communication network of the terminal device is switched from the second network to the first network.

[0025] Optionally, in some embodiments of the present application, the first network is a 5G network, and the second network is a WiFi network.

[0026] In a second aspect, an embodiment of the present application further provides a communication device, applied to a terminal device, the device comprising:

[0027] A receiving module, configured to receive a first notification message from a network server of a first network, wherein the first notification message is used to indicate that the network server cannot release a protocol data unit (PDU) session;

[0028] A processing module, configured to send a first request to the network service end, wherein the first request is used to request the network service end to establish a PDU session;

[0029] The receiving module is further used to receive a second notification message from the network server, where the second notification message is used to instruct the network server to reject the first request;

[0030] The processing module is further used to send a second request to the network service end, where the second request is used to request to establish an initial PDU session.

[0031] Optionally, in some embodiments of the present application, the processing module is further used to:

[0032] Determine that the current communication network of the terminal device is switched from the first network to the second network;

[0033] Send a session resource release request to the network server.

[0034] Optionally, in some embodiments of the present application, the processing module is further used to:

[0035] Determine the public land mobile network PLMN information currently registered by the terminal device;

[0036] The PLMN information is stored, and the PLMN information is used to determine whether to send the first request when the terminal device switches from the first network to the second network again.

[0037] Optionally, in some embodiments of the present application, the processing module is further used to:

[0038] Determine that the terminal device stores the PLMN information, and do not send the first request to the network service end.

[0039] Optionally, in some embodiments of the present application, the processing module is further used to:

[0040] Determining time information of the second notification message;

[0041] Determine a time difference based on the time information and current time information;

[0042] When the time difference is greater than or equal to the preset time difference, the second request is generated.

[0043] Optionally, in some embodiments of the present application, the processing module is further used to:

[0044] The communication network of the terminal device is switched from the second network to the first network.

[0045] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps in the above-mentioned communication method when executed by the processor.

[0046] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned communication method are implemented.

[0047] In a fifth aspect, the embodiments of the present application further provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.

[0048] In summary, the embodiment of the present application receives a first notification message from a network server of a first network, wherein the first notification message is used to indicate that the network server cannot release a protocol data unit PDU session; sends a first request to the network server, wherein the first request is used to request the network server to establish a PDU session; receives a second notification message from the network server, wherein the second notification message is used to indicate that the network server rejects the first request; and sends a second request to the network server, wherein the second request is used to request to establish an initial PDU session. This technical solution enables the terminal device to switch back to the first network when the PDU session establishment fails when switching back to the first network from other networks, thereby adjusting the request type of the PDU session establishment request to achieve the technical effect of switching back to the first network for communication and thereby improving the communication quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0050] Figure 1 It is a schematic diagram of an abnormal communication network switching process corresponding to the communication method provided in an embodiment of the present application;

[0051] Figure 2 It is a scenario diagram of the communication method provided in an embodiment of the present application;

[0052] Figure 3 It is a schematic diagram of a scenario in which a terminal device according to an embodiment of the present application executes the communication method;

[0053] Figure 4 It is a schematic diagram of a processing flow when a terminal device corresponding to the communication method provided in an embodiment of the present application switches from a first network to a second network again;

[0054] Figure 5 is a schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0055] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0057] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the above features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0058] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.

[0059] First, the terms involved in this application are explained:

[0060] VoNR: Voice over New Radio, 5G voice call, VoNR is a technology that enables voice calls on 5G networks. It uses 5G's new radio (NR) interface to provide high-quality voice services and aims to replace traditional voice call technologies such as VoLTE (Voice over LTE).

[0061] VoWiFi: Voice over WiFi, which enables calls through WiFi access. VoWiFi allows users to make voice calls through the WiFi network. It provides an alternative communication method in areas with weak cellular network signals.

[0062] AMF: Access and Mobility Management Function, AMF is a functional module in the 5G core network, responsible for managing the access and mobility of user equipment, including user registration, connection management and mobility management.

[0063] SMF: Session Management Function, SMF is a functional module in the 5G core network, responsible for managing user sessions, including session establishment, modification and release, as well as connection management with the data network.

[0064] RAN: Radio Access Network, RAN is a part of the mobile communication network responsible for providing wireless connectivity between user equipment and the core network. It includes base stations and related radio equipment.

[0065] DNN: Data Network Name, DNN is the name used to identify a specific data network in 5G networks. It is similar to the role of APN (Access Point Name) in 4G networks, helping user devices connect to a specific data network.

[0066] The embodiments of the present application provide a communication method, device, electronic device and computer-readable storage medium. Specifically, the embodiments of the present application provide a communication device applicable to the communication method, the communication device includes a terminal device and a processor of the terminal device, and the terminal device can be a TV, a mobile phone, a tablet, a computer, etc.

[0067] Figure 1 This is a schematic diagram of the abnormal flow of communication network switching in the prior art. Figure 1 As shown, the process includes:

[0068] S101: The terminal device registers with the first network and establishes an IMS PDU session.

[0069] In the prior art, when a terminal device is in an environment without a WiFi network, or a user actively chooses to use a mobile network (i.e., a first network, such as a 5G network) for a voice call, the terminal device will establish an IMS PDU session (Protocol Data Unit PDU session) with the first network.

[0070] S102: The voice access mode of the terminal device is switched to the second network.

[0071] When the terminal device uses the first network to make a voice call, if conditions allow switching from the first network to the second network (for example, a WiFi network), the terminal device can automatically switch from the first network to the second network. At this time, the network service end of the first network (for example, the operator service end of the 5G network) can request to trigger the release of relevant wireless bearer resources to the terminal device. However, after releasing the relevant wireless bearer resources to the terminal device, there is a situation where the network service end of the first network does not send an IMS PDU session release command to the terminal device.

[0072] S103: The terminal does not receive the IMS PDU session release command.

[0073] At this time, since the terminal device has not received the PDU session release command, the terminal device will send an IMS PDU session release request to the operator network, and send a 5G registration request to the operator network to indicate that the IMS PDU session is inactive.

[0074] S104: The terminal device sends an IMS PDU session release request.

[0075] However, the network service end of the first network believes that the PDU session release request of the terminal device is unexpected. In order to ensure seamless data mobility, the PDU should be active for the voice call switching of the terminal device from WiFi to NR, and the terminal device should no longer send a PDU release request to the network.

[0076] S105: The network service end of the first network sends a first notification message.

[0077] After receiving the PDU session release request from the terminal device, the network service end of the first network will send a relevant notification message to the terminal device to inform the terminal device that the PDU session resources cannot be released. As a result, when the terminal device needs to switch the voice call from VoWiFi to VoNR (that is, when switching from the second network back to the first network), the network service end of the first network will reply to the terminal device with a corresponding notification message (error reason), which will cause the terminal device to fail to switch to VoNR, affecting the call quality and reducing the user experience.

[0078] For example, when the voice call access mode of the terminal device is switched from NR to WiFi, SMF sends N2 communication through AMF to release the wireless resources used for IMS PDU, and then AMF sends a PDU session resource release command to RAN. If only the relevant network resources are released internally by RAN, and the terminal device is not notified according to the normal process, that is, the PDU session release command is not sent to the terminal, the terminal device will send an IMS PDU session release request to the network, and at the same time send a mobile registration update request to indicate that the IMS PDU is inactive. If the operator network rejects the terminal's IMS PDU session release request with Cause#90 (this 5GMM reason is sent by the network, indicating that the requested service cannot be provided because the AMF cannot forward the payload), after that, when the terminal switches from WiFi to NR, the terminal's IMS PDU session establishment request is still rejected with the same reason value, resulting in abnormal terminal VoNR switching.

[0079] Therefore, the communication method in the prior art has a technical problem that after the network used for communication is switched, it is impossible to switch back to the original network, which leads to poor communication quality and affects the user's communication experience.

[0080] The embodiment of the present application provides a communication method, device, electronic device and computer-readable storage medium. The method adopts a technical solution of receiving a first notification message from a network service end of a first network, the first notification message is used to indicate that the network service end cannot release a protocol data unit PDU session; sending a first request to the network service end, the first request is used to request the network service end to establish a PDU session; receiving a second notification message from the network service end, the second notification message is used to indicate that the network service end rejects the first request; sending a second request to the network service end, the second request is used to request to establish an initial PDU session.

[0081] In summary, the communication method in the embodiment of the present application enables the terminal device to switch back to the first network from other networks and, in the event of a PDU session establishment failure, adjust the request type of the PDU session establishment request, thereby achieving the technical effect of switching back to the first network for communication and thereby improving the communication quality.

[0082] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.

[0083] See also Figure 2 , Figure 2The scene diagram of the communication method provided in the embodiment of the present application, the communication system may include a terminal device 100 and a processor 601, and the terminal device 100 and the processor 601 may be connected to each other in any manner, including but not limited to signal communication through electronic circuits, communication through wireless signals, and the wireless signals may be computer network communications of the TCP / IP Protocol Suite (TCP / IP) and the User Datagram Protocol (UDP), etc. The terminal device 100 may receive control signals from a remote control or a control panel, and the terminal device 100 may also receive instruction information sent by the processor 601, and the terminal device 100 may perform corresponding operations according to the corresponding instruction information, such as the communication method in the present application.

[0084] In the embodiment of the present application, the terminal device 100 includes but is not limited to a television, a mobile phone, a tablet, a computer, etc.

[0085] Those skilled in the art will understand that Figure 2 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 2 More or fewer terminal devices as shown in, for example Figure 2 Only one terminal device is shown, and no specific limitation is given here.

[0086] In addition, if Figure 2 As shown, the processor 601 may include any hardware device capable of performing data processing and instruction sending, such as a CPU or a single-chip microcomputer embedded in the terminal device, and the specific details are not limited here.

[0087] It should be noted that Figure 2 The scenario diagram of the communication system shown is merely an example. The communication system and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the communication system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is equally applicable to similar technical problems.

[0088] For details, please refer to Figure 3 , Figure 3 : is a schematic diagram of a scenario in which a terminal device according to an embodiment of the present application executes the communication method, wherein the specific execution process of the terminal device executing the communication method is as follows:

[0089] S201: Receive a first notification message from a network service end of a first network.

[0090] In a possible implementation, the first network may be a 5G network. Alternatively, the first network may be other networks, which is not limited in the embodiments of the present application.

[0091] In an embodiment of the present application, the network service end may be a network operator of the first network, and the first notification message is used to indicate that the network service end cannot release the protocol data unit PDU session.

[0092] In the present application embodiment, Figure 3 As shown, the terminal device can send a corresponding request (mainly including a first request and a second request, and may also include other requests, which are not limited to the embodiments of the present application) to the network service end according to the notification message of the network service end, so that the terminal device can establish a corresponding PDU session on the network service end of the first network, thereby completing the call through the first network.

[0093] Before receiving the first notification message from the network server of the first network, optionally, the communication method provided in the embodiment of the present application also includes: determining that the communication network of the current terminal device is switched from the first network to the second network; and sending a session resource release request to the network server.

[0094] In a possible implementation, the second network may be a WiFi network. Alternatively, the second network may be other networks, which is not limited in the embodiment of the present application.

[0095] In the embodiment of the present application, when the terminal device determines to switch from the first network to the second network, it will send a session resource release request to the network service end of the first network, and can also send a mobile registration update request to indicate that the IMS PDU is in an inactive state.

[0096] Optionally, if the network service end of the first network releases the PDU session resources by itself, it will reject the session resource release request of the terminal device and reply a first notification message to the terminal device to inform the terminal device that the PDU session resources cannot be released.

[0097] S2011: Determine the public land mobile network PLMN information currently registered by the terminal device; store the PLMN information.

[0098] In an embodiment of the present application, the PLMN information is used to determine whether to send a first request when the terminal device switches from the first network to the second network again.

[0099] In an embodiment of the present application, after the terminal device receives the first notification message sent by the network service end of the first network, the terminal device records the PLMN information of the currently registered NR network (first network) and adds it to the customized PLMN list.

[0100] It should be noted that the first notification message can be a cause#90 (payload not forwarded) error or a cause#54 (PDU session does not exist). In the embodiment of the present application, the type of the first notification message is not specifically limited.

[0101] S202: Send a first request to the network server.

[0102] In this embodiment of the present application, the first request is used to request the network service end to establish a PDU session.

[0103] In the present application embodiment, Figure 3 As shown, after receiving the first notification message from the network service end of the first network and storing the PLMN information of the first network, the terminal device sends a first request to the network service end.

[0104] It should be noted that the first request is used to request the network server to establish a PDU session, which can be a PDU session before the network is switched from the first network to the second network (that is, the same PDU session resource), or it can be a PDU session of the same type before the network is switched from the first network to the second network (that is, the same PDU session type, but different PDU session resources).

[0105] As an optional embodiment, after the terminal device switches from VoWiFi to VoNR abnormally, or after receiving the first notification message, the terminal device can continue to try to trigger the establishment of an IMS PDU session request on NR (it can try multiple times, such as Figure 3 As shown, in the embodiment of the present application, it is twice), the request type is Existing PDU session (2), that is, the first request, which is used to request to establish a PDU session of the same type as the original PDU session, or to establish the original PDU session.

[0106] S203: Receive a second notification message from the network server, where the second notification message is used to instruct the network server to reject the first request.

[0107] In an embodiment of the present application, if the network service end still rejects the terminal's request with reason value 90 (payload not forwarded) or reason value 54 (PDU session does not exist), the terminal device will receive a second notification message from the network service end.

[0108] S2021: The terminal device may continue to attempt to send the first request to establish PDU session resources.

[0109] In the present application embodiment, Figure 3As shown, after the terminal device sends the first request again, if the network server still replies to the second notification message, that is, the network server again rejects the first request (refuses to establish PDU session resources), the terminal device can send a second request to the network server to request to establish an initial PDU session (the initial PDU session can be a PDU session of a different type from the original PDU session).

[0110] S204: Send a second request to the network server, where the second request is used to request to establish an initial PDU session.

[0111] Before sending the second request to the network server, optionally, the communication method provided in the embodiment of the present application also includes: determining the time information of the second notification message; determining the time difference based on the time information and the current time information; and generating a second request when the time difference is greater than or equal to the preset time difference.

[0112] In the present application embodiment, Figure 3 As shown, the terminal device can set an 8-second timer (corresponding to S2032). After the timer expires, if the terminal meets the conditions for switching from VoWiFi to VoNR (for example, the VoNR signal quality meets the preset requirements, etc.), the terminal device generates a second request and continues to try to establish an IMS PDU session request on NR. The request type is updated to Initial request (1), that is, the second request, which is used to request to establish an initial PDU session.

[0113] After sending the second request to the network service end, optionally, the communication method provided in the embodiment of the present application further includes: switching the communication network of the terminal device from the second network to the first network.

[0114] In the present application embodiment, Figure 3 As shown, after sending the second request, the network service end can successfully establish the initial PDU session resources, and the communication network of the terminal device can be switched from the second network to the first network (corresponding to S205).

[0115] like Figure 4 The processing flow diagram shown is when the terminal device switches from the first network to the second network again. When the communication network of the terminal device switches from the first network to the second network again, optionally, the communication method provided in the embodiment of the present application also includes: determining that the terminal device stores PLMN information, and not sending a first request to the network service end.

[0116] S301: The terminal device establishes an INS PDU session with the first network.

[0117] S302: The voice access mode of the terminal device is switched from NR (first network) to WiFi (second network).

[0118] S303. The terminal device determines whether the PLMN information of the currently registered NR network is stored in the customized PLMN list. If it is determined that the terminal device stores the PLMN information of the NR network, the terminal device does not send an IMS PDU session release request to the network server. In the embodiment of the present application, if it is determined that the terminal device stores the PLMN information of the NR network and does not send an IMS PDU session release request to the network server, the network server will not send a first notification message to the terminal device. When the terminal device needs to switch back to the first network from the second network, the network switch can be completed directly, and the VoNR switch failure will no longer occur.

[0119] Through the embodiment of the present application, a technical solution is adopted in which a first notification message is received from a network server of a first network, the first notification message is used to indicate that the network server cannot release a protocol data unit PDU session; a first request is sent to the network server, the first request is used to request the network server to establish a PDU session; a second notification message is received from the network server, the second notification message is used to indicate that the network server rejects the first request; a second request is sent to the network server, the second request is used to request to establish an initial PDU session. This solution enables the terminal device to switch back to the first network from other networks and, in the event that the PDU session establishment fails, the request type of the PDU session establishment request is adjusted to achieve the technical effect of switching back to the first network for communication, thereby improving the communication quality.

[0120] In order to better implement the communication method of the present application, the present application also provides a communication device based on the above communication method. The meanings of the terms are the same as those in the above communication method, and the specific implementation details can refer to the description in the method embodiment.

[0121] See also Figure 5 , Figure 5 : is a schematic diagram of the structure of a communication device provided in an embodiment of the present application, wherein the communication device 500 is applied to a terminal device, and specifically can be as follows:

[0122] A receiving module 501 is configured to receive a first notification message from a network server of a first network, wherein the first notification message is used to indicate that the network server cannot release a protocol data unit (PDU) session;

[0123] The processing module 502 is used to send a first request to the network server, where the first request is used to request the network server to establish a PDU session;

[0124] The receiving module 501 is further configured to receive a second notification message from the network server, where the second notification message is configured to instruct the network server to reject the first request;

[0125] The processing module 502 is further configured to send a second request to the network service end, where the second request is configured to request to establish an initial PDU session.

[0126] Optionally, in some embodiments of the present application, the processing module 502 is further configured to:

[0127] Determine that the current communication network of the terminal device is switched from the first network to the second network;

[0128] Send a session resource release request to the network server.

[0129] Optionally, in some embodiments of the present application, the processing module 502 is further configured to:

[0130] Determine the public land mobile network PLMN information currently registered by the terminal device;

[0131] The PLMN information is stored, and the PLMN information is used to determine whether to send the first request when the terminal device switches from the first network to the second network again.

[0132] Optionally, in some embodiments of the present application, the processing module 502 is further configured to:

[0133] Determine that the terminal device stores the PLMN information, and do not send the first request to the network service end.

[0134] Optionally, in some embodiments of the present application, the processing module 502 is further configured to:

[0135] Determining time information of the second notification message;

[0136] Determine a time difference based on the time information and current time information;

[0137] When the time difference is greater than or equal to the preset time difference, the second request is generated.

[0138] Optionally, in some embodiments of the present application, the processing module 502 is further configured to:

[0139] The communication network of the terminal device is switched from the second network to the first network.

[0140] In the embodiment of the present application, the receiving module 501 first receives a first notification message from a network server of the first network, wherein the first notification message is used to indicate that the network server cannot release a protocol data unit PDU session. Then, the processing module 502 sends a first request to the network server, wherein the first request is used to request the network server to establish a PDU session. Subsequently, the receiving module 501 receives a second notification message from the network server, wherein the second notification message is used to indicate that the network server rejects the first request. Then, the processing module 502 sends a second request to the network server, wherein the second request is used to request to establish an initial PDU session.

[0141] Among them, the embodiment of the present application receives a first notification message from a network server of the first network, wherein the first notification message is used to indicate that the network server cannot release the protocol data unit PDU session; sends a first request to the network server, wherein the first request is used to request the network server to establish a PDU session; receives a second notification message from the network server, wherein the second notification message is used to indicate that the network server rejects the first request; and sends a second request to the network server, wherein the second request is used to request to establish an initial PDU session. The technical solution enables the terminal device to switch back to the first network from other networks and, in the event of a PDU session establishment failure, adjust the request type of the PDU session establishment request to achieve the technical effect of switching back to the first network for communication, thereby improving the communication quality.

[0142] In addition, the present application also provides an electronic device, such as Figure 6 As shown, it shows a schematic diagram of the structure of the electronic device involved in this application, specifically:

[0143] The electronic device may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will appreciate that Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0144] The processor 601 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.

[0145] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0146] The electronic device also includes a power supply 603 for supplying power to various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, power consumption management and other functions through the power management system. The power supply 603 can also include one or more DC or AC power supplies, recharging systems, power supply device debugging circuits, power converters or inverters, power status indicators and other arbitrary components.

[0147] The electronic device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0148] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the application programs stored in the memory 602, thereby implementing the steps in any one of the communication methods provided in the embodiments of the present application.

[0149] The embodiment of the present application receives a first notification message from a network server of a first network, wherein the first notification message is used to indicate that the network server cannot release a protocol data unit PDU session; sends a first request to the network server, wherein the first request is used to request the network server to establish a PDU session; receives a second notification message from the network server, wherein the second notification message is used to indicate that the network server rejects the first request; and sends a second request to the network server, wherein the second request is used to request to establish an initial PDU session. This technical solution enables the terminal device to switch back to the first network when the PDU session establishment fails when switching back from other networks to the first network, thereby adjusting the request type of the PDU session establishment request to achieve the technical effect of switching back to the first network for communication and thus improving the communication quality.

[0150] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0151] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0152] To this end, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any communication method provided in the present application.

[0153] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0154] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0155] Since the instructions stored in the computer-readable storage medium can execute the steps in any communication method provided in the present application, the beneficial effects that can be achieved by any communication method provided in the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0156] The above is a detailed introduction to a communication method, device, electronic device and computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A communication method, characterized in that: Applied to a terminal device, the method comprises: Receiving a first notification message from a network server of a first network, wherein the first notification message is used to indicate that the network server cannot release a protocol data unit (PDU) session; Sending a first request to the network server, where the first request is used to request the network server to establish a PDU session; receiving a second notification message from the network server, where the second notification message is used to instruct the network server to reject the first request; A second request is sent to the network service end, where the second request is used to request establishment of an initial PDU session.

2. The method according to claim 1, characterized in that: Before receiving the first notification message from the network server of the first network, the method further includes: Determine that the current communication network of the terminal device is switched from the first network to the second network; Send a session resource release request to the network server.

3. The method according to claim 2, characterized in that The receiving of a first notification message from a network server of the first network, the method further comprises: Determine the public land mobile network PLMN information currently registered by the terminal device; The PLMN information is stored, and the PLMN information is used to determine whether to send the first request when the terminal device switches from the first network to the second network again.

4. The method according to claim 3, characterized in that When the communication network of the terminal device is switched from the first network to the second network again, the method includes: Determine that the terminal device stores the PLMN information, and do not send the first request to the network service end.

5. The method according to claim 1, characterized in that: Before sending the second request to the network server, the method further includes: Determining time information of the second notification message; Determine a time difference based on the time information and current time information; When the time difference is greater than or equal to the preset time difference, the second request is generated.

6. The method according to claim 5, characterized in that After sending the second request to the network server, the method further includes: Switch the communication network of the terminal device from the second network to the first network.

7. The method according to any one of claims 1 to 6, characterized in that The first network is a 5G network, and the second network is a WiFi network.

8. A communication device, characterized in that: Applied to a terminal device, the device comprises: A receiving module, configured to receive a first notification message from a network server of a first network, wherein the first notification message is used to indicate that the network server cannot release a protocol data unit (PDU) session; A processing module, configured to send a first request to the network service end, wherein the first request is used to request the network service end to establish a PDU session; The receiving module is further used to receive a second notification message from the network server, where the second notification message is used to instruct the network server to reject the first request; The processing module is further used to send a second request to the network service end, where the second request is used to request to establish an initial PDU session.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the communication method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the communication method according to any one of claims 1 to 7 are implemented.