CN113329353B - Short message sending method, device, medium and electronic equipment - Google Patents

Short message sending method, device, medium and electronic equipment Download PDF

Info

Publication number
CN113329353B
CN113329353B CN202110693463.0A CN202110693463A CN113329353B CN 113329353 B CN113329353 B CN 113329353B CN 202110693463 A CN202110693463 A CN 202110693463A CN 113329353 B CN113329353 B CN 113329353B
Authority
CN
China
Prior art keywords
short message
sending
terminal equipment
terminal device
tac
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110693463.0A
Other languages
Chinese (zh)
Other versions
CN113329353A (en
Inventor
黄长青
张少军
周乔松
孙鸿雁
袁东冉
汪加婧
朱俊平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202110693463.0A priority Critical patent/CN113329353B/en
Publication of CN113329353A publication Critical patent/CN113329353A/en
Application granted granted Critical
Publication of CN113329353B publication Critical patent/CN113329353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the disclosure provides a short message sending method, a short message sending device, a computer readable medium and electronic equipment, and relates to the technical field of communication. The method comprises the following steps: acquiring a tracking area update TAU message of the terminal equipment, wherein the TAU message comprises a tracking area code TAC before switching of the terminal equipment and a current TAC; determining whether the terminal equipment belongs to the boundary-crossing terminal equipment or not based on the TAC before switching of the terminal equipment and the current TAC; and if the terminal equipment belongs to the boundary-crossing terminal equipment and meets the short message sending strategy, sending the short message to the terminal equipment. According to the technical scheme of the embodiment of the disclosure, the short message can be sent to the terminal equipment in time when the terminal equipment has a boundary crossing behavior, so that the problem that the short message cannot be received in time or the short message is missed is avoided.

Description

Short message sending method, device, medium and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a short message sending method, a short message sending apparatus, a computer-readable medium, and an electronic device.
Background
With the development of communication technology, there are more and more occasions for sending short messages to users across administrative boundaries such as provinces, cities and counties, and the like.
In the related technical solution, information of a cell where the terminal device is currently located is obtained by analyzing DPI (Deep Packet Inspection) data of the terminal device, and if the cell where the terminal device is currently located belongs to a border cell, a short message is sent to a user. However, in this technical solution, to accurately acquire terminal devices across administrative regions, such as prefecture and county boundaries, it is necessary to filter the entire DPI data in real time according to the list of all the prefecture and county boundaries to acquire all the terminal devices under the boundary cells.
Therefore, in the above technical solution, there are problems that the DPI data amount to be processed is large, the calculation processing time delay is high, and the terminal device cannot receive the short message in time or the short message is missed.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosed embodiments aim to provide a short message sending method, a short message sending device, a computer readable medium and an electronic device, thereby reducing the problem that a terminal device cannot receive a short message in time or the short message is missed at least to a certain extent.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the embodiments of the present disclosure, a short message sending method is provided, including: acquiring a TAU message of a terminal device, wherein the TAU message comprises a tracking area code TAC before switching of the terminal device and a current TAC; determining whether the terminal equipment belongs to the cross-boundary terminal equipment or not based on the TAC before switching of the terminal equipment and the current TAC; and if the terminal equipment belongs to the boundary-crossing terminal equipment and meets the short message sending strategy, sending the short message to the terminal equipment.
According to the first aspect, in some example embodiments, the determining, based on a TAC before handover of the terminal device and a current TAC, whether the terminal device belongs to a terminal device that crosses a boundary includes: determining an administrative area where the terminal device is located before switching and a current administrative area where the terminal device is located based on the TAC before switching and the current TAC of the terminal device; and if the administrative district where the terminal equipment is located before the switching is different from the administrative district where the terminal equipment is currently located, determining that the terminal equipment belongs to the terminal equipment which is across the boundary.
According to the first aspect, in some example embodiments, the sending the short message to the terminal device includes: determining a corresponding short message sending strategy according to the administrative area where the terminal equipment is located before switching and the administrative area where the terminal equipment is currently located; and sending the short message to the terminal equipment according to the corresponding short message sending strategy.
According to the first aspect, in some example embodiments, the sending a short message to the terminal device according to the corresponding short message sending policy includes: determining a corresponding short message template according to the corresponding relation between the short message sending strategy and the short message template; and sending the short message to the terminal equipment according to the corresponding short message template.
According to the first aspect, in some example embodiments, the method further comprises: determining whether the terminal equipment meets the sending condition of the short message sending strategy, wherein the sending condition comprises that: whether the number attribution of the terminal equipment belongs to the attribution set of the short message sending strategy, whether the time of the short message sending strategy is overdue, whether the current time and the last sending time are greater than a preset sending time interval and whether the current time is in a sending time interval or not; and if the sending conditions are met, sending the short message to the terminal equipment according to the corresponding short message sending strategy.
According to the first aspect, in some example embodiments, the obtaining of the TAU message of the terminal device includes: CHR data of the terminal equipment are concurrently acquired in a multithreading mode; and analyzing the CHR data to acquire the TAU message of the terminal equipment.
According to the first aspect, in some example embodiments, the sending a short message to the terminal device further includes: obtaining DPI data of the terminal equipment, and determining a cell number in the DPI data; determining a corresponding short message sending strategy according to the cell number; determining a corresponding short message template according to the corresponding relation between the short message sending strategy and the short message template; and sending the short message to the terminal equipment according to the corresponding short message template.
According to a second aspect of the embodiments of the present disclosure, there is provided a short message sending apparatus, including: a TAU message acquiring module, configured to acquire a TAU message of a terminal device, where the TAU message includes a tracking area code TAC before switching of the terminal device and a current TAC; a boundary crossing determining module, configured to determine whether the terminal device belongs to a boundary crossing terminal device based on a TAC before the switching of the terminal device and a current TAC; and the short message sending module is used for sending a short message to the terminal equipment according to the TAC before switching of the terminal equipment and the current TAC if the terminal equipment is in the boundary-crossing terminal equipment and meets a short message sending strategy.
According to the second aspect, in some example embodiments, the off-boundary determination module is further to: determining an administrative area where the terminal device is located before switching and a current administrative area where the terminal device is located based on the TAC before switching and the current TAC of the terminal device; and if the administrative district where the terminal equipment is located before the switching is different from the administrative district where the terminal equipment is currently located, determining that the terminal equipment belongs to the terminal equipment which is across the boundary.
According to the second aspect, in some example embodiments, the short message sending module is further configured to: determining a corresponding short message sending strategy according to the administrative area where the terminal equipment is located before switching and the administrative area where the terminal equipment is currently located; and sending the short message to the terminal equipment according to the corresponding short message sending strategy.
According to a second aspect, in some example embodiments, the sending a short message to the terminal device according to the corresponding short message sending policy includes: determining a corresponding short message template according to the corresponding relation between the short message sending strategy and the short message template; and sending a short message to the terminal equipment according to the corresponding short message template.
According to a second aspect, in some example embodiments, the apparatus further comprises: a sending condition determining module, configured to determine whether the terminal device meets a sending condition of the short message sending policy, where the sending condition includes: whether the number attribution of the terminal equipment belongs to the attribution set of the short message sending strategy, whether the time of the short message sending strategy is expired, whether the current time and the last sending time are greater than a preset sending time interval and whether the current time is in one or more of sending time intervals; and if the sending conditions are met, sending the short message to the terminal equipment according to the corresponding short message sending strategy.
According to a second aspect, in some example embodiments, the TAU message acquisition module is further configured to: CHR data of the terminal equipment are concurrently acquired in a multithreading mode; and analyzing the CHR data to acquire the TAU message of the terminal equipment.
According to the second aspect, in some example embodiments, the short message sending module is further configured to: obtaining DPI data of the terminal equipment, and determining a cell number in the DPI data; determining a corresponding short message sending strategy according to the cell number; determining a corresponding short message template according to the corresponding relation between the short message sending strategy and the short message template; and sending the short message to the terminal equipment according to the corresponding short message template.
According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable medium, on which a computer program is stored, which when executed by a processor, implements the short message sending method as described in the first aspect of the embodiments above.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including: one or more processors; a storage device, configured to store one or more programs, and when the one or more programs are executed by the one or more processors, enable the one or more processors to implement the short message sending method according to the first aspect of the foregoing embodiments.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in some embodiments of the present disclosure, on one hand, a TAU message of a terminal device is obtained, where the TAU message includes a TAC before switching of the terminal device and a current TAC, and since TAU data is generated in real time, the TAU message of the terminal device can be efficiently and accurately obtained; on the other hand, whether the terminal equipment belongs to the boundary-crossing terminal equipment or not is determined based on the TAC before the switching of the terminal equipment and the current TAC, if the terminal equipment belongs to the boundary-crossing terminal equipment, the short message is sent to the terminal equipment, and the short message can be sent to the terminal equipment in time when the boundary-crossing behavior of the terminal equipment occurs; on the other hand, because the data volume of the TAU data is far smaller than that of the DPI data, the required computing resources are far smaller than those required for processing the DPI data, so that the computing processing time delay can be reduced, and the problem that short messages cannot be received in time or are missed is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It should be apparent that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived by those of ordinary skill in the art without inventive effort. In the drawings:
fig. 1 is a schematic diagram illustrating an application scenario of a short message sending method in an exemplary embodiment of the disclosure;
fig. 2 shows a flow diagram of a method of sending a short message according to some example embodiments of the present disclosure;
fig. 3 shows a schematic structural diagram of a short message sending system according to some example embodiments of the present disclosure;
fig. 4 shows a flow diagram of a method of sending a short message according to further example embodiments of the present disclosure;
fig. 5 is a flow chart illustrating a method for sending a short message according to further example embodiments of the present disclosure;
fig. 6 is a schematic structural diagram of a short message sending apparatus according to an embodiment of the present disclosure;
fig. 7 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flowcharts shown in the figures are illustrative only and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
To clearly illustrate the technical solutions in the embodiments of the present disclosure, before specifically developing and describing the embodiments of the present disclosure, some noun terms applied in the embodiments are first described.
CHR: the CHR (Call History Record) data is information generated by a core network MME (Mobility Management Entity) for switching various terminal devices, and particularly includes a TAU (Tracking Area Update) message of the terminal device.
TAU message: the TAU message includes a TAC (TA Code) before handover of the terminal device and a current TAC.
TAC: TAC is identification information of TA (Tracking Area).
And (3) short message sending strategy: the short message sending strategy can comprise short message sending frequency, strategy expiration time, short message sending time interval and the like.
Short message template: the short message template can include information such as short message content and short message sending frequency, and can configure corresponding short message sending strategies and short message sending templates according to different service scenes.
Technical solutions in example embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram illustrating an application scenario of a short message sending method in an exemplary embodiment of the present disclosure. The application scenario 100 may include a network device 110, and the network device 110 may be a device communicating with a terminal device 120 (or referred to as a communication terminal, a terminal). Network device 110 may provide communication coverage for a particular geographic area and may communicate with terminal devices located within that coverage area. Alternatively, the network device 110 may be an evolved Node B (eNB) or eNodeB in an LTE system, or a network device in a 5G network, such as a base station.
The application scenario 100 further comprises at least one terminal device 120 located within the coverage area of the network device 110. The terminal device 120 is a user terminal in a 4G wireless network or a 5G wireless network.
Fig. 2 shows a flow diagram of a method for sending a short message according to some example embodiments of the present disclosure. The execution subject of the short message sending method provided by the embodiment of the present disclosure may be a network device with computing power, such as the network device 110 in fig. 1. The short message sending method includes steps S210 to S230, and the short message sending method in the example embodiment is described in detail below with reference to the accompanying drawings.
Referring to fig. 2, in step S210, a TAU message of the terminal device is obtained, where the TAU message includes a TAC before the handover of the terminal device and a current TAC.
In an exemplary embodiment, the CHR (Call History Record) data is information generated by a core network MME (Mobility Management Entity) for switching various terminal devices, and particularly includes a TAU (Tracking Area Update) message of the terminal device. The TAU message includes a TAC (TA Code) before handover of the terminal device and a current TAC.
In a technical architecture of LTE (Long Term Evolution), a whole network cell is divided into different TAs (Tracking areas), the TAs are free mobile areas in which a terminal device does not need to update location services in an LTE system, and a plurality of base station cells may form one TA. Further, multiple TAs may be attributed to one TA LIST. When the terminal device moves from one TA LIST to another TA LIST, a handover occurs, a TAU message is called a TAU message, the TAU message includes a TAC before the handover of the terminal device and a current TAC, and the TAC is identification information of the TA.
In step S220, it is determined whether the terminal device belongs to a boundary-crossing terminal device based on the TAC before the handover of the terminal device and the current TAC.
In an example embodiment, geographic areas to which a plurality of TAs belong may be divided in advance according to administrative districts, and a correspondence between the administrative areas and the TAs may be generated, for example, the corresponding TAs may be divided according to geographic ranges of provincial areas, city areas, and county areas, and one city area may include a plurality of TAs.
Further, in an example embodiment, the TAU message, for example, includes the TAC before the terminal device switches and the current TAC in the TAU message. Determining an administrative area where the terminal device is located before switching and a current administrative area where the terminal device is located based on the TAC before switching and the current TAC of the terminal device; determining whether the terminal equipment crosses the boundary according to the administrative district where the terminal equipment is located before switching and the administrative district where the terminal equipment is currently located; and if the administrative region where the terminal equipment is located before switching is different from the administrative region where the terminal equipment is currently located, determining that the terminal equipment belongs to the boundary-crossing terminal equipment.
Since the TAC numbers of the respective administrative areas, such as cities, are planned in an early stage, and a situation that one TAC belongs to a different administrative area, such as cities, does not occur, when a terminal device crosses from one administrative area, such as cities, to another administrative area, such as cities, a handover occurs, and a TAU message is reported to a network device.
In step S230, if the terminal device belongs to the boundary-crossing terminal device and the short message sending policy is satisfied, the short message is sent to the terminal device.
In an example embodiment, if the terminal device belongs to a boundary-crossing terminal device, determining a corresponding short message sending strategy according to an administrative area where the terminal device is located before switching and a current administrative area where the terminal device is located; and sending the short message to the terminal equipment according to the corresponding short message sending strategy. For example, a corresponding relationship between an administrative area and a short message sending strategy is preset, the corresponding short message sending strategy is matched from the corresponding relationship according to an administrative area where the terminal device is located before switching and a current administrative area, and the short message is sent to the terminal device according to the matched short message sending strategy.
In an example embodiment, the short message sending policy may include a short message sending frequency, a policy expiration time, a short message sending time interval, and the like. Further, in an example embodiment, the corresponding short message sending policy may be determined according to the moving speed of the terminal device, and the administrative district where the terminal device is located before the handover and the current administrative district where the terminal device is located.
According to the technical solution of the example embodiment of fig. 2, on one hand, a TAU message of the terminal device is obtained, where the TAU message includes a TAC before the handover of the terminal device and a current TAC, and since TAU data is generated in real time, the TAU message of the terminal device can be efficiently and accurately obtained; on the other hand, whether the terminal equipment belongs to the boundary-crossing terminal equipment or not is determined based on the TAC before the switching of the terminal equipment and the current TAC, if the terminal equipment belongs to the boundary-crossing terminal equipment, the short message is sent to the terminal equipment, and the short message can be sent to the terminal equipment in time when the boundary-crossing behavior of the terminal equipment occurs; on the other hand, because the data volume of the TAU data is far smaller than that of the DPI data, the required computing resources are far smaller than those required for processing the DPI data, so that the computing processing time delay can be reduced, and the problem that short messages cannot be received in time or are missed is avoided.
Further, in some example embodiments, sending a short message to a terminal device according to a corresponding short message sending policy includes: determining a corresponding short message template according to the corresponding relation between the short message sending strategy and the short message template; and sending the short message to the terminal equipment according to the corresponding short message template. The short message template can comprise information such as short message content, short message sending frequency and the like. The short message template is set according to different short message sending strategies, so that the short message can be timely and accurately sent to the terminal equipment, and the short message sending requirements under different scenes are met.
Fig. 3 shows a schematic structural diagram of a short message sending system according to some example embodiments of the present disclosure.
The short message sending system mainly comprises: the system comprises a CHR data source 345, a distributed acquisition unit 350, a data cleaning unit 355, a data packaging unit 360, a big data platform 340, a data application layer 335, a data interface 330, a short message configuration capability determining unit 325, a short message scheduling unit 320, a short message configuration foreground 310 and a short message gateway 305.
Wherein the CHR data source 345 is used to generate CHR data in real time. The distributed acquisition unit 350 is configured to analyze the CHR data generated by the CHR data source 345 in real time in a multi-process and multi-thread manner, and acquire the analyzed CHR data. The data cleaning unit 355 is configured to perform data cleaning processing on the CHR data acquired by the distributed acquisition unit 350 to obtain CHR data convenient for data encapsulation, such as TAC before switching of the terminal device and current TAC. The data encapsulating unit 360 is configured to perform an encapsulating process on the cleaned data, for example, generate a message queue. Big data platform 340 is used to process encapsulated data, such as message queues, for example, big data platform 340 may be a kafka cluster. The data application layer 335 is used to pull data from the big data platform 340 and transfer the data to the data interface 330. The short message scheduling unit 320 is configured to schedule different short message sending strategies, for example, schedule the short message sending strategies in each administrative district and send the short message in time sequence. The short message configuration capability determining unit 325 is configured to determine a short message processing capability of the short message sending device, and dynamically allocate processing resources according to the short message processing capability. The short message configuration foreground 310 is configured to configure a specific short message sending policy, for example, configure the short message sending policy of each administrative area according to the short message template. The short message gateway 305 is used for sending short messages to the terminal device. In the short message configuration foreground 310, different short message sending strategies are added, such as: the system comprises a blacklist, user attribution, short message sending frequency, sending time limit and the like so as to meet the short message sending requirements under various service scenes.
According to the technical scheme in the example embodiment of fig. 3, the CHR data is acquired and processed through a distributed architecture, and the TAU message of the terminal device can be efficiently and accurately acquired; on the other hand, different short message sending strategies and short message templates are set for different application scenes, so that short messages can be timely and accurately sent to the terminal equipment, and the short message sending requirements under different scenes are met; on the other hand, because the data volume of the CHR is far smaller than that of the DPI data, the required computing resources are far smaller than those required for processing the DPI data, so that the computing processing time delay can be reduced, and the problem that short messages cannot be received in time or are missed to be sent is avoided.
Fig. 4 is a flowchart illustrating a method for sending a short message according to further exemplary embodiments of the present disclosure.
Referring to fig. 4, in step S405, the CHR source data is concurrently acquired by multiple processes and multiple threads.
In step S410, TAC configuration information in the redis cluster is determined.
In an example embodiment, TAC configuration information of the terminal device in the redis cluster is determined, for example, a TAC before handover of the terminal device and a current TAC.
In step S415, it is determined whether TAU switching occurs.
In an exemplary embodiment, whether the TAU handover occurs is determined according to the TAC before the handover of the terminal device and the current TAC, a plurality of TAs form a TA List and are simultaneously allocated to one terminal device, and the terminal device does not need to perform TA update when moving in the TA List (TA List) so as to reduce frequent interaction with the network; when the terminal device enters a new TA area that is not in the registered TA list, TA update, that is, TAU handover, needs to be performed, the MME reallocates a new TA list to the terminal device, and the newly allocated TA list may also include some TAs in the original TA list.
In step S420, the switching information is written to the kafka cluster.
In an exemplary embodiment, switching information of the terminal device, for example, the TAC before switching of the terminal device and the current TAC, is written into the kafka cluster.
In step S425, the handover information is pulled from the kafka cluster and consumed.
In step S430, a short message sending policy is configured in the database.
In an example embodiment, different short message sending policies are combined to meet a specific service scenario, for example, a short message sending policy corresponding to different service scenario configurations may be set, the short message sending policy configuration is stored in a local mysql database, and a distributed redis memory database is used as a cache.
In step S435, it is determined whether to update the short message transmission policy.
In the exemplary embodiment, if it is determined to update the short message sending policy, proceed to step S440; otherwise the flow ends.
In step S440, the short message sending policy data is refreshed to the redis cluster.
In step S445, the short message sending policy is pulled.
In step S450, it is determined whether the switching information matches the short message sending policy.
In an example embodiment, the TAU message includes a TAC before the terminal device is switched and a current TAC, and based on the TAC before the terminal device is switched and the current TAC, an administrative area where the terminal device is located before the terminal device is switched and an administrative area where the terminal device is located currently are determined; matching a corresponding short message sending strategy according to the administrative area where the terminal equipment is located before switching and the administrative area where the terminal equipment is currently located, and if the short message sending strategy is matched, proceeding to step S455; otherwise, the process proceeds to step S460. For example, a corresponding relationship between an administrative area and a short message sending policy is preset, and a corresponding short message sending policy is matched from the corresponding relationship according to an administrative area where the terminal device is located before switching and a current administrative area where the terminal device is located.
In step S455, a kafka cluster is entered to wait for a short message to be sent to the consumer.
In an example embodiment, the matched short message sending strategy and the short message are sent to a message queue of the kafka cluster, and the short message is waited to be sent to the consumer. The Kafka message queue sets different topics topic aiming at different data sources, and the topics are producers of short messages.
In step S460, the data is discarded.
In an example embodiment, if the handover information does not match the sms message sending policy, the handover information is discarded.
In step S465, the short message is sent to the consumer for consumption.
In step S470, the short message is sent to the short message gateway.
In step S475, a short message is sent to the terminal device.
According to the technical solution in the example embodiment of fig. 4, on one hand, because the original CHR file is generated in real time, the original CHR file can be analyzed in real time through the multithreading multiprocess technology, so that the terminal device reports the TAU message as soon as the boundary-crossing action occurs, the switching information can be immediately captured, and then the short message is sent to the terminal device, so that the timeliness of sending the short message can be ensured. From the result of the actual test transverse comparison, the user can receive the short message as soon as crossing the boundary, and the effect is very obvious; on the other hand, because the data volume of the CHR is far smaller than that of the DPI, the required hardware resource is far smaller than that required for processing the DPI, and the condition of short message missing caused by data loss can not occur. On the other hand, due to the adoption of the technical scheme of the CHR data, the cross-boundary user can be captured more accurately than the existing solution, and the wrong sending and missed sending probability is greatly reduced.
Fig. 5 is a flowchart illustrating a method for sending a short message according to further example embodiments of the present disclosure.
Referring to fig. 5, in step S505, CHR data is acquired.
In step S510, a short message sending policy is determined according to the pre-switching TAC and the current TAC.
In an example embodiment, based on a TAC before switching of a terminal device and a current TAC, determining an administrative area where the terminal device is located before switching and an administrative area where the terminal device is located currently; and matching the corresponding short message sending strategies according to the administrative areas where the terminal equipment is located before switching and the administrative areas where the terminal equipment is currently located.
In step S515, DPI data is acquired.
In step S520, a corresponding short message sending policy is determined according to the cell number.
In step S525, the corresponding number attribution is searched for according to the user' S mobile phone number.
In step S530, it is determined whether the number home is in the policy city set.
In an example embodiment, each short message sending strategy comprises a city set such as { wuhan, changsha, shanghai }, and corresponding short message sending templates are set for different cities. If the number home location is in the city set, proceed to step S535; otherwise, the flow is ended.
In step S535, it is determined whether the policy is within the validity period.
In an exemplary embodiment, each short message sending policy sets an expiration time, that is, the short message is sent before the expiration time, and if the current time is before the expiration time, it is determined that the short message sending policy is not expired, and the process proceeds to step S540; otherwise, the flow is ended.
In step S540, it is determined whether the current time and the last transmission time are greater than a predetermined transmission interval.
In an exemplary embodiment, each short message sending strategy sets a sending interval, for example, interval =6, and only sends short messages longer than the sending interval. If the current time and the last sending time are determined to be greater than the sending interval, then the process goes to step S545; otherwise, the flow is ended.
In step S545, it is determined whether the current time is within the transmission time interval.
In the exemplary embodiment, each sms sending strategy is a sending time interval, for example, 8 am to 2 pm, indicating that the current time is between 8 am and 2 pm before sending the sms. If the current time is within the sending time interval, go to step S550; otherwise, the flow is ended.
In step S550, a message is transmitted.
In an exemplary embodiment, the short messages in the Kafka message queue are pulled for consumption according to the short message sending strategy, the short messages are sent to the short message gateway according to the configured short message sending strategy, and the messages are sent to the terminal equipment through the short message gateway.
According to the technical solution in the example embodiment of fig. 5, on one hand, based on the CHR data and fused with the technical solution based on the DPI data, the DPI data can more accurately determine the position of the terminal device, so that the short message can be efficiently and accurately sent to the terminal device; on the other hand, different short message sending strategies and short message templates are set for different application scenes, so that short messages can be timely and accurately sent to the terminal equipment, and the short message sending requirements under different scenes are met; on the other hand, because the data volume of the CHR is far smaller than that of the DPI data, the required computing resources are far smaller than those required for processing the DPI data, so that the computing processing time delay can be reduced, and the problem that short messages cannot be received in time or are missed to be sent is avoided.
It is noted that the above-mentioned figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the present disclosure and are not intended to be limiting. It will be readily appreciated that the processes illustrated in the above figures are not intended to indicate or limit the temporal order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following describes an embodiment of an apparatus of the present disclosure, which may be used to execute the above-mentioned short message sending method of the present disclosure.
Fig. 6 is a schematic structural diagram of a short message sending apparatus according to an embodiment of the present disclosure.
Referring to fig. 6, a short message sending apparatus 600 includes: a TAU message acquiring module 610, configured to acquire a TAU message of a terminal device, where the TAU message includes a tracking area coded TAC before switching of the terminal device and a current TAC; a cross-boundary determining module 620, configured to determine whether the terminal device belongs to a cross-boundary terminal device based on a TAC before handover of the terminal device and a current TAC; a short message sending module 630, configured to send a short message to the terminal device according to the TAC before switching of the terminal device and the current TAC if the terminal device belongs to a boundary-crossing terminal device.
According to the second aspect, in some example embodiments, the off-boundary determination module 620 is further configured to: determining an administrative area where the terminal device is located before switching and a current administrative area where the terminal device is located based on the TAC before switching and the current TAC of the terminal device; and if the administrative district where the terminal equipment is located before the switching is different from the administrative district where the terminal equipment is currently located, determining that the terminal equipment belongs to the terminal equipment which is across the boundary.
According to the second aspect, in some example embodiments, the short message sending module 630 is further configured to: determining a corresponding short message sending strategy according to the administrative area where the terminal equipment is located before switching and the administrative area where the terminal equipment is currently located; and sending the short message to the terminal equipment according to the corresponding short message sending strategy.
According to the second aspect, in some example embodiments, the sending a short message to the terminal device according to the corresponding short message sending policy includes: determining a corresponding short message template according to the corresponding relation between the short message sending strategy and the short message template; and sending the short message to the terminal equipment according to the corresponding short message template.
According to the second aspect, in some example embodiments, the apparatus 600 further comprises: a sending condition determining module, configured to determine whether the terminal device meets a sending condition of the short message sending policy, where the sending condition includes: whether the number attribution of the terminal equipment belongs to the attribution set of the short message sending strategy, whether the time of the short message sending strategy is expired, whether the current time and the last sending time are greater than a preset sending time interval and whether the current time is in one or more of sending time intervals; and if the sending conditions are met, sending the short message to the terminal equipment according to the corresponding short message sending strategy.
According to the second aspect, in some example embodiments, the TAU message acquisition module 610 is further configured to: CHR data of the terminal equipment are concurrently acquired in a multithreading mode; and analyzing the CHR data to acquire the TAU message of the terminal equipment.
According to the second aspect, in some example embodiments, the short message sending module 630 is further configured to: obtaining DPI data of the terminal equipment, and determining a cell number in the DPI data; determining a corresponding short message sending strategy according to the cell number; determining a corresponding short message template according to the corresponding relation between the short message sending strategy and the short message template; and sending the short message to the terminal equipment according to the corresponding short message template.
As each functional module of the short message sending apparatus in the exemplary embodiment of the present disclosure corresponds to the step of the exemplary embodiment of the short message sending method, please refer to the embodiment of the short message sending method in the present disclosure for details that are not disclosed in the embodiment of the present disclosure.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer storage medium capable of implementing the above method. On which a program product capable of implementing the above-described method of the present specification is stored. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product including program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present disclosure described in the "exemplary methods" section above of this specification when the program product is run on the terminal device.
The program product may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product described above may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), 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 foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to this embodiment of the disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, and a bus 730 that couples various system components including the memory unit 720 and the processing unit 710.
Wherein the storage unit stores program codes, which can be executed by the processing unit 710, so that the processing unit 710 executes the steps according to various exemplary embodiments of the present disclosure described in the "exemplary method" section above in this specification. For example, the processing unit 710 described above may perform the following as shown in fig. 2: step S210, acquiring a TAU message of the terminal equipment, wherein the TAU message comprises a TAC before switching of the terminal equipment and a current TAC; step S220, determining whether the terminal equipment belongs to the cross-boundary terminal equipment or not based on the TAC before the switching of the terminal equipment and the current TAC; and step S230, if the terminal equipment belongs to the boundary-crossing terminal equipment, sending a short message to the terminal equipment.
For example, the processing unit 710 may further execute the short message sending method in the embodiment of the foregoing manner.
The storage unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM) 7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 730 may be any representation of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 790 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 700 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 750, which may be coupled to the display unit 740. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. As shown, the network adapter 760 communicates with the other modules of the electronic device 700 via the bus 730. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, and may also be implemented by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (8)

1. A method for sending short messages is characterized by comprising the following steps:
acquiring a tracking area update TAU message of terminal equipment, wherein the TAU message comprises a tracking area code TAC before switching of the terminal equipment and a current TAC;
determining whether the terminal equipment belongs to the cross-boundary terminal equipment or not based on the TAC before switching of the terminal equipment and the current TAC;
if the terminal equipment belongs to the boundary-crossing terminal equipment and meets the short message sending strategy, sending the short message to the terminal equipment, wherein the short message sending strategy comprises the following steps: obtaining DPI data of the terminal equipment, and determining a cell number in the DPI data; determining a corresponding short message sending strategy according to the cell number; determining a corresponding short message template according to the corresponding relation between the short message sending strategy and the short message template; meanwhile, whether the number attribution of the terminal equipment is in the strategy city set or not, whether the short message sending strategy is in the valid period or not, whether the current time and the last sending time are greater than a preset sending interval or not and whether the current time is in a sending time interval or not are judged; and if the sending conditions are met, sending the short message to the terminal equipment according to the corresponding short message template.
2. The method according to claim 1, wherein the determining whether the terminal device belongs to a cross-boundary terminal device based on a TAC before the handover of the terminal device and a current TAC comprises:
determining an administrative area where the terminal device is located before switching and a current administrative area where the terminal device is located based on the TAC before switching and the current TAC of the terminal device;
and if the administrative district where the terminal equipment is located before the switching is different from the administrative district where the terminal equipment is currently located, determining that the terminal equipment belongs to the terminal equipment which is across the boundary.
3. The method of claim 2, wherein the sending the short message to the terminal device comprises:
determining a corresponding short message sending strategy according to the administrative district where the terminal equipment is located before switching and the current administrative district where the terminal equipment is located;
and sending the short message to the terminal equipment according to the corresponding short message sending strategy.
4. The method of claim 3, wherein the sending the short message to the terminal device according to the corresponding short message sending policy comprises:
determining a corresponding short message template according to the corresponding relation between the short message sending strategy and the short message template;
and sending the short message to the terminal equipment according to the corresponding short message template.
5. The method of claim 1, wherein the obtaining the TAU message of the terminal device comprises:
CHR data of the terminal equipment are concurrently acquired in a multithreading mode;
and analyzing the CHR data to acquire the TAU message of the terminal equipment.
6. A short message sending device, comprising:
a TAU message acquiring module, configured to acquire a TAU message of a terminal device, where the TAU message includes a tracking area code TAC before switching of the terminal device and a current TAC;
a boundary crossing determining module, configured to determine whether the terminal device belongs to a boundary crossing terminal device based on a TAC before the switching of the terminal device and a current TAC;
the short message sending module is configured to send a short message to the terminal device according to the TAC before switching of the terminal device and the current TAC if the terminal device belongs to the boundary-crossing terminal device and meets a short message sending policy, and includes: obtaining DPI data of the terminal equipment, and determining a cell number in the DPI data; determining a corresponding short message sending strategy according to the cell number; determining a corresponding short message template according to the corresponding relation between the short message sending strategy and the short message template; meanwhile, whether the number attribution of the terminal equipment is in the strategy city set or not, whether the short message sending strategy is in the valid period or not, whether the current time and the last sending time are greater than a preset sending interval or not and whether the current time is in a sending time interval or not are judged; and if the sending conditions are met, sending the short message to the terminal equipment according to the corresponding short message template.
7. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, carries out a short message sending method according to any one of claims 1 to 5.
8. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the short message transmission method according to any one of claims 1 to 5.
CN202110693463.0A 2021-06-22 2021-06-22 Short message sending method, device, medium and electronic equipment Active CN113329353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110693463.0A CN113329353B (en) 2021-06-22 2021-06-22 Short message sending method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110693463.0A CN113329353B (en) 2021-06-22 2021-06-22 Short message sending method, device, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113329353A CN113329353A (en) 2021-08-31
CN113329353B true CN113329353B (en) 2022-06-21

Family

ID=77424331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110693463.0A Active CN113329353B (en) 2021-06-22 2021-06-22 Short message sending method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113329353B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026634A (en) * 2007-01-24 2007-08-29 中兴通讯股份有限公司 Message push system and method
CN102075859A (en) * 2010-12-24 2011-05-25 大唐移动通信设备有限公司 Long term evolution (LTE) system-based information pushing method and system
CN109996197A (en) * 2018-01-02 2019-07-09 ***通信有限公司研究院 A kind of method and apparatus of short message transmission
CN110958671A (en) * 2018-09-27 2020-04-03 华为技术有限公司 Communication method and device
WO2020077599A1 (en) * 2018-10-18 2020-04-23 华为技术有限公司 Access method and apparatus for terminal device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017082682A1 (en) * 2015-11-11 2017-05-18 엘지전자(주) Method for selecting data transmission mode in wireless communication system and apparatus therefor
CN112752275B (en) * 2019-10-31 2022-09-16 中国电信股份有限公司 User equipment, network equipment, information acquisition device and information reporting method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026634A (en) * 2007-01-24 2007-08-29 中兴通讯股份有限公司 Message push system and method
CN102075859A (en) * 2010-12-24 2011-05-25 大唐移动通信设备有限公司 Long term evolution (LTE) system-based information pushing method and system
CN109996197A (en) * 2018-01-02 2019-07-09 ***通信有限公司研究院 A kind of method and apparatus of short message transmission
CN110958671A (en) * 2018-09-27 2020-04-03 华为技术有限公司 Communication method and device
WO2020077599A1 (en) * 2018-10-18 2020-04-23 华为技术有限公司 Access method and apparatus for terminal device

Also Published As

Publication number Publication date
CN113329353A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
CN107295609B (en) Network slice processing method and device, terminal and base station
EP3552351B1 (en) Method and migration managing module for managing a migration of a service
US20240114402A1 (en) Handover method, handover device, and network system
CN110831038B (en) Network slice resource scheduling method and device
CN110493892B (en) Network connection method and device, storage medium and communication terminal
CN110365796B (en) Service request processing method and device
CN112236989A (en) Mobile edge computing application management for wireless networks
CN114845366A (en) Base station awakening method and system, user terminal, base station and storage medium
WO2020000144A1 (en) Methods and apparatuses for internet content pushing service in a wireless mobile communication system
CN113329353B (en) Short message sending method, device, medium and electronic equipment
CN103546862A (en) Cloud server, intelligent terminal and method and system for accessing intelligent terminal to LTE (long term evolution) network
CN113613279A (en) Routing strategy generation method and related equipment
CN109918215B (en) Process communication method, system, terminal and storage medium
CN116347546A (en) Satellite network switching method, device, equipment and medium
CN113613239B (en) Network mode switching method, network mode switching device, medium, and electronic device
CN115412993A (en) Relay discovery method, system, device and storage medium
CN101272569B (en) Method and equipment for conserving mobile terminal electric energy
CN103828458A (en) Processing device, communication system, communication terminal, method for controlling terminal device, and non-transitory computer readable medium in which program is stored
CN114980064A (en) Information association method and device, electronic equipment and storage medium
CN109951316B (en) Application program management method and device, computer readable medium and electronic equipment
CN111052793B (en) Method and device for mobility management
CN111343684A (en) Circuit switched fallback cell selection method and device, terminal and storage medium
CN114885358B (en) RRM (radio resource management) measuring method and device for terminal radio resource management, medium and equipment
CN115038127B (en) Resource scheduling method and device, storage medium and electronic equipment
CN118158705A (en) Information opening method, device, network function and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant