CN106028292B - A kind of channel distribution method and system sending short message - Google Patents

A kind of channel distribution method and system sending short message Download PDF

Info

Publication number
CN106028292B
CN106028292B CN201610294333.9A CN201610294333A CN106028292B CN 106028292 B CN106028292 B CN 106028292B CN 201610294333 A CN201610294333 A CN 201610294333A CN 106028292 B CN106028292 B CN 106028292B
Authority
CN
China
Prior art keywords
short message
allocation list
sending
time
information
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
CN201610294333.9A
Other languages
Chinese (zh)
Other versions
CN106028292A (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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology 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 Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201610294333.9A priority Critical patent/CN106028292B/en
Publication of CN106028292A publication Critical patent/CN106028292A/en
Application granted granted Critical
Publication of CN106028292B publication Critical patent/CN106028292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/18Service support devices; Network management devices
    • H04W88/184Messaging 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 present invention relates to a kind of channel distribution methods and system for sending short message, and wherein method includes: step 1: extracting target user, receive multiple short messages that target user sends, and all short messages are inserted into middle table;Step 2: configuring the relevant information of allocation list;Step 3: reading allocation list, multiple processes are gone out according to the relevant information fork in allocation list;Step 4: each short message in middle table being passed through into a process insertion short message channel table respectively, is terminated.Frequency of maintenance of the invention is very low, that is, configuration data quantity does not need to safeguard again once being formed substantially, unless there are newly-increased short message channel table.It improves short message channel and sends SMS capability utilization rate;The push of regular traffic short message is not influenced;It after data to be sent are put into middle table, neither requires manual intervention, reduces manual operation;Messages in batch sending time can be set.

Description

A kind of channel distribution method and system sending short message
Technical field
The present invention relates to a kind of channel distribution methods and system for sending short message, belong to computer application software field.
Background technique
Existing mobile NGBOSS system meets emergency, needs to push emergency (prompting/early warning) short message.Due to real-time It is required that relatively high, system must assure that completing in the short time is the whole province user (active for about 20,000,000) push note.
In general, mobile NGBOSS system, 11 short message channels of building together (7 in use, 4 spare) are usually for sending Service handling short message need to make full use of short message channel push note ability when pushing prompting/early warning short message.
Summary of the invention
The technical problem to be solved by the present invention is to for that can guarantee to push a large amount of short messages in the short time, and make full use of short Channel push note ability is believed, so that the short message channel with transmitting capacity is operated at full capacity;A kind of leading to for transmission short message is provided Channel allocation method and system.
The technical scheme to solve the above technical problems is that a kind of channel distribution method for sending short message, specifically The following steps are included:
Step 1: extracting target user, receive multiple short messages that target user sends, and all short messages are inserted Enter to middle table;
Step 2: configuring the relevant information of allocation list;
Step 3: reading allocation list, multiple processes are gone out according to the relevant information fork in allocation list;
Step 4: each short message in middle table being passed through into a process insertion short message channel table respectively, is terminated.
Wherein, fork () function is linux system function, calls creation one and original process almost by system Identical process, that is, two processes can do identical thing, but if initial parameter or incoming variable are not Together, two processes can also do different things.
The beneficial effects of the present invention are: the frequency of maintenance is very low, that is, configuration data quantity is not required to substantially once being formed It to safeguard again, unless there are newly-increased short message channel table.It improves short message channel and sends SMS capability utilization rate;Do not influence regular traffic The push of short message;It after data to be sent are put into middle table, neither requires manual intervention, reduces manual operation;It can be set and criticize Measure short message sending time.
Based on the above technical solution, the present invention can also be improved as follows.
Further, the relevant information of the allocation list include: short message channel table name, every time insertion short message item number information, etc. The time started is sent to temporal information, short message, short message sends end time and overstocked threshold values information.
Further, go out corresponding short message item number according to being inserted into short message item number information fork in allocation list every time in the step 3 Multiple processes.
Further, when each process short message reading information, according to " mod (command_id, allocation list line number)=into Program column " extract.
Wherein, mod (n, p) operation, both complementation operation are to ask an Integer n whole divided by another in integer arithmetic The operation of the remainder of number p.The statement of " mod (command_id, allocation list line number)=process sequence " herein, is to indicate to assume In storage short message table, each data has a unique command_id to identify, it can be understood as numeric class The unique index of type.(in addition, it is not necessary to use this title of command_id, can be used, which can arbitrarily represent this, contains The title of justice, such as: sequence, serial etc.).Remainder, remainder are carried out to " allocation list line number " with " command_id " Equal to a corresponding data of " process sequence ", the process for distributing to " process sequence " representative is handled.Such as: The data that command_id is 10, " allocation list line number is 3 ", then passing through the operation of this expression formula, this data will divide The process that dispensing process sequence number is 1 is handled.
It further, further include step a between step 3 and step 4;
Step a: judge that short message channel table currently overstocks whether value is greater than overstocked threshold values, if it does, according in allocation list Waiting time execute waiting, circulation executes step a;Otherwise, step 4 is executed.
Beneficial effect using above-mentioned further scheme is, if the current value that overstocks is greater than overstocked threshold values, according to allocation list In waiting time wait, avoid because excessive short message be deposited in channel table, cause channel traffic overload, and protect The push note ability of card recycling short message channel.
It further, further include step b between the step a and step 4;
Step b: judging whether current time sends the time started in short message and short message was sent between the end time, if It is to execute step 4;Otherwise, waiting is executed according to the waiting time in allocation list, circulation executes step b.
The technical scheme to solve the above technical problems is that a kind of channel distribution system for sending short message, including Short message receiving module, configuration module, scheduler module and sending module;
The short message receiving module receives multiple short messages that target user sends, and will for extracting target user All short messages are inserted into middle table;
The configuration module is used to configure the relevant information of allocation list;
The scheduler module goes out multiple processes according to the relevant information fork bifurcated in allocation list for reading allocation list;
The sending module is used to respectively pass through each short message in middle table one process insertion short message channel Table terminates.
The beneficial effects of the present invention are: the frequency of maintenance is very low, that is, configuration data quantity is not required to substantially once being formed It to safeguard again, unless there are newly-increased short message channel table.It improves short message channel and sends SMS capability utilization rate;Do not influence regular traffic The push of short message;It after data to be sent are put into middle table, neither requires manual intervention, reduces manual operation;It can be set and criticize Measure short message sending time.
Based on the above technical solution, the present invention can also be improved as follows.
Further, the relevant information of the allocation list include: short message channel table name, every time insertion short message item number information, etc. The time started is sent to temporal information, short message, short message sends end time and overstocked threshold values information.
Further, go out corresponding short message item according to being inserted into short message item number information fork in allocation list every time in the scheduler module Several multiple processes.
Further, when each process short message reading information, according to according to " mod (command_id, allocation list line number) =process sequence " extracts.
Detailed description of the invention
Fig. 1 is a kind of channel distribution method flow chart of transmission short message described in the embodiment of the present invention 1;
Fig. 2 is a kind of channel distribution system configuration block diagram of transmission short message described in the embodiment of the present invention 1.
In attached drawing, parts list represented by the reference numerals are as follows:
1, short message receiving module, 2, configuration module, 3, scheduler module, 4, sending module.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the invention.
As shown in Figure 1, for a kind of channel distribution method of transmission short message described in the embodiment of the present invention 1, specifically include with Lower step:
Step 1: extracting target user, receive multiple short messages that target user sends, and all short messages are inserted Enter to middle table;
Step 2: configuring the relevant information of allocation list;
Step 3: reading allocation list, multiple processes are gone out according to the relevant information fork in allocation list;
Step 4: each short message in middle table being passed through into a process insertion short message channel table respectively, is terminated.
A kind of channel distribution method sending short message as described in example 2, on the basis of embodiment 1, the allocation list Relevant information include: short message channel table name, every time insertion short message item number information, waiting time information, short message send start when Between, short message send end time and overstocked threshold values information.
A kind of channel distribution method sending short message described in embodiment 3, on the basis of embodiment 2, in the step 3 Go out to correspond to multiple processes of short message item number according to short message item number information fork is inserted into allocation list every time.
A kind of channel distribution method sending short message as described in example 4, on the basis of embodiment 3, it is each described into When journey short message reading information, extracted according to according to " mod (command_id, allocation list line number)=process sequence ".
A kind of channel distribution method of transmission short message described in embodiment 5, on the basis of embodiment any one of 2-4, step It further include step a between rapid 3 and step 4;
Step a: judge that short message channel table currently overstocks whether value is greater than overstocked threshold values, if it does, according in allocation list Waiting time execute waiting, circulation executes step a;Otherwise, step 4 is executed.
A kind of channel distribution method of transmission short message described in embodiment 6, on the basis of embodiment any one of 2-5, institute Stating further includes step b between step a and step 4;
Step b: judging whether current time sends the time started in short message and short message was sent between the end time, if It is to execute step 4;Otherwise, waiting is executed according to the waiting time in allocation list, circulation executes step b.
As shown in Fig. 2, for a kind of channel distribution system of transmission short message described in the embodiment of the present invention 1, including short message connects Receive module 1, configuration module 2, scheduler module 3 and sending module 4;
The short message receiving module 1 receives multiple short messages that target user sends, and will for extracting target user All short messages are inserted into middle table;
The configuration module 2 is used to configure the relevant information of allocation list;
The scheduler module 3 goes out multiple processes according to the relevant information fork bifurcated in allocation list for reading allocation list;
The sending module 4 is used to respectively pass through each short message in middle table one process insertion short message channel Table terminates.
A kind of channel distribution system sending short message as described in example 2, on the basis of embodiment 1, the allocation list Relevant information include: short message channel table name, every time insertion short message item number information, waiting time information, short message send start when Between, short message send end time and overstocked threshold values information.
A kind of channel distribution system sending short message described in embodiment 3, on the basis of embodiment 2, the process mould According to the multiple processes for being inserted into short message item number information fork in allocation list every time and going out corresponding short message item number in block.
A kind of channel distribution system sending short message as described in example 4, on the basis of embodiment 3, it is each described into When journey short message reading information, extracted according to according to " mod (command_id, allocation list line number)=process sequence ".
Method described in specific example of the present invention the following steps are included:
1. extracting target user, it is inserted into middle table together together with short message language.
2. configure allocation list, configuration content include: short message channel table name, every time insertion short message item number, the waiting time (s), Short message sends time started (h), short message sends end time (h), overstocks threshold values.
3. starting background process, data are handled.
Handle data:
Allocation list data are read, the item number fork configured at present according to allocation list goes out n process, and each process extracts data When extracted according to mod (command_id, allocation list line number)=process sequence, prevent repeat send.
Need to judge that current short message channel table overstocks value before insertion short message channel table every time, if it exceeds overstocked threshold values then into Enter to wait, waiting time obtains from allocation list.
It loops to determine whether current time is starting within the time every time, enters if not in range and wait, Waiting time obtains from allocation list.
Business handling class short message priority is high, and (prompting/early warning) the short message rank that needs to meet an urgent need is arranged than business handling class Short message is low.
1, batch data is imported:
Insert into DBCUSTADM.WBATCHSMSSENDTMP
(IN_ACCEPT,PHONE_NO,MSG)
Values
(111, ' 13888888888', ' this is the short message of a test, test test test eh ');(it explains: The short message content of push is " this is the short message of a test, test test test ")
Annotation: wherein 111 be flowing water, when practical operation, to 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, host is logged on.Startup program BatchSmsSend;
4, the present invention can be completed by above-mentioned process and says the purpose to be realized.
Note: after data processing finishes, program is automatically stopped.After next logging data, restart.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of channel distribution method for sending short message, which is characterized in that specifically includes the following steps:
Step 1: extracting target user, receive multiple short messages that target user sends, and all short messages are inserted into Middle table;
Step 2: configuring the relevant information of allocation list;
Step 3: reading allocation list, multiple processes are gone out according to the relevant information fork in allocation list;
Step 4: each short message in middle table being passed through into a process insertion short message channel table respectively, is terminated.
2. a kind of channel distribution method for sending short message according to claim 1, which is characterized in that the phase of the allocation list Close that information includes: short message channel table name, insertion short message item number information, waiting time information, short message send time started, short every time Letter sends end time and overstocked threshold values information.
3. a kind of channel distribution method for sending short message according to claim 2, which is characterized in that root in the step 3 Go out to correspond to multiple processes of short message item number according to short message item number information fork is inserted into allocation list every time.
4. a kind of channel distribution method for sending short message according to claim 3, which is characterized in that each process is read When taking short message, extracted according to " mod (command_id, allocation list line number)=process sequence ".
5. a kind of channel distribution method for sending short message according to claim 2, which is characterized in that step 3 and step 4 it Between further include step a;
Step a: judging that short message channel table currently overstocks whether value is greater than overstocked threshold values, if it does, according in allocation list etc. Waiting is executed to the time, circulation executes step a;Otherwise, step 4 is executed.
6. a kind of channel distribution method for sending short message according to claim 5, which is characterized in that the step a and step It further include step b between rapid 4;
Step b: judge whether current time sends the time started in short message and short message was sent between the end time, if so, holding Row step 4;Otherwise, waiting is executed according to the waiting time in allocation list, circulation executes step b.
7. a kind of channel distribution system for sending short message, which is characterized in that including short message receiving module, configuration module, process mould Block and sending module;
The short message receiving module receives multiple short messages that target user sends, and will own for extracting target user Short message is inserted into middle table;
The configuration module is used to configure the relevant information of allocation list;
The scheduler module goes out multiple processes according to the relevant information fork in allocation list for reading allocation list;
The sending module is used to respectively pass through each short message in middle table one process insertion short message channel table, knot Beam.
8. a kind of channel distribution system for sending short message according to claim 7, which is characterized in that the phase of the allocation list Close that information includes: short message channel table name, insertion short message item number information, waiting time information, short message send time started, short every time Letter sends end time and overstocked threshold values information.
9. a kind of channel distribution system for sending short message according to claim 8, which is characterized in that in the scheduler module Go out to correspond to multiple processes of short message item number according to short message item number information fork is inserted into allocation list every time.
10. a kind of channel distribution system for sending short message according to claim 9, which is characterized in that each process When short message reading information, extracted according to according to " mod (command_id, allocation list line number)=process sequence ".
CN201610294333.9A 2016-05-05 2016-05-05 A kind of channel distribution method and system sending short message Active CN106028292B (en)

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 CN106028292A (en) 2016-10-12
CN106028292B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513271B (en) * 2018-06-22 2021-06-25 武汉斑马快跑科技有限公司 Short message distribution method and device based on multiple short message channels
CN111556451B (en) * 2020-04-23 2022-07-26 北京思特奇信息技术股份有限公司 Short message group sending management method and system

Citations (3)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101641518B1 (en) * 2009-12-01 2016-07-22 삼성전자주식회사 Apparatus and method of the reliable and dynamic group delivery based on multicast or broadcast mobile wireless link

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN106028292A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN105786549B (en) Smart machine and its upgrade method
CN105684382A (en) Packet control method, switch and controller
CN103309738A (en) User job scheduling method and device
CN111131368A (en) Message pushing method and device
CN107589990B (en) Data communication method and system based on thread pool
CN103049327A (en) Method and device for mounting many storage devices on android system
CN106028292B (en) A kind of channel distribution method and system sending short message
CN104734983A (en) Scheduling system, method and device for service data request
RU2020100462A (en) COMMUNICATION METHOD, NETWORK DEVICE AND TERMINAL
CN105760134B (en) A kind of data processing method and electronic equipment
CN106855862B (en) Rapid comparison method and device
CN105389172A (en) Application upgrading method and apparatus
CN106708688B (en) Module test method and terminal
CN107094085B (en) Signaling transmission method and device
CN112235474B (en) Method, device and equipment for scheduling prepaid flow code number
CN103501247A (en) Method and device for processing high concurrency request
TWI789346B (en) Message sending method and terminal equipment
CN109067864B (en) Notification message pushing method and device and electronic equipment
CN106411545A (en) Service attribute counting method and device
CN108830724B (en) Resource data packet processing method and terminal equipment
CN114221883B (en) Message testing method, device, server and storage medium
CN109857563A (en) Task executing method, device and task execution system
CN105592097B (en) A kind of client-based asynchronous interactive information approach
CN103970874A (en) Method and device for processing Hadoop files
CN104053252A (en) AT instruction processing method, device and system

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