CN104703154A - Short message storage method and system of LTE uplink home gateway - Google Patents
Short message storage method and system of LTE uplink home gateway Download PDFInfo
- Publication number
- CN104703154A CN104703154A CN201510046062.0A CN201510046062A CN104703154A CN 104703154 A CN104703154 A CN 104703154A CN 201510046062 A CN201510046062 A CN 201510046062A CN 104703154 A CN104703154 A CN 104703154A
- Authority
- CN
- China
- Prior art keywords
- note
- short message
- home gateway
- lte
- storage
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/31—Indexing; Data structures therefor; Storage structures
- G06F16/316—Indexing structures
- G06F16/322—Trees
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/16—Gateway arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a short message storage method and system of an LTE uplink home gateway and relates to the field of LTE uplink home gateways. The short message storage method comprises the steps of pre-setting an xml file, loading xml data to a memory after the LTE uplink home gateway is started and enabling the xml data to form a tree storage structure, decoding PDU format data of a current short message to obtain short message identifying information after the LTE uplink home gateway receives a new short message; copying a short message storage template to a new short message storage position, writing the short message identifying information obtained through decoding of the current short message in the short message storage template, and writing a short message state and other short message attributes in a full-path mode defined by xml. The LTE uplink home gateway adopting the short message storage method is large in short message storage number, high in storage utilization rate and convenient to manage and store, usage of people is facilitated, and user experience is improved.
Description
Technical field
The present invention relates to the up home gateway field of LTE, be specifically related to short message storage method and the system of the up home gateway of a kind of LTE.
Background technology
LTE (Long Term Evolution, Long Term Evolution) be by 3GPP (The 3rdGeneration Partnership Project, third generation partner program) Long Term Evolution of UMTS (Universal Mobile Telecommunications System, universal mobile telecommunications system) technical standard organized to set up.
Along with the development of LTE, the up home gateway of LTE arises at the historic moment; For mobile device because for receive and dispatch and store content of text information SMS than indispensable, so the up home gateway of LTE also needs the function realizing note.The most important part of SMS is short message content storage administration, namely how to manage the note of dissimilar (such as read, do not read, send out, do not send out), and reads fast according to user's request.
Performance for the processor of memory space in the up home gateway of existing LTE is lower, limited storage space, when the up home gateway of LTE stores note by the processor that performance is lower, two kinds of methods below general employing: 1, use the Chinese character of raw data base to store, 2, adopting plain text to store, there is following defect in above-mentioned 2 kinds of methods respectively:
(1) use the Chinese character of raw data base to carry out storing the memory space taken comparatively large, for the processor of limited storage space, the note negligible amounts of storage, the utilance of memory space is lower.
(2) adopt plain text to carry out the operating process more complicated of storage meeting, not manageability short message content, be not easy to people and use.
Summary of the invention
For the defect existed in prior art, the object of the present invention is to provide short message storage method and the system of the up home gateway of a kind of LTE, the note quantity adopting the up home gateway of LTE of the present invention to store is more, not only space utilisation is higher, and manage and store more convenient, be convenient to people use, improve Consumer's Experience.
For reaching above object, the short message storage method of the up home gateway of LTE provided by the invention, comprises the following steps:
S1: pre-set xml file on the up home gateway of Long Term Evolution LTE, xml data in xml file comprise SMS attribute, existing storage note, new message storage location and are positioned at the note store template of 0 node, existing storage note and note store template include note identifying information, forward step S2 to;
After the up home gateway of S2:LTE starts, by the xml Data import of xml file in up for LTE home gateway to internal memory, xml data are formed Storage Structure of Tree; In Storage Structure of Tree, note store template and existing storage note are father node, and note store template and the existing note identifying information storing note are child node, forward step S3 to;
After the up home gateway of S3:LTE receives new message, the protocol Data Unit PDU formatted data of current note is decoded, obtains note identifying information, forward step S4 to;
S4: note store template is copied to new message storage location; The note identifying information of the current note that write decoding obtains in note store template; The complete trails mode defined by xml writes short message state and other note attributes.
On the basis of technique scheme, the new message storage location in step S1 is provided with clear position index index;
Described in step S4, note store template is copied to new message storage location, specifically comprise the following steps: note store template is copied to the clear position index in note storage location, the nodename of current idle position index is revised as the index corresponding with current note.
On the basis of technique scheme, further comprising the steps of after step S4:
S5: when user needs to operate short message content, to be read short message content by complete trails mode and operates.
On the basis of technique scheme, the attribute of SMS described in step S1 comprises current note number CurrentNum, unread short messages number UnReadNum and SMS service center SMSC.
On the basis of technique scheme, the identifying information of note described in step S1 comprises short message content content, note sender phoneNumber, note time of reception SendOrReciveTime.
On the basis of technique scheme, the mode of the complete trails in step S4 is note index regulation Message.{index}.MessageState.
The note storage system realizing the up home gateway of LTE of said short message storage means provided by the invention, comprises note and arranges module, note load-on module, note coding/decoding module, note memory module;
Described note arrange module for: on the up home gateway of LTE, pre-set xml file, xml data in xml file comprise SMS attribute, existing storage note, new message storage location and are positioned at the note store template of 0 node, and existing storage note and note store template include note identifying information;
Described note load-on module is used for: after the up home gateway of LTE starts, by the xml Data import of xml file in up for LTE home gateway to internal memory, xml data are formed Storage Structure of Tree; In Storage Structure of Tree, note store template and existing storage note are father node, and note store template and the existing note identifying information storing note are child node;
Described note coding/decoding module is used for: after the up home gateway of LTE receives new message, decodes, obtain note identifying information to the PDU formatted data of current note, sends note storage signal to note memory module;
Described note memory module is used for: after receiving note storage signal, and note store template is copied to new message storage location; The note identifying information of the current note that write decoding obtains in note store template; The complete trails mode defined by xml writes short message state and other note attributes.
On the basis of technique scheme, described note storage system also comprises note read module, its for: when user needs to operate short message content, by complete trails mode short message content read and operate.
Compared with prior art, the invention has the advantages that:
(1) store compared with note with using the Chinese character of raw data base in prior art, the present invention stores note by the data of xml form, and the memory space taken is less, and the note quantity of storage is more, and space utilisation is higher.
(2) the present invention adopts Storage Structure of Tree, when note is stored up in the up home gateway harvesting of LTE, only note store template need be copied and be write by the note identifying information of correspondence, managing and store more convenient, being convenient to people and using.
(3) after adopting the up home gateway of LTE of the present invention to start, by xml Data import to internal memory, the up home gateway of LTE only need operate the xml data in internal memory, without the need to operation file, and then make the up home gateway of LTE can short message reading list fast and accurately, be convenient to people use, improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the flow chart of the short message storage method of the up home gateway of LTE in the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
Shown in Figure 1, the short message storage method of the up home gateway of the LTE in the embodiment of the present invention, comprises the following steps:
S1: pre-set xml file on the up home gateway of LTE, xml data in xml file comprise SMS attribute, existing storage note, new message storage location and are positioned at the note store template of 0 node, existing storage note and note store template include note identifying information, forward step S2 to.
After the up home gateway of S2:LTE starts, by the xml Data import of xml file in up for LTE home gateway to internal memory, xml data are formed Storage Structure of Tree.New message storage location is positioned at the low order end of Storage Structure of Tree, and in Storage Structure of Tree, note store template and existing storage note are father node, and note store template and the existing note identifying information storing note are child node, forward step S3 to.
After the up home gateway of S3:LTE receives new message, PDU (Protocol Data Unit, the protocol Data Unit) formatted data of current note is decoded, obtained note identifying information, forward step S4 to.
S4: note store template is copied to new message storage location; The note identifying information of the current note that write decoding obtains in note store template.The complete trails mode defined by xml writes short message state and other note attributes, forwards step S5 to.
S5: when user needs to operate short message content (such as reading new message, deleting short message etc.), to be read short message content by complete trails mode and operates.
SMS attribute in step S1 comprises CurrentNum (current note number), UnReadNum (unread short messages number) and SMSC (Short Message Service Center, SMS service center), user can check corresponding SMS attribute according to self needing.
Note identifying information in step S1 comprises content (short message content), phoneNumber (note sender), SendOrReciveTime (note time of reception) etc.
New message storage location in step S1 is provided with clear position index (index).
In step S4, note store template is copied to new message storage location, specifically comprise the following steps: note store template is copied to the clear position index in note storage location, the nodename of current idle position index is revised as the index corresponding with current note.
The mode of the complete trails in step S4 is Message.{index}.MessageState (note index regulation).
The note storage system of the up home gateway of the LTE realizing said short message storage means in the embodiment of the present invention, comprises note and arranges module, note load-on module, note coding/decoding module, note memory module and note read module.
Note arrange module for: on the up home gateway of LTE, pre-set xml file, xml data in xml file comprise SMS attribute, existing storage note, new message storage location and are positioned at the note store template of 0 node, and existing storage note and note store template include note identifying information.
Note load-on module is used for: after the up home gateway of LTE starts, by the xml Data import of xml file in up for LTE home gateway to internal memory, xml data are formed Storage Structure of Tree; In Storage Structure of Tree, note store template and existing storage note are father node, and note store template and the existing note identifying information storing note are child node.
Note coding/decoding module is used for: after the up home gateway of LTE receives new message, decodes, obtain note identifying information to the PDU formatted data of current note, sends note storage signal to note memory module.
Note memory module is used for: after receiving note storage signal, and note store template is copied to new message storage location; The note identifying information of the current note that write decoding obtains in note store template; The complete trails mode defined by xml writes short message state and other note attributes.
Note read module is used for: when user needs to operate short message content, to be read and operate by complete trails mode to short message content.
The present invention is not limited to above-mentioned execution mode, and for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications are also considered as within protection scope of the present invention.The content be not described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.
Claims (8)
1. a short message storage method for the up home gateway of LTE, is characterized in that, comprise the following steps:
S1: pre-set xml file on the up home gateway of Long Term Evolution LTE, xml data in xml file comprise SMS attribute, existing storage note, new message storage location and are positioned at the note store template of 0 node, existing storage note and note store template include note identifying information, forward step S2 to;
After the up home gateway of S2:LTE starts, by the xml Data import of xml file in up for LTE home gateway to internal memory, xml data are formed Storage Structure of Tree; In Storage Structure of Tree, note store template and existing storage note are father node, and note store template and the existing note identifying information storing note are child node, forward step S3 to;
After the up home gateway of S3:LTE receives new message, the protocol Data Unit PDU formatted data of current note is decoded, obtains note identifying information, forward step S4 to;
S4: note store template is copied to new message storage location; The note identifying information of the current note that write decoding obtains in note store template; The complete trails mode defined by xml writes short message state and other note attributes.
2. the short message storage method of the up home gateway of LTE as claimed in claim 1, is characterized in that: the new message storage location in step S1 is provided with clear position index index;
Described in step S4, note store template is copied to new message storage location, specifically comprise the following steps: note store template is copied to the clear position index in note storage location, the nodename of current idle position index is revised as the index corresponding with current note.
3. the short message storage method of the up home gateway of LTE as claimed in claim 1, is characterized in that, further comprising the steps of after step S4:
S5: when user needs to operate short message content, to be read short message content by complete trails mode and operates.
4. the short message storage method of the up home gateway of the LTE as described in any one of claims 1 to 3, is characterized in that: the attribute of SMS described in step S1 comprises current note number CurrentNum, unread short messages number UnReadNum and SMS service center SMSC.
5. the short message storage method of the up home gateway of the LTE as described in any one of claims 1 to 3, is characterized in that: the identifying information of note described in step S1 comprises short message content content, note sender phoneNumber, note time of reception SendOrReciveTime.
6. the short message storage method of the up home gateway of the LTE as described in any one of claims 1 to 3, is characterized in that: the mode of the complete trails in step S4 is note index regulation Message.{index}.MessageState.
7. realize a note storage system for the up home gateway of LTE of short message storage method described in any one of claim 1 to 6, it is characterized in that: comprise note and module, note load-on module, note coding/decoding module, note memory module are set;
Described note arrange module for: on the up home gateway of LTE, pre-set xml file, xml data in xml file comprise SMS attribute, existing storage note, new message storage location and are positioned at the note store template of 0 node, and existing storage note and note store template include note identifying information;
Described note load-on module is used for: after the up home gateway of LTE starts, by the xml Data import of xml file in up for LTE home gateway to internal memory, xml data are formed Storage Structure of Tree; In Storage Structure of Tree, note store template and existing storage note are father node, and note store template and the existing note identifying information storing note are child node;
Described note coding/decoding module is used for: after the up home gateway of LTE receives new message, decodes, obtain note identifying information to the PDU formatted data of current note, sends note storage signal to note memory module;
Described note memory module is used for: after receiving note storage signal, and note store template is copied to new message storage location; The note identifying information of the current note that write decoding obtains in note store template; The complete trails mode defined by xml writes short message state and other note attributes.
8. the note storage system of the up home gateway of LTE as claimed in claim 7, it is characterized in that: described note storage system also comprises note read module, its for: when user needs to operate short message content, by complete trails mode short message content read and operate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510046062.0A CN104703154B (en) | 2015-01-29 | 2015-01-29 | A kind of short message storage method and system of LTE uplinks home gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510046062.0A CN104703154B (en) | 2015-01-29 | 2015-01-29 | A kind of short message storage method and system of LTE uplinks home gateway |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104703154A true CN104703154A (en) | 2015-06-10 |
CN104703154B CN104703154B (en) | 2018-05-29 |
Family
ID=53349841
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510046062.0A Active CN104703154B (en) | 2015-01-29 | 2015-01-29 | A kind of short message storage method and system of LTE uplinks home gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104703154B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111356094A (en) * | 2020-01-07 | 2020-06-30 | 北京简约纳电子有限公司 | SIM short message processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101127743A (en) * | 2007-09-29 | 2008-02-20 | 中国电信股份有限公司 | Media push service method and system based on home gateway middleware |
CN1979478B (en) * | 2005-12-09 | 2010-05-26 | 北京书生国际信息技术有限公司 | File processing system and file processing method |
US7729301B2 (en) * | 1999-12-03 | 2010-06-01 | Nokia Corporation | Filtering of electronic information to be transferred to a terminal |
CN102333008A (en) * | 2011-10-09 | 2012-01-25 | 中国联合网络通信集团有限公司 | Equipment detection method and home gateway |
CN104219275A (en) * | 2014-01-21 | 2014-12-17 | 南通大学 | Cancer patient continuing nursing system using community SMS (short messaging service) |
-
2015
- 2015-01-29 CN CN201510046062.0A patent/CN104703154B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7729301B2 (en) * | 1999-12-03 | 2010-06-01 | Nokia Corporation | Filtering of electronic information to be transferred to a terminal |
CN1979478B (en) * | 2005-12-09 | 2010-05-26 | 北京书生国际信息技术有限公司 | File processing system and file processing method |
CN101127743A (en) * | 2007-09-29 | 2008-02-20 | 中国电信股份有限公司 | Media push service method and system based on home gateway middleware |
CN102333008A (en) * | 2011-10-09 | 2012-01-25 | 中国联合网络通信集团有限公司 | Equipment detection method and home gateway |
CN104219275A (en) * | 2014-01-21 | 2014-12-17 | 南通大学 | Cancer patient continuing nursing system using community SMS (short messaging service) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111356094A (en) * | 2020-01-07 | 2020-06-30 | 北京简约纳电子有限公司 | SIM short message processing method and device |
CN111356094B (en) * | 2020-01-07 | 2021-09-03 | 北京简约纳电子有限公司 | SIM short message processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104703154B (en) | 2018-05-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103095829B (en) | Realize the network contact list system of version management and rights management | |
Ma et al. | General application research on GSM module | |
TWI757317B (en) | A method and system for pushing information, and a client and a server | |
CN103023939A (en) | Method and system for realizing REST (Radar Electronic Scan Technique) interface of cloud cache on Nginx | |
CN102833408B (en) | Method and device for displaying messages | |
KR20140027465A (en) | Method, device and system for sharing microblog message | |
CN103780633A (en) | Method and device for mobile terminal to upload file, and method and device for network server to upload file | |
CN102821181B (en) | A kind of two-dimension code information storage method and mobile terminal | |
CN105472090A (en) | Address list contact person merging method and device | |
CN103037338B (en) | A kind of signature insertion method of contact details and communicating terminal | |
CN105472167A (en) | Communication information merging method and device | |
WO2014019470A1 (en) | Method and system for updating user calling card | |
CN103716760A (en) | Method and system for receiving and sending short message | |
CN103036877A (en) | Device and method for code generation of coding and decoding based on threshold limit value (TLV) form protocol | |
US20130095866A1 (en) | Method and terminal for processing short message | |
CN104703154A (en) | Short message storage method and system of LTE uplink home gateway | |
CN102638419A (en) | Method, client and system for transferring instant messaging message data | |
CN102387484B (en) | Information transmitting method, information receiving method and communication terminal | |
CN102281516B (en) | Short message processing method and short message processing terminal | |
CN103873631A (en) | Method and device for displaying call interface of mobile terminal | |
CN103179247A (en) | Mobile terminal information deleting method and mobile intelligent terminal | |
CN102238271B (en) | Multimedia message storing method and mobile phone | |
CN103139719B (en) | A kind of method of instant messaging, mobile terminal and system | |
CN101621577B (en) | Short message processing method and short message processing terminal | |
CN102917029B (en) | The implementation method that cloud stores and cloud storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |