CN101820596B - Ultralong short message processing method and mobile communication terminal - Google Patents
Ultralong short message processing method and mobile communication terminal Download PDFInfo
- Publication number
- CN101820596B CN101820596B CN201010111325.9A CN201010111325A CN101820596B CN 101820596 B CN101820596 B CN 101820596B CN 201010111325 A CN201010111325 A CN 201010111325A CN 101820596 B CN101820596 B CN 101820596B
- Authority
- CN
- China
- Prior art keywords
- short message
- time
- ultralong
- note
- long sms
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000010295 mobile communication Methods 0.000 title claims description 18
- 238000012545 processing Methods 0.000 claims abstract description 28
- 238000004458 analytical method Methods 0.000 claims description 2
- 208000034188 Stiff person spectrum disease Diseases 0.000 description 50
- 238000000034 method Methods 0.000 description 6
- 238000012217 deletion Methods 0.000 description 4
- 230000037430 deletion Effects 0.000 description 4
- 238000005457 optimization Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- CNQCVBJFEGMYDW-UHFFFAOYSA-N lawrencium atom Chemical compound [Lr] CNQCVBJFEGMYDW-UHFFFAOYSA-N 0.000 description 2
- 230000002950 deficient Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
- Telephone Function (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to an ultralong short message processing method which comprises the following steps of: receiving and analyzing a long short message and determining the segment number n of the long short message; the ultralong short message processing method is characterized by also comprising the following steps of: judging whether a database contains one part of the long short message or not; if so, judging whether the long short message is within the set second overtime or not, and if so, carrying out subsequent processing according to the complete receiving condition of the short message; if not, reporting new short message information; if judging that the database does not contain the long short message, saving the long short message into the database and setting the second overtime hereby; when the second overtime is approaching, if judging that the long short message does not exist, ending; and if judging that the long short message still exists, reporting the new short message information and carrying out subsequent processing according to the complete receiving condition of the short message.
Description
Technical field
The present invention relates to a kind of ultralong short message processing method, relate in particular to a kind of receiving handling method of ultralong short message of mobile communication terminal, and relate to a kind of corresponding mobile communication terminal.
Background technology
At present the note of increasing mobile phone and the large data length of network support sends (Concatenatedmessages), and wishes to see the prompting of the complete or part long SMS once received for the user.
According in 3GPP series documentation (the 3GPP TS 23.040 version 4.2.0 Release 4) agreement to the description of note (short message service), CDMA 1X/EVDO existing network is according to the IS-637C agreement, the short-message users data length of supporting is 140 bytes, note transmission that can not the large data length of disposable carrying and transmitting.
In order to realize on the basis of at present short-message users data length restriction transmission and the forwarding service of the note of large data length, network segment and terminal need to be supported filling and the decoding of User Data Header simultaneously, and the length that the note of large data length is split into normal short message is carried out order and sent.Terminal can contain the note of User Data Header and can correctly show its content by Code And Decode, conversion between the data that the sms center of network terminal also can need to be transmitted terminal effectively encapsulate or net.
According in (3GPP TS 23.040 version 4.2.0 Release 4) agreement to the description of note (shortmessage service), long SMS has increased the User Data Header fresh information in content-data, thereby has occupied the length of 6 bytes of actual user data.In order to cooperate these data messages correctly to be encoded and to decode, increased (the User Data Header Indicator to UDHI in the control domain of short message, the User Data Header sign) description is used for whether having the user data header in the identifying user data.
Because User Data Length is restricted to 140 bytes, have 6 bytes to be used to store header in the long SMS user data, so user data single hop maximum length is respectively 7-bit-153 character, a Unicode-67 character, a 8-bit-134 character.Can be referring to the description (concatenated short messages) of document (3GPP TS 23.040 version 4.2.0 Release4) 9.2.3.24.1 about long SMS.
The connection scheme of front Android mobile phone is that the ultralong short message of receiving is to splice then to show after collecting entirely again.
The running environment of Android mobile phone is as follows: Android platform software structure is divided into following level from bottom to top:
One, operating system layer (OS);
Two, various storehouses (Libraries) and Android running environment (RunTime);
Three, application framework (Application Framework);
Four, application layer (Application).
The defective that prior art exists mainly comprises: needs etc. all long SMSs collect and can show that just the stand-by period is long afterwards, cause note demonstration hysteresis; If leak in addition a part of receiving long SMS, then the whole piece long SMS all can't show.
Summary of the invention
The object of the invention is to disclose a kind of SMS processing method based on the Android mobile phone, can in time show the long SMS of receiving, that guarantees information does not lose the integrality that shows with information.
In a preferred embodiment of the present invention, the short message content of present node receives, and then short message content is sent to integral unit and discharges present node.
A kind of SMS processing method comprises:
Receive and the analysis long SMS, determine the segments n of long SMS;
Also comprise and judge a part that whether has comprised long SMS in the database;
A in this way, then judges whether as in the second time-out time, then to receive situation according to note and carry out subsequent treatment in the second time-out time of setting; As no, then report new short message;
B does not comprise this long SMS as judging in the database, then this long SMS is saved in and also sets accordingly the second time-out time in the database; After described the second time-out time arrives, as judge that this long SMS does not exist, then finish; As judge that this long SMS also exists, and then report new short message and judge whether this note receives, as receive, then delete the ephemeral data in the ultralong short message database; As do not receive, the first time-out time then is set, after the first time-out time arrives, delete buffer memory in the first time-out time tabulation and the ephemeral data in the ultralong short message database.
In a preferred embodiment of the present invention, described the first time-out time is 12 hours.
In a preferred embodiment of the present invention, imposing a condition of described the second time-out time is (n-1) * 20S.
In a preferred embodiment of the present invention, in described steps A, report new short message after, also comprise judging whether short message receives, as receive, then delete the interim note in the ultralong short message database; As do not receive, the new short message that then will report is saved in the ultralong short message database.
In a preferred embodiment of the present invention, describedly receive situation according to note and carry out subsequent treatment and comprise: judge whether to receive, as do not receive then the long SMS of receiving is saved in the ultralong short message database; Then report new short message as receiving, then delete the interim note in the ultralong short message database.
Another object of the present invention is to disclose a kind of mobile communication terminal based on Android, can be optimized processing to the receiving course of long SMS, thereby guarantee the integrality of not losing and showing of long SMS.
A kind of mobile communication terminal comprises the note receiving element, receives all kinds of short messages; Processing unit is processed the short message that receives, and determines the segments n of long SMS; Judging unit is according to all kinds of short messages of condition judgment of setting;
Also comprise the condition setup unit, set all kinds of of judging unit and impose a condition that described judging unit is set with respectively the Rule of judgment of the first time-out time and the second time-out time;
Described judging unit is at first judged a part that whether has comprised the long SMS that receives in the long SMS database;
A, in this way, then the long SMS that receives of judgment unit judges is as in the second time-out time of setting, and then processing unit receives situation according to note and carries out subsequent treatment; The long SMS that receives such as judgment unit judges is not that then processing unit reports new short message in the first time-out time of setting;
B, as not comprising this long SMS in the judgment unit judges database, then processing unit is saved in this long SMS in the database, and the condition setup unit is set the second time-out time accordingly; After described the second time-out time arrives, as judge that this long SMS does not exist, then finish; As judge that this long SMS also exists, and then report new short message and judge whether this note receives, as receive, then delete the ephemeral data in the ultralong short message database; As do not receive, the first time-out time then is set, after the first time-out time arrives, delete buffer memory in the first time-out time tabulation and the ephemeral data in the ultralong short message database.
In described mobile communication terminal, the first time-out time that described condition setup unit is set is 12 hours.
In described mobile communication terminal, the second time-out time that described condition setup unit is set is (n-1) * 20S.
In the described mobile communication terminal, in described steps A, report new short message after, also comprise judging whether short message receives, as receive, then delete the interim note in the ultralong short message database; As do not receive, the new short message that then will report is saved in the ultralong short message database.
In described mobile communication terminal, describedly receive situation according to note and carry out subsequent treatment and comprise: judge whether to receive, as do not receive then the long SMS of receiving is saved in the ultralong short message database; As receiving
The SMS processing method that the present invention discloses, owing to be provided with the stand-by period, and the hop count that note splits is added up, split hop count according to note and reach the hop count of having received note, determine the stand-by period, guaranteed flexibly the integrality of not losing and showing of note.By the improvement to Android ccf layer and application layer, realized that the long SMS of Android mobile communication terminal receives optimization process and demonstration.
Description of drawings
Fig. 1 is each module diagram of mobile communication terminal in the embodiment of the invention;
Fig. 2 is the schematic flow sheet of SMS processing method in the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing preferred embodiment of the present invention is described in detail, thereby so that advantages and features of the invention can be easier to be it will be appreciated by those skilled in the art that protection scope of the present invention is made more explicit defining.
In the embodiment of the invention, receive and Graphics Processing illustrates main composition of the present invention and operation principle with the note of mobile phone.The SMS processing method that the present invention discloses and the mobile phone of corresponding announcement, mainly based on the Android platform, implementation framework layer and application layer are to processing and the demonstration of mobile phone ultralong short message on this platform.
As shown in Figure 1, in embodiments of the present invention, mobile phone comprises note receiving element 103, judging unit 104, processing unit 102, condition setup unit 101 and buffer unit 105, and mobile phone also comprises the display unit (not shown) in addition.
Note judging unit 104, mainly in the note processing procedure, be used for judging whether note meets the condition of all kinds of settings, comprise judging whether comprised the part that receives note in the long SMS database, judge the waiting period that whether the note that receives being in the first time-out time or the second time-out time, judge that whether the short message that receives receives, and carries out subsequent treatment for note processing unit 102.
Display unit then according to the result of note processing unit 102, is shown to the user with short message content and watches.Below in conjunction with concrete note treatment step and flow chart, the optimization process of ultralong short message is described in detail.
As shown in Figure 2, in the embodiment of the invention, being described in detail as follows of SMS processing method:
Mobile phone at first receives short message, confirm through judging, S01 receives a ultralong short message, then judging unit 104 is at first judged, this long SMS S02 whether some in the ultralong short message database of mobile phone, if judged result is yes, then continue to judge S03 whether the second time-out time the waiting period in.
As judge be not the second time-out time the waiting period in, then note processing unit 102 is carried out the new message information reporting that S031 will comprise this note, then judging unit 104 judges whether this short message of S032 receives, carry out S07 with the instruction of the interim note deletion in the ultralong short message database as receiving processing unit then 102, as do not receive then that S0321 is saved in note in the ultralong short message database, in order to follow-uply show for display unit.
As judgement be the second time-out time the waiting period in, then carry out S032 and judge whether this short message receives, as not being that then S0321 is saved in note in the ultralong short message database, in order to follow-uply show for display unit; Then carry out in this way S0322 and report the new message that comprises this note, and carry out S07 with the instruction of the interim note deletion in the ultralong short message database.
If judging unit 104 judges that the note that receives does not have in the ultralong short message database, then at first S0321 is saved in note in the ultralong short message database, then analyze the long SMS segments n that obtains according to processing unit 102, carry out S022 by condition setup unit 101 the second time-out time is set, adopt the formula of (n-1) * 20S to set among the present invention, also can set according to long SMS segments n and the note that has received hop count p, and the stand-by period also can not be take 20S as the cycle, setting such as 30S or 10S is latent period.Subsequent the second time-out time according to setting judges whether the second time-out time arrives, wait the second time-out time to arrive after, judging unit 104 continues S04 and judges whether note also exists, as otherwise the S041 end.
Also exist such as note, then S042 reports new message, then continues S032 by judging unit and judges whether to receive, and carries out S07 with the instruction of the interim note deletion in the ultralong short message database as receiving then by note processing unit 102; As do not receive and then carry out S06 by condition setup unit 101 the first time-out time is set, wait for that the first time-out time arrives, then processing unit 102 carries out S061 and deletes buffer memory in the first time-out time tabulation, carries out S07 with the instruction of the interim note deletion in the ultralong short message database again.Be 12 hours waiting period of herein the first time-out time, can certainly adjust as required.
At display terminal, the judged result that processing unit 102 receives according to note, the arrival of prompting new message, thus show.
The present invention sets by the condition to the note time of reception, is provided with the stand-by period, can not leak demonstration to guarantee long SMS, has also avoided because long SMS is received incomplete and complete unrealistic information; And the hop count that note splits added up, simultaneously according to the setting of dynamic adjustment the second time-out time of (n-p) * 20S, so that the processing of long SMS can fast reaction, and guaranteed flexibly the integrality of not losing and showing of note.By the improvement to the ccf layer in the Android platform and application layer, embedded the time-out time wait, realized long SMS reception optimization process and demonstration based on the mobile communication terminal of Android.
The above; it only is the specific embodiment of the present invention; but protection scope of the present invention is not limited to this; any those of ordinary skill in the art are in the disclosed technical scope of the present invention; variation or the replacement that can expect without creative work all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range that claims were limited.
Claims (10)
1. ultralong short message processing method comprises:
Receive and the analysis long SMS, determine the segments n of long SMS;
It is characterized in that, also comprise and judge a part that whether has comprised long SMS in the ultralong short message database;
A in this way, then judges whether as in the second time-out time, then to receive situation according to note and carry out subsequent treatment in the second time-out time of setting; As no, then report new short message;
B does not comprise this long SMS as judging in the ultralong short message database, then this long SMS is saved in and also sets accordingly the second time-out time in the ultralong short message database; After described the second time-out time arrives, as judge that this long SMS does not exist, then finish; As judge that this long SMS also exists, and then report new short message and judge whether this note receives, as receive, then delete the ephemeral data in the ultralong short message database; As do not receive, the first time-out time then is set, after the first time-out time arrives, delete buffer memory in the first time-out time tabulation and the ephemeral data in the ultralong short message database.
2. ultralong short message processing method according to claim 1 is characterized in that, described the first time-out time is 12 hours.
3. ultralong short message processing method according to claim 1 and 2 is characterized in that, imposing a condition of described the second time-out time is (n-1) * 20S.
4. ultralong short message processing method according to claim 3 is characterized in that, in the described steps A, report new short message after, also comprise judging whether short message receives, as receive, then delete the interim note in the ultralong short message database; As do not receive, the new short message that then will report is saved in the ultralong short message database.
5. ultralong short message processing method according to claim 3 is characterized in that, describedly receives situation according to note and carries out subsequent treatment and comprise: judge whether to receive, as do not receive then the long SMS of receiving is saved in the ultralong short message database; Then report new short message as receiving, then delete the interim note in the ultralong short message database.
6. a mobile communication terminal comprises the note receiving element, receives all kinds of short messages; Processing unit is processed the short message that receives, and determines the segments n of long SMS; Judging unit is according to all kinds of short messages of condition judgment of setting;
It is characterized in that, also comprise the condition setup unit, set all kinds of of judging unit and impose a condition, described judging unit is set with respectively the Rule of judgment of the first time-out time and the second time-out time;
Described judging unit is at first judged a part that whether has comprised the long SMS that receives in the ultralong short message database;
A, in this way, then the long SMS that receives of judgment unit judges is as in the second time-out time of setting, and then processing unit receives situation according to note and carries out subsequent treatment; The long SMS that receives such as judgment unit judges is not that then processing unit reports new short message in the second time-out time of setting;
B, as not comprising this long SMS in the judgment unit judges ultralong short message database, then processing unit is saved in this long SMS in the ultralong short message database, and the condition setup unit is set the second time-out time accordingly; After described the second time-out time arrives, as judge that this long SMS does not exist, then finish; As judge that this long SMS also exists, and then report new short message and judge whether this note receives, as receive, then delete the ephemeral data in the ultralong short message database; As do not receive, the first time-out time then is set, after the first time-out time arrives, delete buffer memory in the first time-out time tabulation and the ephemeral data in the ultralong short message database.
7. mobile communication terminal according to claim 6 is characterized in that, described the first time-out time is 12 hours.
8. according to claim 6 or 7 described mobile communication terminals, it is characterized in that imposing a condition of described the second time-out time is (n-1) * 20S.
9. mobile communication terminal according to claim 8 is characterized in that, in the described steps A, report new short message after, also comprise judging whether short message receives, as receive, then delete the interim note in the ultralong short message database; As do not receive, the new short message that then will report is saved in the ultralong short message database.
10. mobile communication terminal according to claim 8 is characterized in that, describedly receives situation according to note and carries out subsequent treatment and comprise: judge whether to receive, as do not receive then the long SMS of receiving is saved in the ultralong short message database; Then report new short message as receiving, then delete the interim note in the ultralong short message database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010111325.9A CN101820596B (en) | 2010-01-22 | 2010-01-22 | Ultralong short message processing method and mobile communication terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010111325.9A CN101820596B (en) | 2010-01-22 | 2010-01-22 | Ultralong short message processing method and mobile communication terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101820596A CN101820596A (en) | 2010-09-01 |
CN101820596B true CN101820596B (en) | 2013-01-09 |
Family
ID=42655491
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010111325.9A Expired - Fee Related CN101820596B (en) | 2010-01-22 | 2010-01-22 | Ultralong short message processing method and mobile communication terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101820596B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098641B (en) * | 2011-01-12 | 2016-08-03 | 中兴通讯股份有限公司 | Ultralong short message transmission/method of reseptance, Apparatus and system |
CN103037326B (en) * | 2011-09-30 | 2016-03-30 | 重庆重邮信科通信技术有限公司 | Long SMS processing method and device |
CN103906011A (en) * | 2014-02-27 | 2014-07-02 | 宇龙计算机通信科技(深圳)有限公司 | Data sending and receiving device and method |
CN106936977A (en) * | 2015-12-30 | 2017-07-07 | 深圳富泰宏精密工业有限公司 | Ultralong short message processing method and its mobile terminal |
CN106358164A (en) * | 2016-09-05 | 2017-01-25 | 中国联合网络通信集团有限公司 | Super-long short message receiving method and receiving terminal |
CN114567855B (en) * | 2022-03-09 | 2023-07-14 | 北京神州泰岳软件股份有限公司 | Long short message processing method and device and electronic equipment |
CN115297447B (en) * | 2022-09-28 | 2023-02-28 | 广州市玄武无线科技股份有限公司 | Long short message merging method, system, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1874550A (en) * | 2006-03-29 | 2006-12-06 | 华为技术有限公司 | Method, equipment and system for implementing sending super long short message in CDMA circuit domain |
CN101001413A (en) * | 2007-01-08 | 2007-07-18 | 宇龙计算机通信科技(深圳)有限公司 | Long-short message transmission method of CDMA network |
CN101478596A (en) * | 2009-01-21 | 2009-07-08 | 青岛海信移动通信技术股份有限公司 | Dual mode terminal and ultralong short message storage method |
-
2010
- 2010-01-22 CN CN201010111325.9A patent/CN101820596B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1874550A (en) * | 2006-03-29 | 2006-12-06 | 华为技术有限公司 | Method, equipment and system for implementing sending super long short message in CDMA circuit domain |
CN101001413A (en) * | 2007-01-08 | 2007-07-18 | 宇龙计算机通信科技(深圳)有限公司 | Long-short message transmission method of CDMA network |
CN101478596A (en) * | 2009-01-21 | 2009-07-08 | 青岛海信移动通信技术股份有限公司 | Dual mode terminal and ultralong short message storage method |
Also Published As
Publication number | Publication date |
---|---|
CN101820596A (en) | 2010-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101820596B (en) | Ultralong short message processing method and mobile communication terminal | |
CN105122914A (en) | Radio access network defined paging area | |
EP2509344A1 (en) | Method for transmitting and receiving multimedia information and terminal thereof | |
US20110016190A1 (en) | Method and apparatus for realizing message service | |
CN101931919A (en) | Long short message sending processing method and device, business gateway and communication system | |
CN102724646A (en) | Method and device for transmitting heartbeat information | |
CN101247569B (en) | Method and system for dispatching message, message center equipment | |
RU2673397C2 (en) | Terminal device, base station and method of communication of terminal device and base station | |
CN103368914A (en) | Method, apparatus and device for intercepting message | |
CN104159306A (en) | Method, device and system for controlling radio resources | |
CN104754767A (en) | State update method and equipment | |
CN103733581A (en) | Message processing method and base station | |
CN101594610A (en) | Trace session method for synchronous and device | |
CN102143440A (en) | Method and device for processing short message service | |
US20010049279A1 (en) | Method of optimizing the storage of information in a mobile radiocommunications terminal and a terminal for implementing the method | |
CN100372428C (en) | Method for registrating roaming region position of mobile terminal | |
CN102480495A (en) | Processing method and system of protocol version marked between network elements | |
KR101677524B1 (en) | Method, base station, and network system for automatic x2 configuration deletion | |
CN102281516B (en) | Short message processing method and short message processing terminal | |
CN112448932B (en) | Message processing method and device | |
CN101577874B (en) | Method for processing short massage and short massage service center | |
CN102256237B (en) | Tracking session synchronization method and device | |
CN106817680B (en) | Method for sending push short message, short message center and system | |
CN101925126B (en) | Method, system and device for sending data packet | |
CN1868226A (en) | Method, system and program product for regulating data messaging by mobile stations in a wireless network |
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: 20130109 |