CN112866933B - Method, device and terminal for controlling sending of alarm short message - Google Patents

Method, device and terminal for controlling sending of alarm short message Download PDF

Info

Publication number
CN112866933B
CN112866933B CN202110292620.7A CN202110292620A CN112866933B CN 112866933 B CN112866933 B CN 112866933B CN 202110292620 A CN202110292620 A CN 202110292620A CN 112866933 B CN112866933 B CN 112866933B
Authority
CN
China
Prior art keywords
short message
sending
cat
slave
limit
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
CN202110292620.7A
Other languages
Chinese (zh)
Other versions
CN112866933A (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.)
Xiamen Kecan Information Technology Co ltd
Kehua Data Co Ltd
Original Assignee
Xiamen Kecan Information Technology Co ltd
Kehua Data Co 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 Xiamen Kecan Information Technology Co ltd, Kehua Data Co Ltd filed Critical Xiamen Kecan Information Technology Co ltd
Priority to CN202110292620.7A priority Critical patent/CN112866933B/en
Publication of CN112866933A publication Critical patent/CN112866933A/en
Application granted granted Critical
Publication of CN112866933B publication Critical patent/CN112866933B/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)
  • Telephonic Communication Services (AREA)

Abstract

The invention is suitable for the technical field of alarm monitoring, and provides a method, a device, a terminal and a computer readable storage medium for controlling sending of an alarm short message. The method is applied to an alarm short message sending system comprising a master short message cat and a slave short message cat, and comprises the following steps: monitoring the short message sending amount of the main short message cat in a time period; if the short message sending amount of the master short message cat in the duration period reaches a preset first limit, the master short message cat is stopped and the slave short message cat is started; monitoring the short message sending amount of the slave SMATs in a long period; and carrying out convergence transmission on the short message to be transmitted after the short message transmission amount of the slave short message modem in the time period reaches a preset second limit. The invention can avoid the sending quantity of the alarm short messages from touching the short message limit of the communication operator to the SIM card, and ensure the timeliness and the continuity of the sending of the alarm short messages.

Description

Method, device and terminal for controlling sending of alarm short message
Technical Field
The invention belongs to the technical field of alarm monitoring, and particularly relates to a method, a device, a terminal and a computer readable storage medium for controlling sending of an alarm short message.
Background
Currently, when monitoring that an alarm occurs, an automatic alarm monitoring device needs to send alarm information to a responding alarm handler, and in practical applications, a Subscriber Identity Module (SIM) card is usually configured to send the alarm information to a mobile phone number of the alarm handler in a short message form.
However, for a certain purpose, for example, to prevent harassment of short messages, the communications carrier usually limits the frequency of sending short messages, for example, the communications carrier limits the function of sending short messages of a certain SIM card after sending short messages more than a certain number per hour, thereby affecting sending of short messages for alarm of the automatic alarm monitoring device, and possibly delaying the processing of alarms.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a terminal and a computer readable storage medium for controlling sending of an alarm short message, so as to solve the problem in the prior art that sending of an alarm short message is affected due to the limitation of a communication operator on an SIM card.
The first aspect of the embodiment of the invention provides a method for controlling the sending of an alarm short message, which is applied to an alarm short message sending system, wherein the alarm short message sending system comprises a master short message cat and a slave short message cat, and the method comprises the following steps:
monitoring the short message sending amount of the main short message cat in a long period;
if the short message sending amount of the master short message cat in the duration period reaches a preset first limit, the master short message cat is stopped and the slave short message cat is started;
monitoring the short message sending amount of the slave SMATs in a long period;
and carrying out convergence transmission on the short message to be transmitted after the short message transmission amount of the slave SMM in the duration period reaches a preset second limit.
Based on the first aspect, in a first possible implementation manner of the first aspect, the converging sending of the short message to be sent after the sending amount of the short message in the duration period of the slave short message modem reaches the preset second limit includes:
after the sending amount of the short messages in the time period of the slave short message modem reaches a preset second limit, the short messages to be sent in each preset time interval are collected into one short message to be sent.
Based on the first aspect, in a second possible implementation manner of the first aspect, the performing convergent sending on the short message to be sent after the sending amount of the short message in the time period from the short message modem reaches a preset second quota includes:
after the sending amount of the short messages in the time period of the slave short message modem reaches a preset second limit, summarizing the short messages to be sent reaching the specified amount into one short message to be sent.
Based on the first aspect, in a third possible implementation manner of the first aspect, the monitoring the sending amount of the short message of the master short message cat within a specified time includes:
detecting whether the main short message cat communicates normally;
and if the communication of the main SMM cat is normal, monitoring the short message sending quantity of the main SMM cat within the specified time.
Based on the first aspect, in a fourth possible implementation manner of the first aspect, the deactivating the master pony cat and enabling the slave pony cat includes:
detecting whether the slave short message cat communicates normally;
and if the communication of the slave short message cat is normal, the master short message cat is stopped, and the slave short message cat is started.
Based on the first aspect and any one of the foregoing possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, after the converging transmission of the short message to be sent after the short message sending amount of the slave short message modem in the duration period reaches the preset second limit, the method further includes:
if the starting duration of the slave short message cat reaches the duration corresponding to a time period, or the sending amount of the short messages of the slave short message cat in the time period reaches a preset third limit, the slave short message cat is stopped and the master short message cat is started, wherein the third limit is not less than the first limit.
Based on the first aspect and any one of the foregoing possible implementation manners of the first aspect, in a sixth possible implementation manner of the first aspect, after the deactivating the master pony cat and activating the slave pony cat, the method further includes:
and taking the used time when the short message sending quantity of the master short message cat in the time length period of the master short message cat reaches a preset first limit as a first time, taking the stop time of the master short message cat in the time length period of the master short message cat as a second time, stopping the slave short message cat when the sum of the first time and the second time reaches the time length of one time length period, and starting the master short message cat.
A second aspect of the embodiments of the present invention provides a device for controlling sending of an alert short message, which is applied to an alert short message sending system, where the alert short message sending system includes a master short message modem and a slave short message modem, and the device includes:
the first monitoring unit is used for monitoring the short message sending amount of the main short message modem in a time period;
the switching control unit is used for stopping the master short message cat and starting the slave short message cat if the short message sending quantity of the master short message cat in the duration period reaches a preset first limit;
the second monitoring unit is used for monitoring the short message sending quantity of the slave short message modem in a long period;
and the sending control unit is used for carrying out convergence sending on the short message to be sent after the short message sending quantity of the slave short message modem in the time period reaches a preset second limit.
A third aspect of the embodiments of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the methods for controlling sending of an alert short message when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of any one of the methods for controlling sending of an alert short message.
Compared with the prior art, the invention has the following beneficial effects:
the invention is applied to an alarm short message sending system comprising a master short message cat and a slave short message cat, wherein the sending amount of the master short message cat in a time period is monitored, and if the sending amount of the master short message cat in the time period reaches a preset first limit, the master short message cat is stopped and the slave short message cat is started; and then monitoring the short message sending amount of the slave SMOKE in a time period, and carrying out convergence sending on the short message to be sent after the short message sending amount of the slave SMOKE in the time period reaches a preset second limit. The first limit and the second limit are related to the short message limit number of the communication operator to the SIM card, and are usually less than the short message limit number of a time period, the slave short message modem is started to send the alarm short message after the master short message modem reaches the first limit, and the slave short message modem converges to send the alarm short message after the slave short message modem reaches the second limit, so that the sending number of the alarm short message is prevented from touching the short message limit of the communication operator to the SIM card, and the timeliness and the continuity of sending the alarm short message are guaranteed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the embodiments or the prior art description will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings may be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of an implementation of a method for controlling sending of an alert short message according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus for controlling sending of an alert short message according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following description is made by way of specific embodiments with reference to the accompanying drawings.
Referring to fig. 1, it shows an implementation flowchart of a method for controlling sending of an alert short message according to an embodiment of the present invention, which is detailed as follows:
the invention is applied to an alarm short message sending system, namely a system which is configured for alarm monitoring equipment and is used for sending alarm short messages, wherein the alarm short message sending system is configured with two short message cats: each of the master short message cat and the slave short message cat is provided with an SIM card.
In step 101, monitoring the message sending amount of the main SMM cat in a time period;
in the embodiment of the present invention, the system may monitor the short message sending amount of the main short message modem in a time period, where the time period is usually related to a communication operator to which the SIM card configured by the main short message modem belongs, for example, if the operator sets a short message sending limit for each hour for the SIM card to which the operator belongs, the time period may be set to 1 hour.
Optionally, in an embodiment, the step 101 may include:
detecting whether the main short message cat communicates normally;
and if the communication of the main SMM cat is normal, monitoring the message sending amount of the main SMM cat within a specified time.
In this optional embodiment, the system may first detect whether the main modem is communicating normally, that is, whether the main modem can send the short message normally, and when the main modem is communicating normally, start to monitor the short message sending amount of the main modem within a specified time.
If the main SMM cat is detected to be abnormal in communication, namely the short messages can not be normally sent, switching to another SMM cat is needed, and the switched another SMM cat is used as the main SMM cat.
In the embodiment of the present invention, the detecting whether the main textbook is in normal communication may include the following steps:
1. and detecting the plugging condition of the SIM card of the SMM, if the SIM card of the SMM is in the inserted state, judging that the communication is normal, otherwise, judging that the communication is abnormal.
2. The registration condition, normal or roaming condition and the like of the SIM card are detected, if the SIM card can be normally used, the communication is abnormal, if the SIM card can be normally used, the communication is judged to be normal, otherwise, the communication is judged to be abnormal.
3. And detecting the condition of serial port connection, if the serial port connection is normal, judging that the communication is normal, and otherwise, judging that the communication is abnormal.
4. And detecting the signal quality, judging that the communication is normal if the signal quality is higher than a set value, and otherwise, judging that the communication is abnormal. For example, a signal quality greater than 64% determines that the communication is normal.
In step 102, if the sending amount of the short message of the master short message modem in the time period reaches a preset first limit, the master short message modem is stopped and the slave short message modem is started;
in the embodiment of the invention, when the short message sending amount of the master short message cat in a time period reaches a preset first limit, the master short message cat is stopped and the slave short message cat is started. The first quota is smaller than the short message sending limitation set by the communication operator for the SIM to which the communication operator belongs. For example, when the sms transmission limit set by the communication carrier for the SIM to which the communication carrier belongs is 500 pieces per hour, the first limit may be set to 400 pieces.
Optionally, in an embodiment, the step 102 may include: detecting whether the slave short message cat communicates normally; and if the communication of the slave short message cat is normal, the master short message cat is stopped, and the slave short message cat is started.
In this embodiment, the system may first detect whether the slave short message cat communicates normally, that is, whether the slave short message cat can send the short message normally, and if the slave short message cat communicates normally, the master short message cat is deactivated and the slave short message cat is activated. If the slave SMM cat is detected to be abnormal in communication, namely the short message cannot be normally sent, switching is not carried out, the master SMM cat is continuously used, and convergence sending of the alarm short message is carried out, namely, the alarm short messages of the specified number are combined into one message to be sent, or the alarm short messages to be sent within the specified time (for example, within 5 minutes) are combined into one message to be sent.
In step 103, monitoring the sending amount of the short message from the SMM cat in a long period;
in the embodiment of the present invention, the system may monitor the short message sending amount of the slave dumb in a time period, where the time period is usually related to a communication operator to which the SIM card configured by the slave dumb belongs, for example, if the operator sets a short message sending limit for each hour on the SIM to which the operator belongs, the time period may be set to 1 hour.
The one-time period is a one-time period from the time point of starting the short message cat, and is independent from one time period of the main short message cat.
In step 104, the short message to be sent after the sending amount of the short message in the time period of the slave short message modem reaches the preset second limit is sent in a convergent manner.
In the embodiment of the present invention, when it is monitored that the sending amount of the short message in a time period from the short message modem reaches the preset second limit, the subsequent alarm short messages are sent in a convergent manner, that is, the alarm short messages of a specified number are combined into one message to be sent, or the alarm short messages to be sent within a specified time period (for example, within 5 minutes) are combined into one message to be sent.
In the embodiment of the invention, the continuous working time of the alarm cat can be further prolonged by the convergent sending of the alarm short message, and the limitation of the master short message cat and the slave short message cat caused by excessive alarm short messages is avoided.
Optionally, the step 104 may include: after the sending amount of the short messages in the time period of the slave short message modem reaches a preset second limit, the short messages to be sent in each preset time interval are collected into one short message to be sent. Optionally, the step 104 may include: after the sending amount of the short messages in the time period of the slave short message modem reaches a preset second limit, summarizing the short messages to be sent reaching the specified amount into one short message to be sent.
In the embodiment of the invention, when the short messages are sent in a gathering way, the contents of the short messages can be converted into a statistical format to be sent so as to reduce the short message text amount.
In one embodiment, in a case that the amount of the alarm is not large, each piece of alarm information may include: information such as equipment, time, alarm name, alarm level and the like; in the case of a large amount of alarms, the alarm information for a period of time (e.g., 5 s) may be summarized according to the alarm level or other customized manners of the device. According to the alarm level statistics, the information content may include: 10 alarms of level 1, 5 alarms of level 2, 20 alarms of level 3 and the like, and can also comprise time ranges corresponding to the alarms; according to the equipment statistics, the information content can comprise 30 pieces of UPS alarm information, 5 pieces of air conditioner alarm information and the like, and can also comprise a time range corresponding to the alarm.
Optionally, after the step 104, the method may further include: if the starting duration of the slave short message cat reaches the duration corresponding to a time period, or the sending amount of the short messages of the slave short message cat in the time period reaches a preset third limit, the slave short message cat is stopped and the master short message cat is started, wherein the third limit is not less than the first limit.
In the embodiment of the invention, when the starting duration of the slave SMSs reaches the duration corresponding to a time period, the slave SMSs can be stopped and the master SMSs can be restarted.
In the embodiment of the invention, when the short message sending amount of the slave short message cat in a long period reaches a preset third limit, the slave short message cat can be stopped and the master short message cat can be restarted, wherein the third limit can be a numerical value which is larger than the first limit and smaller than the short message sending amount limited by a communication operator to the SIM. For example, if the amount of sms sent by the communication operator to the SIM is 500 pieces per hour, the first limit may be 450 pieces, and the third limit may be 490 pieces.
Optionally, after the deactivating the master pony cat and activating the slave pony cat, the method may further include: and taking the used time when the short message sending quantity of the master short message cat in the time length period of the master short message cat reaches a preset first limit as a first time, taking the stop time of the master short message cat in the time length period of the master short message cat as a second time, stopping the slave short message cat when the sum of the first time and the second time reaches the time length of one time length period, and starting the master short message cat.
In the embodiment of the invention, when the starting duration of the main SMIF plus the stopping duration reaches a duration period, the main SMIF can be restarted and the sending number of short messages in a duration period can be monitored again.
In the embodiment of the invention, the SMM can also have a voice telephone function besides the function of the SMM, under the application scene, no matter the SMM is a master SMM or a slave SMM, if alarm convergence is triggered during the starting period and the limit of the SMM is still exceeded during the alarm convergence period, a voice telephone or a short message can be sent to inform a user, such as 'SMM alarm storm, attention is paid to checking the condition of a machine room' and the like, then for the alarm still appearing within a certain time limit, the alarm convergence can be continuously carried out and the voice telephone can be sent through the corresponding SMM, and after the limit time of the SMM is exceeded, the original scheme is recovered.
From the above, the warning short message sending system is applied to the warning short message sending system comprising the master short message cat and the slave short message cat, and by monitoring the short message sending amount of the master short message cat in a time period, if the short message sending amount of the master short message cat in the time period reaches the preset first limit, the master short message cat is stopped and the slave short message cat is started; and then monitoring the short message sending amount of the slave SMOKE in a time period, and carrying out convergence sending on the short message to be sent after the short message sending amount of the slave SMOKE in the time period reaches a preset second limit. The first limit and the second limit are related to the short message limit number of the communication operator to the SIM card, and are usually less than the short message limit number of a time period, the slave SMM is started to send the alarm short message after the master SMM reaches the first limit, and the slave SMM is converged and sent after the slave SMM reaches the second limit, so that the sending number of the alarm short message is prevented from touching the short message limit of the communication operator to the SIM card, and the timeliness and the continuity of sending the alarm short message are guaranteed.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by functions and internal logic of the process, and should not limit the implementation process of the embodiments of the present invention in any way.
The following are embodiments of the apparatus of the invention, reference being made to the corresponding method embodiments described above for details which are not described in detail therein.
Fig. 3 shows a schematic structural diagram of a device for controlling sending of an alert short message according to an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, which is described in detail as follows:
the invention is applied to an alarm short message sending system, namely a system which is configured for alarm monitoring equipment and is used for sending alarm short messages, wherein the alarm short message sending system is configured with two short message cats: each of the master SMM cat and the slave SMM cat is provided with an SIM card.
As shown in fig. 2, the apparatus 2 for controlling sending of an alert short message includes: a first monitoring unit 21, a switching control unit 22, a second monitoring unit 23 and a transmission control unit 24.
The first monitoring unit 21 is configured to monitor a short message sending amount of the main short message modem in a time period;
the switching control unit 22 is configured to deactivate the master short message modem and activate the slave short message modem if the short message transmission amount of the master short message modem in the duration period reaches a preset first limit;
the second monitoring unit 23 is configured to monitor the amount of short messages sent from the short message modem in a time period;
and the sending control unit 24 is configured to perform convergence sending on the short message to be sent after the sending amount of the short message in the duration period reaches the preset second limit.
Optionally, the sending control unit 24 is specifically configured to, after the sending amount of the short message in the time period of the slave modem reaches a preset second limit, summarize the short messages to be sent in each preset time interval into one short message for sending.
Optionally, the sending control unit 24 is specifically configured to, after the sending amount of the short messages in the time period of the slave short message modem reaches the preset second limit, summarize the short messages to be sent that reach the specified number into one short message for sending.
Optionally, the apparatus 2 for controlling sending of an alert short message may further include:
the communication state detection unit is used for detecting whether the main short message cat communicates normally or not;
correspondingly, the first monitoring unit 21 is specifically configured to monitor the short message sending amount of the main short message cat within a specified time length if the communication state detection unit detects that the communication of the main short message cat is normal.
Optionally, the communication state detection unit is further configured to detect whether the slave short message modem is in normal communication;
correspondingly, the switching control unit 22 is specifically configured to, if the communication state detection unit detects that the slave textcat is in normal communication, deactivate the master textcat and activate the slave textcat.
Optionally, the switching control unit 22 is further configured to, if the enabling duration of the slave short message cat reaches a duration corresponding to a time period, or the sending amount of the short message in a time period of the slave short message cat reaches a preset third limit, disable the slave short message cat and enable the master short message cat, where the third limit is not less than the first limit.
Optionally, the switching control unit 22 is further configured to, after the master textcat is deactivated and the slave textcat is activated, use a duration that a transmission amount of a short message of the master textcat in a time duration period of the master textcat reaches a preset first limit as a first duration, use a deactivation duration of the master textcat in the time duration period as a second duration, deactivate the slave textcat when a sum of the first duration and the second duration reaches a duration of a time duration period, and activate the master textcat.
From the above, the warning short message sending system is applied to the warning short message sending system comprising the master short message cat and the slave short message cat, and by monitoring the short message sending amount of the master short message cat in a time period, if the short message sending amount of the master short message cat in the time period reaches the preset first limit, the master short message cat is stopped and the slave short message cat is started; and then monitoring the short message sending amount of the slave SMOKE in a time period, and carrying out convergence sending on the short message to be sent after the short message sending amount of the slave SMOKE in the time period reaches a preset second limit. The first limit and the second limit are related to the short message limit number of the communication operator to the SIM card, and are usually less than the short message limit number of a time period, the slave short message modem is started to send the alarm short message after the master short message modem reaches the first limit, and the slave short message modem converges to send the alarm short message after the slave short message modem reaches the second limit, so that the sending number of the alarm short message is prevented from touching the short message limit of the communication operator to the SIM card, and the timeliness and the continuity of sending the alarm short message are guaranteed.
Fig. 3 is a schematic diagram of a terminal according to an embodiment of the present invention. As shown in fig. 3, the terminal 3 of this embodiment includes: a processor 30, a memory 31 and a computer program 32 stored in said memory 31 and executable on said processor 30. The processor 30 executes the computer program 32 to implement the steps in the above-mentioned method embodiments for controlling sending of an alert short message, such as the steps 101 to 104 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 32, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the units 21 to 24 shown in fig. 2.
Illustratively, the computer program 32 may be partitioned into one or more modules/units, which are stored in the memory 31 and executed by the processor 30 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 32 in the terminal 3. For example, the computer program 32 may be divided into a first monitoring unit, a switching control unit, a second monitoring unit and a sending control unit, and the specific functions of each unit are as follows:
the first monitoring unit is used for monitoring the short message sending quantity of the main short message cat in a time period;
the switching control unit is used for stopping the master short message cat and starting the slave short message cat if the short message sending quantity of the master short message cat in the duration period reaches a preset first limit;
the second monitoring unit is used for monitoring the short message sending quantity of the slave short message modem in a long period;
and the sending control unit is used for carrying out convergence sending on the short message to be sent after the short message sending quantity of the slave short message modem in the time period reaches a preset second limit.
The terminal 3 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal may include, but is not limited to, a processor 30, a memory 31. It will be appreciated by those skilled in the art that fig. 3 is merely an example of a terminal 3 and does not constitute a limitation of the terminal 3, and may include more or fewer components than shown, or some components may be combined, or different components, e.g. the terminal may also include input output devices, network access devices, buses, etc.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the terminal 3, such as a hard disk or a memory of the terminal 3. The memory 31 may also be an external storage device of the terminal 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the terminal 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal 3. The memory 31 is used for storing the computer program and other programs and data required by the terminal. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. For the specific working processes of the units and modules in the system, reference may be made to the corresponding processes in the foregoing method embodiments, which are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one type of logical function division, and other division manners may exist in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module/unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments described above may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (6)

1. A method for controlling the sending of an alarm short message is characterized in that the method is applied to an alarm short message sending system, the alarm short message sending system comprises a master short message modem and a slave short message modem, and the method comprises the following steps:
monitoring the short message sending amount of the main short message cat in a time period;
if the short message sending amount of the master short message modem in the duration period reaches a preset first limit, the master short message modem is stopped and a slave short message modem is started;
monitoring the short message sending amount of the slave short message modem in a time period;
after the sending amount of the short messages in the time period of the slave short message modem reaches a preset second limit, summarizing the short messages to be sent reaching the specified amount into one short message to be sent;
if the starting duration of the slave short message cat reaches the duration corresponding to a time period, or the sending amount of the short messages of the slave short message cat in the time period reaches a preset third limit, the slave short message cat is stopped and the master short message cat is started, wherein the third limit is not less than the first limit.
2. The method for controlling sending of warning messages as claimed in claim 1, wherein the monitoring of the sending amount of the messages of the main modem in a long period includes:
detecting whether the main short message cat communicates normally;
and if the communication of the main SMM cat is normal, monitoring the message sending amount of the main SMM cat within a specified time.
3. The method of claim 1, wherein the deactivating the master SMIF and activating the slave SMIF comprises:
detecting whether the slave short message cat communicates normally or not;
and if the communication of the slave short message cats is normal, the master short message cat is stopped, and the slave short message cat is started.
4. A device for controlling sending of alarm short messages is applied to an alarm short message sending system, the alarm short message sending system comprises a master short message cat and a slave short message cat, and the device comprises:
the first monitoring unit is used for monitoring the short message sending quantity of the main short message cat in a time period;
the switching control unit is used for stopping the master short message cat and starting the slave short message cat if the short message sending quantity of the master short message cat in the duration period reaches a preset first limit;
the second monitoring unit is used for monitoring the short message sending quantity of the slave short message modem in a long period;
the sending control unit is used for collecting the short messages to be sent reaching the specified quantity into one short message for sending after the sending quantity of the short messages in the time period from the SMM cat reaches a preset second limit;
and the switching control unit is used for stopping the slave short message modem and starting the master short message modem if the starting duration of the slave short message modem reaches the duration corresponding to a time period, or the sending amount of the short messages of the slave short message modem in a time period reaches a preset third limit, wherein the third limit is not less than the first limit.
5. A terminal comprising a memory, a processor and a computer program stored in the memory and operable on the processor, wherein the processor implements the steps of the method for controlling sending of alert messages according to any of the preceding claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for controlling sending of alert messages as claimed in any one of the preceding claims 1 to 3.
CN202110292620.7A 2021-03-18 2021-03-18 Method, device and terminal for controlling sending of alarm short message Active CN112866933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110292620.7A CN112866933B (en) 2021-03-18 2021-03-18 Method, device and terminal for controlling sending of alarm short message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110292620.7A CN112866933B (en) 2021-03-18 2021-03-18 Method, device and terminal for controlling sending of alarm short message

Publications (2)

Publication Number Publication Date
CN112866933A CN112866933A (en) 2021-05-28
CN112866933B true CN112866933B (en) 2022-10-14

Family

ID=75993536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110292620.7A Active CN112866933B (en) 2021-03-18 2021-03-18 Method, device and terminal for controlling sending of alarm short message

Country Status (1)

Country Link
CN (1) CN112866933B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108668242A (en) * 2018-05-16 2018-10-16 深圳市计通智能技术有限公司 Chain circuit detecting method, note transmission method and relevant device
CN108769936A (en) * 2018-06-27 2018-11-06 平安科技(深圳)有限公司 Short message shunt method, device, computer equipment and storage medium
CN109362042A (en) * 2018-09-30 2019-02-19 中国联合网络通信集团有限公司 A kind of transmission method and device of warning information
CN111405600A (en) * 2020-03-20 2020-07-10 北京以萨技术股份有限公司 Intranet server monitoring system, method and medium based on short message cat
CN111754077A (en) * 2020-05-27 2020-10-09 武汉智维云创科技有限公司 Alarm convergence analysis method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2461613A1 (en) * 2010-12-06 2012-06-06 Gemalto SA Methods and system for handling UICC data
CN102883414A (en) * 2012-10-22 2013-01-16 张家港市鸿嘉数字科技有限公司 Short message processing method of dual-SIM dual-standby mobile terminal
CN103249180B (en) * 2013-04-16 2016-05-04 广东欧珀移动通信有限公司 A kind of intelligent switch method of double-card mobile phone and system
CN104394013A (en) * 2014-11-18 2015-03-04 北京锐安科技有限公司 Method and system as well as short message treatment system for transmitting operation and maintenance information by utilizing short messages
CN104618876A (en) * 2014-12-26 2015-05-13 镇江中煤电子有限公司 Method for selectively sending early warning short message by multi-channel intelligent route
CN104954564B (en) * 2015-06-12 2018-07-27 小米科技有限责任公司 SIM card switching method, device and terminal
CN109412867B (en) * 2018-12-06 2022-02-08 国家电网有限公司信息通信分公司 Alarm association combination method, device, system, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108668242A (en) * 2018-05-16 2018-10-16 深圳市计通智能技术有限公司 Chain circuit detecting method, note transmission method and relevant device
CN108769936A (en) * 2018-06-27 2018-11-06 平安科技(深圳)有限公司 Short message shunt method, device, computer equipment and storage medium
CN109362042A (en) * 2018-09-30 2019-02-19 中国联合网络通信集团有限公司 A kind of transmission method and device of warning information
CN111405600A (en) * 2020-03-20 2020-07-10 北京以萨技术股份有限公司 Intranet server monitoring system, method and medium based on short message cat
CN111754077A (en) * 2020-05-27 2020-10-09 武汉智维云创科技有限公司 Alarm convergence analysis method and system

Also Published As

Publication number Publication date
CN112866933A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
US11349767B2 (en) Device and method for disabling a WLAN hotspot based on data traffic value
CN106954225B (en) wireless roaming method and device and wireless equipment
CN112703781B (en) Wireless signal sending method, wireless signal sending device and terminal equipment
CN109617824B (en) Data acquisition method and device and server
CN107968881A (en) End-point device broadcast processing method and processing device, terminal device and storage medium
CN105657712B (en) Access control method and device for WiFi hotspot
CN104021062A (en) Information processing method and electronic device
CN108509541B (en) Message reading method, message reading device and mobile terminal
CN107864044B (en) Information processing method and device, terminal and readable storage medium
CN110933172A (en) Remote monitoring system and method based on cloud computing
CN107819768B (en) Method for server to actively disconnect illegal long connection, terminal equipment and storage medium
WO2022221062A4 (en) Interfaces and devices for dynamically-available media playback
CN111752811A (en) Abnormal alarm information processing method, electronic device and storage medium
CN112866933B (en) Method, device and terminal for controlling sending of alarm short message
CN111949421B (en) SDK calling method, device, electronic equipment and computer readable storage medium
CN111147313A (en) Message abnormity monitoring method and device, storage medium and electronic equipment
CN104144414A (en) Information intercepting method and device
CN111262731B (en) Alarm method, alarm device, server equipment and storage medium
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium
CN108880930B (en) Network loop detection method and equipment
CN108391281B (en) Bridging method of wireless network, terminal equipment and storage medium
CN108684032B (en) Interception setting method and related equipment
CN112187937B (en) Unpairing method and device, terminal equipment and storage medium
CN107708176B (en) Network connection method, network connection device and mobile terminal
CN111385167B (en) Network connection recovery method, device, computer device 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