The content of the invention
The present invention provides a kind of updating menu method and system, to solve the above problems.
The present invention provides a kind of updating menu method.The above method comprises the following steps:
Netscape messaging server Netscape periodically sends updating menu short message according to the default initial period to terminal;
After the terminal receives the updating menu short message, identify and be identified by parsing acquisition updating menu,
If identifying, menu has renewal, the updating menu that further more the last updating menu short message received receives with this
Short message;
If the comparative result that the terminal obtains is updated for menu structure, whether the terminal notifying user needs
Update, if the user selects to agree to, the terminal carries out updating menu.
The present invention also provides a kind of updating menu system, including terminal, netscape messaging server Netscape;The terminal and the letter
Breath processing server is connected;
Described information processing server, for according to the default initial period, periodically sending updating menu to terminal
Short message;
The terminal, for receive described information processing server transmission updating menu short message after, by parsing obtain
Updating menu is taken to identify and be identified, menu has renewal if identifying, further more the last menu received is more
The updating menu short message that new message receives with this;If the comparative result for being additionally operable to obtain is updated for menu structure,
Prompt the user whether to need to update, if the user selects to agree to, carry out updating menu.
Compared to prior art, according to updating menu method and system provided by the invention, by according to updating menu
Matter, to decide whether the scheme of the agreement by user, greatly improve the experience of user.
In addition, by the way that in preset period of time, netscape messaging server Netscape obtains menu structure rate of change and basis corresponding to menu
Menu period modulation Policy Table, the scheme in updating menu short message sending cycle corresponding to the menu is determined, is easy to user timely
Follow the trail of menu change.
In addition, after receiving the updating menu short message by the terminal, the form of the updating menu short message is judged
Whether correct, whether the size of value legal, if correct legal, obtained in SIM card corresponding to menu file scheme, can be with
The harassing and wrecking of refuse messages are avoided, save system resource.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
Fig. 1 show the updating menu method flow diagram of the embodiment of the present invention 1, comprises the following steps:
Step 101:It is short periodically to send updating menu according to the default initial period to terminal for netscape messaging server Netscape
Letter;
Updating menu messaging format includes:Updating menu mark, menu structure, menu content;Wherein, the structure bag of menu
Include first class catalogue, second-level directory.
Such as:If updating menu is identified as 1, menu has renewal;If updating menu is identified as 0, menu does not update.
Wherein, initial period T can be set according to actual conditions, for example, 24 hours.
Wherein, the terminal includes mobile phone, tablet personal computer.
Step 102:After the terminal receives the updating menu short message, gone forward side by side by parsing acquisition updating menu mark
Row identification, if identifying, menu has renewal, and further more the last updating menu short message received receives with this
Updating menu short message.
After the terminal receives the updating menu short message, identified by parsing acquisition updating menu and it is identified
Before, in addition to:
After the terminal receives the updating menu short message, judge whether the form of the updating menu short message is correct,
If form is correct, file corresponding to menu is obtained in SIM card;Wherein, the corresponding relation of SIM card storage menu and file.
Such as:If terminal is identified by parsing acquisition updating menu and identifies that updating menu is identified as 1, illustrate menu
There is renewal, then the updating menu short message that further more the last updating menu short message received receives with this.
Step 103:If the comparative result that the terminal obtains is updated for menu structure, the terminal notifying is used
Whether family, which needs, updates, if the user selects to agree to, the terminal carries out updating menu.
Wherein, terminal prompts the user whether to need to update in a manner of display reminding window.
If the comparative result that the terminal obtains is updated for menu content, the terminal directly carries out menu more
Newly.
Terminal carry out updating menu process be:
The terminal is entered to file corresponding to the menu that is obtained from SIM card according to the updating menu short message of reception
Row renewal.
Netscape messaging server Netscape obtains menu structure rate of change corresponding to menu in preset period of time and adjusted according to the menu cycle
Whole Policy Table, determine the updating menu short message sending cycle corresponding to the menu.
Netscape messaging server Netscape obtains menu structure rate of change corresponding to menu in preset period of time, if more than or equal to default
Value, then according to menu period modulation Policy Table, redefine updating menu short message sending cycle=(1- corresponding to the menu
X) ﹡ T;Wherein, X is menu structure rate of change, and T is the initial period.
Netscape messaging server Netscape obtains menu structure rate of change corresponding to menu in preset period of time, if being less than preset value,
According to menu period modulation Policy Table, it is T to determine the updating menu short message sending cycle corresponding to the menu.
Wherein, preset period of time is n initial period;Wherein, n >=2 and n are positive integer.Why use n >=2 and n is just
Integer, it is that the present embodiment is set because the data obtained according to 1 initial period are inaccurate to count menu structure rate of change
It is more than 2 initial periods to put preset period of time.
Menu changes total degree in menu structure change frequency/preset period of time in menu structure rate of change=preset period of time;
Wherein, menu change includes menu structure change, menu content change.
Menu period modulation Policy Table
Table 1
Citing is described in detail below:
Netscape messaging server Netscape according to the default initial period (such as:24 hours) to mobile phone send updating menu short message;
After mobile phone receives the updating menu short message, judge the updating menu short message form whether meet it is claimed below:Menu is more
New message form includes:Updating menu mark, menu structure, menu content;Wherein, the structure of menu includes first class catalogue, two
Level catalogue;If meeting, follow-up mobile phone further identifies that menu has renewal by parsing, then further more the last receipts
To the updating menu short message that is received with this of updating menu short message, if the comparative result that obtains of mobile phone for menu structure there occurs
Renewal, then mobile phone prompts the user whether to need to update by way of display reminding window, if the user selects to agree to, institute
State mobile phone and carry out updating menu, the corresponding menu file obtained from SIM card is updated.If the comparison that the mobile phone obtains
As a result updated for menu content, then the mobile phone directly carries out updating menu, needs not move through the agreement of user.
In addition,
Netscape messaging server Netscape obtains menu structure corresponding to preset period of time (5 ﹡ 24 hours are 5 initial periods) interior menu
Change frequency is 3 times, and menu content change frequency is 2 times, then obtains menu structure in menu structure rate of change=preset period of time
In change frequency/preset period of time menu change total degree=3/5=60%, more than preset value (such as:50%), then according to table 1,
Updating menu short message sending cycle=(1-60%) ﹡ T=0.4T are redefined corresponding to the menu.
Fig. 2 show the updating menu system schematic of the embodiment of the present invention 2, including:Terminal, netscape messaging server Netscape;
The terminal is connected with described information processing server;
Described information processing server, for according to the default initial period, periodically sending updating menu to terminal
Short message;
The terminal, for receive described information processing server transmission updating menu short message after, by parsing obtain
Updating menu is taken to identify and be identified, menu has renewal if identifying, further more the last menu received is more
The updating menu short message that new message receives with this;If the comparative result for being additionally operable to obtain is updated for menu structure,
Prompt the user whether to need to update, if the user selects to agree to, carry out updating menu.
Compared to prior art, according to updating menu method and system provided by the invention, by according to updating menu
Matter, to decide whether the scheme of the agreement by user, greatly improve the experience of user.
In addition, by the way that in preset period of time, netscape messaging server Netscape obtains menu structure rate of change and basis corresponding to menu
Menu period modulation Policy Table, the scheme in updating menu short message sending cycle corresponding to the menu is determined, is easy to user timely
Follow the trail of menu change.
In addition, after receiving the updating menu short message by the terminal, the form of the updating menu short message is judged
Whether correct, whether the size of value legal, if correct legal, obtained in SIM card corresponding to menu file scheme, can be with
The harassing and wrecking of refuse messages are avoided, save system resource.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.