Method and apparatus for transmitting short message, and device and storage medium

By switching to the 4G network when the transmission of 5G network fails and retransmitting short messages using IMS or NAS protocols, the problem of short message sending failure caused by SIM card abnormalities is solved, and the transmission success rate and communication quality are improved.

WO2025081985A9PCT designated stage expired Publication Date: 2025-09-04HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/111237
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-10-19
Filing Date
2024-08-09
Publication Date
2025-09-04

AI Technical Summary

Technical Problem

In the 5G independent networking scenario, the SIM card of the terminal device is not activated or activated abnormally causes the short message to be sent, which is difficult to effectively solve the problem of the existing technology.

Method used

When the short message fails to transmit on the 5G network, switch to the 4G network for retransmission, and retransmit the short message in the 4G network through IMS or NAS protocol to ensure successful transmission.

Benefits of technology

It improves the success rate of short message transmission, avoids short message failure caused by 5G network abnormalities, and ensures communication quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024111237_04092025_PF_FP_ABST
    Figure CN2024111237_04092025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a method and apparatus for transmitting a short message, and a device and a storage medium. The method comprises: when a terminal device fails to transmit a short message on a first network by means of an Internet protocol multimedia subsystem (IMS), the terminal device accessing a second network; and the terminal device transmitting the short message on the second network, wherein the first network does not support the terminal device to transmit the short message by means of a non-access stratum (NAS). In the method, the short message is retransmitted by means of switching a network, and thus the success rate of the transmission of the short message can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Short message transmission method, device, equipment and storage medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on October 19, 2023, with application number 2023113659637 and application name “Method, device, equipment and storage medium for transmitting short messages”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a method, apparatus, device and storage medium for transmitting short messages. Background Art

[0003] In the standalone (SA) scenario of the fifth-generation mobile communication technology (5G), after a terminal device accesses the 5G network, it can transmit short messages through the IP Multimedia Subsystem (IMS). If the terminal device's subscriber identity module (SIM) card is not activated for 5G SMS service or the activation of 5G SMS service is abnormal, short message sending may fail.

[0004] Summary of the Invention

[0005] The embodiments of the present application provide a short message transmission method, apparatus, device, and storage medium to improve the success rate of short message transmission by terminal devices.

[0006] In a first aspect, an embodiment of the present application proposes a method for transmitting short messages, including: when a terminal device fails to transmit a short message through an Internet Multimedia Subsystem (IMS) on a first network, the terminal device accesses a second network; the first network does not support the terminal device transmitting short messages through a non-access layer (NAS); and the terminal device transmits the short message on the second network.

[0007] Exemplarily, the first network may be a 5G network, and the second network may be a 4G network.

[0008] In the above scenario, the failure to transmit a short message on the first network may be caused by: the terminal device's SIM card is not activated for the first network's SMS service, or the activation is abnormal. In some scenarios, the first network supports short message transmission via NAS. If the terminal device fails to transmit a short message via IMS on the first network, the short message can be retransmitted via NAS. However, in other scenarios, the first network does not support short message transmission via NAS. In this case, the first network can be switched to the second network and the short message can be retransmitted on the second network to improve the success rate of short message transmission.

[0009] In an optional embodiment of the first aspect of the present application, the terminal device transmits the short message on the second network, including: the terminal device transmits the short message through the IMS on the second network.

[0010] In the above solution, after accessing the second network, the terminal device may attempt to transmit the short message through the IMS on the second network to achieve short message retransmission.

[0011] In an optional embodiment of the first aspect of the present application, the second network supports the terminal device to transmit short messages through NAS.

[0012] In an optional embodiment of the first aspect of the present application, the transmission method further includes: when the terminal device fails to transmit the short message through the IMS on the second network, the terminal device transmits the short message through the NAS.

[0013] In the above solution, the terminal device accesses a second network that supports the transmission of short messages through NAS. The second network first retransmits the short message through IMS. If the transmission still fails, the short message can be retransmitted by trying to transmit it through NAS.

[0014] In an optional embodiment of the first aspect of the present application, the terminal device accesses the second network, including:

[0015] The terminal device sends a radio resource control RRC connection request to the access network device of the second network;

[0016] The terminal device receives an RRC connection response from the access network device of the second network, where the RRC connection response is used to indicate that the RRC connection is successful;

[0017] The terminal device sends a tracking area update request to the core network device of the second network;

[0018] The terminal device receives a tracking area update response from the core network device of the second network, where the tracking area update response is used to indicate that the second network supports the terminal device to transmit short messages through NAS.

[0019] In this embodiment, the access network device of the second network is a second access network device, such as a 4G base station. The core network device of the second network is a second core network device, and the second core network device includes network elements such as a mobility management MME.

[0020] In an optional embodiment of the first aspect of the present application, the transmission method further includes:

[0021] After the terminal device accesses the second network, the terminal device starts the first timer;

[0022] After the first timer expires, the terminal device accesses the first network.

[0023] In the above scheme, the purpose of setting the first timer is to set the time to disable the first network. During the first timer duration, the terminal device can retransmit short messages on the second network. After the first timer expires, it reconnects to the first network to ensure the communication quality of the terminal device.

[0024] In an optional embodiment of the first aspect of the present application, the transmission method further includes:

[0025] During a preset period of time, if the terminal device switches from the first network to the second network and successfully transmits short messages on the second network more than a preset number of times, the terminal device pushes a prompt message;

[0026] The prompt message is used to remind the user to activate the short message service of the first network.

[0027] In the above scheme, if the terminal device fails to transmit a short message on the first network and needs to switch networks more times to complete the short message transmission than the preset number of times, it indicates that the short message service of the terminal device on the first network is abnormal. By pushing a prompt message, the user can contact the operator in time to avoid similar situations from happening again.

[0028] In a second aspect, embodiments of the present application provide a short message transmission device, comprising: a sending module and a processing module. When the sending module fails to transmit the short message via the Internet Multimedia Subsystem (IMS) on a first network, the processing module is configured to access a second network; the first network does not support the sending module transmitting the short message via the Non-Access Stratum (NAS). The sending module is further configured to transmit the short message on the second network.

[0029] In an optional embodiment of the second aspect of the present application, the sending module is configured to transmit the short message through the IMS on the second network.

[0030] In an optional embodiment of the second aspect of the present application, the second network supports the terminal device to transmit short messages through NAS.

[0031] In an optional embodiment of the second aspect of the present application, when the sending module fails to transmit the short message through the IMS on the second network, the sending module is further configured to transmit the short message through the NAS.

[0032] In an optional embodiment of the second aspect of the present application, the transmission device further includes: a receiving module.

[0033] A sending module, configured to send a radio resource control RRC connection request to an access network device of the second network;

[0034] a receiving module, configured to receive an RRC connection response from an access network device of the second network, where the RRC connection response is used to indicate that the RRC connection is successful;

[0035] A sending module, configured to send a tracking area update request to a core network device of a second network;

[0036] The receiving module is used to receive a tracking area update response from a core network device of the second network, where the tracking area update response is used to indicate that the second network supports the terminal device to transmit short messages through NAS.

[0037] In an optional embodiment of the second aspect of the present application, the processing module is configured to start a first timer after accessing the second network; and access the first network after the first timer times out.

[0038] In an optional embodiment of the second aspect of the present application, within a preset time period, if the processing module switches from the first network to the second network, and the number of times the short message sending module successfully transmits the short message in the second network is greater than a preset number, the processing module is also used to push a prompt message; the prompt message is used to remind the user to activate the short message service of the first network.

[0039] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the method described in any one of the first aspects of the present application.

[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the method as described in any one of the first aspects of the present application.

[0041] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising a computer program, which, when executed, enables a computer to execute the method described in any one of the first aspects of the present application.

[0042] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding optional implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] FIG1 is a diagram of a communication system architecture provided by an embodiment of the present application;

[0044] FIG2 is a flowchart of a short message transmission method according to an embodiment of the present application;

[0045] FIG3 is a second flowchart of the short message transmission method provided in an embodiment of the present application;

[0046] FIG4 is a flowchart of a third method for transmitting a short message according to an embodiment of the present application;

[0047] FIG5 is a fourth flowchart of a short message transmission method according to an embodiment of the present application;

[0048] FIG6 is a schematic diagram of an interface provided in an embodiment of the present application;

[0049] FIG7 is another schematic diagram of an interface provided in an embodiment of the present application;

[0050] FIG8 is a schematic structural diagram of a short message transmission device provided in an embodiment of the present application;

[0051] FIG9 is a schematic diagram of the hardware structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to better understand the short message transmission method provided in the embodiment of the present application, the communication system architecture of the embodiment of the present application is first described below.

[0053] For example, Figure 1 is a diagram of the communication system architecture provided in an embodiment of the present application. As shown in Figure 1, the communication system 100 includes a terminal device 101, an access network device 102, a core network device 103, an IP Multimedia Subsystem (IMS) 104, and a Short Message Service (SMS) platform 105. The access network device 102 is connected to the terminal device 101 and the core network device 103, respectively, and the IMS 104 is connected to the core network device 103 and the Short Message Service platform 105, respectively.

[0054] The access network device 102 includes a first access network device 102a and a second access network device 102b. For example, the first access network device 102a is a 5G base station, and the second access network device 102b is a 4G base station. The core network device 103 includes a first core network device 103a and a second core network device 103b. For example, the first core network device 103a is a 5G core network device, and the second core network device 103b is a 4G core network device.

[0055] In some embodiments, the terminal device 101 communicates with the short message service platform 105 through the access network device 102, the core network device 103, and the IMS 104. In one example, the terminal device 101 accesses a first network, for example, a 5G network, and the terminal device 101 can communicate with the short message service platform 105 through the access network device 102a, the first core network device 103a, and the IMS 104. In another example, the terminal device 101 accesses a second network, for example, a 4G network, and the terminal device 101 can communicate with the short message service platform 105 through the access network device 102b, the second core network device 103b, and the IMS 104.

[0056] In some embodiments, the terminal device 101 communicates with the short message service platform 105 through the access network device 102 and the core network device 103. In one example, the terminal device 101 accesses a first network, for example, a 5G network, and the terminal device 101 can communicate with the short message service platform 105 through the access network device 102a and the first core network device 103a. In another example, the terminal device 101 accesses a second network, for example, a 4G network, and the terminal device 101 can communicate with the short message service platform 105 through the access network device 102b and the second core network device 103b.

[0057] The terminal device involved in this application may also be referred to as a terminal, which may be a device with wireless transceiver capabilities, which may be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it may also be deployed on the water (such as a ship, etc.); it may also be deployed in the air (for example, on an airplane, a balloon, and a satellite, etc.). The terminal device may be a user equipment (UE), wherein the UE includes a handheld device, a vehicle-mounted device, a wearable device, or a computing device with wireless communication capabilities. Exemplarily, the UE may be a mobile phone, a tablet computer, or a computer with wireless transceiver capabilities. The terminal device may also be a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in a smart grid, a wireless terminal in a smart city, a wireless terminal in a smart home, and the like.

[0058] In an embodiment of the present application, the device for implementing the function of the terminal may be the terminal; or it may be a device that can support the terminal to implement the function, such as a chip system, which may be installed in the terminal.

[0059] The access network equipment involved in this application may be a base station, an evolved NodeB (eNodeB), a transmission reception point (TRP), a next generation NodeB (gNB) in a 5G mobile communication system, a next generation base station in a 6G mobile communication system, a base station in a future mobile communication system, or an access node in a WiFi system, etc.; it may also be a module or unit that completes part of the functions of a base station, for example, it may be a centralized unit (CU) or a distributed unit (DU). In an embodiment of the present application, the first network accessed by the terminal device may be a 5G network, and the access network equipment may be described as a 5G base station. The second network accessed by the terminal device may be a 4G network, and the access network equipment may be described as a 4G base station.

[0060] In a 5G network, core network equipment includes user plane function (UPF) network elements, access and mobility management function (AMF) network elements, session management function (SMF) network elements, policy control function (PCF) network elements, etc. In the embodiment of the present application, the first network accessed by the terminal device may be a 5G network. The 5G core network equipment mainly involves network elements such as AMF and UPF. AMF is mainly responsible for control plane management, including mobility management, session management, security protection, etc. UPF is mainly responsible for routing and forwarding user plane data packets, data and service identification, action and policy execution, etc.

[0061] In some embodiments, the 5G network may also be referred to as an NR network.

[0062] In a 4G network, core network equipment includes a mobility management entity (MME) network element, a serving gateway (SG), a packet data network gateway (PGW), a home subscriber server (HSS), etc. In the embodiment of the present application, the second network accessed by the terminal device may be a 4G network. The network elements mainly involved in the 4G core network equipment are the MME and the PGW. The MME is mainly responsible for mobility management and control, including user authentication, paging, location update, and handover. The PGW is mainly responsible for data traffic of mobile devices and connecting to external networks. In addition, it is also responsible for session management and bearer control of mobile devices, as well as IP address allocation.

[0063] In some embodiments, the 4G network may also be referred to as a Long Term Evolution (LTE) network.

[0064] In the embodiments of the present application, the device for implementing the function of the network device can be a network device, or a device capable of supporting the network device to implement the function, such as a chip system, which can be installed in the network device. The network device includes the aforementioned access network device and core network device.

[0065] The technical solutions provided in the embodiments of the present application can be applied to the LTE architecture, and can also be applied to the UMTS Terrestrial Radio Access Network (UTRAN) architecture, or the GSM EDGE Radio Access Network (GERAN) architecture of the Global System for Mobile Communication (GSM) / Enhanced Data Rate for GSM Evolution (EDGE) system. In addition, the technical solutions provided in the embodiments of the present application can also be applied to any other wireless communication system with similar structure and function, such as the Public Land Mobile Network (PLMN) system, the 5G communication system or the communication system after 5G, etc., and the embodiments of the present application do not impose any restrictions on this.

[0066] Wireless communication between communication devices may include: wireless communication between network devices and terminal devices, wireless communication between network devices and network devices, and wireless communication between terminal devices and terminal devices. In the embodiments of the present application, the term "wireless communication" may also be referred to as "communication", and the term "communication" may also be described as "data transmission", "information transmission" or "transmission". Those skilled in the art may apply the technical solutions provided in the embodiments of the present application to wireless communication between network devices and terminal devices, for example, wireless communication between core network devices and terminal devices.

[0067] In the 5G SA scenario, after the terminal device is powered on, it can access the 5G network. The user uses the terminal device to send a short message. If the SIM card of the terminal device does not have the 5G SMS service activated or the 5G SMS service is activated abnormally, the terminal device will receive a network response METHOD_NOT_ALLOWED (405), resulting in a failure to send the short message. The above process can be referred to Figure 2.

[0068] FIG2 is a flowchart of a short message transmission method according to an embodiment of the present application. As shown in FIG2 , the short message transmission method includes the following steps:

[0069] S201. The terminal device sends a radio resource control (RRC) connection request to the first access network device.

[0070] In some embodiments, after the terminal device is powered on or restarted, it sends an RRC connection request to the first access network device.

[0071] S202. The first access network device sends an RRC connection response to the terminal device.

[0072] In some embodiments, the terminal device receives an RRC connection response sent by the first access network device, where the RRC connection response is used to indicate that the RRC connection is successful, and executes S203.

[0073] S203. The terminal device sends a registration request to the first core network device.

[0074] The terminal device sends a registration request to the first core network device through the first access network device.

[0075] S204. The first core network device sends a registration response to the terminal device.

[0076] The first core network device sends a registration response to the terminal device through the first access network device.

[0077] In some embodiments, the registration response is a registration accept response, indicating that the registration is successful.

[0078] In one example, the first network accessed by the terminal device is a 5G network, the first access network device is a 5G base station, and the first core network device is an AMF.

[0079] In some embodiments, if the first network does not support the terminal device transmitting short messages via NAS, the registration response may be used to indicate that the network side does not support transmitting short messages via NAS (sms_over_nas_allowed=0).

[0080] In some embodiments, if the first network supports the terminal device transmitting short messages via NAS, the registration response may be used to indicate that the network side supports the transmission of short messages via NAS (sms_over_nas_allowed=1).

[0081] It should be noted that whether the first network supports the transmission of short messages by terminal devices via NAS depends on whether the network in the region where the terminal device is located supports the transmission of short messages via NAS. For example, if the 5G network in region A supports the transmission of short messages via NAS, terminal devices connected to the 5G network in region A can transmit short messages via NAS. For another example, if the 5G network in region B does not support the transmission of short messages via NAS, terminal devices connected to the 5G network in region B cannot transmit short messages via NAS.

[0082] In some embodiments, when a terminal device accesses a first network, the following steps may be performed:

[0083] S205: The terminal device sends a first short message request to the short message service platform through the IMS.

[0084] The terminal device sends a first short message request to the first access network device, the first access network device forwards the first short message request to the first core network device, the first core network device forwards the first short message request to the IMS, and the IMS forwards the first short message request to the short message service platform.

[0085] S206: The short message service platform sends a first short message response to the terminal device through the IMS.

[0086] The short message service platform sends a first short message response to the IMS, the IMS forwards the first short message response to the first core network device, the first core network device forwards the first short message response to the first access network device, and the first access network device forwards the first short message response to the terminal device.

[0087] In some embodiments, if the SIM card of the terminal device has not activated the 5G SMS service or the activation of the 5G SMS service is abnormal, the short message service platform sends a first short message response to the terminal device through the IMS, and the first short message response is used to indicate that the short message request failed (METHOD_NOT_ALLOWED(405)).

[0088] In some embodiments, if the first network accessed by the terminal device supports non-access layer NAS transmission of short messages, the terminal device may transmit the short message through NAS after receiving the first short message response indicating that the short message request failed.

[0089] In this embodiment, the reason why the terminal device fails to transmit a short message via the IMS on the first network may be that the short message service on the first network is not activated or is activated abnormally on the terminal device's SIM card. After the terminal device fails to transmit a short message via the IMS on the first network, it can attempt to retransmit the short message via the NAS to improve the success rate of the short message transmission.

[0090] In some embodiments, if the first network accessed by the terminal device does not support NAS transmission of short messages, the terminal device cannot retransmit the short message through NAS after receiving the first short message response indicating that the short message request failed.

[0091] To address the situation where a terminal device fails to transmit a short message via IMS and is unable to retransmit the short message via NAS, this application proposes a short message transmission method. As shown in Figure 3, when a terminal device fails to transmit a short message via IMS on a first network, the terminal device accesses a second network (S301) and transmits the short message on the second network (S302), where the first network does not support NAS transmission of short messages. Since the terminal device cannot retransmit the short message via NAS on the first network, the above method improves the success rate of short message transmission by switching networks and retransmitting the short message.

[0092] In some embodiments, a short message may also be described as an SMS message.

[0093] The above scheme is described in detail below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other. For the same or similar content, such as the explanation of terms or nouns, and the explanation of steps, etc., different embodiments can refer to each other and will not be repeated.

[0094] FIG4 is a second flowchart of the short message transmission method provided in an embodiment of the present application. As shown in FIG4 , when the terminal device fails to transmit the short message via IMS on the first network (see S201 to S206 ), and the first network does not support the transmission of short messages via NAS, the short message transmission method includes the following steps:

[0095] S401. The terminal device sends an RRC connection request to the second access network.

[0096] S402. The second access network device sends an RRC connection response to the terminal device.

[0097] In some embodiments, the terminal device receives an RRC connection response sent by the second access network device, where the RRC connection response is used to indicate that the RRC connection is successful, and executes S403.

[0098] S403. The terminal device sends a tracking area update request (TAU request) to the second core network device.

[0099] The terminal device sends a tracking area update request to the second core network device through the second access network device.

[0100] S404. The second core network device sends a tracking area update response to the terminal device.

[0101] The second core network device sends a tracking area update response to the terminal device through the second access network device.

[0102] In some embodiments, the tracking area update response is a tracking area update accept (TAU accept) response, which is used to indicate that the tracking area update is successful.

[0103] The process from S401 to S404 can be regarded as an access process of the terminal device switching to the second network after failing to transmit a short message on the first network. At this point, the terminal device is connected to the second network.

[0104] In one example, the second network accessed by the terminal device is a 4G network, the second access network device is a 4G base station, and the second core network device is an MME.

[0105] In some embodiments, when a terminal device accesses a second network, the terminal device may execute:

[0106] S405: The terminal device sends a second short message request to the short message service platform through the IMS.

[0107] The terminal device sends a second short message request to the second access network device, the second access network device forwards the second short message request to the second core network device, the second core network device forwards the second short message request to the IMS, and the IMS forwards the second short message request to the short message service platform.

[0108] In some embodiments, after S405 , the following operations may be performed:

[0109] S406a: The short message service platform sends a second short message response to the terminal device through the IMS. The second short message response is used to indicate that the short message request is successful.

[0110] The short message service platform sends a second short message response to the IMS, the IMS forwards the second short message response to the second core network device, the second core network device forwards the second short message response to the second access network device, and the second access network device forwards the second short message response to the terminal device.

[0111] S407: The terminal device sends a third short message request to the short message service platform through the IMS. The third short message request carries the short message content.

[0112] The terminal device sends a third short message request to the second access network device, the second access network device forwards the third short message request to the second core network device, the second core network device forwards the third short message request to the IMS, and the IMS forwards the third short message request to the short message service platform.

[0113] S408. The short message service platform sends a third short message response to the terminal device through the IMS. The third short message response is used to indicate successful reception of the short message content.

[0114] The short message service platform sends a third short message response to the IMS, the IMS forwards the third short message response to the second core network device, the second core network device forwards the third short message response to the second access network device, and the second access network device forwards the third short message response to the terminal device.

[0115] In the short message transmission method shown in this embodiment, after the terminal device fails to transmit the short message through the IMS on the first network, it can access the second network and retransmit the short message through the IMS on the second network, thereby improving the success rate of short message transmission.

[0116] In some other embodiments, after S405, the following steps may be performed:

[0117] S406b: The short message service platform sends a second short message response to the terminal device through the IMS. The second short message response is used to indicate that the short message request fails.

[0118] The short message service platform sends a second short message response to the IMS, the IMS forwards the second short message response to the second core network device, the second core network device forwards the second short message response to the second access network device, and the second access network device forwards the second short message response to the terminal device.

[0119] The reason why the terminal device fails to transmit a short message via IMS on the second network may be that the short message service on the second network is not activated or activated abnormally on the terminal device's SIM card. After the terminal device fails to transmit a short message via IMS on the second network, since the second network supports the transmission of short messages via NAS (indicated in S404), the following operations may be performed:

[0120] S409: The terminal device sends a fourth short message request to the short message service platform through the NAS. The fourth short message request carries the short message content.

[0121] S410. The short message service platform sends a fourth short message response to the terminal device through the NAS. The fourth short message response is used to indicate successful reception of the short message content.

[0122] In the short message transmission method shown in this embodiment, after the terminal device fails to transmit the short message through the IMS on the first network, it can access the second network and retransmit the short message through the IMS on the second network. If the short message transmission through the IMS on the second network still fails, since the second network supports the transmission of short messages through NAS, the terminal device can retransmit the short message through NAS again, thereby improving the success rate of short message transmission.

[0123] In the above embodiment, after a terminal device fails to send a short message on the first network, it can switch networks and resend the short message on the second network, thereby improving the success rate of short message transmission. Typically, the level of the first network is higher than that of the second network. It should be understood that after the terminal device successfully transmits the short message on the second network, the terminal device can reconnect to the first network to ensure the communication quality of the terminal device.

[0124] In view of this, the present application also provides a method for transmitting short messages. After a terminal device switches from a first network to a second network, a timer can be set. During the timer duration, the terminal device transmits the short message on the second network. Typically, the terminal device successfully transmits the short message within the timer duration. After the timer expires, the terminal device reconnects to the first network to ensure the communication quality of the terminal device. The above process can be referred to Figure 5.

[0125] FIG5 is a fourth flow chart of the short message transmission method provided in an embodiment of the present application. As shown in FIG5 , the short message transmission method includes the following steps:

[0126] S501: A terminal device accesses a first network.

[0127] The process of the terminal device accessing the first network can refer to S201 to S204 and will not be repeated here.

[0128] In some embodiments, the user interface (UI) of the terminal device detects the operation of obtaining the SMS verification code and executes:

[0129] S502: The user interface of the terminal device sends a notification message to the communication module of the terminal device.

[0130] In some embodiments, the user interface obtains the IP address of the application server that requests the SMS verification code, and the notification message includes the IP address of the application server.

[0131] S503: The communication module of the terminal device sends a first request to the application server, where the first request is used to request to obtain an SMS verification code.

[0132] The terminal device is currently connected to a first network, such as a 5G network. The communication module sends a first request to the application server on the first network based on the IP address of the notification message. Specifically, the communication module sends the first request to a first access network device (such as a 5G base station). The first access network device forwards the first request to a first core network device (such as a UPF network element). The first core network device forwards the first request to the application server.

[0133] For example, Figure 6 illustrates an interface diagram provided by an embodiment of the present application. As shown in Figure 6 , a user clicks control 602 on login interface 601 of a banking application. Control 602 is used to trigger the acquisition of an SMS verification code. In response to this click, the terminal device initiates a request to the application server to obtain the SMS verification code.

[0134] In some embodiments, after S502, the method further includes:

[0135] S504: The communication module of the terminal device starts a second timer.

[0136] In some embodiments, the modem in the communication module of the terminal device starts a second timer.

[0137] In some embodiments, if the second timer times out and the SMS verification code is not received, the following operations may be performed:

[0138] S505: The terminal device accesses the second network.

[0139] The process of the terminal device accessing the second network can refer to S401 to S404, which will not be repeated here.

[0140] In this embodiment, the purpose of setting the second timer is to facilitate the terminal device to monitor whether the network side replies to the SMS verification code. If the second timer times out and the SMS verification code is still not received, the terminal device may consider that the request for the SMS verification code on the first network has failed, and then choose to switch networks, such as switching from a 5G network to a 4G network.

[0141] Exemplarily, the duration of the second timer may be, for example, 1 minute.

[0142] It should be noted that the reason why the terminal device cannot receive the SMS verification code in the first network, such as the 5G network, may be that the SIM card of the terminal device has not activated the 5G SMS service or the 5G SMS service is activated abnormally.

[0143] S506: The communication module of the terminal device sends a second request to the application server through the second network, where the second request is used to request to obtain a text message verification code.

[0144] The terminal device is currently connected to a second network, such as a 4G network, and the communication module sends a second request to the application server on the second network. Specifically, the communication module sends the second request to a second access network device (such as a 4G base station), the first access network device forwards the second request to a second core network device (such as a PGW), and the second core network device forwards the second request to the application server.

[0145] S506 is an optional step. In some embodiments, the terminal device may not send the second request, and after accessing the second network, wait for the application server to return the SMS verification code via the second network.

[0146] In some embodiments, after S505 or S506, the method further includes:

[0147] S507: The application server sends a text message verification code to the communication module of the terminal device.

[0148] The terminal device is currently connected to the second network, and the application server responds to the first request or the second request and sends a text message verification code to the terminal device. Specifically, the application server sends the text message verification code to the terminal device through the short message service platform (IMS), the MME of the second network, and the 4G base station.

[0149] In some embodiments, after S505, the method further includes:

[0150] S508: The communication module of the terminal device starts a first timer.

[0151] In some embodiments, a modem in a communication module of the terminal device starts a first timer.

[0152] In some embodiments, if the first timer times out, the following operations may be performed:

[0153] S509: The terminal device accesses the first network.

[0154] In this embodiment, the purpose of setting the first timer is to set the duration of the first network's closure. During the first timer, the terminal device can re-request the SMS verification code on the second network or wait to receive the SMS verification code. After the first timer expires, the terminal device re-connects to the first network to ensure the terminal device's communication quality.

[0155] Exemplarily, the duration of the first timer may be, for example, 5 minutes.

[0156] The short message transmission method shown in this embodiment sets a first timer so that the terminal device can receive the SMS verification code on the second network within the duration of the first timer. A second timer is set so that if the second timer expires and the SMS verification code has not been received on the first network, the terminal device can access the second network to receive the SMS verification code.

[0157] In some embodiments, within a preset time period, if the terminal device switches from the first network to the second network and successfully transmits short messages on the second network more than a preset number of times, the terminal device pushes a prompt message, which is used to remind the user to activate the short message service of the first network.

[0158] In this embodiment, the terminal device will increase the counter by 1 after the network switching and successful transmission of the short message process are executed once. If the number of times recorded by the counter within the preset time period is greater than the preset number, the terminal device pushes a prompt message.

[0159] It is understandable that the terminal device fails to transmit a short message on the first network and needs to switch networks to complete the short message transmission, indicating that the short message service of the terminal device on the first network is abnormal. By pushing prompt information, the user can contact the operator in time to avoid similar situations from recurring.

[0160] For example, the preset period is set to 24 hours, the preset number of times is set to 3 times, the first network is a 5G network, and the second network is a 4G network:

[0161] In one example, referring to the process shown in Figure 4, a terminal device fails to transmit a short message via IMS on a 5G network, and the 5G network does not support the transmission of short messages via NAS. The terminal device then successfully retransmits the short message by connecting to a 4G network. The above process is performed once, and the counter is incremented by 1. If the counter exceeds 3 times within 24 hours, the terminal device pushes a prompt message to remind the user to contact the operator to (re)activate the 5G SMS service.

[0162] In one example, referring to the process shown in Figure 5, a user initiates a request for an SMS verification code through a terminal device. The terminal device does not receive the SMS verification code on the 5G network (possibly because the 5G SMS service on the terminal device's SIM card is abnormally activated or not activated). It then connects to the 4G network to receive the SMS verification code. The above process is performed once, and the counter is incremented by 1. If the counter counts more than 3 times within 24 hours, the terminal device pushes a prompt message to remind the user to contact the operator to (re)activate the 5G SMS service.

[0163] In some embodiments, the terminal device pushes prompt messages in a manner including voice prompts or interface prompts. For example, FIG7 is another interface schematic diagram provided in an embodiment of the present application. Referring to FIG6, the user enters the login interface 601 of the banking APP for the third time within 24 hours, and clicks the control 602 to successfully obtain the SMS verification code. If the processing flow for successfully obtaining the SMS verification code for these three times is to successfully obtain the SMS verification code by switching the network (such as switching from 5G network to 4G), the terminal device can pop up a prompt box on a certain interface 701 after obtaining the SMS verification code for the third time, such as the prompt box 702 in FIG7, and the prompt box 702 displays "Please contact the operator to activate the 5G SMS service to improve the efficiency of SMS sending and receiving". In some embodiments, the prompt box may be located above the interface.

[0164] FIG8 is a schematic diagram of the structure of a short message transmission device provided in an embodiment of the present application. As shown in FIG8 , the short message transmission device 800 includes: a sending module 801 and a processing module 802 .

[0165] When the sending module 801 fails to transmit the short message through the Internet Multimedia Subsystem IMS on the first network, the processing module 802 is used to access the second network; the first network does not support the sending module 801 to transmit the short message through the non-access layer NAS; the sending module 801 is further used to transmit the short message on the second network.

[0166] In an optional embodiment, the sending module 801 is configured to transmit a short message via the IMS on the second network.

[0167] In an optional embodiment, the second network supports the terminal device to transmit short messages through NAS.

[0168] In an optional embodiment, when the sending module 801 fails to transmit the short message through the IMS on the second network, the sending module 801 is further configured to transmit the short message through the NAS.

[0169] In an optional embodiment, the transmission device further includes: a receiving module 803.

[0170] A sending module 801 is configured to send a radio resource control RRC connection request to an access network device of a second network;

[0171] A receiving module 803 is configured to receive an RRC connection response from an access network device of the second network, where the RRC connection response is used to indicate that the RRC connection is successful;

[0172] A sending module 801 is configured to send a tracking area update request to a core network device of a second network;

[0173] The receiving module 803 is configured to receive a tracking area update response from a core network device of the second network, where the tracking area update response is used to indicate that the second network supports the terminal device to transmit short messages through NAS.

[0174] In an optional embodiment, the processing module 802 is configured to start a first timer after accessing the second network; and access the first network after the first timer times out.

[0175] In an optional embodiment, within a preset time period, if the processing module 802 switches from the first network to the second network and the number of short messages successfully transmitted by the sending module 801 in the second network is greater than a preset number, the processing module 802 is also used to push a prompt message; the prompt message is used to remind the user to activate the short message service of the first network.

[0176] The short message transmission device provided in this embodiment is used to implement the technical solution of the terminal device in the aforementioned method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.

[0177] Figure 9 is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application. As shown in Figure 9, terminal device 900 includes: a processor 901 and a memory 902; the memory 902 stores computer-executable instructions; the processor 901 executes the computer-executable instructions stored in the memory 902, causing the terminal device to implement the technical solution of the terminal device in the aforementioned method embodiment. The implementation principles and technical effects are similar and will not be repeated here.

[0178] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method steps performed by the terminal device in the aforementioned method embodiment are implemented.

[0179] An embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed, the computer executes the method steps executed by the terminal device in the aforementioned method embodiment.

[0180] The methods described in the above embodiments can be implemented in whole or in part through software, hardware, firmware, or any combination thereof. If implemented in software, the functions can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0181] In one possible implementation, computer-readable media may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium designed to carry or store the desired program code in the form of instructions or data structures and accessible by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwave are used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and optical disk as used herein include optical disk, laser disk, optical disk, digital versatile disk (DVD), floppy disk and Blu-ray disk, where disks generally reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0182] The present application embodiment is described with reference to the flowchart and / or block diagram of the method, device (system) according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable device to produce a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0183] The above specific implementation methods further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for transmitting a short message, characterized in that: include: When the terminal device fails to transmit the short message through the Internet Multimedia Subsystem IMS on the first network, the terminal device accesses the second network; the first network does not support the terminal device to transmit the short message through the non-access layer NAS; The terminal device transmits the short message on the second network.

2. The method according to claim 1, characterized in that The terminal device transmitting the short message on the second network includes: The terminal device transmits the short message through the IMS on the second network.

3. The method according to claim 1 or 2, characterized in that The second network supports the terminal device to transmit short messages through NAS.

4. The method according to claim 2 or 3, characterized in that The method further comprises: When the terminal device fails to transmit the short message through the IMS on the second network, the terminal device transmits the short message through the NAS.

5. The method according to any one of claims 1 to 4, characterized in that The terminal device accesses the second network, including: The terminal device sends a radio resource control RRC connection request to the access network device of the second network; The terminal device receives an RRC connection response from the access network device of the second network, where the RRC connection response is used to indicate that the RRC connection is successful; The terminal device sends a tracking area update request to the core network device of the second network; The terminal device receives a tracking area update response from a core network device of the second network, where the tracking area update response is used to indicate that the second network supports the terminal device to transmit short messages through NAS.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: After the terminal device accesses the second network, the terminal device starts a first timer; After the first timer times out, the terminal device accesses the first network.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: Within a preset time period, if the terminal device switches from the first network to the second network and successfully transmits short messages on the second network more than a preset number of times, the terminal device pushes a prompt message; The prompt message is used to remind the user to activate the short message service of the first network.

8. A short message transmission device, characterized in that: include: When the sending module fails to transmit the short message through the Internet Multimedia Subsystem IMS on the first network, the processing module is used to access the second network; the first network does not support the sending module to transmit the short message through the non-access layer NAS; The sending module is further configured to transmit the short message on the second network.

9. A terminal device, characterized in that: include: processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the terminal device performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.