Short message transmission method and device, equipment and storage medium

In the 5G independent networking scenario, when the SIM card of the terminal device does not enable 5G SMS service or is activated abnormally, network switching and different transmission protocols are used to solve the problem of short message transmission failure, and the transmission success rate and communication quality are improved.

CN119906960APending Publication Date: 2025-04-29HONOR DEVICE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311365963.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-19
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In the 5G independent networking scenario, the SIM card of the terminal device does not activate the 5G SMS service or is activated abnormally, resulting in the failure of sending the short message.

Method used

When the terminal device fails to transmit short messages through IMS on the first network (such as 5G network), it accesses a second network (such as 4G network) and transmits short messages through IMS or NAS on the second network to improve the transmission success rate.

Benefits of technology

Through network switching and the use of different transmission protocols, the success rate of short message transmission is improved and the communication quality of terminal devices is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906960A_ABST
    Figure CN119906960A_ABST
Patent Text Reader

Abstract

The invention provides a short message transmission method and device, equipment and a storage medium, and the method comprises the steps that when terminal equipment fails to transmit a short message on a first network through an internet protocol multimedia subsystem (IMS), the terminal equipment accesses a second network, and the terminal equipment transmits the short message on the second network. Wherein the first network does not support the terminal device to transmit the short message through a non-access stratum (NAS). According to the method, the short message is retransmitted by switching the network, so that the success rate of transmitting the short message can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a short message transmission method, device, equipment and storage medium. Background Art

[0002] In the standalone (SA) scenario of the fifth generation mobile communication technology (5G), after the terminal device accesses the 5G network, the terminal device can transmit short messages through the IP Multimedia Subsystem (IMS). If the subscriber identity module (SIM) card of the terminal device has not activated the 5G SMS service or the 5G SMS service is activated abnormally, the short message sending may fail. Summary of the invention

[0003] The embodiments of the present application provide a method, apparatus, device and storage medium for transmitting short messages, which improve the success rate of short message transmission by terminal devices.

[0004] 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 Protocol Multimedia Subsystem IMS on a first network, the terminal device accesses a second network; the first network does not support the terminal device to transmit short messages through a non-access layer NAS; and the terminal device transmits the short message on the second network.

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

[0006] In the above scheme, the reasons for the failure of transmitting short messages on the first network include: the SIM card of the terminal device has not activated the SMS service of the first network or the activation is abnormal. In some scenarios, the first network supports the transmission of short messages through NAS. After the terminal device fails to transmit short messages through IMS on the first network, the short message can be retransmitted through NAS. However, in other scenarios, the first network does not support the transmission of short messages through NAS. The first network can be switched to the second network, and the short message can be transmitted again on the second network to improve the success rate of transmitting short messages.

[0007] 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.

[0008] In the above solution, after the terminal device accesses the second network, it can try to transmit the short message through the IMS on the second network to achieve short message retransmission.

[0009] 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.

[0010] 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.

[0011] In the above scheme, the terminal device accesses the 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 transmitted through NAS to achieve short message retransmission.

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

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

[0014] 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;

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

[0016] 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.

[0017] 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.

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

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

[0020] After the first timer times out, the terminal device accesses the first network.

[0021] 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, the terminal device can retransmit the short message on the second network. After the first timer expires, it reconnects to the first network to ensure the communication quality of the terminal device.

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

[0023] Within a preset period of time, if the terminal device switches from the first network to the second network and the number of short messages successfully transmitted on the second network is greater than a preset number, the terminal device pushes a prompt message;

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

[0025] 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 than the preset times to complete the short message transmission, 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.

[0026] In a second aspect, an embodiment of the present application proposes a short message transmission device, including: a sending module and a processing module. 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 also used to transmit the short message on the second network.

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

[0028] 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.

[0029] 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.

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

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

[0032] A receiving module, used 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;

[0033] A sending module, used to send a tracking area update request to a core network device of the second network;

[0034] 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.

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

[0036] 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 in the second network successfully transmits 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.

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

[0038] 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, the method described in any one of the first aspects of the present application is implemented.

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

[0040] 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

[0041] Figure 1 A communication system architecture diagram provided for an embodiment of the present application;

[0042] Figure 2 The process of the short message transmission method provided in the embodiment of the present application Figure 1 ;

[0043] Figure 3 The process of the short message transmission method provided in the embodiment of the present application Figure 2 ;

[0044] Figure 4 The process of the short message transmission method provided in the embodiment of the present application Figure 3 ;

[0045] Figure 5 The process of the short message transmission method provided in the embodiment of the present application Figure 4 ;

[0046] Figure 6 A schematic diagram of an interface provided in an embodiment of the present application;

[0047] Figure 7 Another interface schematic diagram provided for an embodiment of the present application;

[0048] Figure 8 A schematic diagram of the structure of a short message transmission device provided in an embodiment of the present application;

[0049] Fig. 9 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] 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.

[0051] For example, Figure 1 This is a communication system architecture diagram provided in the embodiment of the present application. Figure 1 As shown, 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.

[0052] 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.

[0053] 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 the first network, for example, the first network is 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 the second network, for example, the second network is 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.

[0054] 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 the first network, for example, the first network is 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 the second network, for example, the second network is 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.

[0055] The terminal device involved in this application may also be referred to as a terminal, which may be a device with wireless transceiver function, which may be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it may also be deployed on the water surface (such as ships, etc.); it may also be deployed in the air (for example, on airplanes, balloons, and satellites, 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 function. Exemplarily, the UE may be a mobile phone, a tablet computer, or a computer with wireless transceiver function. 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.

[0056] In an embodiment of the present application, the device for implementing the function of the terminal may be a 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.

[0057] 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.

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

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

[0060] 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, and the network elements mainly involved in the 4G core network equipment are MME and PGW. MME is mainly responsible for mobility management and control, including user authentication, paging, location update and switching, etc. PGW is mainly responsible for data traffic of mobile devices and connecting to external networks, and is also responsible for session management and bearer control of mobile devices, as well as IP address allocation, etc.

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

[0062] In the embodiment 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.

[0063] The technical solution provided in the embodiments of the present application can be applied to the LTE architecture, and can also be applied to the UTRAN architecture of the Universal Mobile Telecommunications System (UMTS) Terrestrial Radio Access Network, or the GERAN architecture of the Global System for Mobile Communication (GSM) / Enhanced Data Rate for GSM Evolution (EDGE) system. In addition, the technical solution 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 PLMN system, 5G communication system or communication system after 5G, etc., and the embodiments of the present application do not impose any limitation on this.

[0064] 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 use the technical solution provided in the embodiments of the present application for wireless communication between network devices and terminal devices, for example, wireless communication between core network devices and terminal devices.

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

[0066] Figure 2 The process of the short message transmission method provided in the embodiment of the present application Figure 1 .like Figure 2 As shown, the short message transmission method comprises the following steps:

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

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

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

[0070] 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.

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

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

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

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

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

[0076] 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.

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

[0078] 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).

[0079] It should be noted that whether the first network supports the transmission of short messages by the terminal device through NAS depends on whether the network in the area where the terminal device is located supports the transmission of short messages through NAS. For example, the 5G network in area A supports the transmission of short messages through NAS, and the terminal device accessing the 5G network in area A can transmit short messages through NAS. For another example, the 5G network in area B does not support the transmission of short messages through NAS, and the terminal device accessing the 5G network in area B cannot transmit short messages through NAS.

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

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

[0082] 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.

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

[0084] 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.

[0085] 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)).

[0086] 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 the failure of the short message request.

[0087] In this embodiment, the reason why the terminal device fails to transmit a short message through the IMS on the first network may be that the SIM card of the terminal device has not activated the short message service on the first network or the activation is abnormal. After the terminal device fails to transmit a short message through the IMS on the first network, it can try to retransmit the short message through NAS to improve the success rate of short message transmission.

[0088] 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 the failure of the short message request.

[0089] In view of the problem that after a terminal device fails to transmit a short message through IMS, it is impossible to retransmit the short message through NAS. This application proposes a short message transmission method, such as Figure 3 As shown, when the terminal device fails to transmit a short message through IMS on the first network, the terminal device accesses the second network (S301) and transmits the short message on the second network (S302), wherein the first network does not support NAS transmission of short messages. Since the terminal device cannot retransmit the short message through NAS on the first network, the above method can improve the success rate of short message transmission by switching the network to retransmit the short message.

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

[0091] The above scheme is described in detail below through specific embodiments. It should be noted that the following embodiments can exist alone or in combination with each other. For the same or similar contents, for example, explanations of terms or nouns, and explanations of steps, etc., they can be referenced to each other in different embodiments and will not be repeated.

[0092] Figure 4 The process of the short message transmission method provided in the embodiment of the present application Figure 2 .like Figure 4As shown, when the terminal device fails to transmit a short message through the IMS on the first network (refer to S201 to S206), and the first network does not support the transmission of short messages through NAS, the short message transmission method includes the following steps:

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

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

[0095] 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 S403 is executed.

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

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

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

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

[0100] 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.

[0101] The process from S401 to S404 can be regarded as an access process of the terminal device switching to the second network after the short message transmission on the first network fails. At this point, the terminal device accesses the second network.

[0102] 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.

[0103] In some embodiments, when the terminal device accesses the second network, the following operations may be performed:

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

[0105] 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.

[0106] In some embodiments, after S405, the following may be executed:

[0107] 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.

[0108] 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.

[0109] 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.

[0110] 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.

[0111] 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.

[0112] 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.

[0113] 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 the short message transmission.

[0114] In some other embodiments, after S405, the following may be executed:

[0115] 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.

[0116] 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.

[0117] The reason why the terminal device fails to transmit a short message via IMS on the second network may be that the SIM card of the terminal device has not activated the short message service on the second network or the activation is abnormal. 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 can be executed:

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

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

[0120] 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.

[0121] In the above embodiment, after the terminal device fails to send a short message on the first network, it can resend the short message on the second network by switching networks to improve the success rate of short message transmission. Usually, the level of the first network is higher than the level 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.

[0122] In view of this, the present application also provides a method for transmitting short messages. After the terminal device switches from the first network to the second network, a timer can be set. During the timer duration, the terminal device transmits the short message on the second network. Usually, during the timer duration, the terminal device can successfully transmit the short message. After the timer times out, the terminal device reconnects to the first network to ensure the communication quality of the terminal device. The above process can refer to Figure 5 .

[0123] Figure 5 The process of the short message transmission method provided in the embodiment of the present application Figure 4 .like Figure 5 As shown, the short message transmission method includes the following steps:

[0124] S501. A terminal device accesses a first network.

[0125] The process of the terminal device accessing the first network may refer to S201 to S204, which will not be repeated here.

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

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

[0128] 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.

[0129] 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 a text message verification code.

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

[0131] For example, Figure 6 A schematic diagram of an interface provided in an embodiment of the present application, such as Figure 6 As shown, the user clicks on a control 602 in the login interface 601 of the banking application APP, and the control 602 is used to trigger the acquisition of a text message verification code. In response to the click operation, the terminal device initiates a request to the application server to acquire the text message verification code.

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

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

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

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

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

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

[0138] 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.

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

[0140] 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 activation is abnormal.

[0141] 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.

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

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

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

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

[0146] The terminal device is currently connected to the second network, and the application server sends a text message verification code to the terminal device in response to the first request or the second request. 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.

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

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

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

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

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

[0152] In this embodiment, the purpose of setting the first timer is to set the time for disabling the first network. 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 times out, re-access the first network to ensure the communication quality of the terminal device.

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

[0154] 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. The second timer is set so that when the second timer times out and the SMS verification code is still not received on the first network, the second network is accessed to receive the SMS verification code.

[0155] 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.

[0156] In this embodiment, the terminal device will increase the counter by 1 after the network switching and successful transmission of the short message process is 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.

[0157] 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.

[0158] Exemplarily, 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:

[0159] In one example, refer to Figure 4 In the process shown, the terminal device fails to transmit a short message through IMS on the 5G network, and the 5G network does not support the transmission of short messages through NAS. Then the terminal device accesses the 4G network and retransmits the short message successfully. The above process is performed once, and the counter increases by 1. If the counter is greater 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.

[0160] In one example, refer to Figure 5In the process shown, the user initiates a request to obtain a text message verification code through the terminal device. The terminal device does not receive the text message verification code on the 5G network (it may be that the 5G text message service of the terminal device SIM card is abnormally activated or not activated). Then it connects to the 4G network to receive the text message verification code. The above process is performed once, and the counter is increased 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 text message service.

[0161] In some embodiments, the terminal device pushes the prompt message in a manner including a voice prompt or an interface prompt. Figure 7 Another interface diagram provided in the embodiment of the present application. Figure 6 , 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 of obtaining the SMS verification code successfully for these three times is to successfully obtain the SMS verification code by switching the network (such as switching from 5G network to 4G), then 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 Figure 7 The prompt box 702 in the interface 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.

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

[0163] 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 also used to transmit the short message on the second network.

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

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

[0166] 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.

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

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

[0169] The receiving module 803 is used to receive 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;

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

[0171] The receiving module 803 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.

[0172] 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.

[0173] 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 second network sending module 801 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.

[0174] 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 effect are similar and will not be repeated here.

[0175] Fig. 9 This is a schematic diagram of the hardware structure of the terminal device provided in the embodiment of the present application. Fig. 9 As shown, the terminal device 900 includes: a processor 901 and a memory 902; the memory 902 stores computer execution instructions; the processor 901 executes the computer execution instructions stored in the memory 902, so that the terminal device executes the technical solution of the terminal device in the aforementioned method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0176] 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.

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

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

[0179] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed 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 technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.

[0180] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0181] The above specific implementation methods further illustrate the purpose, 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 substitutions, 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 period of time, if the terminal device switches from the first network to the second network and the number of short messages successfully transmitted on the second network is greater than a preset number, 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 used 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.

Citation Information

Patent Citations

  • Business initiating method and device, terminal and storage medium

    CN112243280A

  • Communication method, device, equipment and medium

    CN113329352A

  • Information transmission method and device, storage medium and chip

    CN115334582A