CN103906018B - A kind of method and device for being used to send short message - Google Patents

A kind of method and device for being used to send short message Download PDF

Info

Publication number
CN103906018B
CN103906018B CN201210575216.1A CN201210575216A CN103906018B CN 103906018 B CN103906018 B CN 103906018B CN 201210575216 A CN201210575216 A CN 201210575216A CN 103906018 B CN103906018 B CN 103906018B
Authority
CN
China
Prior art keywords
short message
buffering area
thread
service gateway
sent
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
CN201210575216.1A
Other languages
Chinese (zh)
Other versions
CN103906018A (en
Inventor
陈群杰
郑雄
郑一雄
杜娟
郭华伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Fujian Co Ltd
Original Assignee
China Mobile Group Fujian 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 China Mobile Group Fujian Co Ltd filed Critical China Mobile Group Fujian Co Ltd
Priority to CN201210575216.1A priority Critical patent/CN103906018B/en
Publication of CN103906018A publication Critical patent/CN103906018A/en
Application granted granted Critical
Publication of CN103906018B publication Critical patent/CN103906018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of for sending the method and device of short message, wherein, method includes:First thread reads short message to be sent from database and stores to first buffering area;Following steps are performed with each in default connection matched multiple second threads of number:A short message to be sent is read from first buffering area and is supplied to Short Message Service Gateway to send, and will be stored from the data to be updated that Short Message Service Gateway receives to respective second buffering area;Each in multiple 3rd threads corresponding with multiple second threads performs following steps:When being stored with data to be updated in the second buffering area of corresponding second thread, read data to be updated and store to database.The second thread reads the short message to be sent from memory in the present invention, database manipulation during original transmission short message is converted to the queue operation in memory, it solves the problems, such as that transmission short message in the prior art is limited to read-write database manipulation, the transmission speed of Short Message Service Gateway is allow to reach configured transmission speed.

Description

A kind of method and device for being used to send short message
Technical field
The present invention relates to mobile communication technology field more particularly to a kind of method and devices for being used to send short message.
Background technology
With the continuous innovation of moving communicating field technology, mobile communication technology brings great convenience to people's life, Operator realizes the interaction and communication with client also by various technological approaches, and wherein short message is a kind of important mode.By This channel of short message, operator can carry out business interaction, rate care, the prompting of typhoon weather etc. with mobile terminal.
Operator is mainly managed collectively port by provincial company at present, and open-ended is sent by city-level company.To the greatest extent Pipe easily can carry out interactive event by short message with client, but due to short message port limited amount, the user of some districts and cities Number is again more numerous, reaches nearly ten million even more high, if short message port transmission speed is unable to reach possible peak value and will be unable to Bring best perception.
In order to reach preferable perception, a port should possess can be within the non-time of having a rest of one day to whole district user Send the ability of at least one short message.By taking China Mobile as an example, CMPP is released on short message port field(China Mobile Peer to Peer, China Mobile are point-to-point)Agreement, to each port assignment account, password, maximum number of connections, maximum transmission The important parameters such as speed.After being logged in using account and password, unified short message is submitted to after short message is carried out message encapsulation Gateway carries out downlink, and can receive the mark of return and the short message of user uplink.Short Message Service Gateway will need to send first short Letter is inserted into the table of database, and the short message that transmission program reading is not sent, invocation protocol is sent, and transmission result more Newly to database.Currently mainly use following two short message sending modes:
Scheme 1:Based on single thread and multi-link sending method.
As shown in Figure 1, the program be it is multiple connection by Short Message Service Gateway in CMPP connections after, enable a main thread from number According to a short message is read in storehouse every time;The short message read is distributed to idle connection by main thread;The free time linkup transmit short message;Finally Result update will be sent into database by main thread.
The advantages of scheme 1, is only to be sent there are one thread, need not solve database and repeat to read, lock etc. to ask Topic.
However, scheme 1 has the following disadvantages:
1)Transmission speed is actually determined that multiple connections often only there are one connection in transmission state, do not have by main thread Maximum performance is given play to.
2)The main thread of control transmission speed needs to carry out reading data, has sent and has updated the data again, and whole flow process terminates Next can be sent, the read or write speed substitution transmission speed of database becomes bottleneck place.
Scheme 2:Sending method based on independent multithreading.
As shown in Fig. 2, the program is to start the multiple threads to match with being connected number, per thread works independently, flow It is as follows:Short message to be sent is first read from database, the connection controlled by the thread is submitted to be sent, is carried out after sending successfully Send the update of result.
The advantages of scheme 2, is all connections all in working condition, and transmission speed is obviously improved than the first scheme.
Scheme 2 has the following disadvantages:
1)It needs to solve the problems, such as the locking of multiple thread read from database data, prevents a short message from carrying out weight by multiple threads Recurrence is sent.
2)The transmission speed of per thread is similarly subjected to the limitation of data base read-write speed.
To sum up, either the note transmission method of single thread or multithreading, major defect are:Transmission speed is subject to The limitation of database manipulation speed, even if the transmission speed that port is configured is very fast, if asking for database manipulation can not be solved Topic is then unable to reach the maximum speed that port is configured.
The content of the invention
In order to solve drawbacks described above in the prior art, the present invention proposes a kind of method and dress for being used to send short message It puts, database manipulation can be stripped out from the transmission process of short message so that transmission connection can continuously read pending Short message is sent to be supplied to Short Message Service Gateway to send, the peak velocity that port configures can be reached in the case where network speed allows.
One aspect of the present invention provides a kind of method for sending short message, comprises the following steps:
First thread reads short message to be sent from database and stores to first buffering area;
Following steps are performed with each in default connection matched multiple second threads of number:From the first buffering area One short message to be sent of middle reading is simultaneously supplied to Short Message Service Gateway to send, and the data to be updated received from short-term gateway are deposited It stores up to the respective second buffering area;
Each in multiple 3rd threads corresponding with the multiple second thread performs following steps:Work as correspondence The second thread second buffering area in when being stored with data to be updated, read the data to be updated and store to database.
In the method proposed by the present invention for sending short message, it is multiple for sending the threads of short message no longer from database and It is the reading short message to be sent from memory, database manipulation when sending short message originally, which is converted to the queue in memory, to be grasped Make, and thousand grades of queue operation time can be ignored in memory, therefore, solve it is in the prior art send it is short Letter is limited to the problem of read-write database manipulation, and the transmission speed of Short Message Service Gateway is allow to reach configured transmission speed.
As the preferred of above-mentioned technical proposal, first thread reads short message to be sent from database and stores to the first buffering The step of area, includes:
Judge whether the remaining space amount of the first buffering area meets preset value, if so, reading number from database It measures and is stored for the short message to be sent of preset value to first buffering area.
This programme can once read and be stored in the short message of buffering area predetermined amount, improve efficiency.
It is described that a short message to be sent is read from the first buffering area and is provided as the preferred of above-mentioned technical proposal It sends to Short Message Service Gateway, and is wrapped being stored from the data to be updated that Short Message Service Gateway receives to the step of respective second buffering area It includes:
Judge short message to be sent whether is stored in the first buffering area, if so, being read from the first buffering area One short message to be sent is simultaneously supplied to Short Message Service Gateway to send, and receives the transmission of Short Message Service Gateway return as a result, by the transmission As a result store into respective second buffering area as the data to be updated;If it is not, short message then is received from Short Message Service Gateway, and will The short message received is stored into respective second buffering area as the data to be updated.
As the preferred of above-mentioned technical proposal, each in the multiple second thread also performs following steps:From institute It states and a short message to be sent is read in first buffering area and is supplied to Short Message Service Gateway to send, and receive the hair of Short Message Service Gateway return It send as a result, the transmission result is stored into respective second buffering area as after the data to be updated, dormancy first Preset duration.
As the preferred of above-mentioned technical proposal, the method further includes:
Each in multiple 4th threads corresponding with the multiple second thread performs following steps:Judgement pair Whether the free time of the connection for the second thread answered more than the second preset duration, deposits if so, sending connection to Short Message Service Gateway Test request living.
Another aspect of the present invention, it is also proposed that it is a kind of for sending the device of short message, including:
First thread unit is stored for reading short message to be sent from database to first buffering area;
With default connection matched multiple second thread units of number, each use in the multiple second thread units In:A short message to be sent is read from the first buffering area and is supplied to Short Message Service Gateway to send, and will be from Short Message Service Gateway The data to be updated received are stored to respective second buffering area;
Multiple 3rd thread units corresponding with the multiple second thread units, the multiple 3rd thread units In each be used for:When being stored with data to be updated in the second buffering area of corresponding second thread units, described in reading Data to be updated are stored to database.
As the preferred of above-mentioned technical proposal, the first thread unit is used for:
Judge whether the remaining space amount of the first buffering area meets preset value, if so, reading number from database It measures and is stored for the short message to be sent of preset value to first buffering area.
As the preferred of above-mentioned technical proposal, second thread units are used for:
Judge short message to be sent whether is stored in the first buffering area, if so, being read from the first buffering area One short message to be sent is simultaneously supplied to Short Message Service Gateway to send, and receives the transmission of Short Message Service Gateway return as a result, by the transmission As a result store into respective second buffering area as the data to be updated;If it is not, short message then is received from Short Message Service Gateway, and will The short message received is stored into respective second buffering area as the data to be updated.
As the preferred of above-mentioned technical proposal, each in the multiple second thread units is additionally operable to:From described A short message to be sent is read in one buffering area and is supplied to Short Message Service Gateway to send, and receives the transmission knot of Short Message Service Gateway return Fruit stores the transmission result into respective second buffering area as after the data to be updated, and dormancy first is default Duration.
As the preferred of above-mentioned technical proposal, described device further includes:
Multiple 4th thread units corresponding with the multiple second thread units, the multiple 4th thread units In each be used for:
Whether the free time of the connection in corresponding second thread units is judged more than the second preset duration, if so, Connection survival test request is sent to Short Message Service Gateway.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Specifically noted structure is realized and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme is described in further detail.
Description of the drawings
Attached drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention Example is applied together for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of scheme of existing transmission short message;
Fig. 2 is the schematic diagram of another scheme of existing transmission short message;
Fig. 3 is the flow chart for being used to send the method for short message that the preferred embodiment of the present invention proposes;
Fig. 4 is the step performed by first thread in the method for being used to send short message that a specific embodiment of the invention proposes Flow chart;
Fig. 5 is the step performed by the second thread in the method for being used to send short message that a specific embodiment of the invention proposes Flow chart;
Fig. 6 is the side that the 3rd thread updates the data in the method for being used to send short message that a specific embodiment of the invention proposes The flow chart of method;
Fig. 7 is the flow chart for being used to send the method for short message that another specific embodiment of the present invention proposes;
Fig. 8 is the structure diagram for being used to send the device of short message that the preferred embodiment of the present invention proposes;
Fig. 9 is the structure diagram for being used to send the device of short message that a specific embodiment of the invention proposes.
Specific embodiment
The preferred embodiment of the present invention is illustrated below in conjunction with attached drawing, it should be understood that preferred reality described herein It applies example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
As shown in figure 3, a kind of method for being used to send short message that the preferred embodiment of the present invention proposes comprises the following steps:
Step S31:First thread reads short message to be sent from database and stores to first buffering area;
Step S32:Following steps are performed with each in default connection matched multiple second threads of number:From described A short message to be sent is read in one buffering area and is supplied to Short Message Service Gateway to send, and is treated what is received from Short Message Service Gateway more New data is stored to the respective second buffering area;
Step S33:Each in multiple 3rd threads corresponding with the multiple second thread performs following step Suddenly:When being stored with data to be updated in the second buffering area of corresponding second thread, read the data to be updated store to Database.
It should be noted that the first thread, the second thread, the 3rd thread in the present invention are mutual indepedent when performing operation And per thread be all that cycle performs respective operation, therefore, execution sequence is not limited to the order of above-mentioned steps.
The method proposed by the present invention for sending short message is by single thread(That is first thread)Read data and multithreading send and It is more capable to be combined, multiple threads for being used to send short message(That is the second thread)It reads no longer from database but from memory The short message to be sent is taken, database manipulation when sending short message originally is converted to the queue operation in memory, and it is right in memory Thousand grades of queue operation time can be ignored, and therefore, solves transmission short message in the prior art and is limited to read and write The problem of database manipulation, allows the transmission speed of Short Message Service Gateway to reach configured transmission speed.
Additionally, it should be noted that it should be locked when being operated to first buffering area and second buffering area.Due to by line Journey is transferred to the locking of database when accessing database the locking to buffering area, therefore, also reduces the burden of database.
Hereinafter, the method for transmission short message proposed by the present invention is described in detail by specific embodiment.
Short message to be sent is read to the flow of first buffering area, tool as shown in figure 4, being had been described in detail in this specific embodiment Body, comprise the following steps:
Step S41:First thread judges whether the remaining space amount of first buffering area meets preset value, if so, performing Step S42 performs the step if it is not, then cycling.
Step S42:First thread reads the short message to be sent that quantity is preset value from database and stores to the first buffering Area.
It should be noted that it is locked when being operated to first buffering area.
Only use a thread and short message to be sent read from database, solve using multithreading need to database into The problem of row locks, will be transferred to the locking of database the locking to buffering area, reduces the burden of database.
Meanwhile following steps are performed with each in default connection matched multiple second threads of number, as shown in Figure 5:
Step S51:Judge short message to be sent whether is stored in the first buffering area, if so, performing step S52;If It is no, perform step S55.
Step S52:A short message to be sent is read from the first buffering area and is supplied to Short Message Service Gateway to send.
In this step, short message to be sent is supplied to Short Message Service Gateway, is forwarded to short message to be sent by Short Message Service Gateway short Letter center is sent.
Step S53:Receive the transmission result that Short Message Service Gateway returns.
Step S54:Result will be sent to store into the second buffering area of the thread as data to be updated.
In this step, it is contemplated that the sending time of CMPP agreements reality is extremely short, in order to control transmission speed, in order to avoid be more than Gateway limits and sends failure, therefore, appropriate dormancy can also be carried out after sending short message(Such as 1 second).It is preset by dormancy Duration can reach any peak velocity in situation this programme that network speed allows.
Step S55:Short message is received from Short Message Service Gateway.
In this step, the short message received from Short Message Service Gateway reception Short Message Service Gateway from sms center.
Step S56:The short message received is stored into the second buffering area of the thread as the data to be updated.
Meanwhile each in multiple 3rd threads corresponding with the multiple second thread performs following steps, As shown in Figure 6:
Step S61:Judge whether be stored with data to be updated in the second buffering area of corresponding second thread, if so, holding Row step S62, if it is not, then cycle criterion.
Step S62:The data to be updated are read to store to database.
In this step, it should cyclically judge whether second buffering area is stored with data to be updated, if it is present therefrom It takes out and stores in database.It also needs to lock it should be noted that carrying out second buffering area operation.
Moreover it is preferred that this method can also include:
As shown in fig. 7, each execution in multiple 4th threads corresponding with the multiple second thread is following Step:
Step S71:Judge the free time of the connection of corresponding second thread whether more than the second preset duration(Such as 15 Second), if so, performing step S72;If it is not, then explanation receives short message in the second preset duration, then the judgement is repeated.
In this step, if needing to send without short message to be sent, and without uplink short message, then the second thread can It can be constantly in the state for receiving short message.Therefore, even if there is data to be sent that can not also jump out receive process.In order to solve this A defect, this programme add the thread for sending connection survival test request.
In the present embodiment, can whether small plus preset duration by active time when judging the second preset duration Judge in current time, wherein, active time refers to:Last corresponding second thread carries out data interaction with Short Message Service Gateway (Corresponding second thread receives the transmission result of Short Message Service Gateway return or receives short message from Short Message Service Gateway)Shi Jilu's works as When current time.When corresponding second thread carries out data interaction with Short Message Service Gateway every time, which is set to Current time during interaction.
Step S72:Connection survival test request is sent to Short Message Service Gateway.
In this step, after Short Message Service Gateway sends connection survival test request, the reply of Short Message Service Gateway can be received(Nothing The reply of any essential meaning), therefore corresponding second thread can be made the process to be received such as to jump out.
Correspondingly, the present invention proposes a kind of transmission short message apparatus, which is used for database and Short Message Service Gateway Between, wherein, short message to be sent is stored in database, the device is short for the short message to be sent in database to be provided to Believe gateway, sms center is transferred to by Short Message Service Gateway and is sent.As shown in figure 8, the transmission short message apparatus includes:
First thread unit 801 is stored for reading short message to be sent from database to first buffering area;
With default connection matched multiple second thread units 802 of number, each in the multiple second thread units For:A short message to be sent is read from the first buffering area and is supplied to Short Message Service Gateway to send, and will be from short message net The data to be updated received are closed to store to respective second buffering area;
Multiple 3rd thread units 803 corresponding with the multiple second thread units, the multiple second thread Each in unit is used for:When being stored with data to be updated in the second buffering area of corresponding second thread units 802, read The data to be updated is taken to store to database.
Preferably, the first thread unit 801 is used to judge whether the remaining space amount of the first buffering area meets Preset value is stored for the short message to be sent of preset value to first buffering area if so, reading quantity from database.
Preferably, second thread units 802 are used for:
Judge short message to be sent whether is stored in the first buffering area, if so, being read from the first buffering area One short message to be sent is simultaneously supplied to Short Message Service Gateway to send, and receives the transmission of Short Message Service Gateway return as a result, by the transmission As a result store into respective second buffering area as the data to be updated;If it is not, short message then is received from Short Message Service Gateway, and will The short message received is stored into respective second buffering area as the data to be updated.
Preferably, each in the multiple second thread units 802 is additionally operable to:It is read from the first buffering area One short message to be sent is simultaneously supplied to Short Message Service Gateway to send, and receives the transmission of Short Message Service Gateway return as a result, by the transmission As a result store into respective second buffering area and be used as after the data to be updated, the first preset duration of dormancy.
Preferably, as shown in figure 9, described device further includes:
Multiple 4th thread units 804 corresponding with the multiple second thread units, the multiple 4th thread Each in unit is used for:
Whether the free time of the connection of corresponding second thread units is judged more than the second preset duration, if so, to Short Message Service Gateway sends connection survival test request.
The present invention propose it is a kind of by single thread read data and multithreading send combine for send the method for short message and Device is additionally arranged buffering area the lock transition of operation to database to the operation to buffering area, reduces the burden of database. So that reading data, the process for sending short message, updating the data are completely independent, the thread of short message is sent(That is the second thread)Can only it locate Reason sends and receives two operations of short message, greatly improves the speed for sending short message.It in addition, can be easily by dormancy time Change the transmission speed of short message.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention Usable storage medium(Including but not limited to magnetic disk storage and optical memory etc.)The shape of the computer program product of upper implementation Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these modification and variations.

Claims (10)

  1. A kind of 1. method for sending short message, which is characterized in that comprise the following steps:
    First thread reads short message to be sent from database and stores to first buffering area;
    Following steps are performed with each in default connection matched multiple second threads of number:It is read from the first buffering area Take a short message to be sent and be supplied to Short Message Service Gateway to send, and by from the data to be updated that Short Message Service Gateway receives store to Respective second buffering area;
    Each in multiple 3rd threads corresponding with the multiple second thread performs following steps:When corresponding When being stored with data to be updated in the second buffering area of two threads, read the data to be updated and store to database;
    Wherein, it is described that a short message to be sent is read from the first buffering area and is supplied to Short Message Service Gateway to send, and will Being stored from the data to be updated that Short Message Service Gateway receives to the step of respective second buffering area includes:
    Judge short message to be sent whether is stored in the first buffering area, if so, reading one from the first buffering area Short message to be sent is simultaneously supplied to Short Message Service Gateway to send, and receives the transmission of Short Message Service Gateway return as a result, by the transmission result It stores into respective second buffering area as the data to be updated.
  2. 2. according to the method described in claim 1, it is characterized in that, first thread reads short message storage to be sent from database Include to the step of first buffering area:
    Judge whether the remaining space amount of the first buffering area meets preset value, if so, reading quantity is from database The short message to be sent of preset value is stored to first buffering area.
  3. 3. according to the method described in claim 1, it is characterized in that, it is described judge whether to store in the first buffering area need After sending short message, further include:
    If it is not, then receiving short message from Short Message Service Gateway, and the short message received is stored into respective second buffering area as institute State data to be updated.
  4. 4. according to the method described in claim 3, it is characterized in that, each in the multiple second thread also perform it is following Step:
    A short message to be sent is read from the first buffering area and is supplied to Short Message Service Gateway to send, and receives Short Message Service Gateway The transmission of return as a result, storing the transmission result into respective second buffering area as after the data to be updated, The first preset duration of dormancy.
  5. 5. method according to any one of claim 1 to 4, which is characterized in that the method further includes:
    Each in multiple 4th threads corresponding with the multiple second thread performs following steps:
    Whether the free time of the connection of corresponding second thread is judged more than the second preset duration, if so, to Short Message Service Gateway Send connection survival test request.
  6. 6. a kind of device for being used to send short message, which is characterized in that including:
    First thread unit is stored for reading short message to be sent from database to first buffering area;
    With default connection matched multiple second thread units of number, each in the multiple second thread units is used for:From A short message to be sent is read in the first buffering area and is supplied to Short Message Service Gateway to send, and will be received from Short Message Service Gateway Data to be updated store to respective second buffering area;
    Multiple 3rd thread units corresponding with the multiple second thread units, in the multiple 3rd thread units Each is used for:When being stored with data to be updated in the second buffering area of corresponding second thread units, treated more described in reading New data is stored to database;
    Second thread units are used for:Judge short message to be sent whether is stored in the first buffering area, if so, from described A short message to be sent is read in first buffering area and is supplied to Short Message Service Gateway to send, and receives the transmission of Short Message Service Gateway return As a result, the transmission result is stored into respective second buffering area as the data to be updated.
  7. 7. device according to claim 6, which is characterized in that the first thread unit is used for:
    Judge whether the remaining space amount of the first buffering area meets preset value, if so, reading quantity is from database The short message to be sent of preset value is stored to first buffering area.
  8. 8. device according to claim 6, which is characterized in that second thread units are additionally operable to:
    If it is not, then receiving short message from Short Message Service Gateway, and the short message received is stored into respective second buffering area as institute State data to be updated.
  9. 9. device according to claim 8, which is characterized in that each in the multiple second thread units is also used In:A short message to be sent is read from the first buffering area and is supplied to Short Message Service Gateway to send, and receives Short Message Service Gateway The transmission of return as a result, storing the transmission result into respective second buffering area as after the data to be updated, The first preset duration of dormancy.
  10. 10. the device according to any one of claim 6 to 9, which is characterized in that described device further includes:
    Multiple 4th thread units corresponding with the multiple second thread units, in the multiple 4th thread units Each is used for:
    Whether the free time of the connection in corresponding second thread units is judged more than the second preset duration, if so, to short Letter gateway sends connection survival test request.
CN201210575216.1A 2012-12-26 2012-12-26 A kind of method and device for being used to send short message Active CN103906018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210575216.1A CN103906018B (en) 2012-12-26 2012-12-26 A kind of method and device for being used to send short message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210575216.1A CN103906018B (en) 2012-12-26 2012-12-26 A kind of method and device for being used to send short message

Publications (2)

Publication Number Publication Date
CN103906018A CN103906018A (en) 2014-07-02
CN103906018B true CN103906018B (en) 2018-05-22

Family

ID=50997127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210575216.1A Active CN103906018B (en) 2012-12-26 2012-12-26 A kind of method and device for being used to send short message

Country Status (1)

Country Link
CN (1) CN103906018B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018503A (en) * 2017-04-07 2017-08-04 福建中金在线信息科技有限公司 A kind of note transmission method and system
CN108200544B (en) * 2018-03-02 2021-12-28 北京中电普华信息技术有限公司 Short message issuing method and short message platform
CN108834086B (en) * 2018-06-25 2021-05-11 平安科技(深圳)有限公司 Method and device for sending short message, computer equipment and storage medium
CN109246631B (en) * 2018-11-29 2022-03-15 中电万维信息技术有限责任公司 Method for sending short message
CN109672924A (en) * 2018-12-27 2019-04-23 深圳创维-Rgb电子有限公司 Generation method, device and the computer readable storage medium of electronic program guides
CN111522818B (en) * 2020-04-23 2023-09-26 北京思特奇信息技术股份有限公司 Message interaction method among multiple hosts based on memory database
CN113918365A (en) * 2021-10-20 2022-01-11 中国联合网络通信集团有限公司 Data processing method, device and equipment based on short message

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661562A (en) * 2004-02-23 2005-08-31 鸿富锦精密工业(深圳)有限公司 Multithreading system of sending data and method
CN101110987A (en) * 2007-07-19 2008-01-23 中兴通讯股份有限公司 System and method for implementing short message group sending
CN101287166A (en) * 2008-02-22 2008-10-15 北京航空航天大学 Short message publishing system and method for auxiliary system of electronic meeting
CN102695142A (en) * 2011-03-22 2012-09-26 王函石 Method for all media science popularization window SMS message intelligent control
CN102821373A (en) * 2012-08-15 2012-12-12 曙光信息产业(北京)有限公司 Short message service platform applicable to heterogeneous equipment and realization method of short message service platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8489690B2 (en) * 2008-08-28 2013-07-16 International Business Machines Corporation Providing cellular telephone subscription for e-mail threads

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661562A (en) * 2004-02-23 2005-08-31 鸿富锦精密工业(深圳)有限公司 Multithreading system of sending data and method
CN101110987A (en) * 2007-07-19 2008-01-23 中兴通讯股份有限公司 System and method for implementing short message group sending
CN101287166A (en) * 2008-02-22 2008-10-15 北京航空航天大学 Short message publishing system and method for auxiliary system of electronic meeting
CN102695142A (en) * 2011-03-22 2012-09-26 王函石 Method for all media science popularization window SMS message intelligent control
CN102821373A (en) * 2012-08-15 2012-12-12 曙光信息产业(北京)有限公司 Short message service platform applicable to heterogeneous equipment and realization method of short message service platform

Also Published As

Publication number Publication date
CN103906018A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN103906018B (en) A kind of method and device for being used to send short message
CN105471760B (en) The device and data communication system of a kind of method for routing, load balancing
CN106464596B (en) Open flows communication means, system, controller and Service Gateway
CN102395144B (en) Wireless access point upgrade method, system thereof and device thereof
CN104202365B (en) Method for clustered intelligent gateway platform for deploying expanded business application
CN103338475B (en) The method of testing of WAP (wireless access point) and device, test terminal
CN105264930B (en) Sending node and its reporting cached state method
CN104158684B (en) Gateway device status tracking based on open type intelligent Networking Platform
CN105429811B (en) network management system and method
CN110022267A (en) Processing method of network data packets and device
CN103475743B (en) A kind of method, apparatus and system for cloud service
CN107342933A (en) A kind of activation of smart machine and binding method and device
CN105408871A (en) Method and apparatus for providing redundant data access
CN105871995A (en) Method for controlling intelligent device by router and the router
CN105592502B (en) A kind of load-balancing method and device
CN109981360A (en) Internet of things equipment website activating method, device, system and storage medium
CN104641606B (en) The method and virtual network management entity of Internet resources equilibrium treatment
CN106657259A (en) Route server and route service method used for server cluster
CN104168273B (en) The method and system of TCP agent are realized under a kind of thin ap mode
CN103441931B (en) A kind of file transmitting method and device
US20160294940A1 (en) Data download method and device
CN102223311A (en) Queue scheduling method and device
CN105451336B (en) A kind of grouped data scheduling method and device
CN104836827B (en) Data processing method and system based on asymmetric P2P networks
CN109150981A (en) Block chain network network-building method, device, equipment and computer readable storage medium

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