Short message processing method, device and storage medium
By optimizing the SMS processing method and adjusting the retransmission of failed SMS messages to the end of the queue, the problem of subsequent SMS messages being unable to be sent in the SMS service center was solved, achieving a higher sending success rate and user experience.
Patent Information
- Application Number
- CN202310564905.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-18
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2043-05-18
AI Technical Summary
In the existing technology, the SMS service center only resends the first short message at the front of the queue, resulting in the inability to send subsequent short messages in a timely manner. The user terminal may fail to resend multiple times, affecting the user experience, and further sending can only be carried out after the user complains.
By determining the retransmission failure user information table, giving priority to the user terminal with the longest writing time, obtaining the number and frequency of its retransmission failure short messages, adjusting the retransmission failure short messages to the end of the SMS retransmission queue, ensuring the smooth sending of subsequent short messages.
Without any user complaints, the SMS queue is optimized, the success rate of short message delivery is increased, the network load is reduced, and the user experience is improved.
Smart Images

Figure CN116709213B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device and storage medium for processing short messages. Background Art
[0002] In related technologies, the SMS service center only resends the first SMS at the front of the queue, temporarily suspending delivery of subsequent SMS messages. This often results in terminal devices failing to deliver a particular SMS message even after dozens of attempts due to abnormal content or incompatibility between certain mobile networks and mobile terminals. Existing solutions to this problem require user complaints before further SMS delivery can resume. Therefore, finding a way to adjust the SMS queue without requiring user complaints is a pressing issue. Summary of the Invention
[0003] The present application provides a text message processing method, device, and storage medium that can adjust the text message queue without user complaints.
[0004] To achieve the above objectives, this application adopts the following technical solutions:
[0005] In the first aspect, the present application provides a text message processing method, the method comprising: determining a retransmission failure user information table; the retransmission failure user information table comprises a user terminal identifier, a timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, and the number of retransmissions of each short message in each user terminal identifier; determining the first target user terminal that has been written into the retransmission failure user information table for the longest time based on the timestamp of each user terminal identifier being written into the retransmission failure user information table; obtaining the number of retransmission failure short messages of the first target user terminal and the number of retransmissions of each retransmission failure short message; determining the target retransmission failure short message with the largest number of retransmissions among the retransmission failure short messages of the first target user terminal when the number of retransmission failure short messages of the first target user terminal is greater than or equal to a preset threshold; adjusting the target retransmission failure short message to the end of the text message retransmission queue of the first target user terminal, the text message retransmission queue comprising the retransmission failure short messages of the first target user terminal arranged in a retransmission order.
[0006] In combination with the first aspect, in a possible implementation method, determining the retransmission failure user information table includes: obtaining data information of user terminals in the waiting retransmission queue of the SMS center within a first preset time; the data information of the user terminal includes the user terminal identifier, the timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, and the number of retransmissions of each short message in each user terminal identifier; determining a waiting retransmission temporary table based on the data information of the user terminal; the waiting retransmission temporary table is used to temporarily store the data information of the user terminal; and determining the retransmission failure user information table based on the user terminal in the waiting retransmission temporary table that meets the preset conditions.
[0007] In combination with the first aspect, in a possible implementation method, the retransmission failure user information table is determined based on the user terminals that meet the preset conditions in the temporary table waiting for retransmission, including: reading the data information of the second target user terminal in the temporary table waiting for retransmission; the second target user terminal is a user terminal that has not been read in the temporary table waiting for retransmission; when the data information of the second target user terminal does not exist in the retransmission failure user information table, the retransmission failure user information table is determined based on the data information of the second target user terminal.
[0008] In combination with the first aspect, in a possible implementation method, a retransmission failure user information table is determined based on the data information of the second target user terminal, including: determining the target short message with the largest number of retransmissions of the second target user terminal; if the waiting time of the target short message in the SMS retransmission queue of the second target user terminal is greater than or equal to a preset time threshold, and the number of retransmissions of the target short message is greater than or equal to a preset number threshold, the data information of the second target user terminal is written into the retransmission failure user information table.
[0009] In a second aspect, the present application provides a text message processing device, which includes: a processing unit and an acquisition unit; the processing unit is used to determine a retransmission failure user information table; the retransmission failure user information table includes a user terminal identifier, a timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, and the number of retransmissions of each short message in each user terminal identifier; the processing unit is also used to determine the first target user terminal that has been written into the retransmission failure user information table for the longest time based on the timestamp of each user terminal identifier being written into the retransmission failure user information table; the acquisition unit is used to obtain the number of retransmission failure short messages of the first target user terminal and the number of retransmissions of each retransmission failure short message; the processing unit is also used to determine the target retransmission failure short message with the largest number of retransmissions among the retransmission failure short messages of the first target user terminal when the number of retransmission failure short messages of the first target user terminal is greater than or equal to a preset threshold; the processing unit is also used to adjust the target retransmission failure short message to the end of the text message retransmission queue of the first target user terminal, and the text message retransmission queue includes the retransmission failure short messages of the first target user terminal arranged in retransmission order.
[0010] In combination with the second aspect, in a possible implementation method, the acquisition unit is also used to obtain data information of user terminals in the waiting retransmission queue of the SMS center within a first preset time; the data information of the user terminal includes the user terminal identifier, the timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, and the number of retransmissions of each short message in each user terminal identifier; the processing unit is also used to determine the waiting retransmission temporary table based on the data information of the user terminal; the waiting retransmission temporary table is used to temporarily store the data information of the user terminal; the processing unit is also used to determine the retransmission failure user information table based on the user terminal in the waiting retransmission temporary table that meets the preset conditions.
[0011] In combination with the second aspect, in a possible implementation method, the processing unit is specifically used to read the data information of the second target user terminal in the temporary table waiting for retransmission; the second target user terminal is a user terminal that has not been read in the temporary table waiting for retransmission; when the data information of the second target user terminal does not exist in the retransmission failure user information table, the retransmission failure user information table is determined based on the data information of the second target user terminal.
[0012] In combination with the second aspect, in a possible implementation method, the processing unit is also used to determine the target short message with the most retransmissions for the second target user terminal; if the waiting time of the target short message in the SMS retransmission queue of the second target user terminal is greater than or equal to the preset time threshold, and the number of retransmissions of the target short message is greater than or equal to the preset number threshold, the data information of the second target user terminal is written into the retransmission failure user information table.
[0013] In a third aspect, the present application provides a text message processing device, which includes: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the text message processing method described in the first aspect and any possible implementation method of the first aspect.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal, the terminal executes the SMS processing method described in the first aspect and any possible implementation of the first aspect.
[0015] In this application, the name of the SMS processing device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they are within the scope of the claims of this application and their equivalents.
[0016] These and other aspects of the present application will become more readily apparent from the following description.
[0017] Based on the above technical solution, the SMS processing method provided by the embodiment of the present application first determines the retransmission failure user information table by the SMS processing device to ensure that the data information of the user terminal is in the latest state, and then determines the first target user terminal that has been written into the retransmission failure user information table for the longest time, so as to give priority to solving the user terminals that have been affected for a longer time; at the same time, the number of retransmission failure short messages of the first target user terminal and the number of retransmissions of each retransmission failure short message are obtained. If the number of short messages of the user terminal is greater than or equal to the preset threshold, it means that the first short message of the user terminal was not sent successfully, resulting in the subsequent short messages being in a state of stopped sending; and then determines the target retransmission failure short message with the largest number of retransmissions among the retransmission failure short messages of the first target user terminal, and finally adjusts the target retransmission failure short message to the end of the SMS retransmission queue to ensure the sending of subsequent short messages. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of the SMS sending process provided for this application;
[0019] Figure 2 Another SMS sending process diagram provided for this application;
[0020] Figure 3 A scenario architecture diagram provided for this application;
[0021] Figure 4 A flowchart of a text message processing method provided by this application;
[0022] Figure 5 A flowchart of another SMS processing method provided for this application;
[0023] Figure 6 A flowchart of another SMS processing method provided for this application;
[0024] Figure 7 A flowchart of another SMS processing method provided for this application;
[0025] Figure 8 A schematic diagram of the structure of a text message processing device provided in this application;
[0026] Figure 9 This is a structural diagram of another SMS processing device provided in this application. DETAILED DESCRIPTION
[0027] The text message processing method, device, and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0028] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0029] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0030] Furthermore, the terms "including," "having," and any variations thereof, as used in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to the process, method, product, or apparatus.
[0031] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being more preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0032] To improve network information security, mobile internet applications currently require secure authentication of user terminal identities via SMS verification codes transmitted over the operator's private network. This ensures network information security. In recent years, the volume of verification codes and other information sent by various applications has increased significantly, and the timeliness of SMS messages reaching user terminals has also increased. Existing technologies generally require verification codes to be entered and delivered to the mobile internet application backend within a short period of time, due to concerns about the reliability of SMS messages. Whether the verification SMS message reaches the user terminal in a timely manner directly impacts the user's service experience, making real-time receipt of verification code SMS messages extremely important.
[0033] Currently, users of 2 / 3G networks and the 4th generation mobile communication technology (4G) network circuit switched fallback (CSFB) mode send and receive text messages through the circuit switched network (CS domain), while 4G network long-term evolution voice bearer (Voice over Long-Term Evolution, VOLTE) and 5G user communication are implemented through the IP multimedia subsystem (IMS domain). This application combines the message processing center SMS-SC and the short message gateway SMS-GMSC of the SMS center into a short message service center (Short Message Service Center, SMSC). The text message sending described in this application refers to the MT (Mobile Terminated) text messages sent to the user terminal.
[0034] The following describes the process of sending SMS in CS domain. Figure 1 As shown, in a CS domain network, a short message service center (SMS) sends a short message to a mobile user's terminal device (MS). The message carries information such as the calling and called terminal numbers, the message content, and the message length. Based on the called terminal number carried by the SMSC, the SMSC queries the user's home location register (HLR) for routing information. The HLR returns the locally stored information about the visited mobile switching center (VMSC) where the called terminal is currently located to the SMS. The SMSC then sends the short message to this VMSC, which then delivers it to the user terminal. The specific implementation process can be seen in S101-S106.
[0035] S101. SMSC sends a short message routing query request to HLR; the query request includes the visited mobile switching center where the called terminal is located, the SMSC number, the called terminal MS number, and the short message index number.
[0036] S102. The HLR feeds back the mobile station roaming number (MSC Number, MSCN) of the VMSC to the user's home location register through a routing query response.
[0037] S103. The SMSC sends a short message request to the VMSC.
[0038] S104: The VMSC initiates paging to the MS and sends a short message. If the paging is successful, the short message is sent to the mobile user's terminal device.
[0039] S105. The MS sends a short message response to the VMSC feedback message.
[0040] S106: The VMSC sends a short message response to the SMSC, and the SMSC records the sending result of the short message.
[0041] The above describes in detail the process of sending CS domain SMS in the prior art.
[0042] The following describes the process of sending SMS messages in the IMS domain. Figure 2 As shown, in the IMS domain, the IP Short Message Gateway (IP-SM-GW) provides short message intercommunication between user terminals (MSs) and the mobile communication network. The Home Location Register / Home Subscriber Server (HLR / HSS) provides routing query functionality for SMS services. This is specifically implemented through S201-S210.
[0043] S201. SMSC sends a short message routing query request to HLR / HSS; the short message request includes the network element information of the called terminal, SMSC number, called terminal MS number, and short message index number (used to identify the short message).
[0044] S202. The HLR / HSS queries the IP SMS gateway (IP-SM-GW) information of the called terminal and forwards the routing query request to the IP-SM-GW.
[0045] S203. The IP-SM-GW sends a short message routing query request to the HLR / HSS again.
[0046] S204. The HLR / HSS sends a query response to the IP-SM-GW. The IP-SM-GW obtains the network information of the user registration according to the query response.
[0047] S205. After receiving the response message returned by the HLR / HSS, the IP-SM-GW returns its own address information to the SMSC via a short message routing query response.
[0048] S206. The SMSC sends a short message request to the IP-SM-GW according to the received address information.
[0049] S207. The IP-SM-GW performs domain selection; it selects an IMS domain based on the network information registered by the user and finds the S-CSCF where the user is located.
[0050] S208. The IP-SM-GW sends the short message SIP to the MS through the S-CSCF.
[0051] S209. The MS returns a response to the short message sending.
[0052] S210. The IP-SM-GW returns a short message sending response (success or failure) to the SMSC, and the SMSC records the sending result of this short message.
[0053] The above describes in detail the two methods of sending short messages. The following describes how to handle failures in sending short messages.
[0054] In actual applications, more than 90% of short messages sent to user terminals are successfully sent. The remaining approximately 10% fail due to reasons such as unknown users / unsupported telecommunications services / call barring, or failure to send due to reasons such as users actively turning off their phones, or failure to send text messages or delayed arrival due to problems such as users being out of service area / terminal abnormalities / unknown errors, resulting in poor user experience on the user terminal.
[0055] Currently, the solution to failed short message delivery is for the SMS center to place failed short messages in a resend queue and set a time interval within the message's validity period. When the user's terminal returns to normal or re-enters the mobile network service area, the short messages in the resend queue are resent to the user terminal. However, the SMS center often has multiple short messages in the resend queue for the same user number. To avoid overloading the mobile network by resending all waiting messages, the SMS center typically only resends the first message at the front of the queue and temporarily holds off on subsequent messages. If the message at the front of the queue is successfully delivered (for example, if the user re-enters the service area), all subsequent messages are immediately delivered. If the first message at the front of the queue continues to fail to deliver, subsequent messages are also not delivered. This can result in users not receiving delivered short messages for several days and filing complaints. When network operators check, they often find that even when the user terminal is reachable, the first message in the resend queue fails to deliver after dozens of resends. This causes other messages in the queue to fail to deliver successfully, significantly impacting the user terminal.
[0056] The operation and maintenance personnel analyzed the above situation and found that the main reasons were that the content of the SMS messages submitted by the SP (for example, digital SMS messages that are different from ordinary text messages) was abnormal, which caused some mobile terminals to be unable to receive them, and that the MSC in a certain place did not support certain types of SP SMS messages. When the problem occurred, the user terminal was unable to process the short messages in the SMS center's waiting queue for retransmission. It could only passively wait for the SMS message that had failed to be resent many times to expire (the business specification is 72 hours) before other subsequent SMS messages could be sent successfully; or the user terminal filed a complaint, and the system maintenance personnel logged into the device to delete the related short messages that had been resent dozens of times but still failed, causing a backlog of SMS messages, from the waiting queue for retransmission, so that subsequent SMS messages could be sent successfully, which had a great impact on the user terminal experience. Therefore, how to adjust the SMS queue to ensure the normal delivery of SMS messages without the need for user complaints is an urgent problem that needs to be solved.
[0057] In order to solve the problems in the prior art, the present invention provides a Figure 3 As shown in the scenario architecture diagram, the scenario includes a retransmission waiting queue of the SMS center, an SMS processing device 300 , a data query module 301 , a data analysis module 302 , a processing module 303 , and a storage statistics module 304 .
[0058] The data query module 301 is used to query the information of the SMS center waiting for retransmission queue through the interface within a certain period, extract the data of the SMS center waiting for retransmission queue to the waiting for retransmission temporary table; and can also query the user terminals in the waiting for retransmission temporary table.
[0059] The data analysis module 302 is used to set certain judgment conditions to analyze the data information of the user terminals, and select the user terminals that meet the judgment conditions as the user terminals that have failed to retransmit multiple times.
[0060] The processing module 303 is used to query the short message records of the user terminal that have failed to resend multiple times through the SMS center interface, determine the short message sequence, and adjust the queue of the user terminal.
[0061] The storage statistics module 304 is used to store the data information of the user terminal after disposal into the disposal table. The stored content includes the short message sending number, user mobile phone number, short message sending time, failure reason, number of resends, short message ID, etc.; and the query results, disposal status, etc. are counted by time, short message sending number, failure reason, etc.
[0062] The above describes the SMS processing device in detail. The following embodiment of the present application provides a method for Figure 4 The SMS processing method shown can be applied to Figure 3 In the device, the method includes: first, the short message processing device determines the retransmission failure user information table to ensure that the data information of the user terminal is in the latest state, and then determines the first target user terminal that has been written into the retransmission failure user information table for the longest time, so as to give priority to solving the user terminals that have been affected for a longer time; at the same time, obtains the number of retransmission failure short messages of the first target user terminal and the number of retransmissions of each retransmission failure short message; if the number of short messages of the user terminal is greater than or equal to a preset threshold, it means that the first short message of the user terminal was not successfully sent, resulting in the subsequent short messages being in a state of stopped sending; and then determines the target retransmission failure short message with the largest number of retransmissions among the retransmission failure short messages of the first target user terminal, and finally adjusts the target retransmission failure short message to the end of the SMS retransmission queue to ensure the sending of subsequent short messages.
[0063] S401. The SMS processing device determines a resending failure user information table.
[0064] Among them, the retransmission failure user information table includes but is not limited to the user terminal identifier, the timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, the number of retransmissions of each short message in each user terminal identifier, the sending number of each short message in each user terminal identifier, the mobile phone number of each user terminal, the time when each short message in each user terminal identifier was last sent, the MTMSC address, the failure reason of each short message in each user terminal identifier, and the identifier of each short message in each user terminal identifier.
[0065] In a possible implementation, the short message processing device regularly updates the retransmission failure user information table to ensure the timeliness and reliability of the data information in the retransmission failure user information table.
[0066] S402: The SMS processing apparatus determines the first target user terminal that has been written into the resending failure user information table the longest time based on the timestamp of each user terminal identifier written into the resending failure user information table.
[0067] For example, in the retransmission failure user information table, the timestamp when user terminal 136****5365 writes into the retransmission failure user information table is 6:42, and the timestamp when user terminal 185****6277 writes into the retransmission failure user information table is 7:15. The SMS processing device determines that user terminal 136****5365 is the first target user terminal with the longest time of writing into the retransmission failure user information table.
[0068] S403: The short message processing apparatus obtains the number of retransmission failure short messages of the first target user terminal and the number of retransmissions of each retransmission failure short message.
[0069] Combined with the example in S402, the SMS processing device obtains that the number of retransmission failure short messages of the user terminal 136****5365 is 4, and the retransmission number of the first retransmission failure short message is 7 times, the retransmission number of the second retransmission failure short message is 0 times, the retransmission number of the third retransmission failure short message is 0 times, and the retransmission number of the fourth retransmission failure short message is 0 times.
[0070] S404: When the number of retransmission failure short messages of the first target user terminal is greater than or equal to a preset threshold, the SMS processing apparatus determines a target retransmission failure short message having the greatest number of retransmissions among the retransmission failure short messages of the first target user terminal.
[0071] Combined with the example in S403, the SMS processing device determines that the number of retransmission failure short messages of user terminal 136****5365, 4, is greater than the preset threshold of 2, then the SMS processing device determines that the first retransmission failure short message in user terminal 136****5365 is the target retransmission failure short message with the largest number of retransmissions.
[0072] It is worth noting that if the number of retransmitted short messages of the first target user terminal is not greater than or equal to the preset threshold, the SMS processing device determines the first target user terminal with the second longest time of writing into the retransmitted user information table, that is, the SMS processing device will not make subsequent judgments on the first target user terminal with the longest time of writing into the retransmitted user information table.
[0073] S405. The SMS processing device adjusts the target retransmission failure short message to the end of the SMS retransmission queue of the first target user terminal. The SMS retransmission queue includes the retransmission failure short messages of the first target user terminal arranged in a retransmission order.
[0074] As a possible implementation method, the above S405 can be implemented through the following process: the SMS processing device determines the identifier of each short message in each user terminal, which identifier can be a short message ID, and the SMS processing device modifies the ID of the target retransmission failure short message to the maximum value of the short message ID in the SMS retransmission queue of the first target user terminal, thereby adjusting the target retransmission failure short message to the end of the SMS retransmission queue of the first target user terminal.
[0075] For example, the SMS processing device determines that the ID of the first resending failure short message of the user terminal 136****5365 is 0000131, the ID of the second resending failure short message is 0000135, the ID of the third resending failure short message is 0000140, and the ID of the fourth resending failure short message is 0000145. The SMS processing device modifies the ID 0000131 of the first resending failure short message to 0000150, and the first resending failure short message can be adjusted to the end of the SMS resending queue of the first target user terminal. In this way, it is ensured that the second resending failure short message is not affected by the first resending failure short message and continues to be sent.
[0076] Based on the above technical solution, the SMS processing method provided by the embodiment of the present application first determines the retransmission failure user information table by the SMS processing device to ensure that the data information of the user terminal is in the latest state, and then determines the first target user terminal that has been written into the retransmission failure user information table for the longest time, so as to give priority to solving the user terminals that have been affected for a longer time; at the same time, the number of retransmission failure short messages of the first target user terminal and the number of retransmissions of each retransmission failure short message are obtained. If the number of short messages of the user terminal is greater than or equal to the preset threshold, it means that the first short message of the user terminal was not sent successfully, resulting in the subsequent short messages being in a state of stopped sending; and then determines the target retransmission failure short message with the largest number of retransmissions among the retransmission failure short messages of the first target user terminal, and finally adjusts the target retransmission failure short message to the end of the SMS retransmission queue to ensure the sending of subsequent short messages.
[0077] In one possible implementation, combining Figure 4 ,like Figure 5 As shown, the above S401, the SMS processing device determines the resending failure user information table, which can be specifically implemented through the following S501-S503.
[0078] S501: The SMS processing apparatus obtains data information of a user terminal in a waiting retransmission queue of an SMS center within a first preset time.
[0079] Among them, the data information of the user terminal includes but is not limited to the user terminal identifier, the timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, the number of retransmissions of each short message in each user terminal identifier, the sending number of each short message in each user terminal identifier, the mobile phone number of each user terminal, the time when each short message in each user terminal identifier was last sent, the MTMSC address, and the failure reason of each short message in each user terminal identifier.
[0080] As we all know, the SMS center's waiting-for-retransmission queue messages are stored in a memory database. Generally, millions of SMS messages are in a waiting-for-retransmission state. The query page provided by the system requires operation and maintenance personnel to enter numbers one by one to query the SMS messages. Therefore, this application proposes to install a data query module in the SMS processing device to realize batch query and extraction of short messages, as well as query of user data with a large number of retransmissions.
[0081] In one possible implementation, the SMS processing device is connected to the interface of the SMS center to query the data information of the user terminals in the SMS center's waiting retransmission queue. Since the number of messages in the SMS center's waiting retransmission queue is generally millions, in order to avoid the excessive number of queries affecting the operation of the SMS center's waiting retransmission queue, a scheduled query task can be set and the number of queries each time can be set, for example: query 10,000 user terminals at intervals of 5 minutes or 10 minutes; the SMS processing device can locate the starting message record of the new query task each time according to the index number and the arrival time of the short message from the user terminal.
[0082] S502: The SMS processing device determines a temporary table for waiting for retransmission according to the data information of the user terminal.
[0083] The waiting retransmission temporary table is used to temporarily store data information of the user terminal.
[0084] As a possible implementation method, the above S502 can be implemented through the following process: after the SMS processing device queries the data information of the user terminal within a certain period, it synchronously connects to the temporary table waiting for retransmission, and updates the queried data information of the user terminal into the temporary table waiting for retransmission, ensuring that the temporary table waiting for retransmission is the latest temporary table.
[0085] It is worth noting that in order to avoid excessive data information in the temporary table waiting for retransmission affecting the operation of the device, the temporary table waiting for retransmission can be cleaned up regularly. For example, at 2 a.m., the user terminals that have stayed in the temporary table waiting for retransmission for 48 hours can be cleaned up and deleted.
[0086] S503: The SMS processing apparatus determines a resending failure user information table based on user terminals that meet preset conditions in the temporary table waiting for resending.
[0087] In a possible implementation, the SMS processing device reads the user terminal from the temporary table waiting for retransmission and determines whether the data information of the user terminal meets the preset conditions. If so, the SMS processing device writes the user terminal into the retransmission failure user information table.
[0088] Based on the above technical solution, user terminals that have not been read are continuously updated into the temporary table waiting for retransmission within the first preset time period, and then user terminals that meet the preset conditions are extracted from the temporary table waiting for retransmission to ensure the effectiveness of subsequent data information processing.
[0089] In one possible implementation, combining Figure 5 ,like Figure 6 As shown, the above S503, the SMS processing device determines the resending failure user information table according to the user terminals meeting the preset conditions in the waiting resending temporary table, which can be specifically implemented through the following S601-S602.
[0090] S601: The SMS processing device reads data information of the second target user terminal in the temporary table waiting for retransmission.
[0091] The second target user terminal is a user terminal that has not been read in the temporary table waiting for retransmission.
[0092] As a possible implementation, the above S601 can be implemented through the following process: the SMS processing device reads the data information of the second target user terminal after the last read record in the waiting retransmission temporary table, and the second target user terminal can be multiple user terminals.
[0093] Exemplarily, the short message processing device reads the second target user terminals such as 185****6277 and 156****7892 in the temporary table waiting for retransmission.
[0094] S602: When the data information of the second target user terminal does not exist in the retransmission failure user information table, the SMS processing apparatus determines the retransmission failure user information table according to the data information of the second target user terminal.
[0095] In one possible implementation, the SMS processing device determines whether the user number of the second target user terminal exists in the retransmission failure user information table. If not, the SMS processing device updates the second target user terminal into the retransmission failure user information table; if so, and the time when the second target user terminal is written into the retransmission failure user information table is within M hours, the SMS processing device continues to read other user terminals that have not been read.
[0096] In combination with the example in S601, taking 185****6277 as an example, the SMS processing device determines whether 185****6277 exists in the retransmission failure user information table. If not, the SMS processing device updates the user terminal 185****6277 into the retransmission failure user information table; if it exists, and the time when the user terminal 185****6277 is written into the retransmission failure user information table is within 12 hours, the SMS processing device continues to read the user terminals that have not been read in the retransmission failure user information table.
[0097] Based on the above technical solution, the SMS processing device reads the data information of the user terminal from the temporary table waiting for retransmission. If the user terminal exists in the retransmission failure user information table, it will not be processed. If it does not exist in the retransmission failure user information table, the user terminal will be analyzed and judged subsequently to improve the user terminal's perception.
[0098] In one possible implementation, combining Figure 6 ,like Figure 7 As shown, the above S602, the SMS processing device determines the resending failure user information table according to the data information of the second target user terminal, which can be specifically implemented through the following S701-S702.
[0099] S701: The short message processing apparatus determines the target short message with the largest number of retransmissions to the second target user terminal.
[0100] As a possible implementation, S701 can be implemented through the following process: if the second target user terminal does not exist in the retransmission failure user information table, the SMS processing device determines the target short message with the largest number of retransmissions in the second target user terminal.
[0101] It is worth noting that if the second target user terminal exists in the retransmission failure user information table, but the time for the second target user terminal to write into the retransmission failure user information table exceeds M hours, the SMS processing device will also determine the target short message with the most retransmissions in the second target user terminal.
[0102] Combined with the example in S602, if the user terminal 185****6277 does not exist in the retransmission failure user information table or the user terminal 185****6277 exists in the retransmission failure user information table but the time when the user terminal 185****6277 wrote into the retransmission failure user information table exceeds 12 hours, the SMS processing device will determine the target short message with the most retransmission times in the user terminal 185****6277.
[0103] S702: If the waiting time of the target short message in the SMS retransmission queue of the second target user terminal is greater than or equal to the preset time threshold, and the number of retransmissions of the target short message is greater than or equal to the preset number threshold, the SMS processing device writes the data information of the second target user terminal into the retransmission failure user information table.
[0104] With reference to the example in S701, if the target short message with the most retransmissions by user terminal 185****6277 has a waiting time in the short message retransmission queue of the user terminal greater than or equal to 5 hours and the number of retransmissions is greater than or equal to 10 times, then it is determined that the target short message is information that has been retransmitted multiple times. Therefore, the short message processing device updates user terminal 185****6277 into the retransmission failure user information table.
[0105] Based on the above technical solution, the SMS processing device determines the target short message with the most retransmission times of the second target user terminal. When the target short message meets the preset time threshold and the preset number threshold, it means that the second target user terminal has not received the short message for a long time and the second target user terminal needs to be processed in a timely manner. The data information of the second target user terminal is written into the retransmission failure user information for subsequent optimization and adjustment.
[0106] In the embodiment of the present application, the text message processing device can be divided into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.
[0107] like Figure 8As shown, it is a structural schematic diagram of a short message processing device provided by an embodiment of the present application, and the device includes: a processing unit 801 and an acquisition unit 802; the processing unit 801 is used to determine a retransmission failure user information table; the retransmission failure user information table includes a user terminal identifier, a timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, and the number of retransmissions of each short message in each user terminal identifier; the processing unit 801 is also used to determine the first target terminal with the longest time of writing into the retransmission failure user information table based on the timestamp of each user terminal identifier being written into the retransmission failure user information table target user terminal; an acquisition unit 802, used to obtain the number of retransmission failure short messages of the first target user terminal and the number of retransmissions of each retransmission failure short message; the processing unit 801, further used to determine the target retransmission failure short message with the largest number of retransmissions among the retransmission failure short messages of the first target user terminal when the number of retransmission failure short messages of the first target user terminal is greater than or equal to a preset threshold; the processing unit 801 is further used to adjust the target retransmission failure short message to the end of the SMS retransmission queue of the first target user terminal, the SMS retransmission queue including the retransmission failure short messages of the first target user terminal arranged in a retransmission order.
[0108] Optionally, the acquisition unit 802 is also used to obtain data information of user terminals in the waiting retransmission queue of the SMS center within a first preset time; the data information of the user terminal includes the user terminal identifier, the timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, and the number of retransmissions of each short message in each user terminal identifier; the processing unit 801 is also used to determine the waiting retransmission temporary table based on the data information of the user terminal; the waiting retransmission temporary table is used to temporarily store the data information of the user terminal; the processing unit 801 is also used to determine the retransmission failure user information table based on the user terminal in the waiting retransmission temporary table that meets the preset conditions.
[0109] Optionally, the processing unit 801 is specifically used to read the data information of the second target user terminal in the temporary table waiting for retransmission; the second target user terminal is a user terminal that has not been read in the temporary table waiting for retransmission; when the data information of the second target user terminal does not exist in the retransmission failure user information table, the retransmission failure user information table is determined based on the data information of the second target user terminal.
[0110] Optionally, the processing unit 801 is further configured to determine the target short message with the most retransmissions for the second target user terminal; if the waiting time of the target short message in the SMS retransmission queue of the second target user terminal is greater than or equal to a preset time threshold, and the number of retransmissions of the target short message is greater than or equal to a preset number threshold, the data information of the second target user terminal is written into the retransmission failure user information table. When implemented by hardware, the acquisition unit 802 in the embodiment of the present application can be integrated into the communication interface, and the processing unit 801 can be integrated into the processor. The specific implementation method is as follows: Figure 9 shown.
[0111] Figure 9 Another possible structural diagram of the SMS processing device involved in the above embodiment is shown. The SMS processing device includes: a processor 902 and a communication interface 903. Processor 902 is used to control and manage the operations of the SMS processing device, for example, executing the steps performed by the processing unit 801 and / or performing other processes of the technology described herein. Communication interface 903 is used to support communication between the SMS processing device and other network entities, for example, executing the steps performed by the acquisition unit 802. The SMS processing device may also include a memory 901 and a bus 904. The memory 901 is used to store program code and data of the SMS processing device.
[0112] Among them, the memory 901 can be a memory in a short message processing device, etc., and the memory can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory can also include a combination of the above types of memory.
[0113] The processor 902 may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The processor may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, or a combination of a DSP and a microprocessor.
[0114] The bus 904 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 904 may be divided into an address bus, a data bus, a control bus, or the like. For ease of representation, Figure 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0115] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0116] An embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on a computer, the computer is caused to execute the SMS processing method in the above method embodiment.
[0117] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the SMS processing method in the method flow shown in the above method embodiment.
[0118] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0119] Since the SMS processing device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present invention will not be repeated here.
[0120] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0121] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0122] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0123] The above are only specific embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for processing short messages, characterized in that: The method comprises: Determine a retransmission failure user information table; the retransmission failure user information table includes a user terminal identifier, a timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, and the number of retransmissions of each short message in each user terminal identifier; Determine, based on the timestamp of each user terminal identifier being written into the retransmission failure user information table, the first target user terminal having the longest time of being written into the retransmission failure user information table; Obtaining the number of retransmission failure short messages of the first target user terminal and the number of retransmissions of each retransmission failure short message; When the number of retransmission failure short messages of the first target user terminal is greater than or equal to a preset threshold, determining a target retransmission failure short message with the largest number of retransmissions among the retransmission failure short messages of the first target user terminal; The target retransmission failure short message is adjusted to the end of the short message retransmission queue of the first target user terminal, where the short message retransmission queue includes the retransmission failure short messages of the first target user terminal arranged in a retransmission order.
2. The method according to claim 1, characterized in that The table of user information of determined retransmission failures includes: Obtaining data information of user terminals in a waiting retransmission queue of a short message center within a first preset time; the data information of the user terminals includes a user terminal identifier, a timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, and the number of retransmissions of each short message in each user terminal identifier; Determine a temporary table for waiting for retransmission according to the data information of the user terminal; the temporary table for waiting for retransmission is used to temporarily store the data information of the user terminal; The retransmission failure user information table is determined according to the user terminals meeting the preset conditions in the temporary table waiting for retransmission.
3. The method according to claim 2, characterized in that The step of determining the retransmission failure user information table according to the user terminals meeting the preset conditions in the temporary table waiting for retransmission includes: Reading data information of a second target user terminal in the temporary table waiting for retransmission; the second target user terminal is a user terminal that has not been read in the temporary table waiting for retransmission; In a case where the data information of the second target user terminal does not exist in the retransmission failure user information table, the retransmission failure user information table is determined according to the data information of the second target user terminal.
4. The method according to claim 3, characterized in that Determining the retransmission failure user information table according to the data information of the second target user terminal includes: Determining the target short message with the largest number of retransmissions for the second target user terminal; If the waiting time of the target short message in the SMS retransmission queue of the second target user terminal is greater than or equal to the preset time threshold, and the number of retransmissions of the target short message is greater than or equal to the preset number threshold, the data information of the second target user terminal is written into the retransmission failure user information table.
5. A short message processing device, characterized in that: The device comprises: a processing unit and an acquisition unit; The processing unit is used to determine a retransmission failure user information table; the retransmission failure user information table includes a user terminal identifier, a timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, and the number of retransmissions of each short message in each user terminal identifier; The processing unit is further configured to determine, based on a timestamp of each user terminal identifier being written into the retransmission failure user information table, a first target user terminal having the longest time of being written into the retransmission failure user information table; The acquiring unit is configured to acquire the number of retransmission failure short messages of the first target user terminal and the number of retransmissions of each retransmission failure short message; The processing unit is further configured to determine, when the number of retransmission failure short messages of the first target user terminal is greater than or equal to a preset threshold, a target retransmission failure short message having the largest number of retransmission times among the retransmission failure short messages of the first target user terminal; The processing unit is further configured to adjust the target retransmission failure short message to the end of the SMS retransmission queue of the first target user terminal, where the SMS retransmission queue includes the retransmission failure short messages of the first target user terminal arranged in a retransmission order.
6. The device according to claim 5, characterized in that The acquisition unit is further configured to acquire data information of user terminals in a waiting retransmission queue of a short message center within a first preset time; the data information of the user terminals includes a user terminal identifier, a timestamp of each user terminal identifier being written into the retransmission failure user information table, the number of short messages in each user terminal identifier, and the number of retransmissions of each short message in each user terminal identifier; The processing unit is further configured to determine a temporary table for waiting for retransmission based on the data information of the user terminal; the temporary table for waiting for retransmission is used to temporarily store the data information of the user terminal; The processing unit is further configured to determine a retransmission failure user information table based on user terminals that meet preset conditions in the temporary table waiting for retransmission.
7. The device according to claim 6, characterized in that The processing unit is specifically configured to read data information of a second target user terminal in the temporary table waiting for retransmission; the second target user terminal is a user terminal that has not been read in the temporary table waiting for retransmission; In a case where the data information of the second target user terminal does not exist in the retransmission failure user information table, the retransmission failure user information table is determined according to the data information of the second target user terminal.
8. The device according to claim 7, characterized in that The processing unit is further configured to determine the target short message with the largest number of retransmissions for the second target user terminal; If the waiting time of the target short message in the SMS retransmission queue of the second target user terminal is greater than or equal to the preset time threshold, and the number of retransmissions of the target short message is greater than or equal to the preset number threshold, the data information of the second target user terminal is written into the retransmission failure user information table.
9. A short message processing device, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the text message processing method as described in any one of claims 1-4.
10. A computer-readable storage medium storing instructions, characterized in that: When a computer executes the instruction, the computer executes the text message processing method described in any one of claims 1 to 4 above.
Citation Information
Patent Citations
Short message processing method, system and terminal
CN106912034A
Instant message sending method and device, storage medium and communication terminal
CN110062340A