US9271125B2 - Method and terminal for processing short message - Google Patents

Method and terminal for processing short message Download PDF

Info

Publication number
US9271125B2
US9271125B2 US13/704,946 US201013704946A US9271125B2 US 9271125 B2 US9271125 B2 US 9271125B2 US 201013704946 A US201013704946 A US 201013704946A US 9271125 B2 US9271125 B2 US 9271125B2
Authority
US
United States
Prior art keywords
short message
index
file
storage address
message
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, expires
Application number
US13/704,946
Other versions
US20130095866A1 (en
Inventor
Cuihong Yang
Xiaogang Pei
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Publication of US20130095866A1 publication Critical patent/US20130095866A1/en
Assigned to ZTE CORPORATION reassignment ZTE CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: PEI, XIOGANG, YANG, CUIHONG
Application granted granted Critical
Publication of US9271125B2 publication Critical patent/US9271125B2/en
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • H04M1/72552
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F17/30091

Definitions

  • the disclosure relates to the field of mobile communication, and in particular to a method and a terminal for processing short message in an intelligent subscriber identity card.
  • the short message service has become a popularized service ranked second in frequency of use of all mobile communication services, because of the low expense and convenience in communication.
  • Many value-added services, such as weather forecast and information delivery, of operators are increasingly introduced by taking the advantages of short message.
  • SIM Subscriber Identity Module
  • the structure of the 6F3C file of the currently used SIM cards, which is used for storing short message is the linear fixed-length file. It means that the record length of each short message of the 6F3C file is fixed.
  • data lengths of short messages are different. If space is reserved for each short message according to a fixed length, then the actually reserved space cannot be fully utilized because of different data length of each short message, thereby reducing the number of short messages actually stored in limited storage space, and inevitably wasting resources.
  • the disclosure mainly provides a method and a terminal for processing short message, for improving short message storage capacity of the intelligent subscriber identity card, such as the SIM card in mobile terminal to save resources.
  • a method for processing short message comprising steps of:
  • the index identifier comprises: the index identifier comprises: an index number, an index storage address corresponding to the index number and a data length of a short message corresponding to the index number.
  • creating the index identifier corresponding to the short message comprises:
  • obtaining the index number of the short message and the index storage address of the short message according to the index file comprises:
  • storing the short message in the preset message file according to the index identifier comprises:
  • the method further comprises:
  • the method further comprises:
  • a terminal for processing short message which comprises:
  • a receiving module configured to receive a short message
  • a creating module configured to create an index identifier corresponding to the short message
  • a storing module configured to store the index identifier in a preset index file, and store the short message in a preset message file according to the index identifier.
  • the creating module comprises:
  • a first searching unit configured to search the index file
  • an obtaining unit configured to obtain an index number of the short message and an index storage address of the short message according to the index file, and obtain a data length of the short message.
  • the obtaining unit comprises:
  • an index number obtaining subunit configured to sequentially add an index number after a previous index number in the index file to obtain the index number of the short message
  • an index storage address obtaining subunit configured to add a data length of a short message corresponding to the previous index number to an index storage address corresponding to the previous index number to obtain the index storage address of the short message.
  • the storing module comprises:
  • a second searching unit configured to search the message file
  • an shifting subunit configured to shift forward in the message file by the index storage address of the short message in the index identifier
  • a storing subunit configured to store the short message in the message file according to the index storage address of the short message.
  • the terminal further comprises:
  • a searching module configured to search, according to an index number of a short message to be deleted, for a corresponding index storage address and a corresponding data length of the short message in the index file;
  • a deleting module configured to delete, in the message file, bytes of the corresponding data length of the short message at the corresponding index storage address, and delete the corresponding index storage address and the corresponding data length of the short message in the index file.
  • the shifting subunit is further configured to, after the short message to be deleted is deleted, shift an address of a short message after the deleted short message backward by the data length of the deleted short message, and shift backward the index number of the deleted short message in the index file.
  • the method and terminal for processing short message of the disclosure store the short message in storage space of mobile terminal according to the actual data length of the short message, and delete the short message from storage space of mobile terminal according to the actual data length of the short message. Thereby, the disclosure can store as many short messages as possible in the limited storage space.
  • the disclosure improves the utilization ratio of the storage space of mobile terminal, saves resources, and provides convenience for manufactures and users of mobile terminal.
  • FIG. 1 shows a flowchart of an embodiment of a method for processing short message of the disclosure
  • FIG. 2 shows a specific flowchart of the process of creating the index identifier corresponding to the short message in the method for processing short message shown in FIG. 1 ;
  • FIG. 3 shows a specific flowchart of the process of obtaining the index number of the short message and the index storage address of the short message according to the index file in the method for processing short message shown in FIG. 2 ;
  • FIG. 4 shows a specific flowchart of the process of storing the short message in the preset message file according to the index identifier in the method for processing short message shown in FIG. 1 ;
  • FIG. 5 shows a flowchart of another embodiment of the method for processing short message of the disclosure
  • FIG. 6 shows a structure diagram of an embodiment of the terminal for processing short message of the disclosure
  • FIG. 7 shows a specific structure diagram of the creating module of the terminal for processing short message shown in FIG. 6 ;
  • FIG. 8 shows a specific structure diagram of the obtaining unit in the creating module of the terminal for processing short message shown in FIG. 7 ;
  • FIG. 9 shows a specific structure diagram of the storing module of the terminal for processing short message shown in FIG. 6 ;
  • FIG. 10 shows a structure diagram of another embodiment of the terminal for processing short message of the disclosure.
  • the short messages are stored in the file 6F3C in the directory 7F10 of the SIM card, wherein the file is named EFSMS, the file identifier is 6F3C, and the file structure is of the linear fixed-length type.
  • the solution of embodiments of the disclosure is mainly: in mobile terminal, storing the received short message according to the actual data length of the short message, so as to improve the utilization ratio of storage space of the mobile terminal.
  • an embodiment of the disclosure provides a method for processing short message, which comprises:
  • Step 101 receiving the short message, and creating the index identifier corresponding to the short message;
  • Step 102 storing the index identifier in the preset index file.
  • Step 103 storing the short message in the preset message file according to index identifier.
  • the SIM card is taken as the example.
  • the mobile terminal stores the short message through the SIM card
  • the message file for storing the short message is created in the SIM card
  • the index file for storing the index identifier corresponding to the short message is created, wherein the index identifier comprises: the index number of the short message, the index storage address corresponding to the index number and the data length of the short message corresponding to the index number. That is to say, the index identifiers corresponding to different short messages are stored in the index file.
  • an index number is obtained by sequentially adding an index number after the previous index number, and then the data length of the short message corresponding to the previous index number is added in the index storage address corresponding to the previous index number in the index file to obtain the index storage address corresponding to this index number.
  • the data length of the new short message is recorded in the index file.
  • it shifts in the message file to this index storage address, and the data content of the short message is stored at the index storage address.
  • an initial index storage address is assigned to the index file by a SIM card processor, then a shifting amount of address is calculated according to the length occupied by each short message data.
  • Each short message is correspondingly stored in the message file.
  • creating the index identifier corresponding to the short message in step 101 can further comprise:
  • Step 1011 searching the index file
  • Step 1012 obtaining the index number of the short message and the index storage address of the short message according to the index file;
  • Step 1013 obtaining the data length of the short message.
  • step 1012 can further comprise:
  • Step 10121 adding an index number sequentially after the previous index number in the index file to obtain the index number of the short message
  • Step 10122 adding the data length of the short message corresponding to the previous index number in the index storage address corresponding to the previous index number to obtain the index storage address of the short message.
  • step 103 can further comprise:
  • Step 1031 searching the message file
  • Step 1032 shifting in the message file to the index storage address of the short message in the index identifier.
  • Step 1033 storing the short message in the message file according to the index storage address of the short message.
  • the embodiment names the message file EF EXT — SMS .
  • the file identifier can be, for instance, 6F8C.
  • the storage location of file can be, for instance, in the directory 7F10 too.
  • the file structure of EF EXT — SMS is of transparent type. Size of the file is reasonably set according to the actual capacity of the SIM card. The description herein takes the example of 50 k bytes. The received short messages are stored one by one, according to actual size.
  • the index file for storing the index identifier can be named EF SMS — INDEX , and the file identifier can be, for instance, 6F8D. It only needs to be distinguished from all other related files in the SIM card.
  • the storage location of the file can be, for instance, in the directory 7F10 too.
  • the file structure of EF SMS — INDEX is of linear fixed-length type. Size of the EF SMS — INDEX file is reasonably set according to actual capacity of the SIM card.
  • Each record, namely each index identifier of the EF SMS — INDEX file sequentially comprises three parts: the index number, the index storage address of the short message in the EF EXT — SMS file corresponding to the index number, and the data length of the short message corresponding to the index number, namely the data byte length of the short message corresponding to the index number.
  • index records namely three index identifiers, in the EF SMS — INDEX file.
  • Storage address of the short message 1 corresponding to the index number 1 starts from 0x0, and byte length of the short message 1 is 0x20 bytes.
  • the short message 2 corresponding to the index number 2 is stored after the short message 1 .
  • Storage address of the short message 2 starts from 0x0020, and byte length of the short message 2 is 0x55 bytes.
  • the short message 3 corresponding to the index number 3 is stored after the short message 2 .
  • Storage address of the short message 3 starts from 0x0075, and byte length of the short message 3 is 0x32 bytes.
  • the three short messages are correspondingly stored in the EF EXT — SMS file.
  • an index number which is 4 is added in the EF SMS — INDEX file.
  • the newly added short message is named the short message 4 .
  • the length of the new short message 4 is recorded in the EF SMS — INDEX file, supposing that length of the short message 4 is 0x16.
  • the method for processing short message of the embodiment can be compatible with related SIM cards and mobile terminals.
  • corresponding record number of the corresponding short message in the file 6F3C can be added in the index identifiers of the index file EF EXT — SMS .
  • a synchronized mode can be adopted to select a record number which is not occupied in the EF SMS file of the related art to store the short message 4 , and the corresponding record number of the EF SMS file is stored in the EF EXT — SMS file. Therefore, the method for storing short message of the embodiment can be used in related SIM cards and mobile terminals, for achieving the purpose of being compatible.
  • the embodiment stores the short message in storage space of mobile terminal according to the actual data length of the short message, which breaks the limitation in the related art that the short message file is stored according to fixed length.
  • the present solution efficiently utilizes storage space of the SIM card used in mobile terminal, stores as many short messages as possible in limited storage space, improves the utilization ratio of storage space of mobile terminal, saves resources, and provides convenience for manufactures and users of mobile terminals.
  • the method for processing short message of the embodiment can be compatible with related SIM cards and mobile terminals, and related SIM cards and mobile terminals can still perform processes, such as storage of short messages, using the 6F3C file structure as usual.
  • another embodiment of the disclosure provides a method for processing short message. Based on the above embodiment, after step 103 , the method can further comprise:
  • Step 104 searching for the corresponding index storage address and the data length of the corresponding short message in the index file, according to the index number of the short message to be deleted;
  • Step 105 deleting, from the message file, bytes of the data length of the corresponding short message at the corresponding index storage address;
  • Step 106 deleting the corresponding index storage address and the data length of the corresponding short message from the index file;
  • Step 107 after the short message to be deleted is deleted, shifting the address of short message after the deleted short message backward by the data length of the deleted short message;
  • Step 108 shifting backward the index number of the deleted short message in the index file.
  • the embodiment stores the short message in storage space of mobile terminal according to the actual data length of the short message. Based on that, the embodiment can perform process of deletion of the short message.
  • This solution breaks the limitation in the related art that the short message file is stored according to fixed length, efficiently utilizes storage space of the SIM card used in mobile terminal, stores as many short messages as possible in limited storage space, improves the utilization ratio of storage space of mobile terminal, saves resources, and provides convenience for manufactures and users of mobile terminals.
  • the method for processing short message of the embodiment can be compatible with related SIM cards and mobile terminals, and related SIM cards and mobile terminals can still perform processes, such as storage of short message, using the 6F3C file structure as usual.
  • an embodiment of the disclosure provides a terminal for processing short message, which can comprise:
  • a receiving module 601 configured to receive the short message
  • a creating module 602 configured to create the index identifier corresponding to the short message
  • a storing module 603 configured to store the index identifier in the preset index file, and store the short message in the preset message file according to the index identifier.
  • the creating module 602 can further comprise:
  • a first searching unit 6021 configured to search the index file
  • an obtaining unit 6022 configured to obtain the index number of the short message and the index storage address of the short message according to the index file, and obtain the data length of the short message.
  • the obtaining unit 6022 can further comprise:
  • an index number obtaining subunit 60221 configured to sequentially add an index number after the previous index number in the index file to obtain the index number of the short message
  • an index storage address obtaining subunit 60222 configured to add the data length of the short message corresponding to the previous index number in the index storage address corresponding to the previous index number to obtain the index storage address of the short message.
  • the storing module 603 can further comprise:
  • a second searching unit 6031 configured to search the message file
  • a shifting subunit 6032 configured to shift in the message file to the index storage address of the short message in the index identifier
  • a storing subunit 6033 configured to store the short message in the message file according to the index storage address of the short message.
  • the terminal can further comprise:
  • a searching module 604 configured to search for the corresponding index storage address and the data length of the corresponding short message in the index file, according to the index number of the short message to be deleted;
  • a deleting module 605 configured to delete, from the message file, bytes of the data length of the corresponding short message at the corresponding index storage address, and delete the corresponding index storage address and the data length of the corresponding short message from the index file.
  • the shifting subunit 6032 is further configured to, after the short message to be deleted is deleted, shift addresses of short messages after the deleted short message backward by the data length of the deleted short message, and shift backward the index number of the deleted short message in the index file.
  • the terminal of the embodiment can be the intelligent subscriber identity card with functions of storing short message, comprising SIM card, UIM card, USIM card or PIM card and so on.
  • the embodiment of the disclosure performs processes, such as storage, deletion and copy, to the short message in storage space of mobile terminal according to the actual data length of the short message, and stores as many short messages as possible in limited storage space.
  • this solution breaks the limitation in the related art that the short message file is stored according to fixed length, efficiently utilizes storage space of the SIM card used in mobile terminal, stores as many short messages as possible in limited storage space, improves the utilization ratio of storage space of mobile terminal, saving resources, and provides convenience for manufactures and users of mobile terminals.
  • the method for processing short message of the embodiment can be compatible with related SIM cards and mobile terminals, and related SIM cards and mobile terminals can still perform processes, such as storage, deletion and copy, to the short message using the 6F3C file structure as usual.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Method and terminal for processing short message are provided, wherein the method includes: when a short message is received, an index identifier corresponding to the short message is created, and the index identifier is stored into a preset index file, and the short message is stored into a preset message file according to the index identifier. The method performs processes to short message in storage space of mobile terminal according to actual data length of short message, and stores as many short messages as possible in limited storage space.

Description

FIELD OF THE INVENTION
The disclosure relates to the field of mobile communication, and in particular to a method and a terminal for processing short message in an intelligent subscriber identity card.
BACKGROUND OF THE INVENTION
At present, with the development of mobile communication technology, the short message service has become a popularized service ranked second in frequency of use of all mobile communication services, because of the low expense and convenience in communication. Many value-added services, such as weather forecast and information delivery, of operators are increasingly introduced by taking the advantages of short message.
Therefore, the importance of the function and method of storing the short message to the mobile terminal is self-evident. The memory of mobile terminal itself can store short message. Nonetheless, because a Subscriber Identity Module (SIM) card has the unique feature of being replaceable and pluggable, users prefer to store short message in the SIM card.
According to requirement of the GSM11.11 specification, the structure of the 6F3C file of the currently used SIM cards, which is used for storing short message, is the linear fixed-length file. It means that the record length of each short message of the 6F3C file is fixed. However, in practice, data lengths of short messages are different. If space is reserved for each short message according to a fixed length, then the actually reserved space cannot be fully utilized because of different data length of each short message, thereby reducing the number of short messages actually stored in limited storage space, and inevitably wasting resources.
SUMMARY OF THE INVENTION
The disclosure mainly provides a method and a terminal for processing short message, for improving short message storage capacity of the intelligent subscriber identity card, such as the SIM card in mobile terminal to save resources.
According to an aspect of the disclosure, a method for processing short message is provided, comprising steps of:
receiving a short message, and creating an index identifier corresponding to the short message;
storing the index identifier in a preset index file; and
storing the short message in a preset message file according to the index identifier.
Furthermore, the index identifier comprises: the index identifier comprises: an index number, an index storage address corresponding to the index number and a data length of a short message corresponding to the index number.
Furthermore, creating the index identifier corresponding to the short message comprises:
searching the index file;
obtaining an index number of the short message and an index storage address of the short message according to the index file; and
obtaining a data length of the short message.
Furthermore, obtaining the index number of the short message and the index storage address of the short message according to the index file comprises:
adding an index number sequentially after a previous index number in the index file to obtain the index number of the short message; and
adding a data length of a short message corresponding to the previous index number to an index storage address corresponding to the previous index number to obtain the index storage address of the short message.
Furthermore, storing the short message in the preset message file according to the index identifier comprises:
searching the message file;
shifting forward in the message file by the index storage address of the short message in the index identifier; and
storing the short message in the message file according to the index storage address of the short message.
Furthermore, after storing the short message in the preset message file according to the index identifier, the method further comprises:
searching, according to an index number of a short message to be deleted, for a corresponding index storage address and a corresponding data length of the short message in the index file;
deleting, in the message file, bytes of the corresponding data length of the short message at the corresponding index storage address; and
deleting the corresponding index storage address and the corresponding data length of the short message in the index file.
Furthermore, after deleting the corresponding index storage address and the corresponding data length of the short message in the index file, the method further comprises:
after the short message to be deleted is deleted, shifting an address of a short message after the deleted short message backward by the data length of the deleted short message;
shifting backward the index number of the deleted short message in the index file.
According to another aspect of the disclosure, a terminal for processing short message is provided, which comprises:
a receiving module, configured to receive a short message;
a creating module, configured to create an index identifier corresponding to the short message; and
a storing module, configured to store the index identifier in a preset index file, and store the short message in a preset message file according to the index identifier.
Furthermore, the creating module comprises:
a first searching unit, configured to search the index file; and
an obtaining unit, configured to obtain an index number of the short message and an index storage address of the short message according to the index file, and obtain a data length of the short message.
Furthermore, the obtaining unit comprises:
an index number obtaining subunit, configured to sequentially add an index number after a previous index number in the index file to obtain the index number of the short message; and
an index storage address obtaining subunit, configured to add a data length of a short message corresponding to the previous index number to an index storage address corresponding to the previous index number to obtain the index storage address of the short message.
Furthermore, the storing module comprises:
a second searching unit, configured to search the message file;
an shifting subunit, configured to shift forward in the message file by the index storage address of the short message in the index identifier; and
a storing subunit, configured to store the short message in the message file according to the index storage address of the short message.
Furthermore, the terminal further comprises:
a searching module, configured to search, according to an index number of a short message to be deleted, for a corresponding index storage address and a corresponding data length of the short message in the index file; and
a deleting module, configured to delete, in the message file, bytes of the corresponding data length of the short message at the corresponding index storage address, and delete the corresponding index storage address and the corresponding data length of the short message in the index file.
Furthermore, the shifting subunit is further configured to, after the short message to be deleted is deleted, shift an address of a short message after the deleted short message backward by the data length of the deleted short message, and shift backward the index number of the deleted short message in the index file.
The method and terminal for processing short message of the disclosure store the short message in storage space of mobile terminal according to the actual data length of the short message, and delete the short message from storage space of mobile terminal according to the actual data length of the short message. Thereby, the disclosure can store as many short messages as possible in the limited storage space. The disclosure improves the utilization ratio of the storage space of mobile terminal, saves resources, and provides convenience for manufactures and users of mobile terminal.
BRIEF DESCRIPTION OF THE DRAWINGS
The drawings described herein are used for providing a further understanding of the disclosure, and constitute a part of the application. The schematic embodiments of the disclosure and the description thereof are used for illustrating the disclosure and are not intended to form improper limit to the disclosure. In the drawings:
FIG. 1 shows a flowchart of an embodiment of a method for processing short message of the disclosure;
FIG. 2 shows a specific flowchart of the process of creating the index identifier corresponding to the short message in the method for processing short message shown in FIG. 1;
FIG. 3 shows a specific flowchart of the process of obtaining the index number of the short message and the index storage address of the short message according to the index file in the method for processing short message shown in FIG. 2;
FIG. 4 shows a specific flowchart of the process of storing the short message in the preset message file according to the index identifier in the method for processing short message shown in FIG. 1;
FIG. 5 shows a flowchart of another embodiment of the method for processing short message of the disclosure;
FIG. 6 shows a structure diagram of an embodiment of the terminal for processing short message of the disclosure;
FIG. 7 shows a specific structure diagram of the creating module of the terminal for processing short message shown in FIG. 6;
FIG. 8 shows a specific structure diagram of the obtaining unit in the creating module of the terminal for processing short message shown in FIG. 7;
FIG. 9 shows a specific structure diagram of the storing module of the terminal for processing short message shown in FIG. 6; and
FIG. 10 shows a structure diagram of another embodiment of the terminal for processing short message of the disclosure.
DETAILED DESCRIPTION OF THE EMBODIMENTS
It should be noted that the embodiments and features in the embodiments in the application can be combined with each other if not conflicting. The disclosure is described hereinafter in detail with reference to the drawings and embodiments.
In the related art, the short messages are stored in the file 6F3C in the directory 7F10 of the SIM card, wherein the file is named EFSMS, the file identifier is 6F3C, and the file structure is of the linear fixed-length type. The length of each record of the short message is 176 bytes, the storage limit of records is 255, and each short message occupies one record length fixedly. If a short message only has a length of 60 bytes, then the short message wastes space of 176-60=16 bytes. If all the records are added up, more space is wasted. When the last one is to be stored, it is possible that it may not be stored, even there is space left.
The solution of embodiments of the disclosure is mainly: in mobile terminal, storing the received short message according to the actual data length of the short message, so as to improve the utilization ratio of storage space of the mobile terminal.
As shown in FIG. 1, an embodiment of the disclosure provides a method for processing short message, which comprises:
Step 101: receiving the short message, and creating the index identifier corresponding to the short message;
Step 102: storing the index identifier in the preset index file; and
Step 103: storing the short message in the preset message file according to index identifier.
In the embodiment, the SIM card is taken as the example. When the mobile terminal stores the short message through the SIM card, first the message file for storing the short message is created in the SIM card, and the index file for storing the index identifier corresponding to the short message is created, wherein the index identifier comprises: the index number of the short message, the index storage address corresponding to the index number and the data length of the short message corresponding to the index number. That is to say, the index identifiers corresponding to different short messages are stored in the index file.
When a new short message is to be stored in the SIM card, first an index number is obtained by sequentially adding an index number after the previous index number, and then the data length of the short message corresponding to the previous index number is added in the index storage address corresponding to the previous index number in the index file to obtain the index storage address corresponding to this index number. At the same time, the data length of the new short message is recorded in the index file. Then, according to the calculated index storage address of the new short message, it shifts in the message file to this index storage address, and the data content of the short message is stored at the index storage address. In this case, in the SIM card, an initial index storage address is assigned to the index file by a SIM card processor, then a shifting amount of address is calculated according to the length occupied by each short message data. Each short message is correspondingly stored in the message file.
Preferably, as shown in FIG. 2, creating the index identifier corresponding to the short message in step 101 can further comprise:
Step 1011: searching the index file;
Step 1012: obtaining the index number of the short message and the index storage address of the short message according to the index file; and
Step 1013: obtaining the data length of the short message. Preferably, as shown in FIG. 3, step 1012 can further comprise:
Step 10121: adding an index number sequentially after the previous index number in the index file to obtain the index number of the short message; and
Step 10122: adding the data length of the short message corresponding to the previous index number in the index storage address corresponding to the previous index number to obtain the index storage address of the short message.
Preferably, as shown in FIG. 4, step 103 can further comprise:
Step 1031: searching the message file;
Step 1032: shifting in the message file to the index storage address of the short message in the index identifier; and
Step 1033: storing the short message in the message file according to the index storage address of the short message.
The process of storing the short message of the embodiment is illustrated below with specific examples.
In order to distinguish from the related EFSMS file, the embodiment names the message file EFEXT SMS. The file identifier can be, for instance, 6F8C. The storage location of file can be, for instance, in the directory 7F10 too. The file structure of EFEXT SMS is of transparent type. Size of the file is reasonably set according to the actual capacity of the SIM card. The description herein takes the example of 50 k bytes. The received short messages are stored one by one, according to actual size.
In the embodiment, the index file for storing the index identifier can be named EFSMS INDEX, and the file identifier can be, for instance, 6F8D. It only needs to be distinguished from all other related files in the SIM card. The storage location of the file can be, for instance, in the directory 7F10 too. In this case, the file structure of EFSMS INDEX is of linear fixed-length type. Size of the EFSMS INDEX file is reasonably set according to actual capacity of the SIM card. Each record, namely each index identifier of the EFSMS INDEX file sequentially comprises three parts: the index number, the index storage address of the short message in the EFEXT SMS file corresponding to the index number, and the data length of the short message corresponding to the index number, namely the data byte length of the short message corresponding to the index number.
It is assumed that there are three index records, namely three index identifiers, in the EFSMS INDEX file. Storage address of the short message 1 corresponding to the index number 1 starts from 0x0, and byte length of the short message 1 is 0x20 bytes. The short message 2 corresponding to the index number 2 is stored after the short message 1. Storage address of the short message 2 starts from 0x0020, and byte length of the short message 2 is 0x55 bytes. The short message 3 corresponding to the index number 3 is stored after the short message 2. Storage address of the short message 3 starts from 0x0075, and byte length of the short message 3 is 0x32 bytes. The three short messages are correspondingly stored in the EFEXT SMS file.
When a new short message is received and is to be stored, an index number which is 4 is added in the EFSMS INDEX file. The newly added short message is named the short message 4. Then, the data length 0x32 of the short message corresponding to the index number 3 is added to the index storage address corresponding to the previous index number, namely storage address 0x0075 of the short message 3 corresponding to the index number 3, to obtain the index storage address 0x0075+0x32=0x0107 corresponding to the index number 4. At the same time, the length of the new short message 4 is recorded in the EFSMS INDEX file, supposing that length of the short message 4 is 0x16. Then, according to the calculated index storage address 0x0107 of the new short message 4, it shifts in the EFEXT SMS file to the index storage address. That is, the data content of the new short message 4 is stored from 0x0107.
It should be noted that, the method for processing short message of the embodiment can be compatible with related SIM cards and mobile terminals. In above example, when using related SIM cards and mobile terminals to store the short message, corresponding record number of the corresponding short message in the file 6F3C can be added in the index identifiers of the index file EFEXT SMS. When the short message 4 is stored in the EFEXT SMS file successfully, a synchronized mode can be adopted to select a record number which is not occupied in the EFSMS file of the related art to store the short message 4, and the corresponding record number of the EFSMS file is stored in the EFEXT SMS file. Therefore, the method for storing short message of the embodiment can be used in related SIM cards and mobile terminals, for achieving the purpose of being compatible.
Furthermore, it should be noted that the method of copy of short message performed by the embodiment through mobile terminal is same as the method for storing short message introduced in the embodiment. Thus, no repeated description is given here.
The embodiment stores the short message in storage space of mobile terminal according to the actual data length of the short message, which breaks the limitation in the related art that the short message file is stored according to fixed length. The present solution efficiently utilizes storage space of the SIM card used in mobile terminal, stores as many short messages as possible in limited storage space, improves the utilization ratio of storage space of mobile terminal, saves resources, and provides convenience for manufactures and users of mobile terminals. Furthermore, the method for processing short message of the embodiment can be compatible with related SIM cards and mobile terminals, and related SIM cards and mobile terminals can still perform processes, such as storage of short messages, using the 6F3C file structure as usual.
As shown in FIG. 5, another embodiment of the disclosure provides a method for processing short message. Based on the above embodiment, after step 103, the method can further comprise:
Step 104: searching for the corresponding index storage address and the data length of the corresponding short message in the index file, according to the index number of the short message to be deleted;
Step 105: deleting, from the message file, bytes of the data length of the corresponding short message at the corresponding index storage address;
Step 106: deleting the corresponding index storage address and the data length of the corresponding short message from the index file;
Step 107: after the short message to be deleted is deleted, shifting the address of short message after the deleted short message backward by the data length of the deleted short message; and
Step 108: shifting backward the index number of the deleted short message in the index file.
The embodiment stores the short message in storage space of mobile terminal according to the actual data length of the short message. Based on that, the embodiment can perform process of deletion of the short message. This solution breaks the limitation in the related art that the short message file is stored according to fixed length, efficiently utilizes storage space of the SIM card used in mobile terminal, stores as many short messages as possible in limited storage space, improves the utilization ratio of storage space of mobile terminal, saves resources, and provides convenience for manufactures and users of mobile terminals. Furthermore, the method for processing short message of the embodiment can be compatible with related SIM cards and mobile terminals, and related SIM cards and mobile terminals can still perform processes, such as storage of short message, using the 6F3C file structure as usual.
As shown in FIG. 6, an embodiment of the disclosure provides a terminal for processing short message, which can comprise:
a receiving module 601, configured to receive the short message;
a creating module 602, configured to create the index identifier corresponding to the short message; and
a storing module 603, configured to store the index identifier in the preset index file, and store the short message in the preset message file according to the index identifier.
Preferably, as shown in FIG. 7, the creating module 602 can further comprise:
a first searching unit 6021, configured to search the index file; and
an obtaining unit 6022, configured to obtain the index number of the short message and the index storage address of the short message according to the index file, and obtain the data length of the short message.
Preferably, as shown in FIG. 8, the obtaining unit 6022 can further comprise:
an index number obtaining subunit 60221, configured to sequentially add an index number after the previous index number in the index file to obtain the index number of the short message; and
an index storage address obtaining subunit 60222, configured to add the data length of the short message corresponding to the previous index number in the index storage address corresponding to the previous index number to obtain the index storage address of the short message.
Preferably, as shown in FIG. 9, the storing module 603 can further comprise:
a second searching unit 6031, configured to search the message file;
a shifting subunit 6032, configured to shift in the message file to the index storage address of the short message in the index identifier; and
a storing subunit 6033, configured to store the short message in the message file according to the index storage address of the short message.
Preferably, as shown in FIG. 10, another embodiment of the disclosure provides a terminal for processing short message. Based on above embodiment, the terminal can further comprise:
a searching module 604, configured to search for the corresponding index storage address and the data length of the corresponding short message in the index file, according to the index number of the short message to be deleted; and
a deleting module 605, configured to delete, from the message file, bytes of the data length of the corresponding short message at the corresponding index storage address, and delete the corresponding index storage address and the data length of the corresponding short message from the index file.
Furthermore, the shifting subunit 6032 is further configured to, after the short message to be deleted is deleted, shift addresses of short messages after the deleted short message backward by the data length of the deleted short message, and shift backward the index number of the deleted short message in the index file.
It should be noted that the terminal of the embodiment can be the intelligent subscriber identity card with functions of storing short message, comprising SIM card, UIM card, USIM card or PIM card and so on.
The embodiment of the disclosure performs processes, such as storage, deletion and copy, to the short message in storage space of mobile terminal according to the actual data length of the short message, and stores as many short messages as possible in limited storage space. Thereby, this solution breaks the limitation in the related art that the short message file is stored according to fixed length, efficiently utilizes storage space of the SIM card used in mobile terminal, stores as many short messages as possible in limited storage space, improves the utilization ratio of storage space of mobile terminal, saving resources, and provides convenience for manufactures and users of mobile terminals. Furthermore, the method for processing short message of the embodiment can be compatible with related SIM cards and mobile terminals, and related SIM cards and mobile terminals can still perform processes, such as storage, deletion and copy, to the short message using the 6F3C file structure as usual.
The above is only the preferred embodiments of the disclosure and not intended to limit the scope of the claims of the disclosure. Any equivalent replacements of structure or flow based on the contents of the specification and the drawings of the disclosure, and any direct or indirect application of the disclosure in other related technical fields shall fall within the scope of the claims of the disclosure.

Claims (6)

What is claimed is:
1. A method for processing short message, comprising:
a mobile terminal receiving a short message, and creating an index identifier corresponding to the short message, wherein the index identifier comprises: an index number, an index storage address corresponding to the index number and a data length of a short message corresponding to the index number;
the mobile terminal storing the index identifier in a preset index file of an SIM card of the mobile terminal; and
the mobile terminal storing the short message in a preset message file of the SIM card of the mobile terminal according to the index identifier;
wherein the step of creating the index identifier corresponding to the short message comprises:
searching the index file;
obtaining an index number of the short message and an index storage address of the short message according to the index file; and
obtaining a data length of the short message;
wherein the step of obtaining the index number of the short message and the index storage address of the short message according to the index file comprises:
adding an index number sequentially after a previous index number in the index file to obtain the index number of the short message; and
adding a data length of a short message corresponding to the previous index number to an index storage address corresponding to the previous index number to obtain the index storage address of the short message;
wherein the step of storing the short message in the preset message file according to the index identifier comprises:
searching the message file;
shifting in the message file to the index storage address of the short message in the index identifier; and
storing the short message in the message file according to the index storage address of the short message.
2. The method according to claim 1, wherein after the step of storing the short message in the preset message file according to the index identifier, the method further comprises:
searching, according to an index number of a short message to be deleted, for a corresponding index storage address and a data length of the corresponding short message in the index file;
deleting, from the message file, bytes of the data length of the corresponding short message at the corresponding index storage address; and
deleting, from the index file, the corresponding index storage address and the data length of the corresponding short message.
3. The method according to claim 2, wherein after the step of deleting from the index file the corresponding index storage address and the data length of the corresponding short message, the method further comprises:
after the short message to be deleted is deleted, shifting an address of a short message after the deleted short message backward by the data length of the deleted short message;
shifting backward the index number of the deleted short message in the index file.
4. A mobile terminal for processing short message, comprising a hardware processor configured to execute the following modules:
a receiving module, configured to receive a short message;
a creating module, configured to create an index identifier corresponding to the short message, wherein the index identifier comprises: an index number, an index storage address corresponding to the index number and a data length of a short message corresponding to the index number; and
a storing module, configured to store the index identifier in a preset index file of an SIM card of the mobile terminal, and store the short message in a preset message file of the SIM card of the mobile terminal according to the index identifier;
wherein the creating module comprises:
a first searching unit, configured to search the index file; and
an obtaining unit, configured to obtain an index number of the short message and an index storage address of the short message according to the index file, and obtain a data length of the short message;
wherein the obtaining unit comprises:
an index number obtaining subunit, configured to sequentially add an index number after a previous index number in the index file to obtain the index number of the short message; and
an index storage address obtaining subunit, configured to add a data length of a short message corresponding to the previous index number to an index storage address corresponding to the previous index number to obtain the index storage address of the short message;
wherein the storing module comprises:
a second searching unit, configured to search the message file;
an shifting subunit, configured to shift in the message file to the index storage address of the short message in the index identifier; and
a storing subunit, configured to store the short message in the message file according to the index storage address of the short message.
5. The mobile terminal according to claim 4, further comprising:
a searching module, configured to search, according to an index number of a short message to be deleted, for a corresponding index storage address and a data length of the corresponding short message in the index file; and
a deleting module, configured to delete, from the message file, bytes of the data length of the corresponding short message at the corresponding index storage address, and delete the corresponding index storage address and the data length of corresponding the short message from the index file.
6. The mobile terminal according to claim 5, wherein
the shifting subunit is further configured to, after the short message to be deleted is deleted, shift an address of a short message after the deleted short message backward by the data length of the deleted short message, and shift backward the index number of the deleted short message in the index file.
US13/704,946 2010-06-18 2010-10-15 Method and terminal for processing short message Active 2031-10-20 US9271125B2 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN2010102037500A CN101883181A (en) 2010-06-18 2010-06-18 Method and terminal for processing short message
CN201010203750 2010-06-18
CN201010203750.0 2010-06-18
PCT/CN2010/077801 WO2011157019A1 (en) 2010-06-18 2010-10-15 Method and terminal for processing short message

Publications (2)

Publication Number Publication Date
US20130095866A1 US20130095866A1 (en) 2013-04-18
US9271125B2 true US9271125B2 (en) 2016-02-23

Family

ID=43055062

Family Applications (1)

Application Number Title Priority Date Filing Date
US13/704,946 Active 2031-10-20 US9271125B2 (en) 2010-06-18 2010-10-15 Method and terminal for processing short message

Country Status (4)

Country Link
US (1) US9271125B2 (en)
EP (1) EP2584862B1 (en)
CN (1) CN101883181A (en)
WO (1) WO2011157019A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10108630B2 (en) * 2011-04-07 2018-10-23 Microsoft Technology Licensing, Llc Cluster unique identifier
CN103428343A (en) * 2012-05-17 2013-12-04 上海闻泰电子科技有限公司 Method for processing dynamic data in functional mobile phone
CN104123296A (en) * 2013-04-26 2014-10-29 阿里巴巴集团控股有限公司 Method and device for generating message indexes so as to present messages to receiver
CN107635200A (en) * 2016-07-19 2018-01-26 中兴通讯股份有限公司 A kind of processing method of short message, device and mobile terminal
CN111356094B (en) * 2020-01-07 2021-09-03 北京简约纳电子有限公司 SIM short message processing method and device
CN114489505B (en) * 2022-01-21 2024-02-27 北京安天网络安全技术有限公司 Data message storage method and device and computer equipment

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6167402A (en) * 1998-04-27 2000-12-26 Sun Microsystems, Inc. High performance message store
US20020006784A1 (en) * 2000-06-09 2002-01-17 Samsung Electronics Co., Ltd. Method for retrieving message in mobile telecommunication terminal
US20020059185A1 (en) * 2000-10-14 2002-05-16 Lg Electronics Inc. Method of managing index data in main memory database
US20020169004A1 (en) * 2001-05-14 2002-11-14 Alcatel Method of managing data stored in the memory of an SIM card of a mobile equipment
US6484039B1 (en) * 1998-02-25 2002-11-19 Siemens Aktiengesellschaft SIM card with directory entries for mobile telephones
US20030050042A1 (en) * 2001-07-17 2003-03-13 Geza Olah Method for billing short messages in a mobile radio network and device for carrying out the method
CN101098497A (en) 2006-06-28 2008-01-02 北京握奇数据系统有限公司 Multi-stage short message transmitting and disorder reception storing and whole displaying apparatus and method
US20080247390A1 (en) * 2007-04-06 2008-10-09 Research In Motion Limited System and method for correlating messages within a wireless transaction
CN101345945A (en) 2008-08-25 2009-01-14 深圳华为通信技术有限公司 Short message storage method and apparatus
US7526623B1 (en) * 2006-09-28 2009-04-28 Emc Corporation Optimizing reclamation of data space
US7684811B2 (en) * 2000-06-20 2010-03-23 Siemens Aktiengesellschaft Method for transmitting short messages
CN101686209A (en) 2008-09-24 2010-03-31 阿里巴巴集团控股有限公司 Method and device for storing message in message retransmission system
US7844055B2 (en) * 2001-06-26 2010-11-30 Link Us All, Llc Detecting and transporting dynamic presence information over a wireless and wireline communications network
US20130024642A1 (en) * 2006-12-06 2013-01-24 Fusion-Io, Inc. Apparatus, system, and method for identifying data that is no longer in use
US20130073602A1 (en) * 2004-01-28 2013-03-21 Michael Meadway Storing and retrieving objects on a computer network in a distributed database
US20130212342A1 (en) * 2009-10-30 2013-08-15 Adobe Systems Incorporated Storage format for media streams
US20140229521A1 (en) * 2004-01-28 2014-08-14 Pointofdata Corporation Storing and retrieving objects on a computer network in a distributed database

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816078A (en) * 2005-02-04 2006-08-09 雅斯拓(北京)智能卡科技有限公司 Storage for size-variable short message record
EP1804539A1 (en) * 2005-12-14 2007-07-04 Research In Motion Limited Apparatus, and associated method, for facilitating formation of a call connection in a radio communication system with a service center identified by a short dialing code
DE602006017191D1 (en) * 2006-06-23 2010-11-11 Research In Motion Ltd Device and corresponding method for supporting SMS messages in an IP network

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6484039B1 (en) * 1998-02-25 2002-11-19 Siemens Aktiengesellschaft SIM card with directory entries for mobile telephones
US6167402A (en) * 1998-04-27 2000-12-26 Sun Microsystems, Inc. High performance message store
US20020006784A1 (en) * 2000-06-09 2002-01-17 Samsung Electronics Co., Ltd. Method for retrieving message in mobile telecommunication terminal
US7684811B2 (en) * 2000-06-20 2010-03-23 Siemens Aktiengesellschaft Method for transmitting short messages
US20020059185A1 (en) * 2000-10-14 2002-05-16 Lg Electronics Inc. Method of managing index data in main memory database
US20020169004A1 (en) * 2001-05-14 2002-11-14 Alcatel Method of managing data stored in the memory of an SIM card of a mobile equipment
US7844055B2 (en) * 2001-06-26 2010-11-30 Link Us All, Llc Detecting and transporting dynamic presence information over a wireless and wireline communications network
US20030050042A1 (en) * 2001-07-17 2003-03-13 Geza Olah Method for billing short messages in a mobile radio network and device for carrying out the method
US20130073602A1 (en) * 2004-01-28 2013-03-21 Michael Meadway Storing and retrieving objects on a computer network in a distributed database
US20140229521A1 (en) * 2004-01-28 2014-08-14 Pointofdata Corporation Storing and retrieving objects on a computer network in a distributed database
CN101098497A (en) 2006-06-28 2008-01-02 北京握奇数据系统有限公司 Multi-stage short message transmitting and disorder reception storing and whole displaying apparatus and method
US7526623B1 (en) * 2006-09-28 2009-04-28 Emc Corporation Optimizing reclamation of data space
US20130024642A1 (en) * 2006-12-06 2013-01-24 Fusion-Io, Inc. Apparatus, system, and method for identifying data that is no longer in use
US20080247390A1 (en) * 2007-04-06 2008-10-09 Research In Motion Limited System and method for correlating messages within a wireless transaction
CN101345945A (en) 2008-08-25 2009-01-14 深圳华为通信技术有限公司 Short message storage method and apparatus
CN101686209A (en) 2008-09-24 2010-03-31 阿里巴巴集团控股有限公司 Method and device for storing message in message retransmission system
US20130212342A1 (en) * 2009-10-30 2013-08-15 Adobe Systems Incorporated Storage format for media streams

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
International Search Report for International Patent Application No. PCT/CN2010/077801 mailed Mar. 24, 2011.

Also Published As

Publication number Publication date
WO2011157019A1 (en) 2011-12-22
US20130095866A1 (en) 2013-04-18
EP2584862A1 (en) 2013-04-24
EP2584862B1 (en) 2015-06-03
EP2584862A4 (en) 2014-01-22
CN101883181A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
US9271125B2 (en) Method and terminal for processing short message
EP2461640A1 (en) Method and integrated circuit card for managing the database by interacting with the mobile equipment
CN101997964A (en) Processing method of mobile communication terminal and contact records thereof
EP1820280A1 (en) Mobile terminal having function of managing file and folder
US20130310014A1 (en) Method and Mobile Terminal for Storing Memo During Call
CN102118736A (en) Mobile terminal and self-adaptive method and system thereof
CN102082873B (en) Starting method, mobile terminal and user identification card
CN101282549A (en) Method and apparatus for managing short message of double-card double-standby mobile terminal
US9325822B2 (en) Method, device, and terminal for storing communication log in subscriber identity module/user identity model
CN102045427A (en) Method and device for managing calling cards with mobile terminal
CA2807276C (en) Speed dialing method, subscriber identity module/user identity model and mobile terminal
CN101378566A (en) Communication terminal and method for notifying number alteration thereof
CN101442585A (en) Mobile terminal and method for accessing user card
CN100444651C (en) Medium message editting method of mobile phone
CN102055833B (en) Method of event record storage for low-end mobile phone by using SIM card
CN101710920B (en) Message management method and message management system of mobile communication terminal
CN102624959B (en) The inquiry of extension in wireless device, using method, inquiry and operative installations
CN101621577B (en) Short message processing method and short message processing terminal
CN102238271B (en) Multimedia message storing method and mobile phone
CN104125326B (en) Method and the terminal of message background are set
CN101778359A (en) Method, device and communication terminal for receiving short message
CN101754145B (en) Telephone number searching method and device and mobile terminal
CN101217731B (en) An information searching method in mobile terminals
CN101958952B (en) Processing method and equipment for user identity module (UIM) card phone book
CN102427494B (en) Text information processing method and device for mobile terminal

Legal Events

Date Code Title Description
AS Assignment

Owner name: ZTE CORPORATION, CHINA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:YANG, CUIHONG;PEI, XIOGANG;REEL/FRAME:030632/0231

Effective date: 20120620

STCF Information on status: patent grant

Free format text: PATENTED CASE

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 4

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 8