Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of network mode switch protecting method and dressIt sets, reduces the power consumption that terminal is generated by the switching of frequent network mode, and avoid caused by switching because of frequent network modeThe unusable problem of the network mode currently registered promotes user experience.
In a first aspect, the embodiment of the invention provides a kind of network mode switch protecting methods, it may include:
When terminal receives network mode switching command, judge that the network mode received in first time period switchesWhether instruction number is greater than preset times, and the first time period includes described current when receiving network mode switching commandA period of time before moment and the current time;
If the determination result is YES, then the terminal is forbidden to carry out network mode switching in second time period.
With reference to first aspect, in the first possible implementation, if the determination result is YES, described then in the second timeBefore forbidding the terminal to carry out network mode switching in section, comprising:
Judge whether the default resident priority for the network mode that the terminal is currently registered is higher than the current timeThe default resident priority for the network mode that the network mode switching command instruction received is switched to;
If it is not, the network mode that the terminal is currently registered then is switched to the network mode for indicating to be switched to,Execution described the step of forbidding the terminal to carry out network mode switching in second time period is triggered again;
If so, triggering executes described the step of forbidding the terminal to carry out network mode switching in second time period.
With reference to first aspect, in the second possible implementation, the judgement receives in first time periodWhether network mode switching command number is greater than preset times, comprising:
Judge whether the time interval for the network mode switching command that adjacent n times receive in first time period is both less thanPreset interval threshold value, wherein n is positive integer.
With reference to first aspect, in the third possible implementation, the judgement receives in first time periodWhether network mode switching command number is greater than after preset times, further includes:
If judging result be it is no, the network mode of the terminal is switched to the network mode that the current time receivesSwitching command indicates the network mode being switched to.
With reference to first aspect, in the fourth possible implementation, described to forbid the terminal in second time periodBefore progress network mode switching, further includes:
Whether detection has currently executed is forbidden the terminal to carry out network mode switching in second time period;
If being not carried out, triggers and execute the step for forbidding the terminal to carry out network mode switching in second time periodSuddenly.
Second aspect, the embodiment of the invention provides a kind of network mode switching protections, it may include:
First judgment module, it is inscribed in first time period for judging when terminal receives network mode switching commandWhether the network mode switching command number received is greater than preset times, and the first time period receives network mould including describedA period of time before current time and current time when formula switching command;
Disabled module, for if the determination result is YES, then forbidding the terminal to carry out network mode in second time periodSwitching.
In conjunction with second aspect, in the first possible implementation, described device, further includes:
Second judgment module, for judging whether the default of network mode that the terminal is currently registered is resident priorityHigher than the default resident priority for the network mode that the network mode switching command instruction that the current time receives is switched to;
First trigger module, if for judging result being network mode switching no, that the terminal is currently registeredTo the network mode for indicating to be switched to, then triggers and the terminal is forbidden to carry out network mould described in execution in second time periodThe step of formula switches;
Second trigger module is used to if the determination result is YES, then trigger described in forbidding in second time period described in executionTerminal carries out the step of network mode switching.
In conjunction with second aspect, in the second possible implementation, the first judgment module is specifically used for:
When terminal receives network mode switching command, the network that adjacent n times receive in first time period is judgedWhether the time interval of pattern switching instruction is both less than preset interval threshold value, wherein n is positive integer.
In conjunction with second aspect, in the third possible implementation, described device, further includes:
Switching module, if for judging result be it is no, the network mode of the terminal is switched to the current time and is connectThe network mode switching command received indicates the network mode being switched to.
In conjunction with second aspect, in the fourth possible implementation, described device, further includes:
Whether detection module forbids the terminal to carry out network mould for detecting currently to have executed in second time periodFormula switching;
Third trigger module, if for being not carried out, trigger execution it is described forbid in second time period the terminal intoThe step of row network mode switches.
The implementation of the embodiments of the present invention has the following beneficial effects:
The embodiment of the present invention, it is inscribed in first time period by judging when terminal receives network mode switching commandWhether the network mode switching command number received is greater than preset times, if the determination result is YES, then prohibits in second time periodOnly the terminal carries out network mode switching.I.e. when detecting and judge that terminal has carried out frequent network mode in a short timeWhen switching, then the exchange-column shift protection of preset time period is opened, forbids the terminal to carry out network mode within a preset period of time and cutsIt changes, to guarantee that terminal carries out frequent network mode switching in the frequent region of channel hopping, to reduce terminal because of frequent switchingThe power consumption of generation, and the problem that current network mode caused by avoiding because of frequent switching is unusable, promote user experience.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
It should be noted that the term used in embodiments of the present invention is only merely for the mesh of description specific embodiment, it is not intended to limit the invention." the one of the embodiment of the present invention and singular used in the attached claimsKind ", " described " and "the" are also intended to including most forms, unless the context clearly indicates other meaning.It is also understood that thisTerm "and/or" used herein refers to and includes one or more associated any or all possible group for listing projectIt closes.
It should also be noted that, the terminal in the embodiment of the present invention includes but is not limited to the multiple network mode that can supportSmart phone, tablet computer, media player, smart television, Intelligent bracelet, intelligent wearable device, MP3 player (MovingPicture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4(Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 3) is broadcastThe users such as device, personal digital assistant (Personal Digital Assistant, PDA) and pocket computer on knee are put to setIt is standby.
Fig. 1 is the flow diagram of one of embodiment of the present invention network mode switch protecting method, below in conjunction withAttached drawing 1 is from the network module side of terminal side either terminal inner to one of embodiment of the present invention network mode switch protectingMethod describes in detail, as shown in Figure 1, one of the present embodiment network mode switch protecting method may include following stepRapid S101- step S102.
Step S101: when terminal receives network mode switching command, judge the net received in first time periodWhether network pattern switching instruction number is greater than preset times.
Specifically, the network mode switching command that terminal receives mainly includes that terminal/user equipment UE is losing currentlyWireless access technology (Radio Access Technologies, RAT) covering is to need to switch and be connected to other RAT'sIn the case of, the network mode switching command that corresponding source base station is sent will be referred to after UE receives the instruction using thisRelevant parameter in order initiates handoff procedure.For example, a UE loses LTE covering far from urban area, network willIt is switched to the second best in quality RAT that UE is detected, such as Universal Mobile Communication System (Universal MobileTelecommunications System, UMTS) or global system for mobile communications (Global System for MobileCommunication, GSM).
In the embodiment of the present invention, after receiving network mode switching command, triggering judges in first time period terminalWhether the network mode switching command number inside received is greater than preset times, and wherein first time period receives net including describedA period of time before current time and current time when network pattern switching instructs.Such as terminal connects at current timeWhen receiving network mode switching command, triggering corresponding network module judges that the network mode received in first time period switching refers toWhether the number of order is greater than preset times, to predict whether the terminal is currently possible to carry out frequent network mode switching.Preferably, the preset times are 2~5 times, and the first time period is 10~30s.
Further, the network mode switching command received is also possible to terminal and judges whether self by measured valueReach the switching threshold between two kinds of network modes, that is, when judging to meet switching condition, just network mould may occur for predictionFormula switching action then triggers the judgement that judgement reach the number of switching condition.
Step S102: if the determination result is YES, then the terminal is forbidden to carry out network mode switching in second time period.
Specifically, if the judging result in step S101 be it is yes, may determine that predict the terminal in current regionThe switching that excessively frequent network mode may occur then is forbidden the terminal to carry out network mode in second time period and is cutIt changes, is excessively frequently switched in a short period of time to avoid terminal.
In specific embodiment, can by opening timing device carry out second time period protection, first determine whether be currentlyThe no timer that has been started up is protected, if not starting timer protection, starts timer protection, then controlling terminal is stayedThe network mode currently registered is stayed in, the switching of network mode is no longer carried out;If having had been started up timer protection, in timingWhen the protection timing of device finishes, restore normal condition.More specifically, the method that terminal carries out network mode switching is to work as receptionWhen the network mode switching command sent to base station, or when receiving the network mode switching command of itself initiation, ignoreThe switching command.Preferably, the second time period is 1~5 minute.
It is understood that the UE that the method for the present invention is also applied for Idle state carries out the application scenarios of cell reselection.For example,When terminal is in the region of frequent network mode gravity treatment, the network mode switching command received be by terminal fromThe network mode gravity treatment instruction that body is actively initiated.Above method step is then the net for judging terminal active initiation in first time periodThe instruction number of network mode gravity treatment, when the instruction number of the network mode gravity treatment of initiation is greater than preset times, then at secondBetween forbid in section the terminal to carry out the gravity treatment of network mode.Similarly, the method for the present invention be applied equally to co-frequency cell gravity treatment,The application scenarios of pingpang handoff, the present invention are generated in cell switching based on wireless quality and the cell switching based on loading conditionIt is not listed one by one.
The embodiment of the present invention, it is inscribed in first time period by judging when terminal receives network mode switching commandWhether the network mode switching command number received is greater than preset times, if the determination result is YES, then prohibits in second time periodOnly the terminal carries out network mode switching.I.e. when detecting and judge that terminal has carried out frequent network mode in a short timeWhen switching, then the exchange-column shift protection of preset time period is opened, forbids the terminal to carry out network mode within a preset period of time and cutsIt changes, to guarantee that terminal carries out frequent network mode switching in the frequent region of channel hopping, to reduce terminal because of frequent switchingThe power consumption of generation, and the problem that current network mode caused by avoiding because of frequent switching is unusable, promote user experience.
Fig. 2 is the flow diagram of another network mode switch protecting method in the embodiment of the present invention, below will knotAttached drawing 2 is closed to describe to another network mode switch protecting method in the embodiment of the present invention in detail, as shown in Fig. 2, thisAnother network mode switch protecting method in inventive embodiments may comprise steps of S201- step S204.
Step S201: when terminal receives network mode switching command, judge the net received in first time periodWhether network pattern switching instruction number is greater than preset times.
Specifically, it can correspond to reference to the method and step S101 in Fig. 1 embodiment, details are not described herein.
Step S202: if the determination result is YES, judge the network mode that the terminal is currently registered it is default be resident it is excellentWhether first grade, which is higher than the default of network mode that the network mode switching command instruction that the current time receives is switched to, is stayedStay priority.
Specifically, when the judging result in step S201, which is, is, then it is judged as that terminal needs switch over protection, andBefore starting that terminal is forbidden to carry out network mode switching, need to judge that the terminal currently registers the resident of resident network modePriority.Because when once switching over protection, terminal needs to be resident second time period in the network mode currently registered,So during this period of time, if user needs the business carried out not support on the network mode, it is longer to will lead to terminalTime rests on user and is not suitable on the network mode stopped, therefore this method step is by forbidding carrying out network mode switchingBefore, the judgement of the height of the default resident priority of network mode is carried out.
Step S203: if it is not, the network mode that the terminal is currently registered then is switched to what the instruction was switched toNetwork mode, then trigger execution described the step of forbidding the terminal to carry out network mode switching in second time period.
Specifically, if the judging result in step S202 be it is no, the network mode even currently registered it is default be resident it is excellentFirst grade indicates the network mode being switched to lower than the network mode switching command that current time receives, then needs terminal is currentThe network mode registered be switched to priority it is higher it is described indicate on the network mode that is switched to, then trigger execution it is describedThe step of forbidding the terminal to carry out network mode switching in second time period.It is understood that default resident priority canWith the corresponding network mould being preferentially resident either being arranged according to the common type of service of user according to the use habit of userFormula.More specifically, can correspond to reference to the step S102 in Fig. 1 embodiment.
Step S204: the terminal progress network mode is forbidden to cut in second time period if so, triggering execution is describedThe step of changing.
Specifically he, if the judging result in step S202 be it is yes, i.e., currently registered resided in resident priority compared withOn high network mode, then directly triggering execution is described forbids the terminal to carry out network mode switching in second time periodStep.More specifically, can correspond to reference to the step S102 in Fig. 1 embodiment.
The embodiment of the present invention, it is inscribed in first time period by judging when terminal receives network mode switching commandWhether the network mode switching command number received is greater than preset times, if the determination result is YES, then prohibits in second time periodOnly the terminal carries out network mode switching.I.e. when detecting and judge that terminal has carried out frequent network mode in a short timeWhen switching, then the exchange-column shift protection of preset time period is opened, forbids the terminal to carry out network mode within a preset period of time and cutsIt changes, to guarantee that terminal carries out frequent network mode switching in the frequent region of channel hopping, to reduce terminal because of frequent switchingThe power consumption of generation, and the problem that current network mode caused by avoiding because of frequent switching is unusable, promote user experience.
Fig. 3 is the flow diagram of another network mode switch protecting method in the embodiment of the present invention, below will knotAttached drawing 3 is closed to describe to another network mode switch protecting method in the embodiment of the present invention in detail, as shown in figure 3, thisAnother network mode switch protecting method in inventive embodiments may comprise steps of S301- step S304.
Step S301: when terminal receives network mode switching command, judge that adjacent n times receive in first time periodWhether the time interval of the network mode switching command arrived is both less than preset interval threshold value.
Specifically, n is positive integer.When terminal receives network mode switching command, the phase in first time period is judgedWhether the time interval for the network mode switching command that adjacent n times receive is both less than preset interval threshold value, wherein.I.e. in addition to judgementThe total degree of network mode is received in a period of time, it is also necessary to which judgement receives the time between network mode instruction each timeInterval, to ensure more accurately to predict whether terminal needs to carry out frequent network switching really.
Step S302: if the determination result is YES, whether detection has currently executed is forbidden the end in second time periodEnd carries out network mode switching.
Specifically, during judgement, it is possible that having had been started up the movement for forbidding network mode to switch, at this timeIt needs to detect whether to have executed the movement.
Step S303: it if being not carried out, triggers and the terminal is forbidden to carry out network mould described in execution in second time periodThe step of formula switches.
Specifically, it if the judging result in step S302 is also to be not carried out, triggers execution and forbids in second time periodThe terminal carries out the step of network mode switching.If having executed, can not need to execute any movement.And at secondBetween after section, then the movements such as the switching of network mode can be carried out according to the normal condition of terminal.
Step S304: if judging result be it is no, the network mode of the terminal is switched to the current time and is receivedNetwork mode switching command indicate the network mode that is switched to.
Specifically, when the judging result in step S301 be it is no, then illustrate terminal currently without in needing frequent switchingState, then can directly switch over.The network mode of the terminal is switched to the net that the current time receivesThe network mode that the instruction instruction of network pattern switching is switched to.
In specific application scenarios, as shown in figure 4, Fig. 4 is network mode switch protecting method in the embodiment of the present inventionA concrete application scene schematic diagram, user terminal receives the network mode switching command that base station is sent in figure, when receivingSwitching command it is excessively frequent when, then opening timing switch protecting function, more specifically, referring to Fig. 5 and application shown in fig. 6Schematic diagram of a scenario.
In specific application scenarios, as shown in figure 5, Fig. 5 is network mode switch protecting method in the embodiment of the present inventionAnother concrete application scene schematic diagram, for example, user is entering 2G (Global System for using CSFB terminalMobile Communications, GSM) network and LTE network signal are when jumping frequent region, and first time period is 20s,Second time period is 5min, and preset times are 2 times.As shown in figure 5, sometime connecing in 20s before current timeFirst time switching command is received, for network mode is switched to LTE from 2G, judgement can all be triggered by receiving switching command each timeWhether switching command twice or more is received in 20s, since this is for the first time to receive switching command, and before thisOther switching commands are not received by 20s, therefore, this time terminal can normally switch, i.e., be switched to LTE from current 2G.But it is primary due to being had been received in 20s before for second of the switching command received at current time, that is, it triggersJudge to have received network switching instruction twice or above in 20s, be determined as terminal at this time 2G network and LTE network itBetween carry out frequent switching when, therefore, terminal thinks to need to switch over encryption at this time, then control starting timing controllerThe switch protecting of 5min is carried out, then, terminal resides in current LTE network in the 5min and forbids being switched to 2GOn, until the encryption of 5min terminates, terminal then returns to normal condition.
In specific application scenarios, as shown in fig. 6, Fig. 6 is network mode switch protecting method in the embodiment of the present inventionAnother concrete application scene schematic diagram, for example, user jumps entering 2G network and LTE network signal using CSFB terminalWhen frequent region, and first time period is 20s, and second time period 5min, preset times are 2 times.As shown in fig. 6, currentFirst time switching command is sometime received in 20s before moment, for network mode is switched to 2G from LTE, oftenOnce switching command is received all and can trigger the switching command for judging whether to receive in 20s twice or more, since this isSwitching command is received for the first time, and is not received by other switching commands in 20s before this, therefore, this time terminal can be justOften switching, i.e., be switched to 2G from current LTE.But for second of the switching command received at current time, due at itIt is had been received in preceding 20s once, i.e. triggering judges to have received the instruction of network switching twice or above in 20s, sentencesIt is set to terminal at this time between 2G network and LTE network when progress frequent switching, therefore, terminal thinks to need to switch at this timeEncryption, but since the network mode that terminal is resident at present is 2G, preset resident priority is lower than LTE, so at this timeNeed first once to be switched, i.e., by the network mode of terminal from 2G be switched to LTE and then control starting timing controller intoThe switch protecting of row 5min, then, terminal reside in current LTE network in the 5min and forbid being switched on 2G,Until the encryption of 5min terminates, terminal then returns to normal condition.
The embodiment of the present invention, it is inscribed in first time period by judging when terminal receives network mode switching commandWhether the network mode switching command number received is greater than preset times, if the determination result is YES, then prohibits in second time periodOnly the terminal carries out network mode switching.I.e. when detecting and judge that terminal has carried out frequent network mode in a short timeWhen switching, then the exchange-column shift protection of preset time period is opened, forbids the terminal to carry out network mode within a preset period of time and cutsIt changes, to guarantee that terminal carries out frequent network mode switching in the frequent region of channel hopping, to reduce terminal because of frequent switchingThe power consumption of generation, and the problem that current network mode caused by avoiding because of frequent switching is unusable, promote user experience.
Referring to Fig. 7, it is situated between in detail to the structural schematic diagram of the network mode switching protection in the embodiment of the present inventionIt continues.The device 10 can include: first judgment module 101 and disabled module 108, wherein
First judgment module 101, for judging in first time period when terminal receives network mode switching commandWhether the network mode switching command number received is greater than preset times, and the first time period receives network including describedA period of time before current time and current time when pattern switching instructs;
Disabled module 108, for if the determination result is YES, then forbidding the terminal to carry out network mould in second time periodFormula switching.
Specifically, the structure of another embodiment of network mode switching protection provided by the invention as shown in Figure 8Schematic diagram, network mode switching protection can also include: the second judgment module 102, the first trigger module 103 and secondTrigger module 104, wherein
Second judgment module 102, for judging that the default of network mode that the terminal is currently registered is resident priorityWhether be higher than the current time receive network mode switching command instruction be switched to network mode it is default be resident it is excellentFirst grade;
First trigger module 103, if for judging result be it is no, the network mode that the terminal is currently registered is cutThe network mode for indicating to be switched to is changed to, then triggers and the terminal is forbidden to carry out network described in execution in second time periodThe step of pattern switching;
Second trigger module 104, for if the determination result is YES, then triggering, execution is described to forbid institute in second time periodState the step of terminal carries out network mode switching.
Further, the first judgment module 101 in network mode switching protection 10, is specifically used for:
When terminal receives network mode switching command, the network that adjacent n times receive in first time period is judgedWhether the time interval of pattern switching instruction is both less than preset interval threshold value, wherein n is positive integer.
Still further, the another embodiment of network mode switching protection provided by the invention as shown in Figure 9Structural schematic diagram, network mode switching protection 10 can also include: switching module 105, wherein
Switching module 105, if for judging result be it is no, the network mode of the terminal is switched to the current timeThe network mode switching command received indicates the network mode being switched to.
Still further, the another embodiment of network mode switching protection provided by the invention as shown in Figure 10Structural schematic diagram, network mode switching protection can also include: 106 third trigger module 107 of detection module, wherein
Whether detection module 106 forbids the terminal to carry out net for detecting currently to have executed in second time periodNetwork pattern switching;
Third trigger module 107, if triggering for being not carried out and forbidding the terminal in second time period described in executionThe step of carrying out network mode switching.
It will be appreciated that the function of each module can be corresponded to reference to above-mentioned Fig. 1 to Fig. 3 in network mode switching protection 10In each method embodiment in specific implementation, which is not described herein again.
The embodiment of the present invention, it is inscribed in first time period by judging when terminal receives network mode switching commandWhether the network mode switching command number received is greater than preset times, if the determination result is YES, then prohibits in second time periodOnly the terminal carries out network mode switching.I.e. when detecting and judge that terminal has carried out frequent network mode in a short timeWhen switching, then the exchange-column shift protection of preset time period is opened, forbids the terminal to carry out network mode within a preset period of time and cutsIt changes, to guarantee that terminal carries out frequent network mode switching in the frequent region of channel hopping, to reduce terminal because of frequent switchingThe power consumption of generation, and the problem that current network mode caused by avoiding because of frequent switching is unusable, promote user experience.
Although it should be understood that herein using the describing modules such as term first, second, moment or period,These modules, moment or period should should not be limited by these terms, and these terms are only used to distinguish one another.It should also manageSolution, it is used in the present context, unless the context clearly supports exceptions, singular "one" (" a ", " an " and" the ") it is intended to also include plural form.It should also be understood that "and/or" used herein refer to including one orAny and all possible combinations of more than one project listed in association.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be withRelevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage mediumIn, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magneticDish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random AccessMemory, RAM) etc..
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainlySharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and weighs according to the present inventionBenefit requires made equivalent variations, still belongs to the scope covered by the invention.