CN106028292A - Channel distribution method and system for sending short messages - Google Patents
Channel distribution method and system for sending short messages Download PDFInfo
- Publication number
- CN106028292A CN106028292A CN201610294333.9A CN201610294333A CN106028292A CN 106028292 A CN106028292 A CN 106028292A CN 201610294333 A CN201610294333 A CN 201610294333A CN 106028292 A CN106028292 A CN 106028292A
- Authority
- CN
- China
- Prior art keywords
- short message
- note
- sending
- channel
- allocation list
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/18—Service support devices; Network management devices
- H04W88/184—Messaging devices, e.g. message centre
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to a channel distribution method and a channel distribution system for sending short messages. The method comprises the steps of S1, extracting a target user, receiving multiple pieces of short message information sent by the target user, and inserting the all short message information into an middle table; S2, configuring related information of a configuration table; S3, reading the configuration table, and forking into a plurality of progresses according to the related information of the configuration table; and S4, inserting each piece of short message information in the middle table into a short message channel table via the corresponding progress, and ending. According to the method, the maintenance efficiency is very low, namely once the amount of configuration data is formed, maintenance is hardly needed, unless the new short message channel table is added. The utilization ratio of the short message sending capability of the short message channel is improved without affecting the pushing of the normal service short messages; after data to be sent is put into the middle table, manual intervention is not needed, and manual operation is reduced; and the sending time of the bulk short messages can be set.
Description
Technical field
The present invention relates to a kind of channel allocation method and system sending note, belong to computer application software
Field.
Background technology
Existing mobile NGBOSS system, meets emergency, needs to push emergent (prompting/early warning) note.
Owing to requirement of real-time is higher, system completes in must assure that the short time (to enliven for the whole province user and be used for
About 20,000,000) note is pushed.
Generally, mobile NGBOSS system, (during 7 use, 4 standby for 11 short message channel of having built together
With) it is used for sending service handling note at ordinary times, when pushing prompting/early warning note, note need to be made full use of
Passage pushes SMS capability.
Summary of the invention
The technical problem to be solved is for pushing a large amount of note in ensure that the short time, and fills
Divide and utilize short message channel to push SMS capability so that the short message channel with transmitting capacity is operated at full capacity;
A kind of channel allocation method and system sending note are provided.
The technical scheme is that a kind of channel allocation side sending note
Method, specifically includes following steps:
Step 1: extract targeted customer, receives multiple short messages that targeted customer sends, and will be all
Short message is inserted into middle table;
Step 2: the relevant information of configuration allocation list;
Step 3: read allocation list, go out multiple process according to relevant information fork in allocation list;
Step 4: each short message in middle table is inserted short message channel table by a process respectively,
Terminate.
Wherein, fork () function is linux system function, calls establishment one with original by system
The substantially identical process of process, namely two processes can do identical thing, if but
Initial parameter or incoming variable are different, and two processes can also do different things.
The invention has the beneficial effects as follows: the frequency of maintenance is the lowest, namely configuration data bulk is once formed
Substantially need not safeguard again, unless there are newly-increased short message channel table.Improve short message channel and send SMS capability
Utilization rate;Do not affect the propelling movement of regular traffic note;After data to be sent are put into middle table, both it was not required to
Want manual intervention, reduce manual operation;Messages in batch can be set and send the time.
On the basis of technique scheme, the present invention can also do following improvement.
Further, the relevant information of described allocation list includes: short message channel table name, every time insertion note bar
Number information, waiting time information, short message sending time started, short message sending end time and overstocked threshold values
Information.
Further, in described step 3 according to allocation list inserts every time note bar number information fork go out right
Answer multiple processes of note bar number.
Further, during each described process short message reading information, according to " mod (commod_id, configuration
Table row number)=process sequence " extract.
Wherein, (n, p) computing, both complementation computing are to seek an Integer n in integer arithmetic to mod
Computing divided by the remainder of another one integer p." mod (command_id, configuration table row herein
Number)=process sequence " statement, be represent supposition storage short message table in, each data is all
A unique command_id is had to identify it can be understood as the unique index of numeric type.(it addition,
It is not necessary to use this title of comman_id, it is possible to use the title of this implication can be represented arbitrarily,
Such as: sequence, serial etc.).With " command_id ", " allocation list line number " is carried out
Remainder, remainder, equal to a corresponding data of " process sequence ", is distributed to " process sequence " and is represented
Process process.Such as: command_id is a data of 10, " allocation list line number is 3 ",
So by the computing of this expression formula, this data processes distributing to the process that process sequence number is 1.
Further, step a is also included between step 3 and step 4;
Step a: judge that short message channel table currently overstocks whether value is more than overstocked threshold values, if it does, press
Performing wait according to the waiting time in allocation list, circulation performs step a;Otherwise, step 4 is performed.
Use above-mentioned further scheme to provide the benefit that, if the current value that overstocks is more than overstocking threshold values, press
Wait according to the waiting time in allocation list, it is to avoid because too much short message is deposited in channel table,
Cause passage traffic overload, and ensure to reuse the propelling movement SMS capability of short message channel.
Further, step b is also included between described step a and step 4;
Step b: judge current time whether short message sending time started and short message sending end time it
Between, if it is, perform step 4;Otherwise, perform wait according to the waiting time in allocation list, circulation
Perform step b.
The technical scheme is that a kind of channel allocation system sending note
System, including note receiver module, configuration module, scheduler module and sending module;
Described note receiver module is used for extracting targeted customer, receives multiple notes letter that targeted customer sends
Breath, and all short messages are inserted into middle table;
Described configuration module is for configuring the relevant information of allocation list;
Described scheduler module is used for reading allocation list, goes out according to the relevant information fork bifurcated in allocation list
Multiple processes;
Described sending module is for inserting each short message in middle table by a process respectively
Short message channel table, terminates.
The invention has the beneficial effects as follows: the frequency of maintenance is the lowest, namely configuration data bulk is once formed
Substantially need not safeguard again, unless there are newly-increased short message channel table.Improve short message channel and send SMS capability
Utilization rate;Do not affect the propelling movement of regular traffic note;After data to be sent are put into middle table, both it was not required to
Want manual intervention, reduce manual operation;Messages in batch can be set and send the time.
On the basis of technique scheme, the present invention can also do following improvement.
Further, the relevant information of described allocation list includes: short message channel table name, every time insertion note bar
Number information, waiting time information, short message sending time started, short message sending end time and overstocked threshold values
Information.
Further, described scheduler module goes out according to note bar number information fork of inserting each in allocation list
Multiple processes of corresponding note bar number.
Further, during each described process short message reading information, according to according to " mod (commod_id,
Allocation list line number)=process sequence " carry out extraction and extract.
Accompanying drawing explanation
Fig. 1 is a kind of channel allocation method flow diagram sending note described in the embodiment of the present invention 1;
Fig. 2 is a kind of channel allocation system architecture diagram sending note described in the embodiment of the present invention 1.
In accompanying drawing, the list of parts representated by each label is as follows:
1, note receiver module, 2, configuration module, 3, scheduler module, 4, sending module.
Detailed description of the invention
Being described principle and the feature of the present invention below in conjunction with accompanying drawing, example is served only for explaining this
Invention, is not intended to limit the scope of the present invention.
As it is shown in figure 1, for a kind of channel allocation method sending note described in the embodiment of the present invention 1,
Specifically include following steps:
Step 1: extract targeted customer, receives multiple short messages that targeted customer sends, and will be all
Short message is inserted into middle table;
Step 2: the relevant information of configuration allocation list;
Step 3: read allocation list, go out multiple process according to relevant information fork in allocation list;
Step 4: each short message in middle table is inserted short message channel table by a process respectively,
Terminate.
A kind of channel allocation method sending note described in embodiment 2, on the basis of embodiment 1,
The relevant information of described allocation list includes: short message channel table name, every time insertion note bar number information, wait
Temporal information, short message sending time started, short message sending end time and overstocked threshold values information.
A kind of channel allocation method sending note described in embodiment 3, on the basis of embodiment 2,
Described step 3 goes out corresponding note bar number according to note bar number information fork of inserting each in allocation list
Multiple processes.
A kind of channel allocation method sending note described in embodiment 4, on the basis of embodiment 3,
During each described process short message reading information, according to according to " mod (commod_id, allocation list line number)
=process sequence " extract.
A kind of channel allocation method sending note described in embodiment 5, in any one of embodiment 2-4
On the basis of, also include step a between step 3 and step 4;
Step a: judge that short message channel table currently overstocks whether value is more than overstocked threshold values, if it does, press
Performing wait according to the waiting time in allocation list, circulation performs step a;Otherwise, step 4 is performed.
A kind of channel allocation method sending note described in embodiment 6, in any one of embodiment 2-5
On the basis of, also include step b between described step a and step 4;
Step b: judge current time whether short message sending time started and short message sending end time it
Between, if it is, perform step 4;Otherwise, perform wait according to the waiting time in allocation list, circulation
Perform step b.
As in figure 2 it is shown, for a kind of channel allocation system sending note described in the embodiment of the present invention 1,
Including note receiver module 1, configuration module 2, scheduler module 3 and sending module 4;
Described note receiver module 1 is used for extracting targeted customer, receives multiple notes that targeted customer sends
Information, and all short messages are inserted into middle table;
Described configuration module 2 is for configuring the relevant information of allocation list;
Described scheduler module 3 is used for reading allocation list, according to the relevant information fork bifurcated in allocation list
Go out multiple process;
Described sending module 4 is for inserting each short message in middle table by a process respectively
Short message channel table, terminates.
A kind of channel allocation system sending note described in embodiment 2, on the basis of embodiment 1,
The relevant information of described allocation list includes: short message channel table name, every time insertion note bar number information, wait
Temporal information, short message sending time started, short message sending end time and overstocked threshold values information.
A kind of channel allocation system sending note described in embodiment 3, on the basis of embodiment 2,
Described scheduler module goes out corresponding note bar number according to note bar number information fork of inserting each in allocation list
Multiple processes.
A kind of channel allocation system sending note described in embodiment 4, on the basis of embodiment 3,
During each described process short message reading information, according to according to " mod (commod_id, allocation list line number)
=process sequence " extract.
Method described in the concrete example of the present invention comprises the following steps:
1. extract targeted customer, be together inserted into middle table together with note language.
2. configuration allocation list, configuration content includes: short message channel table name, every time insertion note bar number, etc.
Treat time (s), short message sending time started (h), short message sending end time (h), overstock threshold values.
3. start background process, process data.
Process data:
Read allocation list data, go out n process according to the bar number fork that allocation list configures at present, each
Process is extracted according to mod (commod_id, allocation list line number)=process sequence when extracting data,
Prevent from repeating to send.
Need to judge that current short message channel table overstocks value before inserting short message channel table, if it exceeds overstock every time
Threshold values then enters wait, and waiting time obtains from allocation list.
Every time whether cycle criterion current time within starting over the time, if not in the range of; enter
Entering to wait, waiting time obtains from allocation list.
Business handling class note priority is high, needs emergent (prompting/early warning) note rank is arranged ratio
Business handling class note is low.
1, batch data is imported:
Insert into DBCUSTADM.WBATCHSMSSENDTMP
(IN_ACCEPT,PHONE_NO,MSG)
Values
(111, ' 13888888888', ' this be the note of a test, test test test
');(explain: the short message content of propelling movement is that " this is the note of a test, test test test
")
Annotation: wherein 111 is flowing water, during practical operation, will fill in unduplicated flowing water.
2, allocation list is write:
Insert into DBCUSTADM.SBATCHSMSSENDCFG
(SMS_ID,TABLE_NAME,WAIT_TIME,INSERT_NUM,BEGIN_HOUR,END_HOUR,
OVER_STOCK)
Values
(1,'wcommonshortmsg00',60,2,0,14,300);
3, main frame is logged on.Startup program BatchSmsSend;
4, the present invention can be completed by above-mentioned flow process and say purpose to be realized.
Note: after data are disposed, Automatic Program stops.After logging data next time, restart.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all in the present invention
Spirit and principle within, any modification, equivalent substitution and improvement etc. made, should be included in this
Within bright protection domain.
Claims (10)
1. the channel allocation method sending note, it is characterised in that specifically include following steps:
Step 1: extract targeted customer, receives multiple short messages that targeted customer sends, and will be all
Short message is inserted into middle table;
Step 2: the relevant information of configuration allocation list;
Step 3: read allocation list, go out multiple process according to relevant information fork in allocation list;
Step 4: each short message in middle table is inserted short message channel table by a process respectively,
Terminate.
A kind of channel allocation method sending note the most according to claim 1, it is characterised in that
The relevant information of described allocation list includes: short message channel table name, every time insertion note bar number information, wait
Temporal information, short message sending time started, short message sending end time and overstocked threshold values information.
A kind of channel allocation method sending note the most according to claim 2, it is characterised in that
Described step 3 goes out corresponding note bar number according to note bar number information fork of inserting each in allocation list
Multiple processes.
A kind of channel allocation method sending note the most according to claim 3, it is characterised in that
During each described process short message reading information, according to " mod (commod_id, allocation list line number)=enter
Program arranges " extract.
A kind of channel allocation method sending note the most according to claim 2, it is characterised in that
Step a is also included between step 3 and step 4;
Step a: judge that short message channel table currently overstocks whether value is more than overstocked threshold values, if it does, press
Performing wait according to the waiting time in allocation list, circulation performs step a;Otherwise, step 4 is performed.
A kind of channel allocation method sending note the most according to claim 5, it is characterised in that
Step b is also included between described step a and step 4;
Step b: judge current time whether short message sending time started and short message sending end time it
Between, if it is, perform step 4;Otherwise, perform wait according to the waiting time in allocation list, circulation
Perform step b.
7. the channel allocation system sending note, it is characterised in that include note receiver module, join
Put module, scheduler module and sending module;
Described note receiver module is used for extracting targeted customer, receives multiple notes letter that targeted customer sends
Breath, and all short messages are inserted into middle table;
Described configuration module is for configuring the relevant information of allocation list;
Described scheduler module is used for reading allocation list, goes out multiple according to relevant information fork in allocation list
Process;
Described sending module is for inserting each short message in middle table by a process respectively
Short message channel table, terminates.
A kind of channel allocation system sending note the most according to claim 7, it is characterised in that
The relevant information of described allocation list includes: short message channel table name, every time insertion note bar number information, wait
Temporal information, short message sending time started, short message sending end time and overstocked threshold values information.
A kind of channel allocation system sending note the most according to claim 8, it is characterised in that
Described scheduler module goes out corresponding note bar number according to note bar number information fork of inserting each in allocation list
Multiple processes.
A kind of channel allocation system sending note the most according to claim 9, its feature exists
In, during each described process short message reading information, according to according to " (commod_id configures table row to mod
Number)=process sequence " extract.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610294333.9A CN106028292B (en) | 2016-05-05 | 2016-05-05 | A kind of channel distribution method and system sending short message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610294333.9A CN106028292B (en) | 2016-05-05 | 2016-05-05 | A kind of channel distribution method and system sending short message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106028292A true CN106028292A (en) | 2016-10-12 |
CN106028292B CN106028292B (en) | 2019-10-22 |
Family
ID=57081192
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610294333.9A Active CN106028292B (en) | 2016-05-05 | 2016-05-05 | A kind of channel distribution method and system sending short message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106028292B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108513271A (en) * | 2018-06-22 | 2018-09-07 | 武汉斑马快跑科技有限公司 | Short message distribution method and equipment based on multiple short message channels |
CN111556451A (en) * | 2020-04-23 | 2020-08-18 | 北京思特奇信息技术股份有限公司 | Short message group sending management method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102291686A (en) * | 2011-09-09 | 2011-12-21 | 华为软件技术有限公司 | Emergency short message group sending method and system, centralized control center and short message group sender |
US20120236779A1 (en) * | 2009-12-01 | 2012-09-20 | Samsung Electronics Co. Ltd. | Apparatus and method for reliably and dynamically transmitting group information via a wireless multicast or broadcast channel |
CN103391206A (en) * | 2012-05-07 | 2013-11-13 | 中国移动通信集团公司 | Method and device for task scheduling |
CN103534978A (en) * | 2013-04-07 | 2014-01-22 | 华为技术有限公司 | Mass texting method and device |
-
2016
- 2016-05-05 CN CN201610294333.9A patent/CN106028292B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120236779A1 (en) * | 2009-12-01 | 2012-09-20 | Samsung Electronics Co. Ltd. | Apparatus and method for reliably and dynamically transmitting group information via a wireless multicast or broadcast channel |
CN102291686A (en) * | 2011-09-09 | 2011-12-21 | 华为软件技术有限公司 | Emergency short message group sending method and system, centralized control center and short message group sender |
CN103391206A (en) * | 2012-05-07 | 2013-11-13 | 中国移动通信集团公司 | Method and device for task scheduling |
CN103534978A (en) * | 2013-04-07 | 2014-01-22 | 华为技术有限公司 | Mass texting method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108513271A (en) * | 2018-06-22 | 2018-09-07 | 武汉斑马快跑科技有限公司 | Short message distribution method and equipment based on multiple short message channels |
CN108513271B (en) * | 2018-06-22 | 2021-06-25 | 武汉斑马快跑科技有限公司 | Short message distribution method and device based on multiple short message channels |
CN111556451A (en) * | 2020-04-23 | 2020-08-18 | 北京思特奇信息技术股份有限公司 | Short message group sending management method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106028292B (en) | 2019-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104104971B (en) | A kind of video file processing method and system | |
CN102136967B (en) | Method, device and system for managing service state | |
CN102790727B (en) | A kind of method and system of dynamic propelling movement individual subscriber label | |
CN109582655B (en) | Method and device for positioning system log and computer readable storage medium | |
CN107870982A (en) | Data processing method, system and computer-readable recording medium | |
CN101137133A (en) | Method and apparatus for updating group information of cluster system | |
CN106028292A (en) | Channel distribution method and system for sending short messages | |
CN105813037B (en) | Short message concurrent service processing method and device | |
CN102073521A (en) | Software updating system of plug-in card type machine and software updating method | |
CN107094085B (en) | Signaling transmission method and device | |
CN102333280A (en) | Business secret key renewing method and system and business processing server | |
CN104767589B (en) | A kind of method for sending information and device | |
CN103299298B (en) | The method and system of process business | |
CN111367916B (en) | Data storage method and device | |
CN106354493B (en) | A kind of implementation method for the development mode solving traditional software exploitation pain spot | |
CA2628815A1 (en) | System and method for correlating messages within a wireless transaction | |
CN109067864B (en) | Notification message pushing method and device and electronic equipment | |
CN107231284B (en) | Message sending method and terminal equipment | |
CN102781046A (en) | Business service quality assurance method and operation service system | |
CN103747484A (en) | RIM (radio access network information management) flow system information processing method and service node equipment | |
CN102129433B (en) | Information sequencing method and apparatus | |
CN114416407B (en) | Real-time data out-of-order repair system and method and computer equipment | |
CN103260134B (en) | Group call implementation method in trunked communication system and system | |
CN105808463A (en) | Serial port output method for debugging information in embedded system | |
CN108243397B (en) | Short message sending method and short message gateway equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |