Summary of the invention
The invention provides a kind of updating menu method and system, to solve the problem.
The invention provides a kind of updating menu method.Said method comprises the following steps:
Netscape messaging server Netscape, according to the initial period of presetting, periodically sends updating menu note to terminal;
After described terminal receives described updating menu note, obtain updating menu and identify by resolving and identify, if identify menu have renewal, then more the last updating menu note that receives and this updating menu note received further;
If the comparative result that described terminal obtains is that menu structure there occurs renewal, then described terminal notifying user is the need of renewal, if described user selects to agree to, then described terminal carries out updating menu.
The present invention also provides a kind of updating menu system, comprises terminal, netscape messaging server Netscape; Described terminal is connected with described netscape messaging server Netscape;
Described netscape messaging server Netscape, for according to the initial period of presetting, periodically sends updating menu note to terminal;
Described terminal, for receive described netscape messaging server Netscape send updating menu note after, obtain updating menu and identify by resolving and identify, if identify menu have renewal, then more the last updating menu note that receives and this updating menu note received further; If the comparative result also for obtaining is that menu structure there occurs renewal, then points out user the need of renewal, if described user selects to agree to, then carry out updating menu.
Compared to prior art, according to updating menu method and system provided by the invention, by according to updating menu character, determine whether the scheme of the agreement through user, greatly improve the experience of user.
In addition, by preset period of time, netscape messaging server Netscape obtains menu structure rate of change corresponding to menu and according to menu period modulation Policy Table, determines the scheme in the updating menu short message sending cycle that described menu is corresponding, is convenient to user and follows the trail of menu change in time.
In addition, after receiving described updating menu note by described terminal, judge that whether the form of described updating menu note is correct, whether the size of value is legal, if correctly legal, then in SIM card, obtains the scheme of corresponding menu file, the harassing and wrecking of refuse messages can be avoided, save system resource.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the updating menu method flow diagram of the embodiment of the present invention 1, comprise the following steps:
Step 101: netscape messaging server Netscape, according to the initial period of presetting, periodically sends updating menu note to terminal;
Updating menu messaging format comprises: updating menu mark, menu structure, menu content; Wherein, the structure of menu comprises first class catalogue, second-level directory.
Such as: if updating menu is designated 1, then menu has renewal; If updating menu is designated 0, then menu does not upgrade.
Wherein, initial period T can set according to actual conditions, such as, be 24 hours.
Wherein, described terminal comprises mobile phone, panel computer.
Step 102: after described terminal receives described updating menu note, identify by resolving acquisition updating menu and identify, if identify menu have renewal, then more the last updating menu note that receives and this updating menu note received further.
After described terminal receives described updating menu note, obtain updating menu and identify by resolving and before identifying, also comprise:
After described terminal receives described updating menu note, judge that whether the form of described updating menu note is correct, if form is correct, then in SIM card, obtain file corresponding to menu; Wherein, the corresponding relation of SIM card storage menu and file.
Such as: if terminal obtains updating menu and identify and identify updating menu by resolving and be designated 1, then explanation menu has renewal, then more the last updating menu note that receives and this updating menu note received further.
Step 103: if the comparative result that described terminal obtains is that menu structure there occurs renewal, then described terminal notifying user is the need of renewal, if described user selects to agree to, then described terminal carries out updating menu.
Wherein, terminal is in the mode of display reminding window, and user is the need of renewal in prompting.
If the comparative result that described terminal obtains is that menu content there occurs renewal, then described terminal directly carries out updating menu.
The process that terminal carries out updating menu is:
Described terminal is according to the described updating menu note received, and the file corresponding to the menu obtained from SIM card upgrades.
The menu structure rate of change that in netscape messaging server Netscape acquisition preset period of time, menu is corresponding also according to menu period modulation Policy Table, determines the updating menu short message sending cycle that described menu is corresponding.
Netscape messaging server Netscape obtains the menu structure rate of change that in preset period of time, menu is corresponding, if be more than or equal to preset value, then according to menu period modulation Policy Table, redefine described menu corresponding updating menu short message sending cycle=(1-X) ﹡ T; Wherein, X is menu structure rate of change, and T is the initial period.
Netscape messaging server Netscape obtains the menu structure rate of change that in preset period of time, menu is corresponding, if be less than preset value, then according to menu period modulation Policy Table, determines that the updating menu short message sending cycle that described menu is corresponding is T.
Wherein, preset period of time is n initial period; Wherein, n >=2 and n is positive integer.Why adopt n >=2 and n is positive integer, be because the data obtained according to 1 initial period to add up menu structure rate of change inaccurate, so it is more than 2 initial periods that the present embodiment arranges preset period of time.
Menu change total degree in menu structure change frequency/preset period of time in menu structure rate of change=preset period of time; Wherein, menu change comprises menu structure change, menu content change.
Menu period modulation Policy Table
Table 1
Citing is below described in detail:
Netscape messaging server Netscape sends updating menu note according to the initial period (such as: 24 hours) of presetting to mobile phone; After mobile phone receives described updating menu note, judge whether the form of described updating menu note meets following requirement: updating menu messaging format comprises: updating menu mark, menu structure, menu content; Wherein, the structure of menu comprises first class catalogue, second-level directory; If meet, then follow-up mobile phone identifies menu further by parsing renewal, the then more the last updating menu note that receives and this updating menu note received further, if the comparative result that mobile phone obtains is that menu structure there occurs renewal, then mobile phone points out user the need of renewal by the mode of display reminding window, if described user selects to agree to, then described mobile phone carries out updating menu, upgrades the corresponding menu file obtained from SIM card.If the comparative result that described mobile phone obtains is that menu content there occurs renewal, then described mobile phone directly carries out updating menu, without the need to the agreement through user.
In addition,
It is 3 times that netscape messaging server Netscape obtains preset period of time (5 ﹡ 24 hours i.e. 5 initial periods) the menu structure change frequency that interior menu is corresponding, menu content change frequency is 2 times, then in acquisition menu structure rate of change=preset period of time, in menu structure change frequency/preset period of time, menu changes total degree=3/5=60%, be greater than preset value (such as: 50%), then according to table 1, redefine described menu corresponding updating menu short message sending cycle=(1-60%) ﹡ T=0.4T.
Figure 2 shows that the updating menu system schematic of the embodiment of the present invention 2, comprising: terminal, netscape messaging server Netscape; Described terminal is connected with described netscape messaging server Netscape;
Described netscape messaging server Netscape, for according to the initial period of presetting, periodically sends updating menu note to terminal;
Described terminal, for receive described netscape messaging server Netscape send updating menu note after, obtain updating menu and identify by resolving and identify, if identify menu have renewal, then more the last updating menu note that receives and this updating menu note received further; If the comparative result also for obtaining is that menu structure there occurs renewal, then points out user the need of renewal, if described user selects to agree to, then carry out updating menu.
Compared to prior art, according to updating menu method and system provided by the invention, by according to updating menu character, determine whether the scheme of the agreement through user, greatly improve the experience of user.
In addition, by preset period of time, netscape messaging server Netscape obtains menu structure rate of change corresponding to menu and according to menu period modulation Policy Table, determines the scheme in the updating menu short message sending cycle that described menu is corresponding, is convenient to user and follows the trail of menu change in time.
In addition, after receiving described updating menu note by described terminal, judge that whether the form of described updating menu note is correct, whether the size of value is legal, if correctly legal, then in SIM card, obtains the scheme of corresponding menu file, the harassing and wrecking of refuse messages can be avoided, save system resource.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.