CN101345945A - Short message storage method and apparatus - Google Patents
Short message storage method and apparatus Download PDFInfo
- Publication number
- CN101345945A CN101345945A CNA2008101188421A CN200810118842A CN101345945A CN 101345945 A CN101345945 A CN 101345945A CN A2008101188421 A CNA2008101188421 A CN A2008101188421A CN 200810118842 A CN200810118842 A CN 200810118842A CN 101345945 A CN101345945 A CN 101345945A
- Authority
- CN
- China
- Prior art keywords
- short message
- short
- message
- end mark
- memory space
- 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.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a short-message storing method and device, wherein the method comprises: receiving a first short-message and writing the first short-message from the starting position in the short-message storage space set on a platform and writing an end mark after the first short-message; receiving a second short-message and writing the second short-message from the end mark as starting position in the residual short-message storage space. The short-message storing method divides one storage space into two sub storage spaces based on CDMA QSC platform of QUALCOMM, and respectively stores one short-message method in two sub storage spaces and the short-message storage increases twice without changing the total storage space, so as to conquer the detect that the short-message storing method in the prior technique occupies more flash memory and the availability of flash memory and the user experience are also increased.
Description
Technical field
The invention belongs to the communications field, especially belong to a kind of short message storage method and device.
Background technology
Along with progress of science and technology, in the process of exploitation embedded product, more and more pay attention to cost, that promptly how to reduce flash memory takes up room, reduces taking up room of software code etc.And a lot of manufacturers are also studying and how to compress or reduce taking up room of flash memory.
For terminal, short message (Short-Message) module is unusual important function module.In general, memory space is very limited on subscriber identification module (User Identity Model is called for short UIM) card or client identification module (Subscriber Identity Model the is called for short SIM) card, can only support 40 short messages at most.Existing terminal makes terminal can store hundreds of bar or thousands of short messages in order to improve user's experience by the transformation to terminal.But directly can cause the rising of hardware cost to the transformation of terminal.
According to existing standard, promptly at code division multiple access (the Code DivisionMultiple Access of high pass (Qualcomm) company, be called for short CDMA) high pass single-chip (QUALCOMM Single Chip, abbreviation QSC) on the platform, article one, the short message occupation space is 389byte, if the memory space of short message is risen to 100, then be equivalent on file system, increase the space of 100*389byte=38.9k, and corresponding memory headroom needs also to increase; If the memory space of short message is risen to 1000, then is equivalent to increase the space of 1000*389byte=389k.Can take more flash memory space like this, thereby improve the hardware cost of terminal, and be a kind of waste for the limited embedded system of memory space.
Summary of the invention
The embodiment of the invention provides a kind of short message storage method and device, takies more flash memory space to overcome existing short message storage method, thereby has improved the memory space of short message and improved the flash memory utilance.
The embodiment of the invention provides a kind of short message storage method, comprising: receive first short message, begin to write described first short message from original position in the short message memory space that platform is set, and write end mark in the described first short message back; Receiving second short message, is that original position writes second short message with described end mark in remaining platform is set the short message memory space.
The embodiment of the invention also provides a kind of short message storage device, comprising: receiver module is used to receive first short message and second short message; First writing module is used for beginning to write described first short message from original position in the short message memory space that platform is set; Finish module, and write end mark in the described first short message back; Second writing module is that original position writes described second short message with described end mark in remaining platform is set the short message memory space.
Present embodiment is based on the CDMA QSC platform of Qualcomm, set the short message memory space by the platform that will have fixed size and be divided into two sub spaces, and the method for the bar short message that storage priority respectively receives in two sub spaces, under the prerequisite that does not change total memory space, the short message memory space has been increased by one times, thereby overcome the defective that short message storage method in the prior art takies more flash memory, and improved the utilance of flash memory, also improved user experience simultaneously.
Description of drawings
Fig. 1 is the schematic flow sheet of the short message storage method of the embodiment of the invention;
Fig. 2 is the structural representation of the short message storage device of the embodiment of the invention.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Embodiment one
On the CDMA QSC platform based on Qualcomm (Qualcomm), the short message memory space is arranged to 389byte, and the short message memory space be provided with an end mark at last, to separate two adjacent short message memory spaces.Fig. 1 is the schematic flow sheet of the short message storage method of the embodiment of the invention, as shown in Figure 1, comprises as follows based on the short message storage method concrete steps of the CDMA QSC platform of Qualcomm:
Step 101 receives first short message, begins to write described first short message from original position in the short message memory space that platform is set, and writes end mark in the short message memory space first short message back that described platform is set.
According to the regulation of agreement, the maximum content of text of the short message that the user can import is 140 bytes, also should be included in each parameter section of using in the protocol transmission process in addition.According to the regulation of agreement, the fixing size of data of distributing for a short message is: 0xDB5F-0xD9DA=0x185=389byte.But in the actual storage process, really the size of data that can use is: 0xDA95-0xD9DA=0xBB=187byte, adding end mark is 188byte.Therefore when a short message being stored in the fixed-size memory space of agreement regulation according to prior protocols, in each memory space, there be more than 200 byte to be wasted.
The short message storage method of present embodiment, CDMA QSC platform based on Qualcomm, the memory space of short message is set at 194 bytes, with respect to 389 bytes of memory spaces of an original short message, under the prerequisite that does not change total memory space, the short message memory space has been increased by one times, be specially: will be stored in 1000 short messages that size is 1000*389byte=389k in EFS district originally, the memory space that only needs to take 1000*194byte=194k when storing according to the disclosed storage means of present embodiment promptly can be stored the memory space of having saved 195k under the prerequisite of short message of equal number.And according to experimental results demonstrate of inventor, in actual application, to transmission, reception and the storage of short message without any influence.Short message storage method takies the defective of more flash memory in the prior art thereby overcome, and has improved the utilance of flash memory, has also improved user experience simultaneously.
In the present embodiment, end mark is specially: " 0xFE ", and this end mark can be increased in any one byte between 201 bytes of the 188th byte to the.
Embodiment two
Fig. 2 is the structural representation of the short message storage device of the embodiment of the invention.As shown in Figure 2, the short message storage device based on the CDMA QSC platform of Qualcomm specifically comprises as follows:
Finish module 13, and write end mark in the described first short message back.
Present embodiment is divided into two sub spaces by the memory space that will have fixed size, and the method for the bar short message that storage priority respectively receives in two sub spaces, under the prerequisite that does not change total memory space, the short message memory space has been increased by one times, thereby overcome the defective that short message storage method in the prior art takies more flash memory, and improved the utilance of flash memory, also improved user experience simultaneously.
In the present embodiment, end mark is specially: " 0xFE ".Further, end mark can be in any one byte between 201 bytes of the 188th byte to the.
Memory space can be arranged to the subspace that size is 195 bytes in an embodiment of the present invention, and be end mark still with " 0xFE ".With respect to 389 bytes of memory spaces of an original short message, can save 194 bytes.A large amount of experiments according to the inventor show, can normally move when receiving new short message, read or preserving rough draft, and still can adapt to present running environment under other each protocol parameter sections prerequisite of not having to change.
In an embodiment of the present invention read module can also be set, be used for according to obtaining the initial address of note, according to this address reading data until read till the end mark.
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 put 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 (6)
1, a kind of short message storage method is characterized in that comprising:
Receive first short message, in the short message memory space that platform is set, begin to write described first short message, and write end mark in the described first short message back from original position;
Receiving second short message, is that original position writes second short message with described end mark in remaining platform is set the short message memory space.
2, short message storage method according to claim 1 is characterized in that the described end mark that writes in the described first short message back is the end mark that writes between 201 bytes of the 188th byte to the.
3, short message storage method according to claim 1 and 2 is characterized in that described end mark is specially: " 0xFE ".
4, a kind of short message storage device is characterized in that comprising:
Receiver module is used to receive first short message and second short message;
First writing module is used for beginning to write described first short message from original position in the short message memory space that platform is set;
Finish module, and write end mark in the described first short message back;
Second writing module is that original position writes described second short message with described end mark in remaining platform is set the short message memory space.
5, short message storage device according to claim 4 is characterized in that described end mark is specially: " 0xFE ".
6, short message storage device according to claim 4 is characterized in that described end mark is in any one byte between 201 bytes of the 188th byte to the.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101188421A CN101345945A (en) | 2008-08-25 | 2008-08-25 | Short message storage method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101188421A CN101345945A (en) | 2008-08-25 | 2008-08-25 | Short message storage method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101345945A true CN101345945A (en) | 2009-01-14 |
Family
ID=40247808
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008101188421A Pending CN101345945A (en) | 2008-08-25 | 2008-08-25 | Short message storage method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101345945A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101883181A (en) * | 2010-06-18 | 2010-11-10 | 中兴通讯股份有限公司 | Method and terminal for processing short message |
CN102523327A (en) * | 2011-12-27 | 2012-06-27 | 北京握奇数据系统有限公司 | Short message processing method, apparatus thereof and intelligent card |
WO2013008248A1 (en) * | 2011-05-25 | 2013-01-17 | Madaiah Vinod Kumar | Method and system for exchanging content among communication entities over communication network |
CN102055833B (en) * | 2009-10-31 | 2014-04-02 | 比亚迪股份有限公司 | Method of event record storage for low-end mobile phone by using SIM card |
-
2008
- 2008-08-25 CN CNA2008101188421A patent/CN101345945A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055833B (en) * | 2009-10-31 | 2014-04-02 | 比亚迪股份有限公司 | Method of event record storage for low-end mobile phone by using SIM card |
CN101883181A (en) * | 2010-06-18 | 2010-11-10 | 中兴通讯股份有限公司 | Method and terminal for processing short message |
WO2011157019A1 (en) * | 2010-06-18 | 2011-12-22 | 中兴通讯股份有限公司 | Method and terminal for processing short message |
US9271125B2 (en) | 2010-06-18 | 2016-02-23 | Zte Corporation | Method and terminal for processing short message |
WO2013008248A1 (en) * | 2011-05-25 | 2013-01-17 | Madaiah Vinod Kumar | Method and system for exchanging content among communication entities over communication network |
CN102523327A (en) * | 2011-12-27 | 2012-06-27 | 北京握奇数据系统有限公司 | Short message processing method, apparatus thereof and intelligent card |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102629234B (en) | Fast retrieval method for data of built-in Flash of single chip microcomputer | |
CN102609741B (en) | A kind of method of exchanges data between mobile device and inside and outside portion storage card thereof | |
CN104778222A (en) | Media library establishing and updating method on basis of USB (Universal Serial Bus) storage equipment | |
CN105867836A (en) | Storage management method and apparatus as well as stream media system | |
CN100499682C (en) | Method for grouping yellow pages contact person record in user identification card | |
CN101345945A (en) | Short message storage method and apparatus | |
CN103049224A (en) | Method, device and system for importing data into physical tape | |
CN111143290A (en) | Memory management method, system, equipment and computer readable storage medium | |
CN103136215A (en) | Data read-write method and device of storage system | |
CN102103596A (en) | Method for implementing file system in embedded system | |
CN100544471C (en) | The method and system of the memory space of expansion portable terminal | |
CN102760075A (en) | Method and system for realizing application configuration of intelligent card | |
CN104808953A (en) | Device and method for controlling data storage and mobile terminal | |
CN101187936B (en) | A log data storage method and device | |
CN101022611A (en) | Mobile terminal addressbook information leading-out and leading-in method | |
CN104123952A (en) | Cache-free disc burning method and device | |
CN101997977A (en) | Method and device for enabling mobile terminal and smart card to be compatible with different network systems | |
CN102143440A (en) | Method and device for processing short message service | |
CN104050251A (en) | File management method and management system | |
CN101951361B (en) | Method for accessing intelligent card and server | |
CN110187837B (en) | File access method, device and file system | |
CN110288340B (en) | Data set storage method based on Java intelligent contract | |
CN1937812A (en) | Data transmission method and device between user identification module and mobile terminal | |
CN102708107A (en) | Method and system for storing appended files | |
CN109933291B (en) | SRAM data processing method, device, equipment and 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 | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20090114 |