CN102172055B - Method, device and system for processing short messages - Google Patents
Method, device and system for processing short messages Download PDFInfo
- Publication number
- CN102172055B CN102172055B CN201180000404.5A CN201180000404A CN102172055B CN 102172055 B CN102172055 B CN 102172055B CN 201180000404 A CN201180000404 A CN 201180000404A CN 102172055 B CN102172055 B CN 102172055B
- Authority
- CN
- China
- Prior art keywords
- grouped data
- short message
- message
- grouped
- memory
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- 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]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
The present invention provides a method, device and system for processing short messages. The method includes: receiving a short message sent from a Service Provider (SP); judging whether the short message is packet data of a long short message, if yes, storing the packet data in a memory; transmitting all packet data in turn, according to the order of all packet data, to a Short Message Service Centre (SMSC), when all packet data corresponding to the long short message is stored. The method, device and system provided by the present invention enable a terminal to receive the packet data of the long short message according to the right order, thus improving the operation convenience of a user.
Description
Technical field
The embodiment of the invention relates to the communication technology, relates in particular to a kind of processing method, device and system of short message.
Background technology
Short message is called note again, short message, and news in brief etc. are according to point-to-point (the Short Message Peer to Peer of short message; Be called for short: SMPP) 3.3 agreements regulation, the note length that Chinese character can be supported is 70 characters, the note length that pure English can be supported is 160 characters.But, can limit like this based on the various information of short message and use, also influenced marketing and information distribution effect based on short message, therefore, the application that surpasses the short message (abbreviation long message) of maximum number of words restriction just seems particularly important.At present, long message has been broken the length restriction of the pure English of the Chinese character that can only support 70 characters and 160 characters, and namely at present big portion mobile phone all can be supported the transmitting-receiving of long message.Concrete, (Service Provider is called for short: SP) mode with grouped data is handed down to short messaging gateway with long message to the service provider, after short messaging gateway receives this long message, after finishing necessary authentication process, logic according to this long message processing, this long message is forwarded to different ext nal network element in the mode of grouped data (for example: authentication to be handled, processing such as charging and security monitoring), receive the long message after the processing that this ext nal network element returns in the mode of grouped data then, at last this long message is delivered to short message service center in the mode of grouped data, by short message service center the grouped data that receives is transmitted to terminal.
The inventor finds that there are the following problems at least in the prior art: be that order according to the grouped data of the long message that receives shows because terminal shows short message, therefore, when SP issues long message according to the grouped data order, time-delay when perhaps externally existing in the processing of network element, all can cause the long message that short messaging gateway is handed down to short message service center not issue according to the grouped data order, thereby finally make the grouped data order entanglement of the long message that terminal receives, long message can not be by normal assembly group, caused the long message that shows in terminal to have the not right problem of context of co-text, and then made troubles for user's use.
Summary of the invention
The embodiment of the invention provides a kind of processing method, device and system of short message, solved grouped data order entanglement how to avoid the long message that terminal receives, long message can not be by the technical problem of normal assembly group, realized that terminal can receive the grouped data of long message according to correct order, thereby effectively raised the convenience that the user uses.
The embodiment of the invention provides a kind of processing method of short message, comprising:
Receive the short message that the service provider issues;
Judge whether described short message is the grouped data of long message, if when judging described short message and being the grouped data of long message, the described grouped data of storage in internal memory then;
If when having stored the whole grouped data of described long message correspondence, described whole grouped datas are transmitted to short message service center successively according to the order of described whole grouped datas.
The embodiment of the invention provides a kind of short message processing apparatus, comprising:
Receiver module is used for receiving the short message that the service provider issues;
Judge module is used for judging whether described short message is the grouped data of long message;
Memory module is used for when if described judge module is judged described short message and is the grouped data of long message, then the described grouped data of storage in internal memory;
Forwarding module is used for when if described memory module has been stored the whole grouped data of described long message correspondence, and described whole grouped datas are transmitted to short message service center successively according to the order of described whole grouped datas.
The embodiment of the invention provides a kind of short message handling system, comprises short messaging gateway and short message service center, and wherein, described short messaging gateway comprises short message processing apparatus described above.
The processing method of the short message of the embodiment of the invention, device and system, by receiving the short message that the service provider issues, and when judging this short message and be the grouped data of long message, then in internal memory, store this grouped data, and when having stored whole grouped data of this long message correspondence, these whole grouped datas are transmitted to short message service center successively according to the order of whole grouped datas, thereby realized that terminal can receive the grouped data of long message according to correct order, and then effectively raised the convenience that the user uses.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply, apparently, accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of an embodiment of the processing method of short message of the present invention;
Fig. 2 is the flow chart of another embodiment of the processing method of short message of the present invention;
Fig. 3 is the structural representation of an embodiment of short message processing apparatus of the present invention;
Fig. 4 is the structural representation of another embodiment of short message processing apparatus of the present invention;
Fig. 5 is the structural representation of an embodiment of short message handling system of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 is the flow chart of an embodiment of the processing method of short message of the present invention, and as shown in Figure 1, the method for present embodiment comprises:
The short message that step 101, reception SP issue.
In the present embodiment, long message can point-to-point (Short Message Peer to Peer based on short message; Be called for short: SMPP) " esm_class " field in the agreement is distinguished, and table one is the definition of " esm_class " field in the SMPP agreement, as shown in Table 1,
Table one
" User Data Header sign (User Date HeaderIndicator; Be called for short: UDHI) " position is for representing whether content of short message has header structure, wherein, for long message, the first six byte content of " UDHI " position specifically describes and is " 0x050x000x030xRR 0xTT 0xSS ".Concrete, " 0x050x000x03 " represents that this short message is long message, in other words, namely can judge short message by " 0x050x000x03 " is long message." 0xRR " represents the packet count of this long message, and " 0xSS " represents which grouped data is this long message grouped data be in this long message.For instance, when " 0xRR " is " 0x02 ", the packet count of representing this long message is 2, illustrate that then this long message is made of two grouped datas, in addition, when " 0xSS " is " 0x01 ", represent that this long message grouped data is the 1st grouped data in this long message, when " 0xSS " is " 0x02 ", represent that this long message grouped data is the 2nd grouped data in this long message.
For instance, when " 0xRR " is " 0x02 ", if the quantity of stored packet data is in the memory address, whole grouped datas of having stored this long message correspondence in this memory address namely are described at 2 o'clock.
In the present embodiment, receive the grouped data of this long message when short messaging gateway after, can carry out buffer memory to the grouped data of this long message, and other grouped datas that continue reception and store this long message, if when the quantity of stored packet data equaled packet count in the long message, then whole grouped datas of this long message correspondence had been stored in explanation.For example: when " 0xRR " was " 0x02 ", if the quantity of stored packet data is 2 o'clock, i.e. whole grouped datas of this long message correspondence had been stored in explanation.
In addition, when having stored whole grouped data of this long message correspondence, can sort to whole grouped datas of storage according to " 0xSS " in each grouped data, and according to the ordering after order transmit whole grouped datas successively, in other words, short messaging gateway is when transmitting the grouped data of long message to short message service center, be that sequencing according to grouped data issues successively, thereby the order that has guaranteed the grouped data that short message service center receives also is correct, and then has guaranteed that it also is correct that the order of the grouped data of terminal is handed down in short message service center.
In the present embodiment, by receiving the short message that the service provider issues, and judging the grouped data that this short message is long message, then in internal memory, store this grouped data, and when having stored whole grouped data of this long message correspondence, these whole grouped datas are transmitted to short message service center successively according to the order of whole grouped datas, thereby have realized that terminal can receive the grouped data of long message according to correct order, and then effectively raise the convenience that the user uses.
Fig. 2 is the flow chart of another embodiment of the processing method of short message of the present invention, and as shown in Figure 2, the method for present embodiment comprises:
The short message that step 201, reception SP issue.
Concrete, in the present embodiment, step 204 and step 205 can adopt Hash-chained list (hash-list) algorithm, its concrete implementation can for: in Hash (hash) storage organization of the first order, adopt destination address in this grouped data (for example: phone number) and sequence number (also can be referred to as the sequence number of this long message) as keyword (key), and according to the hash-list algorithm, allocate a memory space in advance, wherein, this memory space can also be referred to as the hash bucket, pass through hash function then, key is converted to a memory location in the hash bucket, at last, insert the head pointer (being similar to the gauge outfit in the single linked list algorithm) of chained list (1ist) in this memory location, and the tail pointer of gauge outfit pointed to need to add on the memory address of content, thereby this grouped data is inserted on this memory address.
In the present embodiment, short message processing apparatus can be handed down to subordinate's processing net element with the grouped data that receives, subordinate's processing net element can be carried out processing such as authentication or charging to this grouped data, and the response message that processing such as authentication or charging back is generated returns to short message processing apparatus, short message processing apparatus is after receiving this response message, (for example: the authentication success message), then execution in step 207 if this response message is for handling success message; (for example: failed authentication message), then execution in step 213 if this response message is for handling failed message.
Stored packet data in this memory address before step 213, the deletion.Finish.
In the present embodiment, by receiving the short message that the service provider issues, and judging the grouped data that this short message is long message, and the destination address of this grouped data and sequence number did not record in internal memory, then in internal memory, obtain the memory address of this grouped data, and this grouped data is stored in this memory address; If destination address and the sequence number of this grouped data recorded in internal memory, then this grouped data is stored in the memory address corresponding with this destination address and sequence number, and when having stored whole grouped data of this long message correspondence, these whole grouped datas are transmitted to short message service center successively according to the order of whole grouped datas, thereby realized that terminal can receive the grouped data of long message according to correct order, and then effectively raised the convenience that the user uses.
Fig. 3 is the structural representation of an embodiment of short message processing apparatus of the present invention, and as shown in Figure 3, the device of present embodiment can be arranged in the information gateway, and this device comprises: receiver module 11, judge module 12, memory module 13 and forwarding module 14.Wherein, receiver module 11 is used for receiving the short message that SP issues; Judge module 12 is used for judging whether this short message is the grouped data of long message; Memory module 13 is used for when if this judge module 12 is judged this short message and is the grouped data of long message, then this grouped data of storage in internal memory; Forwarding module 14 is used for when if memory module 13 has been stored the whole grouped data of long message correspondence, and whole grouped datas are transmitted to short message service center successively according to the order of whole grouped datas.
The short message processing apparatus of present embodiment can be carried out the technical scheme of method embodiment shown in Figure 1, and it realizes that principle is similar, repeats no more herein.
In the present embodiment, by receiving the short message that the service provider issues, and judging the grouped data that this short message is long message, then in internal memory, store this grouped data, and when having stored whole grouped data of this long message correspondence, these whole grouped datas are transmitted to short message service center successively according to the order of whole grouped datas, thereby have realized that terminal can receive the grouped data of long message according to correct order, and then effectively raise the convenience that the user uses.
Fig. 4 is the structural representation of another embodiment of short message processing apparatus of the present invention, as shown in Figure 4, on the basis of above-mentioned embodiment shown in Figure 3, this memory module 13 specifically comprises: judging unit 131, memory address acquiring unit 132 and memory cell 133, wherein, judging unit 131 is used for when if judge module 12 is judged short message and is the grouped data of long message, judges then whether destination address and the sequence number in the grouped data has record in internal memory; Memory address acquiring unit 132 is used for if judging unit 131 is judged destination address and the sequence number of grouped data record not being arranged in internal memory, then with destination address and sequence number as keyword, and by hash function, obtain the memory address of this grouped data; Memory cell 133 is used for storing this grouped data into memory address.
Further, memory cell 133 also is used for if judging unit 131 is judged destination address and the sequence number of grouped data record being arranged in internal memory, then this grouped data is stored in the memory address corresponding with destination address and sequence number.
Further, this device can also comprise: removing module 15 is used for if inherent memory address does not store whole grouped datas of long message correspondence at the fixed time, then stored packet data in the memory address before the deletion.
The short message processing apparatus of present embodiment can be carried out the technical scheme of method embodiment shown in Figure 2, and it realizes that principle is similar, repeats no more herein.
In the present embodiment, by receiving the short message that the service provider issues, and judging the grouped data that this short message is long message, and the destination address of this grouped data and sequence number did not record in internal memory, then in internal memory, obtain the memory address of this grouped data, and this grouped data is stored in this memory address; If destination address and the sequence number of this grouped data recorded in internal memory, then this grouped data is stored in the memory address corresponding with this destination address and sequence number, and when having stored whole grouped data of this long message correspondence, these whole grouped datas are transmitted to short message service center successively according to the order of whole grouped datas, thereby realized that terminal can receive the grouped data of long message according to correct order, and then effectively raised the convenience that the user uses.
Fig. 5 is the structural representation of an embodiment of short message handling system of the present invention, as shown in Figure 5, the system of present embodiment comprises: short messaging gateway 21 and short message service center 22, wherein, this short messaging gateway 21 comprises the processing unit 211 of above-mentioned Fig. 3 or short message shown in Figure 4, and the processing unit 211 of this short message is carried out the technical scheme of above-mentioned Fig. 1 or method embodiment shown in Figure 2, and it realizes that principle is similar, repeats no more herein.
This system that has implemented is by being provided with the processing unit of short message in short messaging gateway 21, thereby increased the ability that short messaging gateway 21 intelligence issue the grouped data of long message, solved all network elements that connects this short messaging gateway 21 have been caused time delay and the influence that brings, promoted the successful display rate that SP issues long message, realized that namely terminal can receive the grouped data of long message according to correct order, thereby effectively raised the convenience that the user uses.In addition, also reduce the processing load of short messaging gateway effectively, improved the handling capacity of short messaging gateway.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (8)
1. the processing method of a short message is characterized in that, comprising:
Receive the short message that the service provider issues;
Judge whether described short message is the grouped data of long message, if when judging described short message and being the grouped data of long message, the described grouped data of storage in internal memory then;
If when having stored the whole grouped data of described long message correspondence, described whole grouped datas are transmitted to short message service center successively according to the order of described whole grouped datas;
Wherein, if described when judging described short message and being the grouped data of long message, the described grouped data of storage in internal memory then comprises:
If when judging described short message and being the grouped data of long message, judge then whether destination address and the sequence number in the described grouped data has record in internal memory;
If judge destination address in the described grouped data and sequence number record is not arranged in internal memory, then with described destination address and sequence number as keyword, and by hash function, obtain the memory address of described grouped data;
Described grouped data is stored in the described memory address.
2. the processing method of short message according to claim 1 is characterized in that, also comprises:
If destination address and the sequence number judged in the described grouped data have record in internal memory, then described grouped data is stored in the memory address corresponding with described destination address and sequence number.
3. the processing method of short message according to claim 1 and 2 is characterized in that, also comprises:
If do not store whole grouped datas of described long message correspondence at the fixed time in the inherent described memory address into, stored packet data in the described memory address before then deleting.
4. the processing method of short message according to claim 1 and 2 is characterized in that, also comprises:
Whether subordinate's processing net element of judging described grouped data is short message service center, if not short message service center then sends described grouped data to subordinate's processing net element of grouped data;
If receiving the response message that described subordinate processing net element returns is failed authentication message, stored packet data in the described memory address before the deletion then.
5. the processing unit of a short message is characterized in that, comprising:
Receiver module is used for receiving the short message that the service provider issues;
Judge module is used for judging whether described short message is the grouped data of long message;
Memory module is used for when if described judge module is judged described short message and is the grouped data of long message, then the described grouped data of storage in internal memory;
Forwarding module is used for when if described memory module has been stored the whole grouped data of described long message correspondence, and described whole grouped datas are transmitted to short message service center successively according to the order of described whole grouped datas;
Wherein, described memory module comprises:
Judging unit is used for judging then whether destination address and the sequence number in the described grouped data has record in internal memory when if described judge module is judged described short message and is the grouped data of long message;
The memory address acquiring unit, be used for if described judgment unit judges goes out destination address and the sequence number of described grouped data record not being arranged in internal memory, then with described destination address and sequence number as keyword, and by hash function, obtain the memory address of described grouped data;
Memory cell is used for storing described grouped data into described memory address.
6. the processing unit of short message according to claim 5, it is characterized in that, described memory cell also is used for if described judgment unit judges goes out destination address and the sequence number of described grouped data record being arranged in internal memory, then described grouped data is stored in the memory address corresponding with described destination address and sequence number.
7. according to the processing unit of claim 5 or 6 described short messages, it is characterized in that, also comprise: removing module, be used for if inherent described memory address does not store whole grouped datas of described long message correspondence at the fixed time, then stored packet data in the described memory address before the deletion.
8. a short message handling system is characterized in that, comprises short messaging gateway and short message service center, and wherein, described short messaging gateway comprises the processing unit as each described short message of claim 5 to 7.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/073175 WO2011110122A2 (en) | 2011-04-22 | 2011-04-22 | Method, device and system for processing short messages |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102172055A CN102172055A (en) | 2011-08-31 |
CN102172055B true CN102172055B (en) | 2013-08-07 |
Family
ID=44491722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201180000404.5A Expired - Fee Related CN102172055B (en) | 2011-04-22 | 2011-04-22 | Method, device and system for processing short messages |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102172055B (en) |
WO (1) | WO2011110122A2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106686560A (en) * | 2015-11-11 | 2017-05-17 | 中兴通讯股份有限公司 | Processing method and processing device for tandem long message |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101651934A (en) * | 2009-09-04 | 2010-02-17 | 中兴通讯股份有限公司 | Method and system for filtering long short messages |
CN101695154A (en) * | 2009-10-27 | 2010-04-14 | 青岛海信移动通信技术股份有限公司 | Short message processing method and short message processing device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222700A (en) * | 2007-01-12 | 2008-07-16 | 上海晨兴电子科技有限公司 | Method for receiving process and operation processing long messages storage |
CN101404797B (en) * | 2008-11-07 | 2012-12-19 | 中兴通讯股份有限公司 | Storage method, storage management apparatus and storage system for long and short messages |
CN101534347A (en) * | 2009-04-07 | 2009-09-16 | 中兴通讯股份有限公司 | Method for storing information and mobile terminal intelligent card |
-
2011
- 2011-04-22 CN CN201180000404.5A patent/CN102172055B/en not_active Expired - Fee Related
- 2011-04-22 WO PCT/CN2011/073175 patent/WO2011110122A2/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101651934A (en) * | 2009-09-04 | 2010-02-17 | 中兴通讯股份有限公司 | Method and system for filtering long short messages |
CN101695154A (en) * | 2009-10-27 | 2010-04-14 | 青岛海信移动通信技术股份有限公司 | Short message processing method and short message processing device |
Also Published As
Publication number | Publication date |
---|---|
WO2011110122A2 (en) | 2011-09-15 |
WO2011110122A3 (en) | 2012-04-19 |
CN102172055A (en) | 2011-08-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101741730B (en) | Method and equipment for downloading file and method and system for providing file downloading service | |
CN110191428B (en) | Data distribution method based on intelligent cloud platform | |
CN101984692A (en) | Method and device for preventing malicious software from transmitting data | |
CN102769687B (en) | Mass texting system and method | |
CN102591943A (en) | Page data processing method for mobile terminal | |
WO2014169860A1 (en) | Data transmission method and device | |
CN107613529B (en) | Message processing method and base station | |
CN101894092B (en) | Multi-core CPU and inter-core communication method thereof | |
CN110457251B (en) | Data communication method and device among multiple processors | |
US20020095468A1 (en) | Message reception device, message reception method, and program for receiving message is recorded | |
JP2009517743A (en) | Anti-spam application storage system | |
CN102172055B (en) | Method, device and system for processing short messages | |
US8972508B1 (en) | Methods and systems for managing email configuration | |
US9131005B2 (en) | Broker designation and selection in a publish-subscription environment | |
CN103037326B (en) | Long SMS processing method and device | |
CN107295485B (en) | Multimedia message accessory management method, device and communication system | |
US20190020999A1 (en) | Making subscriber data addressable as a device in a mobile data network | |
CN115766610A (en) | Message queue based on publish-subscribe | |
US10516723B2 (en) | Distributing subscriber data in a mobile data network | |
CN107911317A (en) | A kind of method for dispatching message and device | |
CN102111348A (en) | Information processing method and device | |
CN1499880B (en) | Method for storing short message service in mobile communication terminal | |
CN105049519A (en) | Message routing method and system base on SOAP protocol | |
CN101494833A (en) | Method, device and system for sending network message | |
CN101237616A (en) | Method and system for loading advertisement in point-to-point SMS communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130807 Termination date: 20160422 |