Summary of the invention
The purpose of technical solution of the present invention provides a kind of method and portable terminal of controlling mobile terminal roaming, can independently select opening or closing of roaming function by the user at portable terminal, make portable terminal when carrying out web search, can determine whether to be registered to the non-attribution network according to the roaming state that the user sets in advance, to reduce unnecessary rate expenditure.
For achieving the above object, one aspect of the present invention provides a kind of method of controlling mobile terminal roaming, described method comprises: portable terminal receives the roaming state instruction that the user assigns by user interface, and preserves included roaming state indication parameter in the described roaming state instruction; Described portable terminal detects described roaming state indication parameter, determines to meet the corresponding service network that described roaming state indication parameter sets roaming state.
Preferably, above-mentioned described method after described portable terminal determines to meet the described corresponding service network step that described roaming state indication parameter sets roaming state, also comprises:
Described portable terminal is registered to the wherein service network in the described corresponding service network;
Described portable terminal detects described roaming state indication parameter, and switch the sub-district of carrying out the network service according to described roaming state indication parameter.
Preferably, above-mentioned described method detects described roaming state indication parameter at described portable terminal, determines to meet in the corresponding service network step that described roaming state indication parameter sets roaming state:
It is 0 o'clock that described portable terminal detects described roaming state indication parameter, and roaming state is closed, and determines that described corresponding service network is the home service of described portable terminal;
It is 1 o'clock that described portable terminal detects described roaming state indication parameter, and roaming state is opened, and determines that described corresponding service network is all the allowed protocol service networks in described home service and the described portable terminal zone of living in.
Preferably, above-mentioned described method, described roaming state indication parameter is two, wherein the first roaming state indication parameter is used to indicate the National roaming state, the described first roaming state indication parameter is 0 o'clock, expression National roaming state is closed, and the described first roaming state indication parameter is 1 o'clock, and expression National roaming state is opened; The second roaming state indication parameter is used to indicate the international roaming state, and the described second roaming state indication parameter is 0 o'clock, and expression international roaming state is closed, and the described second roaming state indication parameter is 1 o'clock, and expression international roaming state is opened.
Preferably, above-mentioned described method detects described roaming state indication parameter at described portable terminal, determines to meet in the described corresponding service network step that described roaming state indication parameter sets roaming state:
Described portable terminal detects the described first roaming state indication parameter and the described second roaming state indication parameter is at 0 o'clock, determines that described corresponding service network is described home service;
Described portable terminal detects the described first roaming state indication parameter and the described second roaming state indication parameter is at 1 o'clock, determines that described corresponding service network is all the allowed protocol service networks in described home service and the described portable terminal zone of living in;
It is 0 that described portable terminal detects the described first roaming state indication parameter, and the described second roaming state indication parameter is 1 o'clock, determines that described corresponding service network is the external protocol service network in described home service and the described portable terminal zone of living in;
It is 1 that described portable terminal detects the described first roaming state indication parameter, and the described second roaming state indication parameter is 0 o'clock, determines that described corresponding service network is the domestic protocol service network in described home service and the described portable terminal zone of living in.
Preferably, above-mentioned described method, described portable terminal determines that described corresponding service network is after the step of the described external protocol service network in described home service and the described portable terminal zone of living in, also comprises:
Described portable terminal is compared the Mobile Country Code MCC MCC of described all allowed protocol service networks and the Mobile Country Code MCC MCC of described home service one by one, determines that the Mobile Country Code MCC MCC service network different with the Mobile Country Code MCC MCC of described home service is described external protocol service network in described all allowed protocol service networks;
Described portable terminal filters the Mobile Country Code MCC MCC service network identical with the Mobile Country Code MCC MCC of described home service in described all allowed protocol service networks.
Preferably, above-mentioned described method, described portable terminal determines that described corresponding service network is after the step of the described domestic protocol service network in described home service and the described portable terminal zone of living in, also comprises:
Described portable terminal is compared the Mobile Country Code MCC MCC of described all allowed protocol service networks and the Mobile Country Code MCC MCC of described home service one by one, determines that the Mobile Country Code MCC MCC service network identical with the Mobile Country Code MCC MCC of described home service is described domestic protocol service network in described all allowed protocol service networks;
Described portable terminal filters the Mobile Country Code MCC MCC service network different with the Mobile Country Code MCC MCC of described home service in described all allowed protocol service networks.
The present invention also provides a kind of portable terminal on the other hand, and described portable terminal comprises:
The command reception module is used for receiving the roaming state instruction that the user assigns by user interface, preserves included roaming state indication parameter in the described roaming state instruction;
The web search module is used to detect described roaming state indication parameter, determines to meet the corresponding service network that described roaming state indication parameter sets roaming state.
Preferably, above-mentioned described portable terminal also comprises:
The network registry module is used for being registered to the wherein service network of described corresponding service network;
The sub-district handover module is used for carrying out according to described roaming state indication parameter the sub-district switching of network service.
Preferably, above-mentioned described portable terminal, it is 0 o'clock that described web search module detects described roaming state indication parameter, determines that roaming state closes, described corresponding service network is the home service of described portable terminal;
It is 1 o'clock that described web search module detects described roaming state indication parameter, determines that roaming state opens, and described corresponding service network is all the allowed protocol service networks in described home service and the described portable terminal zone of living in.
In the technique scheme of the present invention at least one has following beneficial effect, by roaming state being set at portable terminal, receiving roaming state instruction back preservation roaming state indication parameter, net is looked in the new initiation of laying equal stress on, thereby can be according to the roaming state indication parameter, determine to meet the corresponding service network that this roaming state indication parameter sets roaming state, and be registered to a wherein service network in this corresponding service network, and can not be registered to and roam the service network that the state of setting is not inconsistent, therefore make portable terminal when carrying out web search, can determine whether according to the roaming state that the user sets in advance to be registered to the non-attribution network, thereby reach the purpose that reduces unnecessary rate expenditure.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the accompanying drawings and the specific embodiments.
Described method and the portable terminal that is used to control roaming of the specific embodiment of the invention, increase by a roaming state at portable terminal order is set, the user can be by user interface UI to the instruction of portable terminal input roaming state, make portable terminal when carrying out web search, can determine whether to be registered to the non-attribution network according to the roaming state that the user sets in advance, to reduce unnecessary rate expenditure.
Below will be described in detail described method of the specific embodiment of the invention and portable terminal.
Fig. 1 is the schematic flow sheet of the described method of the specific embodiment of the invention, consults the described method of Fig. 1 and comprises:
Step S101, portable terminal receives the roaming state instruction that the user assigns by user interface UI, preserves included roaming state indication parameter in the described roaming state instruction;
Step S102, described portable terminal detects described roaming state indication parameter, determining to meet the corresponding service network that described roaming state indication parameter sets roaming state, also is corresponding PLMN (public land mobile network, Public Land Mobile Network).
Wherein in step S101, the user utilizes the user interface UI on the portable terminal to assign the roaming state instruction to portable terminal, particularly, can on user interface UI, set up roaming state button is set, order by AT (Attention) :+ZROAM, with the roaming state instruction issuing to portable terminal, wherein comprise the roaming state indication parameter in this roaming state instruction, when the roaming state indication parameter in the roaming state instruction is 0, be used for expression and roaming state be set for closing, when the roaming state indication parameter in the roaming state instruction is 1, is used for expression and roaming state is set for opening.
Described portable terminal is preserved included roaming state indication parameter in this roaming state instruction, to be provided with and the corresponding roaming state of roaming state indication parameter after receiving that the above-mentioned roaming state instruction AT that comprises the roaming state indication parameter orders.
Like this, because the roaming state of described portable terminal obtains revising, so this portable terminal needs to initiate once to look for again net, with determine this portable terminal can register the mobile service network of use.Therefore described method is in step S102, this portable terminal is receiving the roaming state instruction or is initiating to look for net behind the starting up again, detect described roaming state indication parameter, determine to meet the corresponding service network that described roaming state indication parameter sets roaming state, wherein this look for net mode can be set to look for automatically net or manually look for net all can, look for network parameters to adopt the common network parameters (comprising band information, wireless access technology RAT priority etc.) of looking for.
At above-mentioned step S102, when the described roaming state indication parameter that receives when described portable terminal is 0, roaming state is closed, determine that then it is the home service of this portable terminal that this portable terminal can be registered the corresponding service network of use, also promptly this portable terminal is merely able to be registered to home service; When the described roaming state indication parameter that receives when described portable terminal is 1, roaming state is opened, the corresponding service network that then definite this portable terminal can be registered use is the home service of this portable terminal and all the allowed protocol service networks in this portable terminal zone of living in, also promptly this portable terminal except that being registered to the home service, can also be registered to all the allowed protocol service networks in this portable terminal zone of living in, this protocol service network be and the operator of this portable terminal between reached roaming agreement in advance, the public land mobile network PLMN that allows this portable terminal registration to use.
Like this, described portable terminal is according to the method for above-mentioned control roaming, by roaming state being set at portable terminal, receiving roaming state instruction back preservation roaming state indication parameter, net is looked in the new initiation of laying equal stress on, thereby can be according to the roaming state indication parameter, determine to meet the corresponding service network that this roaming state indication parameter sets roaming state, and be registered to a wherein service network in this corresponding service network, step S103 as Fig. 1, and can not be registered to and roam the service network that the state of setting is not inconsistent, thereby reach the purpose that reduces unnecessary rate expenditure.
In addition, roaming method to set up according to above-mentioned portable terminal, when portable terminal at the reciprocity service network that detects current institute registration service network, also be the EPLMN (Equivalent Public LandMobile Network) of PLMN, when carrying out sub-district switching (as the step S104 of Fig. 1), need to detect the roaming state indication parameter of being preserved equally, judge the roaming state that the roaming state indication parameter sets, determine to meet the EPLMN of this roaming state.When also the described roaming state indication parameter that promptly receives when portable terminal was 0, roaming state was closed, and determined that EPLMN does not meet roaming state, filtered or empty EPLMN; When the described roaming state indication parameter that receives when portable terminal was 1, roaming state was opened, and determines that EPLMN meets roaming state, does not filter EPLMN.
It will be understood by those skilled in the art that according to the band of position that portable terminal roams to and divide, comprise National roaming state and international roaming state.So described method that is used to control mobile terminal roaming of the specific embodiment of the invention, by UI in roaming state that portable terminal is assigned instruction, can include two roaming state indication parameters, wherein the first roaming state indication parameter is used to indicate the National roaming state, and the second roaming state indication parameter is used to indicate the international roaming state.
Two buttons are set respectively on the described mobile terminal user interface UI, are used for controlling respectively National roaming state and international roaming state, user interface UI orders by AT :+ZROAM, assign the roaming state instruction to portable terminal.Wherein in this AT order there be included parameter: nstatus also is the first roaming state indication parameter; Istatus is the second roaming state indication parameter also, and the indication implication of these two parameters is respectively:
Nstatus: expression opening/closing National roaming function
0: close National roaming
1: open National roaming
Istatus: expression opening/closing international roaming function
0: close international roaming
1: open international roaming
Described portable terminal is preserved included roaming state indication parameter in this roaming state instruction, thereby is provided with and the corresponding roaming state of roaming state indication parameter after receiving that the above-mentioned roaming state instruction AT that comprises the roaming state indication parameter orders.
Described portable terminal initiates to look for net according to received roaming state instruction, detects described roaming state indication parameter, determines to meet among the available PLMN corresponding service network that described roaming state indication parameter sets roaming state.
Fig. 2 is that described portable terminal detects the roaming state indication parameter, determines to meet the process schematic diagram of the corresponding service network (also being corresponding PLMN) that sets roaming state.Consult Fig. 2, this process comprises step:
S201 detects the roaming state indication parameter that described portable terminal is preserved;
S202, described first roaming state indication parameter and the described second roaming state indication parameter are 0, determine that National roaming state and international roaming state are to close, downwards execution in step S206;
S203, described first roaming state indication parameter and the described second roaming state indication parameter are 1, determine that National roaming state and international roaming state are to open, downwards execution in step S207;
S204, the described first roaming state indication parameter is 0, and the described second roaming state indication parameter is 1, determines that the National roaming state closes, and the international roaming state is opened, downwards execution in step S208;
S205, the described first roaming state indication parameter is 1, and the described second roaming state indication parameter is 0, determines that the National roaming state opens, and the international roaming state is closed, downwards execution in step S209;
S206 determines to meet the home service that the corresponding service network that sets roaming state only has this portable terminal;
S207, determine to meet the corresponding service network that sets roaming state and be the home service of this portable terminal and all the allowed protocol service networks in this portable terminal zone of living in, this protocol service network be and the operator of this portable terminal between reached roaming agreement in advance, the public land mobile network PLMN that allows this portable terminal registration to use;
S208, determine to meet the described corresponding service network that sets roaming state and be the external protocol service network in described home service and this portable terminal zone of living in, described portable terminal is compared the Mobile Country Code MCC MCC of all allowed protocol service networks of zone of living in and the Mobile Country Code MCC MCC of described home service one by one, determine that the Mobile Country Code MCC MCC service network different with the Mobile Country Code MCC MCC of described home service is described external protocol service network in described all allowed protocol service networks, downwards execution in step S210;
S209, determine to meet the described corresponding service network that sets roaming state and be the domestic protocol service network in described home service and the described portable terminal zone of living in, described portable terminal is compared the Mobile Country Code MCC MCC of all allowed protocol service networks in the zone of living in and the Mobile Country Code MCC MCC of described home service one by one, determine that the Mobile Country Code MCC MCC service network identical with the Mobile Country Code MCC MCC of described home service is described domestic protocol service network in described all allowed protocol service networks, downwards execution in step S211;
S210, described portable terminal filters the Mobile Country Code MCC MCC service network identical with the Mobile Country Code MCC MCC of described home service in described all allowed protocol service networks;
S211, described portable terminal filters the Mobile Country Code MCC MCC service network different with the Mobile Country Code MCC MCC of described home service in described all allowed protocol service networks.
Fig. 3 is according to the described method of the specific embodiment of the invention, schematic flow sheet when portable terminal carries out the sub-district gravity treatment, when portable terminal is detecting the current EPLMN that registers PLMN, when carrying out the sub-district gravity treatment, need to detect the roaming state indication parameter of being preserved equally, judge the roaming state that the roaming state indication parameter sets, determine to meet the EPLMN of this roaming state.Consult Fig. 3, the process that portable terminal carries out switching the sub-district comprises step:
S301 detects the roaming state indication parameter that described portable terminal is preserved;
S302, described first roaming state indication parameter and the described second roaming state indication parameter are 0, determine that National roaming state and international roaming state are to close, downwards execution in step S306;
S303, described first roaming state indication parameter and the described second roaming state indication parameter are 1, determine that National roaming state and international roaming state are to open, downwards execution in step S307;
S304, the described first roaming state indication parameter is 0, and the described second roaming state indication parameter is 1, determines that the National roaming state closes, and the international roaming state is opened, downwards execution in step S308;
S305, the described first roaming state indication parameter is 1, and the described second roaming state indication parameter is 0, determines that the National roaming state opens, and the international roaming state is closed, downwards execution in step S309;
S306 empties EPLMN, and portable terminal can not be registered to other any service network by the sub-district gravity treatment;
S307 does not filter EPLMN;
S308 filters the Mobile Country Code MCC MCC service network identical with the Mobile Country Code MCC MCC of described home service among current all EPLMN;
S309 filters the Mobile Country Code MCC MCC service network different with the Mobile Country Code MCC MCC of described home service among current all EPLMN.
Like this, the described method of the specific embodiment of the invention is being carried out in the reuse adoption process the sub-district, by the filtration to the EPLMN tabulation, makes portable terminal just can not pass through the sub-district gravity treatment, on the network that gravity treatment is not wished to register to the user.
Comprehensively above-mentioned, method by the described control mobile terminal roaming of the specific embodiment of the invention, the user can be manual opening/closing domestic, the international roaming function, therefore working as portable terminal initiates to look for no matter net (is manually to look for net, still look for net automatically) or during behavior such as sub-district gravity treatment, portable terminal all can be checked current roaming state setting, determine whether registering the non-attribution network according to current roaming state, thereby the roaming state that is provided with according to the user decides terminal whether to attempt registering the non-attribution network, reduces the unnecessary rate expenditure of user to a certain extent.
The specific embodiment of the invention also provides a kind of portable terminal that can control roaming on the other hand, consults Fig. 4, and this portable terminal comprises:
Command reception module 10 is used for receiving the roaming state instruction that the user assigns by user interface 20, preserves included roaming state indication parameter in the described roaming state instruction in memory module 30;
Web search module 40 is used to detect described roaming state indication parameter, determines to meet the corresponding service network that described roaming state indication parameter sets roaming state;
Network registry module 50 is used for being registered to the wherein service network of described corresponding service network;
Sub-district handover module 60 is used for carrying out according to described roaming state indication parameter the sub-district switching of network service.
Wherein when described web search module 40 detects described roaming state indication parameter and is 0, determine that roaming state closes, described corresponding service network is the home service of described portable terminal;
It is 1 o'clock that described web search module 40 detects described roaming state indication parameter, determines that roaming state opens, and described corresponding service network is all the allowed protocol service networks in described home service and the described portable terminal zone of living in.
The described portable terminal that is used to control roaming of the specific embodiment of the invention, two buttons are set respectively on the described mobile terminal user interface UI, be used for controlling respectively National roaming state and international roaming state, user interface UI orders by AT :+ZROAM assigns the roaming state instruction to portable terminal.Wherein in this AT order there be included parameter: nstatus also is the first roaming state indication parameter; Istatus is the second roaming state indication parameter also, and the indication implication of these two parameters is respectively:
Nstatus: expression opening/closing National roaming function
0: close National roaming
1: open National roaming
Istatus: expression opening/closing international roaming function
0: close international roaming
1: open international roaming
Adopt the described portable terminal of the specific embodiment of the invention, when internal and international roaming being set all closing, available corresponding service network tabulation has only the home service of portable terminal, and like this, portable terminal only attempts going to register home service when looking for net; When internal and international roaming being set all opening, available corresponding service network tabulation comprises the home service of this portable terminal and all the allowed protocol service networks in this portable terminal zone of living in; When being set, National roaming closes, when international roaming is opened, portable terminal is by the MCC of more current all allowed protocol service networks and the MCC of home service, from all allowed protocol service network PLMN tabulations, filter out the MCC service network identical with the MCC of home service, only stay home service and external protocol service network, portable terminal only can attempt registering home service and external protocol service network when looking for net like this; When being set, opens National roaming, when international roaming is closed, portable terminal is by the MCC of more current all allowed protocol service networks and the MCC of home network, filter out the MCC service network different with home network MCC, portable terminal only can attempt registering home service and domestic protocol service network when looking for net like this.
Like this, adopt the described portable terminal of the specific embodiment of the invention, the user can be by user interface UI to the instruction of portable terminal input roaming state, make portable terminal when carrying out web search, can determine whether to be registered to the non-attribution network according to the roaming state that the user sets in advance, to reduce unnecessary rate expenditure
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.