Terminal message type detection method, device, apparatus, medium and program product

By introducing detection ports and SMS channel capabilities into the 5G messaging system, detection SMS messages are sent based on the user terminal's SIP registration information and the reception status is monitored. This solves the problem of insufficient user terminal support for detection in the 5G messaging system and improves the accuracy of message routing and resource utilization efficiency.

CN119012142BActive Publication Date: 2025-11-04CHINA MOBILE INTERNET CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411037269.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2025-11-04
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

The lack of a mechanism for proactively detecting whether user terminals support 5G messaging in 5G messaging systems leads to message loss, resource waste, and limited service promotion.

Method used

A new detection port is added to the 5G messaging system. Utilizing the capabilities of RCS SIP channel and SMS channel, a detection SMS is sent to the terminal through the detection port based on the user terminal's SIP registration information. The user terminal listens and returns the reception status information to determine the supported message types.

Benefits of technology

It enables proactive, real-time detection of user terminals by the 5G messaging center, improving the accuracy of message routing and resource utilization efficiency, and providing a better user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012142B_ABST
    Figure CN119012142B_ABST
Patent Text Reader

Abstract

The application discloses a terminal message type detection method, device, equipment, medium and program product, which are used for actively and accurately determining whether a user terminal supports 5G messages. The terminal message type detection method comprises the following steps: a 5G message center sends a detection short message to a user terminal through a preset detection port based on session initiation protocol (SIP) registration information of the user terminal; and a message type supported by the user terminal is determined based on receiving state information returned by the user terminal; wherein the message type comprises 5G messages or non-5G messages, and the receiving state information is generated by the user terminal based on a result of the detection port.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, and particularly relates to a terminal message type detection method and device, equipment, medium and program product. BACKGROUND

[0002] In a standard 5th Generation Mobile Communication Technology (5G) message specification, the 5G message system does not have a mechanism to actively identify whether a user terminal supports 5G messages. As a result, not only is the promotion of 5G message services limited, but also the problem of message loss and resource waste occurs in the process of the 5G message system sending messages to a user terminal (UE). SUMMARY

[0003] The purpose of the embodiments of the present application is to provide a terminal message type detection method and device, equipment, medium and program product to actively and accurately determine whether a user terminal supports 5G messages.

[0004] To achieve the above purpose, the embodiments of the present application adopt the following technical solutions:

[0005] In a first aspect, the embodiments of the present application provide a terminal message type detection method applied to a 5G message center, and the method comprises the following steps:

[0006] Based on session initiation protocol (SIP) registration information of a user terminal, a detection short message is sent to the user terminal through a preset detection port.

[0007] Based on reception status information returned by the user terminal, a message type supported by the user terminal is determined, wherein the message type includes a 5G message or a non-5G message, and the reception status information is generated by the user terminal based on a listening result of the detection port.

[0008] In a second aspect, the embodiments of the present application provide a terminal message type detection method applied to a user terminal, and the method comprises the following steps:

[0009] A detection port of a 5G message center is listened to to receive a detection short message sent by the 5G message center.

[0010] Based on a listening result of the detection port, reception status information of the detection short message is returned to the 5G message center, and the reception status information is used by the 5G message center to detect a message type supported by the user terminal, wherein the message type includes a 5G message or a non-5G message.

[0011] In a third aspect, an embodiment of the present application provides a terminal message type detection device, applied to a 5G message center, and the device comprises:

[0012] a registration service module, configured to acquire SIP registration information of a user terminal;

[0013] a terminal capability detection module, configured to determine a message type supported by the user terminal based on reception status information returned by the user terminal, wherein the message type comprises a 5G message or a non-5G message, and the reception status information is generated by the user terminal based on a monitoring result of the detection port.

[0014] In a fourth aspect, an embodiment of the present application provides a terminal message type detection device, applied to a user terminal, and the device comprises:

[0015] a monitoring module, configured to monitor a detection port of a 5G message center to receive a detection message sent by the 5G message center;

[0016] a sending module, configured to return reception status information of the detection message to the 5G message center based on a monitoring result of the detection port, wherein the reception status information is used by the 5G message center to detect a message type supported by the user terminal, and the message type comprises a 5G message or a non-5G message.

[0017] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising:

[0018] a processor;

[0019] a memory for storing instructions executable by the processor;

[0020] The processor is configured to execute the instructions to implement the terminal message type detection method of the first aspect, or the processor is configured to execute the instructions to implement the terminal message type detection method of the second aspect.

[0021] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the terminal message type detection method of the first aspect, or when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the terminal message type detection method of the second aspect.

[0022] In a seventh aspect, an embodiment of the present application provides a computer program product. The computer program product includes a non-transitory computer readable storage medium storing a computer program. The computer program is operable to cause a computer to perform some or all of the steps of the terminal message type detection method of the first aspect or the terminal message type detection method of the second aspect.

[0023] The above at least one technical solution adopted by the embodiments of the present application can achieve the following beneficial effects:

[0024] In the 5G message system, a detection port is newly added. The Session Initiation Protocol (SIP) channel and the short message channel capability of Rich Communication Services (RCS) are utilized. Based on the SIP registration information of the user terminal in the 5G message center, a detection short message is sent to the user terminal through the detection port. Since the related parameters of the detection port are newly added in the specification of the user terminal supporting the 5G message, the user terminal can successfully receive the detection short message by listening to the detection port. Since the related parameters of the detection port are not newly added in the specification of the user terminal not supporting the 5G message, the user terminal cannot successfully receive the detection short message by listening to the detection port. Based on this, the user terminal receives the detection short message in a transparent manner by listening to the detection port, and returns the receiving status information to the 5G message center based on the listening result of the detection port, to indicate whether the detection short message is successfully received. Further, the 5G message center can detect whether the user terminal supports the 5G message based on the receiving status information returned by the user terminal. It can be seen that the above terminal message type detection method introduces an active detection mechanism in the 5G message center, so that the 5G message center can actively and timely detect whether the user terminal supports the 5G message, so as to correspondingly perform message routing and function selection, provide better user experience, and improve resource utilization efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0025] The accompanying drawings, which are included to provide a further understanding of the present application, constitute a part of the present application and illustrate embodiments of the present application and the description thereof, and do not constitute improper limitations to the present application. In the drawings:

[0026] Figure 1 A flowchart of a terminal message type detection method provided for an embodiment of the present application is shown in the figure;

[0027] Figure 2 A flowchart of a terminal message type detection method provided for another embodiment of the present application is shown in the figure;

[0028] Figure 3A structural schematic diagram of a terminal message type detection device provided for an embodiment of the present application;

[0029] Figure 4 A structural schematic diagram of a terminal message type detection device provided for another embodiment of the present application;

[0030] Figure 5 An interaction schematic diagram between a 5G message system and a user terminal provided for an embodiment of the present application;

[0031] Figure 6 A signaling interaction schematic diagram between a 5G message system and a user terminal provided for an embodiment of the present application;

[0032] Figure 7 A structural schematic diagram of a 5G message center provided for an embodiment of the present application;

[0033] Figure 8 A structural schematic diagram of a user terminal provided for an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described below in connection with the embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0035] The terms "first", "second", and the like in the specification and claims are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means that the front and rear associated objects are in an "or" relationship.

[0036] In the standard 5G message specification, the 5G message system does not have a mechanism to actively detect whether the user terminal supports 5G messages, and can only be identified in a passive manner. Specifically, one way is that after the user terminal registers online, the 5G message center (MC) confirms whether the user terminal has 5G message service capabilities and capability sets. Another way is that the online user terminal can send a pre-request OPTIONS message to each contact to detect whether the contact is a 5G message user and the contact has which 5G message capabilities, and the 5G message center can obtain the 5G message capabilities of the detected user terminal through this way.

[0037] However, the passive identification method cannot achieve real-time and accurate identification of the 5G message capabilities of the user terminal, which leads to the following problems in the business processing process:

[0038] First, message loss risk. For example, a user who subscribes to 5G message service replaces a non-5G message terminal. The 5G message terminal may assume that the user terminal is a 5G message terminal and attempt to send 5G messages to the user terminal. This can cause some user terminals to fail to correctly process 5G messages, resulting in message loss.

[0039] Second, 5G message service promotion is limited. Due to the lack of active detection mechanism, the 5G message system cannot actively discover user terminals that support 5G messages and guide users to open and use 5G message services, which will limit the promotion of 5G message services. For example, a user replaces a non-5G message terminal with a 5G message terminal, and the 5G message system cannot immediately identify it and still sends messages in the form of SMS or MMS.

[0040] Third, resource waste. If the 5G message system cannot actively identify whether the user terminal supports 5G messages, it may attempt to send 5G messages to terminals that do not support 5G messages, and then fall back to SMS or MMS after the message sending fails. This attempt mechanism will waste the processing capacity of the 5G message system, network resources and bandwidth.

[0041] To solve the above problems, an embodiment of the present application provides a terminal message type detection method. A detection port is added in a 5G message system. A detection short message is sent to a user terminal through the detection port based on SIP registration information of the user terminal in the 5G message center by using RCS SIP channel and short message channel capabilities. Since the related parameters of the detection port are added in the specification of the user terminal supporting 5G messages, the user terminal can successfully receive the detection short message by listening to the detection port. Since the related parameters of the detection port are not added in the specification of the user terminal not supporting 5G messages, the user terminal cannot successfully receive the detection short message by listening to the detection port. Based on this, the user terminal receives the detection short message in a transparent manner by listening to the detection port, and returns reception status information to the 5G message center based on the listening result of the detection port to indicate whether the detection short message is successfully received. Further, the 5G message center can detect whether the user terminal supports 5G messages based on the reception status information returned by the user terminal. It can be seen that the above terminal message type detection method introduces an active detection mechanism in the 5G message center, so that the 5G message center can actively and timely detect whether the user terminal supports 5G messages, so as to correspondingly perform message routing and function selection, provide better user experience, and improve resource utilization efficiency.

[0042] The technical solutions provided by the embodiments of the present application are described in detail below with reference to the drawings.

[0043] Please refer to Figure 1 A flowchart of a terminal message type detection method provided by an embodiment of the present application is shown in FIG. 1. The method is applied to a 5G message center. The method comprises the following steps.

[0044] S102, a detection short message is sent to a user terminal through a preset detection port based on SIP registration information of the user terminal.

[0045] 5G message is a kind of RCS message. The 5G message center uses SIP to control the RCS message service. The user terminal needs to perform SIP registration in the 5G message center before using the RCS message service. The 5G message center stores a SIP registration information table. The SIP registration information table records the SIP registration information of all registered user terminals. The SIP registration information may, for example, include but is not limited to the registration state (such as online state or offline state) of the user terminal, private user identifier (IP Multimedia Private Identity, IMPI), etc. The IMPI is used for communication between user terminals.

[0046] The detection port is a pre-set port for sending a detection SMS to the user terminal. The detection port can share a port number with an original SMS (Short Message Service) port of the 5G message center, or can have a new port number, which is not limited in the embodiments of the present application. Since the 5G message terminal (i.e., a user terminal supporting 5G messages) has a 5G message native application, and the specification of the 5G message terminal is added with a port parameter of the detection port, the 5G message native application of the 5G message terminal has a listening function for the detection port, and can successfully receive the detection SMS sent through the detection port by listening to the detection port. The non-5G message terminal (i.e., a user terminal not supporting 5G messages) does not have a 5G message native application, and the specification of the non-5G message terminal is not added with the port parameter of the detection port, so the non-5G message terminal cannot successfully receive the detection SMS by listening to the detection port. Therefore, the 5G message center sends the detection SMS to the user terminal through the detection port, and according to whether the detection SMS is successfully delivered to the user terminal, it can accurately detect whether the user terminal supports 5G messages.

[0047] In the above S102, the detection SMS can be generated and sent in various appropriate ways, which is not limited in the embodiments of the present application. In an embodiment, in order to ensure that the detection SMS can be successfully delivered to the 5G message terminal, so as to more accurately identify whether the user terminal supports 5G messages, the above S102 includes the following steps: obtaining the IMSI of the user terminal based on the SIP registration information of the user terminal; generating the detection SMS based on the IMSI; and sending the detection SMS to the user terminal through the detection port.

[0048] For example, for obtaining the IMSI, after the 5G message center queries the SIP registration information of the user terminal, the 5G message center parses the SIP registration information, and obtains the IMPI of the user terminal from the username field of the Authorization header field requested by the SIP registration port of the user terminal. Then, the 5G message center obtains the IMSI of the user terminal from the imsi field of the IMPI. The format of the IMPI is as follows:

[0049] <imsi>@ims.mnc <mnc>.mcc <mcc>.3gppnetwork.org

[0050] The above-mentioned method for generating a detection SMS based on IMSI includes the following steps: encapsulating the IMSI based on a preset instruction format to obtain a detection instruction; and generating a detection SMS based on the port number of the detection port and the detection instruction.

[0051] The preset command format can be set according to actual needs. By encapsulating the IMSI, the resulting detection command conforms to the preset command format and contains the IMSI. Furthermore, the detection command is used as the content of the detection SMS, and the SMS content and the port number of the detection port are combined according to the SMS format to form the detection SMS.

[0052] As an example, the detection SMS carries the port number of the detection port and the detection command. As another example, the detection SMS also carries at least one of the following: the validity period of the detection SMS, the validity period format of the detection SMS, the user header identifier, the status report request, the data encoding scheme, and the user header.

[0053] For example, one format for detecting SMS messages is as follows:

[0054] relative time format (TP-VPF) = 10 (Select relative time format)

[0055] Validity period (TP-VP) = Preset detection timeout time (i.e., the valid time for detecting SMS messages).

[0056] UserDataHeaderIndicator(TP-UDHI)=1

[0057] TP Status Report Request(TP-SRR)=1

[0058] Data Coding Scheme(TP-DCS)=08(UCS2)

[0059] UserDataHeader

[0060] UDHL=06

[0061] IEI=05

[0062] IEIL=04

[0063] Destination port: A new port parameter for the detection port added to the user terminal specification;

[0064] Source Port: 0x0000

[0065] SMS content: detection instruction in preset instruction format, containing IMSI of user terminal

[0066] wherein, alidity period format represents the valid time format of the detection SMS, User Data Header Indicator represents the user data header identifier, TP Status Report Request represents the status report request, UDHL represents the length of the user data header, IEI represents the information element identifier, IEDL represents the information element data length, Destination port represents the destination port, Source Port represents the source port,

[0067] Since the port parameter of the detection port is added in the specification of the 5G message terminal, the 5G message native application has the function of monitoring the detection port, and can receive the detection SMS sent through the detection port by monitoring the detection port. In the case that the format of the detection SMS is consistent with the format indicated by the port parameter, and the IMSI in the detection SMS is consistent with the IMSI of the terminal, the detection SMS can be successfully received. For non-5G message terminals, since they do not have 5G message native application, and the port parameter of the detection port is not added in the specification of the non-5G message terminal, the non-5G message terminal cannot receive the detection SMS sent by the detection port, and cannot successfully verify the detection SMS, and thus cannot successfully receive the detection SMS. Therefore, according to whether the user terminal successfully receives the detection SMS, the 5G message center can accurately detect whether the user terminal supports 5G message.

[0068] In the above S102, the 5G message center can send the detection SMS to the user terminal by a suitable way, which is not limited by the embodiments of the present application.

[0069] As an example, the terminal capability detection module of the 5G message center receives the detection SMS sent by the 5G message center to the short message center (Short Message Service Center, SMSC), and the SMSC forwards the detection SMS to the user terminal through the mobile switching center (Mobile-services Switching Center, MSC).

[0070] In S102, the 5G message center can actively send the detection short message to the user terminal, or send the detection short message to the user terminal in response to a request from another module in the 5G message system in which the 5G message center is located. As an example, before S102, the method further includes receiving a 5G message capability detection request for the user terminal sent by a message service module or a service server in the 5G message system in which the 5G message center is located, the 5G message capability detection request being used to request detection of whether the user terminal supports the message type. Accordingly, the 5G message center performs S102 in response to the 5G message capability detection request.

[0071] More specifically, the 5G message center adds a terminal capability detection interface, and the message service module or the service module in the 5G message system can send a 5G message capability detection request for the user terminal to the 5G message center by invoking the terminal capability detection interface.

[0072] In S102, the 5G message center can send the detection short message to the user terminal through the detection port under appropriate conditions, which is not limited in the embodiments of the present application.

[0073] In one embodiment, in S102, the registration state of the user terminal is determined based on SIP registration information of the user terminal, and if the registration state is an offline state, the detection short message is sent to the user terminal through a preset detection port.

[0074] Optionally, after determining the registration state of the user terminal, if the registration state is an online state, the 5G message center determines that the message type supported by the user terminal includes the 5G message, i.e., the user terminal has the 5G message capability.

[0075] As described above, the user terminal needs to be registered in the 5G message system before using the RCS message service. Since the registration has a validity period (also referred to as a lifetime), the user terminal needs to be registered in the 5G message center periodically according to the period to ensure that the registration state is an online state, so that the RCS message service can be used. If the user terminal is not registered in the 5G message center within the period, the 5G message center determines that the registration state of the user terminal is an offline state, and the user terminal cannot use the RCS message service.

[0076] Therefore, the registration state of the user terminal can reflect whether the user terminal can use the RCS message service to some extent, and further help to determine whether the user terminal supports the 5G message. If the registration state of the user terminal is the online state, it indicates that the user terminal can use the RCS message service (5G message service), and further determines that the message type supported by the user terminal includes the 5G message. At this time, it is not necessary to send the detection short message to the user terminal through the detection port, so as to avoid wasting the processing capability, network resources and bandwidth of the 5G message center; if the registration state of the user terminal is the offline state, the reason can be that the user terminal supports the 5G message but does not perform SIP registration, or the user terminal does not support the 5G message service and cannot perform SIP registration, and then the detection short message is sent to the user terminal through the detection port, so as to further accurately identify whether the user terminal supports the 5G message.

[0077] In this way, the detection method of the message type supported by the terminal developed by the 5G message center and the application programming interface (API) in the above embodiment, on the one hand, realizes the detection of the message type supported by the online user terminal according to the SIP registration information of the user terminal, and on the other hand, realizes the detection of the message type supported by the offline user terminal by combining the RCS SIP channel and the short message channel capability, and further realizes the detection of the message type supported by all user terminals.

[0078] Of course, in other optional embodiments, the detection short message can be sent to the user terminal through the detection port regardless of whether the registration state of the user terminal is the offline state or the online state, so as to improve the accuracy of the message type detection.

[0079] S104, determining the message type supported by the user based on the reception state information returned by the user terminal.

[0080] The reception state information is generated by the user terminal based on the listening result of the detection port. The reception state information is used to indicate whether the user terminal successfully receives the detection short message.

[0081] Exemplarily, the reception state information includes a state code. If the user terminal passes the detection short message verification, it is confirmed that the detection short message is successfully received, and a state code (such as DELIVERED) indicating successful reception is returned; if the user terminal fails to pass the detection short message verification, it is confirmed that the detection short message is not successfully received, and a state code (such as UNDELIVERED or REJECTED) indicating failed reception is returned.

[0082] In the embodiments of the present application, the user terminal returns the receiving status information to the short message center first, and then the short message center generates the status report based on the receiving status information and returns the status report to the terminal capability detection module of the 5G message center, and the terminal capability detection module determines the message type supported by the user terminal based on the status report.

[0083] Specifically, the S104 comprises: receiving, by the terminal capability detection module of the 5G message center, the status report sent by the short message center in the 5G message system where the 5G message center is located, the status report being generated and sent by the short message center according to the receiving status information returned by the user terminal; and determining the message type supported by the user terminal based on the status report.

[0084] More specifically, the user terminal detects the receiving status information of the short message based on the monitoring result of the detection port, and the MSC of the 5G message system forwards the receiving status information to the SMSC of the 5G message system. The SMSC generates the status report of the detection short message based on the receiving status information, and returns the status report to the terminal capability detection module of the 5G message center.

[0085] The 5G message center determines the type of the user terminal based on the receiving status information returned by the user terminal and the preset correspondence between the receiving status information and the type. In an embodiment, if the receiving status information indicates that the detection short message is received successfully, it is determined that the message type supported by the user terminal includes the 5G message; and if the receiving status information indicates that the detection short message is received unsuccessfully, it is determined that the message type supported by the user terminal is the non-5G message.

[0086] In another embodiment of the present application, in order to improve the identification efficiency and avoid resource waste caused by long-time waiting of the 5G message center, the 5G message center sets a corresponding valid time for the detection short message when sending the detection short message, to indicate the user terminal to return the receiving status information within the valid time. Correspondingly, after the S102, a timer is triggered to start counting based on the valid time of the detection short message. Further, in the S104, if the receiving status information returned by the user terminal is received before the timer expires, the message type supported by the user terminal is determined based on the receiving status information.

[0087] Exemplarily, the maximum counting time of the timer is equal to the valid time of the detection short message. If the receiving status information indicating the receiving success is received before the timer expires, it is determined that the message type supported by the user terminal includes the 5G message, and then the timer is deleted; and if the receiving status information indicating the receiving failure is received before the timer expires, it is determined that the message type supported by the user terminal is the non-5G message, and then the timer is deleted.

[0088] In another embodiment of the present application, the message type can also include an unknown type. After the 5G message center triggers the timer to start counting, if the status information returned by the user terminal is not received before the timer expires, the 5G message center determines that the message type supported by the user terminal is an unknown type.

[0089] For example, when the counting time of the timer reaches the maximum counting time (i.e., the effective time for detecting the short message), a timeout event is triggered. If the 5G message center has not received the receiving status information returned by the user terminal when the timeout event is received, it is impossible to accurately determine whether the user terminal supports the 5G message because there are many reasons for this situation. Therefore, the 5G message center determines that the message type supported by the user terminal is an unknown type, so as to further detect through other ways or perform corresponding message routing and function selection. In this way, it can be avoided that the subsequent message routing and function selection are improper due to type detection error, thereby ensuring user experience.

[0090] In actual application, the 5G message center can periodically perform the terminal message type detection method provided in one or more embodiments, or can perform the terminal message type detection method provided in one or more embodiments when a detection request from a detection requester is received, so as to detect the message type currently supported by the user terminal and return a notification message containing the message type to the detection requester.

[0091] For example, the detection requester can include, but is not limited to, a message service module in the 5G message system, an application server (AS), a network application function (NAF) server, and other processing core network elements for service processing, etc. The detection requester sends a detection request to the 5G message center when it needs to obtain the current 5G message capability of the user terminal during service processing.

[0092] For example, the 5G message center receives the 5G message capability detection request of the user terminal sent by the message service module or the service server of the 5G message system as follows:

[0093]

[0094]

[0095] If the 5G message center detects that the user terminal currently supports the 5G message, it returns the notification message shown as follows to the detection requester:

[0096]

[0097] One or more embodiments of the present application provide a terminal message type detection method. A detection port is added in a 5G message system. The RCS SIP channel and the SMS channel capability are utilized. Based on the SIP registration information of a user terminal in a 5G message center, a detection SMS is sent to the user terminal through the detection port. Since the related parameters of the detection port are added in the specification of the user terminal supporting 5G messages, the user terminal can successfully receive the detection SMS by listening to the detection port. Since the related parameters of the detection port are not added in the specification of the user terminal not supporting 5G messages, the user terminal cannot successfully receive the detection SMS by listening to the detection port. Based on this, the user terminal receives the detection SMS in a transparent mode by listening to the detection port, and returns the receiving status information to the 5G message center based on the listening result of the detection port, to indicate whether the detection SMS is successfully received. Further, the 5G message center can detect whether the user terminal supports 5G messages based on the receiving status information returned by the user terminal. It can be seen that the terminal message type detection method introduces an active detection mechanism in the 5G message center, so that the 5G message center can actively and timely detect whether the user terminal supports 5G messages, so as to correspondingly perform message routing and function selection, provide better user experience, and improve resource utilization efficiency.

[0098] Please refer to Figure 2 A terminal message type detection method is provided for another embodiment of the present application. The method is applied to a user terminal, and includes the following steps:

[0099] S202, listening to the detection port of the 5G message center to obtain the detection SMS sent by the 5G message center.

[0100] The port parameters of the detection port are added in the specification of the user terminal supporting 5G messages, and the 5G message native application is installed in the user terminal. The application can listen to the detection port based on the port parameters, and intercept the detection SMS sent by the 5G message center through the underlying technology. Compared with the ordinary SMS receiving mode, the detection SMS will not be displayed to the user, realizing the transparent mode of SMS receiving, so as to not interfere with the user and improve the user experience.

[0101] For the user terminal not supporting the 5G message, since the port parameter of the detection port is not newly added in the specification thereof and the 5G message native application is not installed therein, the detection short message cannot be listened to, and even if the detection short message can be listened to, the detection short message cannot be verified. As a result, the 5G message center cannot receive the receiving status information returned by the user terminal within the effective time of the detection short message, and then determines that the message type supported by the user terminal is an unknown type; or the receiving status information received by the 5G message center indicates that the detection short message is received unsuccessfully, and then determines that the message type supported by the user terminal is a non-5G message. Specifically, in the above S202, the detection port is listened to by the message native application of the user terminal to obtain the detection short message sent by the 5G message center.

[0102] More specifically, the detection short message carries the port number of the detection port and a detection instruction. The detection instruction is information required to be delivered to the message native application. The user terminal receives the detection short message through the short message channel, obtains the port number carried in the detection short message center by analyzing the detection short message, and then listens to the detection port based on the port number by the message native application to obtain the detection instruction carried in the detection short message. Since the message native application of the user terminal supporting the 5G message has the listening function of the detection port, only the message native application of this kind of user terminal can successfully listen to the detection port to obtain the detection instruction.

[0103] In the embodiment of the application, the detection port can share the port parameter value of the short message port of the user terminal; or the port parameter value of the detection port can be independently set. The port parameter value can include but is not limited to the port number.

[0104] S204, based on the listening result of the detection port, the receiving status information of the detection short message is returned to the 5G message center.

[0105] If the detection port is not listened to, it indicates that the message native application for listening to the detection port is not provided in the user terminal, and then it is determined that the detection short message is received unsuccessfully, and the receiving status information indicating that the detection short message is received unsuccessfully is returned to the 5G message center. Since the specification of the user terminal supporting the 5G message newly adds the port parameter of the detection port, and the 5G message native application capable of listening to the detection port is deployed, the detection port can be successfully listened to to obtain the detection short message, and specifically the detection instruction carried in the detection short message can be obtained. In this case, if the detection port is not listened to, the user terminal returns the receiving status information indicating that the detection short message is received unsuccessfully to the 5G message, so that the 5G message center can accurately determine that the user terminal does not support the 5G message.

[0106] If the detection port receives successfully, the detection short message is successfully acquired, and the detection short message is further verified. Based on the verification result of the detection short message, the 5G message center returns the receiving state information of the detection short message.

[0107] In the embodiment of the application, the user terminal checks the detection short message, including: performing format checking on the detection instruction carried by the detection short message based on the preset instruction format, and performing consistency checking on the IMSI included in the detection instruction and the IMSI of the user terminal. If the results of the format checking and the consistency checking are both passed, it is determined that the detection short message passes the checking, and the detection short message can be successfully received, and the receiving state information indicating that the detection short message is received successfully is returned to the 5G message center; if the results of the format checking or the consistency checking are not passed, it is determined that the detection short message does not pass the checking, and the detection short message cannot be successfully received, and the receiving state information indicating that the detection short message is received unsuccessfully is returned to the 5G message center.

[0108] It can be understood that, since the port parameter of the detection port is newly added in the specification of the user terminal supporting the 5G message, the user terminal can accurately check whether the format of the detection short message is correct, and extract the IMSI from the detection short message and perform consistency checking with the IMSI of the user terminal, and obtain the checking result of passing the checking, and then the detection short message can be successfully received. For the user terminal not supporting the 5G message, since the port parameter of the detection port is not added in the specification, the user terminal will determine that the format of the detection short message is incorrect, the consistency checking of the IMSI fails, and the like, and then the detection short message cannot be successfully received.

[0109] If the checking result is passed, the user terminal successfully receives the detection short message, and then returns the receiving state information indicating the receiving success to the 5G message center; if the checking result is not passed, the user terminal fails to successfully receive the detection short message, and then returns the receiving state information indicating the receiving failure to the 5G message center.

[0110] Exemplarily, the user terminal returns the receiving state information to the SMSC through the MSC, and the SMSC returns the receiving state information to the 5G message center.

[0111] The receiving state information is used for the 5G message center to detect the message type supported by the user terminal, and the message type includes the 5G message or the non-5G message.

[0112] One or more embodiments of the present application provide a terminal message type detection method. A detection port is added in a 5G message system. A detection short message is sent to a user terminal through the detection port based on SIP registration information of the user terminal in a 5G message center by using RCS SIP channel and short message channel capabilities. Since the specification of a user terminal supporting 5G messages adds related parameters of the detection port, the user terminal can successfully receive the detection short message by listening to the detection port. Since the specification of a user terminal not supporting 5G messages does not add related parameters of the detection port, the user terminal cannot successfully receive the detection short message by listening to the detection port. Based on this, the user terminal receives the detection short message in a transparent manner by listening to the detection port, and returns reception status information to the 5G message center based on a listening result of the detection port to indicate whether the detection short message is successfully received. Further, the 5G message center can detect whether the user terminal supports 5G messages based on the reception status information returned by the user terminal. It can be seen that the terminal message type detection method introduces an active detection mechanism in the 5G message center, so that the 5G message center can actively and timely detect whether the user terminal supports 5G messages, so as to correspondingly perform message routing and function selection, provide better user experience, and improve resource utilization efficiency.

[0113] Based on the same inventive concept, the present application provides a terminal message type detection device. The device is applied to a 5G message center. Please refer to Figure 3 FIG. 3 is a structural schematic diagram of a terminal message type detection device 300 according to an embodiment of the present application. The device 300 includes a registration service module 310 and a terminal capability detection module 320.

[0114] The registration service module 310 is configured to obtain SIP registration information of a user terminal.

[0115] The terminal capability detection module 320 is configured to send a detection short message to the user terminal through a preset detection port based on the SIP registration information, and determine a message type supported by the user terminal based on reception status information returned by the user terminal. The message type includes 5G messages or non-5G messages, and the reception status information is generated by the user terminal based on a verification result of the detection short message.

[0116] Optionally, when the terminal capability detection module 320 sends a detection short message to the user terminal through a preset detection port based on session initiation protocol (SIP) registration information of the user terminal, the terminal capability detection module 320 performs the following steps:

[0117] Based on the SIP registration information of the user terminal, the terminal capability detection module 320 determines a registration state of the user terminal.

[0118] If the registration state is an offline state, a detection short message is sent to the user terminal through a preset detection port.

[0119] Optionally, the terminal capability detection module 320 is further configured to, after determining the registration state of the user terminal based on the SIP registration information, if the registration state is an online state, determine that the message type supported by the user terminal includes a 5G message.

[0120] Optionally, the terminal capability detection module 320, when sending the detection short message to the user terminal through the preset detection port based on the SIP registration information of the user terminal, performs the following steps:

[0121] Based on the SIP registration information of the user terminal, an IMSI of the user terminal is obtained.

[0122] Based on the IMSI, a detection short message is generated.

[0123] The detection short message is sent to the user terminal through the detection port.

[0124] Optionally, the terminal capability detection module 320, when generating the detection short message based on the IMSI, performs the following steps:

[0125] The IMSI is encapsulated based on a preset instruction format to obtain a detection instruction.

[0126] The detection short message is generated based on a port number of the detection port and the detection instruction.

[0127] Optionally, the terminal capability detection module, when determining the message type supported by the user terminal based on the reception state information returned by the user terminal, performs the following steps:

[0128] If the reception state information returned by the user terminal indicates that the detection short message is received successfully, it is determined that the message type supported by the user terminal includes a 5G message.

[0129] If the reception state information returned by the user terminal indicates that the detection short message is received unsuccessfully, it is determined that the message type supported by the user terminal is a non-5G message.

[0130] Optionally, the terminal capability detection module 320 is further configured to:

[0131] After sending the detection short message to the user terminal through the preset detection port based on the SIP registration information of the user terminal, a timer is triggered to start counting based on the validity time of the detection short message.

[0132] If the receiving status information returned by the user terminal is received before the timer expires, the message type supported by the user terminal is determined based on the receiving status information.

[0133] Optionally, the message type further includes an unknown type.

[0134] The terminal capability detection module 320 is further configured to, if the receiving status information returned by the user terminal is not received before the timer expires after the timer starts counting based on the valid time of the detection short message, determine that the message type supported by the user terminal is an unknown type.

[0135] Optionally, the terminal capability detection module 320 is further configured to:

[0136] Before sending the detection short message to the user terminal through the preset detection port based on the session initiation protocol (SIP) registration information of the user terminal, the 5G message capability detection request of the user terminal sent by the message service module or the service server in the 5G message system where the 5G message center is located is received, and the 5G message capability detection request is used to request to detect whether the user terminal supports 5G messages.

[0137] Optionally, the terminal capability detection module 320 is further configured to:

[0138] The status report sent by the short message center in the 5G message system where the 5G message center is located is received, and the status report is generated and sent by the short message center based on the receiving status information returned by the user terminal.

[0139] The message type supported by the user terminal is determined based on the status report.

[0140] Optionally, the detection short message carries the port number and the detection instruction of the detection port.

[0141] Optionally, the detection short message further carries at least one of the following information: the valid time of the detection short message, the valid time format of the detection short message, a user data header identifier, a status report request, a data coding scheme, and a user data header.

[0142] Obviously, the terminal message type detection apparatus 300 provided by the embodiments of the present application can be used as the execution subject of the terminal message type detection method shown in the above Figure 1 , and thus can realize the functions of the terminal message type detection apparatus in Figure 1 . Since the principles are the same, details are not described herein.

[0143] Based on the same inventive concept, the embodiments of the present application provide a terminal message type detection apparatus applied to a user terminal. Please refer to Figure 4 Fig. 4 is a structural schematic diagram of a terminal message type detection device 400 according to an embodiment of the present application. The device 400 comprises a listening module 410 and a sending module 420.

[0144] The listening module 410 is configured to preset a detection port to receive a detection short message sent by the 5G message center.

[0145] The sending module 420 is configured to return, to the 5G message center, reception status information of the detection short message based on a listening result of the detection port, the reception status information being used by the 5G message center to detect a message type supported by the user terminal, the message type comprising a 5G message or a non-5G message.

[0146] By way of example, a default short message application and a 5G message native application are installed in the user terminal. The terminal message type detection device 400 can be integrated in the 5G message native application of the user terminal, or can be independent of the default short message application and the 5G message native application, which is not limited in the embodiments of the present application.

[0147] Optionally, the listening module 410 is configured to:

[0148] listen, through a message native application of the user terminal, to the preset detection port to obtain the detection short message sent by the 5G message center.

[0149] Optionally, the sending module 420 is configured to:

[0150] if the listening to the detection port fails, return, to the 5G message center, reception status information indicating that the detection short message fails to be received.

[0151] Optionally, the sending module 420 is configured to:

[0152] if the listening to the detection port succeeds, verify the detection short message to obtain a verification result;

[0153] based on the verification result, return, to the 5G message center, the reception status information of the detection short message.

[0154] Optionally, the detection short message carries a detection instruction.

[0155] When the sending module 420 verifies the detection short message to obtain a verification result, the following steps are performed:

[0156] format-verify the detection instruction based on a preset instruction format to obtain a first verification sub-result;

[0157] The IMSI contained in the detection instruction and the IMSI of the user terminal are verified for consistency, to obtain a second verification sub-result;

[0158] The first verification sub-result and the second verification sub-result are combined to obtain a verification result.

[0159] Optionally, the detection port shares the port parameter value of the short message port of the user terminal; or the port parameter value of the detection port is independently set.

[0160] Obviously, the terminal message type detection device 400 provided by the embodiment of the present application can be used as the execution subject of the terminal message type detection method shown in the above Figure 2 , and thus can realize the functions of the terminal message type detection device. Figure 2 Since the principles are the same, details are not repeated.

[0161] Please refer to Figure 5 , which is an interaction schematic diagram between a 5G message system and a user terminal, wherein the 5G message system includes a message service module, an AS, an NFA, a 5G message center, an SMSC and an NSC. The interaction process between the 5G message system and the user terminal is as follows:

[0162] In the process of business processing, if the detection request party (the message service module, the AS, the NFA) needs to obtain the current 5G message capability of the user terminal, the detection request party sends a detection request to the 5G message center.

[0163] In S501, the terminal capability detection module of the 5G message center receives the detection request.

[0164] In S502, the terminal capability detection module obtains the SIP registration information of the user terminal from the registration service module, and determines the registration state of the user terminal based on the SIP registration information.

[0165] In S503, if the registration state is an online state, the terminal capability detection module determines that the user terminal currently supports 5G messages, and returns a detection result to the detection request party.

[0166] In S504, if the registration state is an offline state, the terminal capability detection module sends a detection short message to the SMSC through a preset detection port, and the SMSC forwards the detection short message to the user terminal through the MSC.

[0167] In S505, the user terminal listens to the detection port through a 5G message native application to obtain the detection short message, and if the detection short message is obtained, the detection short message is verified, and the detection short message is received after the verification is passed.

[0168] In S506, the user terminal returns the receiving status information of the detection short message to the SMSC through the MSC based on the check result of detecting the short message,

[0169] In S507, the SMSC forwards the receiving status information to the terminal capability detection module.

[0170] In S508, the terminal capability detection module determines the message type supported by the user terminal based on the receiving status information, and returns the detection result to the detection requester.

[0171] In S509, if the terminal capability detection module does not receive the receiving status information within the valid time of the detection short message, it determines that the message type supported by the user terminal is unknown, and returns the detection result to the requester.

[0172] Please refer to Figure 6 A signaling interaction schematic diagram between a 5G message system and a user terminal provided by the embodiment of the present application is as follows:

[0173] In S601, the detection requester (message service module, AS, NFA) sends a detection request to the terminal capability detection module of the 5G message center.

[0174] In S602, the terminal capability detection module creates a timer.

[0175] The maximum timing duration of the timer is the valid duration of the detection short message. After creating the timer, the terminal capability detection module returns an accepted detection response to the detection requester.

[0176] In S603, the terminal capability detection module queries the SIP registration information of the user terminal from the registration service module.

[0177] In S604, if the SIP registration information indicates that the registration state of the user terminal is online, the terminal capability detection module determines that the user terminal supports 5G messages, and returns the corresponding detection result to the detection requester.

[0178] After receiving the detection result, the detection requester sends an acknowledgment receiving response to the terminal capability detection module.

[0179] In S605, if the SIP registration information indicates that the registration state of the user terminal is offline, the terminal capability detection module sends a detection short message to the SMSC through a preset detection port.

[0180] After receiving the detection short message, the SMSC sends an acknowledgment receiving response to the terminal capability detection module.

[0181] In S606, the SMSC forwards the detection short message to the user terminal through the MSC.

[0182] In S607, the user terminal listens to the detection port through the 5G message native application and checks the detection short message, and generates the receiving status information of the detection short message based on the checking result.

[0183] In S608, the user terminal returns the receiving status information to the SMSC through the MSC.

[0184] In S609, the SMSC forwards the receiving status information to the terminal capability detection module.

[0185] If the terminal capability detection module receives the receiving status information before the timer expires, the terminal capability detection module sends an acknowledgement receiving response to the SMSC.

[0186] In S610, the terminal capability detection module determines whether the message type supported by the user terminal contains the 5G message based on the receiving status information, and obtains a detection result.

[0187] In S611, the terminal capability detection module returns the detection result to the detection requestor.

[0188] After receiving the detection result, the detection requestor sends an acknowledgement receiving response to the terminal capability detection module.

[0189] In S612, if the terminal capability detection module does not receive the receiving status information before the timer expires, it is determined that the message type supported by the user terminal is an unknown type.

[0190] In S613, the terminal capability detection module returns the detection result indicating the unknown type to the detection requestor.

[0191] After receiving the detection result, the detection requestor sends an acknowledgement receiving response to the terminal capability detection module.

[0192] The above describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different than the order in the embodiments and still achieve the desired result. In addition, the processes depicted in the figures do not necessarily require the particular order shown or sequential order to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous or possible.

[0193] Figure 7 A structural schematic diagram of a 5G message center is provided for an embodiment of the present application. Please refer to Figure 7 At the hardware level, the 5G message center comprises a processor 710 and a memory 720. The memory 720 stores a computer program which can be run on the processor 710, and when the computer program is executed by the processor, each process of any one of the terminal message type detection method embodiments described above is implemented, and the same technical effects can be achieved. To avoid repetition, details are not described here.

[0194] Figure 8 FIG. 1 is a structural schematic diagram of an embodiment of a user terminal of the present application. Please refer to Figure 8 At the hardware level, the user terminal comprises a processor, and optionally further comprises an internal bus, a network interface, and a memory. The memory can include a memory such as a high-speed random access memory (RAM), and can also include a non-volatile memory such as at least one disk memory. Of course, the user terminal can also include other hardware required by the service.

[0195] The processor, the network interface, and the memory can be connected to each other through the internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or only one type of bus.

[0196] The memory is used to store a program. Specifically, the program can include program code, and the program code includes computer operation instructions. The memory can include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0197] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs, and forms a message type detection device at the logical level. The processor executes the program stored in the memory, and is specifically used for executing the following operations:

[0198] Based on the session initiation protocol (SIP) registration information of the user terminal, a detection short message is sent to the user terminal through a preset detection port;

[0199] Based on the reception status information returned by the user terminal, the message types supported by the user terminal are determined; wherein, the message types include 5G messages or non-5G messages, and the reception status information is generated by the user terminal based on the monitoring results of the detection port.

[0200] The above is as stated in this application. Figure 2 The method executed by the message type detection device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0201] The user terminal can also perform Figure 2 The method, and implement the terminal message type detection device in Figure 2 The functions of the embodiments shown are not described in detail here.

[0202] Of course, in addition to software implementation, the user terminal of this application does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. In other words, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0203] The embodiment of the present application further provides a computer readable storage medium storing one or more programs, the one or more programs including instructions, which when executed by a portable user terminal including a plurality of application programs, can enable the portable user terminal to perform the method of the embodiment of the present application, and specifically to perform the following operations: Figure 2 The method of the embodiment of the present application, and specifically to perform the following operations:

[0204] Based on the session initiation protocol (SIP) registration information of the user terminal, a detection short message is sent to the user terminal through a preset detection port.

[0205] Based on the receiving status information returned by the user terminal, a message type supported by the user terminal is determined, wherein the message type includes a 5G message or a non-5G message, and the receiving status information is generated by the user terminal based on a listening result of the detection port.

[0206] The embodiment of the present application further provides a computer program product, which includes a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all steps of the method for detecting a message type of a terminal according to the embodiment of the present application.

[0207] In summary, the above only describes the preferred embodiments of the present application, and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0208] The system, device, module or unit described in the above embodiments can be specifically implemented by a computer chip or entity, or by a product with certain functions. A typical implementation device is a computer. Specifically, the computer may, for example, be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0209] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.

[0210] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements does not only include those elements, but can also include other elements not expressly listed or inherent to such process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

[0211] Each of the embodiments in the specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the difference from other embodiments. In particular, for system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.< / mcc> < / mnc> < / imsi>

Claims

1. A method for detecting terminal message types, characterized in that, Applied to 5G messaging centers, the method includes: Based on the Session Initiation Protocol (SIP) registration information of the user terminal, a detection SMS is sent to the user terminal through a preset detection port. The detection SMS contains the International Mobile Subscriber Identity (IMSI) of the user terminal, which is obtained based on the SIP registration information. Based on the reception status information returned by the user terminal, the message types supported by the user terminal are determined; wherein, the message types include 5G messages or non-5G messages, the reception status information is generated by the user terminal based on the monitoring results of the detection port, and the reception status information indicates whether the user terminal has successfully received the detection SMS. Successful reception of the detection SMS by the user terminal means that the format of the detection SMS obtained by the user terminal through monitoring the detection port is consistent with the preset format, and the IMSI contained in the obtained detection SMS is consistent with the IMSI of the user terminal.

2. The method according to claim 1, characterized in that, The Session Initiation Protocol (SIP) registration information based on the user terminal sends a detection SMS message to the user terminal through a preset detection port, including: The registration status of the user terminal is determined based on the Session Initiation Protocol (SIP) registration information of the user terminal. If the registration status is offline, a detection SMS message is sent to the user terminal through a preset detection port.

3. The method according to claim 2, characterized in that, After determining the registration status of the user terminal based on the SIP registration information, the method further includes: If the registration status is online, then the message types supported by the user terminal include 5G messages.

4. The method according to claim 1, characterized in that, The Session Initiation Protocol (SIP) registration information based on the user terminal sends a detection SMS message to the user terminal through a preset detection port, including: Based on the Session Initiation Protocol (SIP) registration information of the user terminal, obtain the International Mobile Subscriber Identity (IMSI) of the user terminal; Based on the IMSI, generate a detection SMS message; The detection SMS message is sent to the user terminal through the detection port.

5. The method according to claim 4, characterized in that, The step of generating a detection SMS based on the IMSI includes: The IMSI is encapsulated based on a preset instruction format to obtain a detection instruction; The detection SMS message is generated based on the port number of the detection port and the detection command.

6. The method according to claim 1, characterized in that, The step of determining the message types supported by the user terminal based on the reception status information returned by the user terminal includes: If the receiving status information returned by the user terminal indicates that the detection SMS was successfully received, then it is determined that the message types supported by the user terminal include 5G messages; If the reception status information returned by the user terminal indicates that the detection SMS reception failed, then it is determined that the message type supported by the user terminal is a non-5G message.

7. The method according to claim 1, characterized in that, After sending a detection SMS message to the user terminal through a preset detection port based on the Session Initiation Protocol (SIP) registration information of the user terminal, the method further includes: Based on the validity period of the detected SMS message, a timer is triggered to start counting. The step of determining the message types supported by the user terminal based on the reception status information returned by the user terminal includes: If a reception status information is received from the user terminal before the timer expires, the message types supported by the user terminal are determined based on the reception status information.

8. The method according to claim 7, characterized in that, The message types also include unknown types; After triggering the timer to start counting based on the valid time of the detected SMS, the method further includes: If no reception status information is received from the user terminal before the timer expires, the message type supported by the user terminal is determined to be an unknown type.

9. The method according to claim 1, characterized in that, Before sending a detection SMS to the user terminal through a preset detection port based on the Session Initiation Protocol (SIP) registration information of the user terminal, the method further includes: The system receives a 5G messaging capability detection request from the message service module or business server of the 5G messaging system where the 5G messaging center is located. The 5G messaging capability detection request is used to request detection of whether the user terminal supports 5G messaging.

10. The method according to claim 1, characterized in that, The step of determining the message types supported by the user terminal based on the reception status information returned by the user terminal includes: The terminal capability detection module of the 5G message center receives a status report sent by the SMS center in the 5G message system where the 5G message center is located. The status report is generated and sent by the SMS center based on the reception status information returned by the user terminal. Based on the status report, the message types supported by the user terminal are determined.

11. The method according to claim 1, characterized in that, The detection SMS message carries the port number of the detection port and the detection command.

12. The method according to claim 11, characterized in that, The detection SMS also carries at least one of the following information: the validity period of the detection SMS, the validity period format of the detection SMS, the user data header identifier, the status report request, the data encoding scheme, and the user data header.

13. A method for detecting terminal message types, characterized in that, Applied to a user terminal, the method includes: Listen to a preset detection port to obtain a detection SMS sent by the 5G message center, the detection SMS containing the International Mobile Subscriber Identity (IMSI) of the user terminal; Based on the monitoring results of the detection port, the receiving status information of the detection SMS is returned to the 5G message center. The receiving status information is used by the 5G message center to detect the message types supported by the user terminal. The message types include 5G messages or non-5G messages. The receiving status information indicates whether the user terminal has successfully received the detection SMS. Successful reception of the detection SMS by the user terminal means that the format of the detection SMS obtained by the user terminal through monitoring the detection port is consistent with the preset format, and the IMSI contained in the obtained detection SMS is consistent with the IMSI of the user terminal.

14. The method according to claim 13, characterized in that, The monitoring of the preset detection port to obtain the detection SMS sent by the 5G message center includes: The user terminal's native messaging application listens to a preset detection port to obtain detection SMS messages sent by the 5G messaging center.

15. The method according to claim 13, characterized in that, The step of returning the reception status information of the detection SMS to the 5G message center based on the monitoring results of the detection port includes: If listening to the detection port fails, the system returns reception status information indicating that the detection SMS reception has failed to be sent to the 5G message center.

16. The method according to claim 13, characterized in that, The step of returning the reception status information of the detection SMS to the 5G message center based on the monitoring results of the detection port includes: If the detection port is successfully monitored, the detection SMS message is verified to obtain the verification result; Based on the verification results, the reception status information of the detection SMS is returned to the 5G messaging center.

17. The method according to claim 16, characterized in that, The detection SMS message carries a detection command; The verification of the detected SMS message to obtain the verification result includes: The detection command is format-verified based on a preset command format to obtain a first verification sub-result. The consistency between the IMSI contained in the detection command and the IMSI of the user terminal is verified to obtain a second verification sub-result; Based on the first verification sub-result and the second verification sub-result, the verification result is obtained.

18. The method according to claim 13, characterized in that, The detection port shares the port parameter value of the SMS port of the user terminal; or, the port parameter value of the detection port is set independently.

19. A device for detecting terminal message types, characterized in that, The device, used in 5G messaging centers, includes: The registration service module is used to obtain the SIP registration information of user terminals; The terminal capability detection module is used to send a detection SMS to the user terminal through a preset detection port based on the SIP registration information, and to determine the message types supported by the user terminal based on the reception status information returned by the user terminal; wherein, the message types include 5G messages or non-5G messages, and the reception status information is generated by the user terminal based on the monitoring results of the detection port; The detection SMS message contains the International Mobile Subscriber Identity (IMSI) of the user terminal, which is obtained based on the SIP registration information. The reception status information indicates whether the user terminal has successfully received the detection SMS message. Successful reception of the detection SMS message means that the format of the detection SMS message obtained by the user terminal through listening to the detection port is consistent with the preset format, and the IMSI contained in the obtained detection SMS message is consistent with the IMSI of the user terminal.

20. A device for detecting terminal message types, characterized in that, The device, applied to a user terminal, includes: The monitoring module is used to monitor a preset detection port to receive detection SMS messages sent by the 5G message center. The detection SMS messages contain the International Mobile Subscriber Identity (IMSI) of the user terminal. The sending module is used to return the reception status information of the detection SMS to the 5G message center based on the monitoring result of the detection port. The reception status information is used by the 5G message center to detect the message types supported by the user terminal. The message types include 5G messages or non-5G messages. The reception status information indicates whether the user terminal has successfully received the detection SMS. Successful reception of the detection SMS by the user terminal means that the format of the detection SMS obtained by the user terminal through monitoring the detection port is consistent with the preset format, and the IMSI contained in the obtained detection SMS is consistent with the IMSI of the user terminal.

21. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the terminal message type detection method as described in any one of claims 1 to 12; or, the processor is configured to execute the instructions to implement the terminal message type detection method as described in any one of claims 13 to 18.

22. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the terminal message type detection method as described in any one of claims 1 to 12; or, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the terminal message type detection method as described in any one of claims 13 to 18.

23. A computer program product, characterized in that, The computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps in the terminal message type detection method as claimed in any one of claims 1 to 12 or the terminal message type detection method as claimed in any one of claims 13 to 18.

Citation Information

Patent Citations

  • 5G message fallback method, system and device

    CN114979989A

  • 5G message terminal identification method, service platform and storage medium

    CN116782367A