CN106470267B - A kind of Working mode switching method and terminal - Google Patents
A kind of Working mode switching method and terminal Download PDFInfo
- Publication number
- CN106470267B CN106470267B CN201510514251.6A CN201510514251A CN106470267B CN 106470267 B CN106470267 B CN 106470267B CN 201510514251 A CN201510514251 A CN 201510514251A CN 106470267 B CN106470267 B CN 106470267B
- Authority
- CN
- China
- Prior art keywords
- mode
- current operation
- operation mode
- operating mode
- terminal
- 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.)
- Active
Links
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses a kind of Working mode switching method and terminals.This method comprises: obtaining the orientation mode parameter of terminal at predetermined intervals;Judge whether orientation mode parameter is corresponding with current operation mode;If orientation mode parameter is not correspond to current operation mode, using operating mode corresponding to orientation mode parameter as current operation mode.Therefore, it can be accustomed to using the action behavior of people, flexible modulation is carried out to current operation mode according to actual needs.
Description
Technical field
The present invention relates to communication and mobile Internet field more particularly to a kind of Working mode switching method and terminals.
Background technique
With popularizing for NFC mobile phone, more and more scenes all turn to the NFC near field communications capability using mobile phone terminal.
Since current NFC application scenarios are fairly simple, the switchover policy of operating mode is also fairly simple, only relies on electromagnetic wave
Intensity is adaptively switched, but on the other hand, it is due to the expansion of scene, adaptive when NFC mobile phone is close to each other
The mode answered is not necessarily user's mode actually required.
Summary of the invention
The technical problem to be solved by the present invention is to adaptive modes not to be able to satisfy user's actual need.
According to an aspect of the present invention, a kind of Working mode switching method is proposed, comprising:
The orientation mode parameter of terminal is obtained at predetermined intervals;
Judge whether the orientation mode parameter is corresponding with current operation mode;
It, will be corresponding to the orientation mode parameter if the orientation mode parameter is not correspond to current operation mode
Operating mode is as current operation mode.
In one embodiment, the orientation mode parameter includes azimuth;
Judge that orientation mode parameter step whether corresponding with current operation mode includes:
Determine region corresponding with the azimuth;
Whether judgement and the associated operating mode in the region are identical as current operation mode;
If different with current operation mode from the associated operating mode in the region, it is determined that the orientation mode parameter
It is not correspond to current operation mode.
In one embodiment, after determining region corresponding with the azimuth, further includes:
Judge the whether associated operating mode in the region;
If the associated operating mode in region, executing judgement operating mode associated with the region is
The no step identical as current operation mode;
If the region does not have associated operating mode, keep current operation mode constant.
In one embodiment, the orientation mode parameter further includes azimuth rate;
Judge orientation mode parameter step whether corresponding with current operation mode further include:
Judge whether the terminal is in shake state according to the azimuth rate;
If the terminal is in shake state, operating mode associated with the state of shake is further inquired;
Whether judgement and the shake associated operating mode of state are identical as current operation mode;
If the associated operating mode of state is different with current operation mode from shaking, it is determined that the orientation mode parameter
It is not correspond to current operation mode.
In one embodiment, the step of inquiry operating mode associated with shake state includes:
Candidate pattern is selected, wherein candidate pattern is other operating modes in addition to current operation mode;
It counts candidate pattern and uses probability within the predetermined time;
The candidate pattern of maximum probability will be used as operating mode associated with shake state.
In one embodiment, the step of selection candidate pattern includes:
Judging the terminal, whether this enters shake state and the last time interval exited between shake state
Less than threshold value;
It, will be except current operation mode and the Working mould being switched to before current operation mode if time interval is less than threshold value
Other operating modes except formula are as candidate pattern;
If time interval is not less than threshold value, using other operating modes in addition to current operation mode as candidate mould
Formula.
According to another aspect of the present invention, it is also proposed that a kind of operating mode switching terminal, comprising:
Parameter collection module, for obtaining the orientation mode parameter of terminal at predetermined intervals;
Judging treatmenting module, for judging whether the orientation mode parameter is corresponding with current operation mode;
Mode switch module, for the judging result according to the judging treatmenting module, if the orientation mode parameter with
Current operation mode is not correspond to, then using operating mode corresponding to the orientation mode parameter as current operation mode.
In one embodiment, the orientation mode parameter includes azimuth;
The judging treatmenting module judges associated with the region for determining region corresponding with the azimuth
Operating mode it is whether identical as current operation mode, if operating mode associated with the region and current operation mode are not
Together, it is determined that the orientation mode parameter is not correspond to current operation mode.
In one embodiment, the judging treatmenting module is also used to judge the whether associated work in the region
Whether mode executes judgement operating mode associated with the region if the associated operating mode in the region
The step identical as current operation mode;
The mode switch module is used for the judging result according to the judging treatmenting module, if the region is without correlation
The operating mode of connection then keeps current operation mode constant.
In one embodiment, the orientation mode parameter further includes azimuth rate;
The judging treatmenting module is used to according to the azimuth rate judge whether the terminal is in shake state,
If the terminal is in shake state, further inquiry operating mode associated with the state of shake, judges and the state of shake
Whether associated operating mode is identical as current operation mode, if operating mode associated with the state of shake and work at present
Mode is different, it is determined that the orientation mode parameter is not correspond to current operation mode.
In one embodiment, selecting module, for selecting candidate pattern, wherein candidate pattern is except current operation mode
Except other operating modes;
Statistical module uses probability within the predetermined time for counting candidate pattern;
The judging treatmenting module is used for the statistical result according to the statistical module, will use the candidate mould of maximum probability
Formula is as operating mode associated with the state of shake.
In one embodiment, the selecting module specifically judges the terminal this enters shake state and the last
Whether the time interval exited between shake state is less than threshold value;If time interval is less than threshold value, current operation mode will be removed
And other operating modes except the operating mode before being switched to current operation mode are as candidate pattern;If time interval is not
Less than threshold value, then using other operating modes in addition to current operation mode as candidate pattern.
Compared with prior art, the present invention judges the orientation state parameter institute by the orientation mode parameter of acquisition terminal
Whether corresponding operating mode is identical as current operation mode, if it is different, current operation mode is then switched to the orientation mode
Operating mode corresponding to parameter.Therefore, can be accustomed to using the action behavior of people, according to actual needs to current operation mode
Carry out flexible modulation.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its
Advantage will become apparent.
Detailed description of the invention
The attached drawing for constituting part of specification describes the embodiment of the present invention, and together with the description for solving
Release the principle of the present invention.
The present invention can be more clearly understood according to following detailed description referring to attached drawing, in which:
Fig. 1 is the flow diagram of one embodiment of Working mode switching method of the present invention.
Fig. 2 is the flow diagram of another embodiment of Working mode switching method of the present invention.
Fig. 3 is that the azimuth of one embodiment of Working mode switching method of the present invention divides schematic diagram.
Fig. 4 is the flow diagram of another embodiment of Working mode switching method of the present invention.
Fig. 5 is the flow diagram of another embodiment of Working mode switching method of the present invention.
Fig. 6 is the structural schematic diagram of one embodiment of operating mode switching terminal of the present invention.
Fig. 7 is the structural schematic diagram of one embodiment of operating mode switching terminal of the present invention.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should also be noted that unless in addition having
Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of invention.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality
Proportionate relationship draw.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the present invention
And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as authorizing part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without
It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference
Attached drawing, the present invention is described in more detail.
Fig. 1 is the flow diagram of one embodiment of Working mode switching method of the present invention.This method includes following step
It is rapid:
In step 110, the orientation mode parameter of terminal is obtained at predetermined intervals.
Wherein, orientation mode parameter may include azimuth or azimuth rate.The present invention can use terminal built-in
Gyroscope and acceleration transducer the orientation of terminal is captured.For example, gyroscope when user shakes mobile phone, in mobile phone
Mobile phone, which can be measured, to be vertical state, horizontality or shakes state.
In step 120, judge whether orientation mode parameter is corresponding with current operation mode, and step is executed if being not correspond to
Rapid 130, otherwise, execute step 140.
Wherein it is possible to the corresponding relationship of orientation mode parameter and operating mode be preset, for example, end level state is silent
Think that card mold simulation models, vertical state are reader mode, state of shaking is P2P mode.Those skilled in the art should
Understand, the corresponding relationship of orientation mode parameter and operating mode is only intended to illustrate here, can also be answered according to the reality of user
The corresponding relationship of orientation state parameter and operating mode is set with habit.
In step 130, using operating mode corresponding to orientation mode parameter as current operation mode.
For example, being card mold simulation models when mobile phone horizontality, after rocking mobile phone, mobile phone becomes vertical state, then will be current
Operating mode switches to reader mode corresponding to vertical state.
In step 140, keep current working status constant.
In this embodiment, the present invention judges that orientation state parameter institute is right by the orientation mode parameter of acquisition terminal
Whether the operating mode answered is identical as current operation mode, if it is different, current operation mode is then switched to orientation mode ginseng
The corresponding operating mode of number.Therefore, can using people action behavior be accustomed to, according to actual needs to current operation mode into
Row flexible modulation.This method is convenient and efficient, to the with strong applicability of various concrete scenes.The present invention is suitable for NFC operating mode
The optimization of switching.
As shown in Fig. 2, if orientation mode parameter only includes azimuth, method includes the following steps:
In step 210, the azimuth of terminal is obtained in real time.
In step 220, region corresponding with azimuth is determined.
For example, utilizing the azimuth of the gyroscope measurement mobile phone built in mobile phone.As shown in figure 3, by the azimuth of mobile phone into
Row divides.Region A is mobile phone relative to trunnion axis ± 20 ° and its mirror surface symmetrical region, this represents mobile phone and is in horizontality.
Region B be mobile phone relative between 70 ° -110 ° of trunnion axis region and its mirror surface symmetrical region, represent mobile phone and be in vertical
State.Can also set the region C, the region be mobile phone relative between 20 ° -70 ° of trunnion axis region and its mirror surface pair
Claim region.It will be understood by those of skill in the art that azimuthal division is only intended to illustrate here, it can also be according to user's
Practical application habit azimuthal is divided.
In step 230, the whether associated operating mode in the region is judged, if the region does not have associated work
Mode thens follow the steps 240, otherwise, executes step 250.
For example, setting regions A is card mold simulation models, region B is reader mode, and region C is delay buffer area, if mobile phone
Azimuth is in region C, then corresponds to no associated operating mode.
In step 240, keep current operation mode constant.Later, other steps of the present embodiment are no longer executed.
For example, mobile phone is initially located in horizontality, it is card mold simulation models, when shaking mobile phone, mobile phone is in relative to water
45 ° of flat axis, then mobile phone still keeps card mold simulation models.In this embodiment, setting delay buffer area, for example, mobile phone azimuth exists
At 20 ° -70 °, the frequent change of mobile phone working mode can be prevented.
In step 250, whether judgement and the associated operating mode in the region are identical as current operation mode.The area Ruo Yugai
The associated operating mode in domain is identical as current operation mode, thens follow the steps 240, if it is different, thening follow the steps 260.
In step 260, using operating mode corresponding to azimuth as current operation mode.
For example, be card mold simulation models in horizontality before mobile phone shakes, after rocking mobile phone, mobile phone and trunnion axis at
80 °, then current operation mode is switched into reader mode corresponding to vertical state.
The azimuthal multiple regions of mobile phone can also be corresponded to multiple-working mode by the present invention, and successively carry out operating handset
Cycle of modes.For example, arriving B operating mode, then arrive C operating mode from A operating mode.In order to reduce the power consumption of mobile phone, may be used also
Threshold value is arranged to switching time, if twice switching time be less than threshold value, such as be switched to B operating mode from A operating mode, then
The time for being switched to C operating mode is very short, then directly can be switched to C operating mode from A operating mode.
In this embodiment, mobile phone azimuth is divided into multiple regions, the azimuth information of real-time monitoring mobile phone, judgement should
The whether associated operating mode in region keeps current operation mode if the region does not have associated operating mode
It is constant, if there is associated operating mode in the region, judge that the associated operating mode in the region is with current operation mode
No correspondence, if not corresponding to, using operating mode corresponding to azimuth as current operation mode.Therefore, people can be utilized
Action behavior habit, according to actual needs to current operation mode carry out flexible modulation.Also, due to being provided with delay buffering
Area can prevent the frequent change of mobile phone working mode.
As shown in figure 4, this method includes following if orientation mode parameter includes simultaneously azimuth and azimuth rate
Step:
In step 410, azimuth and the azimuth rate of terminal are obtained in real time.
In step 420, judge whether terminal is in shake state according to azimuth rate, if terminal is in shake state
430 are thened follow the steps, otherwise, executes step 440.
Wherein, shake state is that the mobile phone often said in living shakes state.Hand is measured using the gyroscope built in mobile phone
The azimuth of machine and azimuth rate.Operating mode is set according to the habit of user.If for example, presetting user
Commonly using card mold simulation models and reader mode, then both operating modes can be corresponded respectively to as shown in Figure 3
Orientation angular zone A and region B, and the P2P mode being of little use is corresponded to and shakes state.
In step 430, then operating mode associated with the state of shake is further inquired.For example, related to the state of shake
The operating mode of connection is P2P mode.
In step 440, current operation mode is determined using orientation angles.For example, it is opposite with azimuth to execute above-mentioned determination
The region answered, and the step whether corresponding with current operation mode of the operating mode according to corresponding to the region.Due to the mistake
Journey is no longer explained herein with being illustrated in a upper embodiment.
In step 450, whether judgement and the shake associated operating mode of state are identical as current operation mode.If phase
Together, 460 are thened follow the steps, otherwise, executes step 470.
In step 460, keep current operation mode constant.Later, other steps of the present embodiment are no longer executed.
In step 470, using operating mode corresponding to shake state as current operation mode.
For example, mobile phone start-up operation mode be card mold simulation models, shake mobile phone after, judge be corresponding to shake state
Operating mode is then switched to P2P mode by P2P mode.
In this embodiment, according to the habit of user, operating mode is preset, by mobile phone azimuth and
The measurement of azimuth rate, several operating modes can be carried out by the horizontal vertical state of terminal and the movement of " shaking "
Arbitrarily switching, it is stronger to the usability of various concrete scenes.Also, the present invention is scheduled control without using special peripheral hardware.
As shown in figure 5, if orientation mode parameter only includes azimuth rate, method includes the following steps:
In step 510, the azimuth rate of terminal is obtained in real time.
In step 520, judge whether terminal is in shake state according to azimuth rate, if terminal is in shake state
530 are thened follow the steps, otherwise, executes step 570.
Wherein, shake state is that the mobile phone often said in living shakes state.Hand is measured using the gyroscope built in mobile phone
The azimuth rate of machine.Operating mode is set according to the habit of user.
In step 530, candidate pattern is selected.Wherein candidate pattern is other Working moulds in addition to current operation mode
Formula.
For example, NFC operating mode is divided into mode A, B-mode and C mode.If current operation mode is mode A, B-mode
It is candidate pattern with C mode.
In step 540, counts each candidate pattern and use probability within the predetermined time.
For example, NFC operating mode is divided into mode A, B-mode and C mode.P (A) is the probability that uses of mode A, and P (B) is B
Mode uses probability, and P (C) is C mode using probability, tATime, t are used for mode ABThe time is used for B-mode,
tCThe time is used for C mode.
In step 550, the candidate pattern of maximum probability will be used as operating mode associated with shake state.
In step 560, using the associated operating mode of the state of shaking as current operation mode.This reality is no longer executed later
Apply other steps of example.
For example, operating mode is mode A before mobile phone shakes, possibly into B-mode when shaking, it is also possible to enter C mode, lead to
Judgement is crossed, B-mode uses probability greater than C mode using probability, then working state of mobile phone switched to B-mode.
The present invention can also include the following steps, if terminal this enter shake state and the last time exits shake state
Between time interval whether be less than threshold value;If time interval is less than threshold value, except current operation mode and will be switched to current
Other operating modes except operating mode before operating mode are as candidate pattern.
For example, mobile phone working mode is switched to B-mode from mode A, again in order to avoid infinitely entering same mode
Shake mobile phone, when this twice switching action time be less than T when, then enter C mode.If being more than three kinds of feelings for operating mode
Condition (has tetra- kinds of modes of A, B, C, D), when the time of switching action being twice less than T, can further select in C, D both of which
The mode for selecting maximum probability switches over.
In step 570, keep current operation mode constant.Later, other steps of the present embodiment are no longer executed.
In this embodiment, it by judging the use probability of each operating mode, switches to after mobile phone is shaken using probability
Maximum operating mode, wherein the use of probability being the use with user and carrying out dynamic adjustment, therefore can be according to practical need
It asks and operating mode is adjusted flexibly, it is convenient and efficient, to the with strong applicability of various concrete scenes.
Fig. 6 is the structural schematic diagram of one embodiment of operating mode switching terminal of the present invention.Including parameter collection module
610, judging treatmenting module 620 and mode switch module 630, in which:
Parameter collection module 610, for obtaining the orientation mode parameter of terminal at predetermined intervals.
Wherein, orientation mode parameter may include azimuth or azimuth rate.The present invention can use terminal built-in
Gyroscope and acceleration transducer the orientation of terminal is captured.For example, gyroscope when user shakes mobile phone, in mobile phone
Mobile phone, which can be measured, to be vertical state, horizontality or shakes state.
Judging treatmenting module 620, for judging whether orientation mode parameter is corresponding with current operation mode.
Wherein it is possible to the corresponding relationship of orientation mode parameter and operating mode be preset, for example, end level state is silent
Think that card mold simulation models, vertical state are reader mode, state of shaking is P2P mode.Those skilled in the art should
Understand, the corresponding relationship of orientation mode parameter and operating mode is only intended to illustrate here, can also be answered according to the reality of user
The corresponding relationship of orientation state parameter and operating mode is set with habit.
Mode switch module 630, for the judging result according to judging treatmenting module 620, if orientation mode parameter with work as
Preceding operating mode is not correspond to, then using operating mode corresponding to orientation mode parameter as current operation mode.
For example, being card mold simulation models when mobile phone horizontality, after rocking mobile phone, mobile phone becomes vertical state, then will be current
Operating mode switches to reader mode corresponding to vertical state.
In this embodiment, the present invention judges that orientation state parameter institute is right by the orientation mode parameter of acquisition terminal
Whether the operating mode answered is identical as current operation mode, if it is different, current operation mode is then switched to orientation mode ginseng
The corresponding operating mode of number.Therefore, can using people action behavior be accustomed to, according to actual needs to current operation mode into
Row flexible modulation.This method is convenient and efficient, to the with strong applicability of various concrete scenes.
Another embodiment of the invention, when orientation mode parameter only includes azimuth.
Parameter collection module 610 obtains the azimuth of terminal in real time.
Judging treatmenting module 620 determines region corresponding with azimuth, judges the whether associated work in the region
Operation mode.
For example, utilizing the azimuth of the gyroscope measurement mobile phone built in mobile phone.As shown in figure 3, by the azimuth of mobile phone into
Row divides.Region A is mobile phone relative to trunnion axis ± 20 ° and its mirror surface symmetrical region, this represents mobile phone and is in horizontality.
Region B be mobile phone relative between 70 ° -110 ° of trunnion axis region and its mirror surface symmetrical region, represent mobile phone and be in vertical
State.Can also set the region C, the region be mobile phone relative between 20 ° -70 ° of trunnion axis region and its mirror surface pair
Claim region.It will be understood by those of skill in the art that azimuthal division is only intended to illustrate here, it can also be according to user's
Practical application habit azimuthal is divided.
If the region does not have associated operating mode, mode switch module 630 keeps current operation mode constant.
For example, setting regions A is card mold simulation models, region B is reader mode, and region C is delay buffer area, if mobile phone
Azimuth is in region C, then corresponds to no associated operating mode.Mobile phone is initially located in horizontality, is card mold simulation models,
When shaking mobile phone, mobile phone is in relative to 45 ° of trunnion axis, then mobile phone still keeps card mold simulation models.In this embodiment, it is arranged
Postpone buffer area, for example, mobile phone azimuth at 20 ° -70 °, can prevent the frequent change of mobile phone working mode.
If there is associated operating mode in the region, judging treatmenting module 620 judges work associated with the region
Whether mode is identical as current operation mode.
And if the associated operating mode in the region is identical as current operation mode, and the holding of mode switch module 630 is worked as
Preceding operating mode is constant, otherwise using operating mode corresponding to azimuth as current operation mode.
For example, be card mold simulation models in horizontality before mobile phone shakes, after rocking mobile phone, mobile phone and trunnion axis at
80 °, then current operation mode is switched into reader mode corresponding to vertical state.
The azimuthal multiple regions of mobile phone can also be corresponded to multiple-working mode by the present invention, and successively carry out operating handset
Cycle of modes.For example, arriving B operating mode, then arrive C operating mode from A operating mode.In order to reduce the power consumption of mobile phone, may be used also
Threshold value is arranged to switching time, if twice switching time be less than threshold value, such as be switched to B operating mode from A operating mode, then
The time for being switched to C operating mode is very short, then directly can be switched to C operating mode from A operating mode.
In this embodiment, mobile phone azimuth is divided into multiple regions, the azimuth information of real-time monitoring mobile phone, judgement should
The whether associated operating mode in region keeps current operation mode if the region does not have associated operating mode
It is constant, if there is associated operating mode in the region, judge that the associated operating mode in the region is with current operation mode
No correspondence, if not corresponding to, using operating mode corresponding to azimuth as current operation mode.Therefore, people can be utilized
Action behavior habit, according to actual needs to current operation mode carry out flexible modulation.Also, due to being provided with delay buffering
Area can prevent the frequent change of mobile phone working mode.
Another embodiment of the present invention, when orientation mode parameter includes azimuth and azimuth rate.
Parameter collection module 610 obtains azimuth and the azimuth rate of terminal in real time.
Judging treatmenting module 620 judges whether terminal is in shake state according to azimuth rate, shakes if terminal is in
Dynamic state then further inquires operating mode associated with the state of shake.Otherwise, it executes and determines area corresponding with azimuth
Domain, and the step whether corresponding with current operation mode of the operating mode according to corresponding to the region.
Wherein, shake state is that the mobile phone often said in living shakes state.Hand is measured using the gyroscope built in mobile phone
The azimuth of machine and azimuth rate.Operating mode is set according to the habit of user.If for example, presetting user
Commonly using card mold simulation models and reader mode, then both operating modes can be corresponded respectively to as shown in Figure 3
Orientation angular zone A and region B, and the P2P mode being of little use is corresponded to and shakes state.
Judging treatmenting module 620 further also judgement and the associated operating mode of shake state whether with work at present mould
Formula is identical.
The associated operating mode of shake state is different from current operation mode, and mode switch module 630 will then shake shape
Operating mode corresponding to state is as current operation mode.
For example, mobile phone start-up operation mode be card mold simulation models, shake mobile phone after, judge be corresponding to shake state
Operating mode is then switched to P2P mode by P2P mode.
In this embodiment, according to the habit of user, operating mode is preset, by mobile phone azimuth and
The measurement of azimuth rate, several operating modes can be carried out by the horizontal vertical state of terminal and the movement of " shaking "
Arbitrarily switching, it is stronger to the usability of various concrete scenes.Also, the present invention is scheduled control without using special peripheral hardware.
Another embodiment of the invention, when orientation mode parameter only includes azimuth rate, which further includes choosing
Select module 710 and statistical module 720.
Parameter collection module 610 obtains the azimuth rate of terminal in real time.
Judging treatmenting module 620 judges whether terminal is in shake state according to azimuth rate.
Selecting module 710 selects candidate pattern.Wherein candidate pattern is other Working moulds in addition to current operation mode
Formula.
For example, NFC operating mode is divided into mode A, B-mode and C mode.If current operation mode is mode A, B-mode
It is candidate pattern with C mode.
Statistical module 720 counts each candidate pattern and uses probability within the predetermined time.
For example, NFC operating mode is divided into mode A, B-mode and C mode.P (A) is the probability that uses of mode A, and P (B) is B
Mode uses probability, and P (C) is C mode using probability, tATime, t are used for mode ABThe time is used for B-mode,
tCThe time is used for C mode.
Mode switch module 630 then will use the candidate pattern of maximum probability as current operation mode.
For example, operating mode is mode A before mobile phone shakes, possibly into B-mode when shaking, it is also possible to enter C mode, lead to
Judgement is crossed, B-mode uses probability greater than C mode using probability, then working state of mobile phone switched to B-mode.
If selecting module 710 of the present invention be also used to terminal this enter shake state and the last time exit shake state it
Between time interval whether be less than threshold value;If time interval is less than threshold value, except current operation mode and current work will be switched to
Other operating modes except operating mode before operation mode are as candidate pattern.
For example, mobile phone working mode is switched to B-mode from mode A, again in order to avoid infinitely entering same mode
Shake mobile phone, when this twice switching action time be less than T when, then enter C mode.If being more than three kinds of feelings for operating mode
Condition (has tetra- kinds of modes of A, B, C, D), when the time of switching action being twice less than T, can further select in C, D both of which
The mode for selecting maximum probability switches over.
In this embodiment, it by judging the use probability of each operating mode, switches to after mobile phone is shaken using probability
Maximum operating mode, wherein the use of probability being the use with user and carrying out dynamic adjustment, therefore can be according to practical need
It asks and operating mode is adjusted flexibly, it is convenient and efficient, to the with strong applicability of various concrete scenes.In addition, for terminal
The scheduling of NFC operating mode, is equivalent to here provided with a Sofe Switch, carries out dynamic dispatching by each module.
So far, the present invention is described in detail.In order to avoid covering design of the invention, it is public that this field institute is not described
The some details known.Those skilled in the art as described above, completely it can be appreciated how implementing technology disclosed herein
Scheme.
Method and device of the invention may be achieved in many ways.For example, can by software, hardware, firmware or
Person's software, hardware, firmware any combination realize method and device of the invention.The step of for the method it is above-mentioned
Sequence is merely to be illustrated, and the step of method of the invention is not limited to sequence described in detail above, unless with other sides
Formula illustrates.In addition, in some embodiments, the present invention can be also embodied as recording program in the recording medium, these
Program includes for realizing machine readable instructions according to the method for the present invention.Thus, the present invention also covers storage for executing
The recording medium of program according to the method for the present invention.
Although some specific embodiments of the invention are described in detail by example, the skill of this field
Art personnel it should be understood that above example merely to being illustrated, the range being not intended to be limiting of the invention.The skill of this field
Art personnel are it should be understood that can without departing from the scope and spirit of the present invention modify to above embodiments.This hair
Bright range is defined by the following claims.
Claims (8)
1. a kind of Working mode switching method characterized by comprising
The orientation mode parameter of terminal is obtained at predetermined intervals;
Judge whether the orientation mode parameter is corresponding with the current operation mode of terminal, wherein the orientation mode parameter
Including azimuth rate, then judge whether the terminal is in shake state according to the azimuth rate, if the end
End is in shake state, then further selects candidate pattern, and wherein candidate pattern is other works in addition to current operation mode
Operation mode;It counts candidate pattern and uses probability within the predetermined time;To use the candidate pattern of maximum probability as with
The associated operating mode of shake state, judgement and the associated operating mode of shake state whether with current operation mode phase
Together, if different with current operation mode from the associated operating mode of state is shaken, it is determined that the orientation mode parameter and end
The current operation mode at end is not correspond to;
It, will be corresponding to the orientation mode parameter if the current operation mode of the orientation mode parameter and terminal is not correspond to
Current operation mode of the operating mode as terminal.
2. the method according to claim 1, wherein
The orientation mode parameter further includes azimuth;
Judge orientation mode parameter step whether corresponding with current operation mode further include:
Determine region corresponding with the azimuth;
Whether judgement and the associated operating mode in the region are identical as current operation mode;
If different with current operation mode from the associated operating mode in the region, it is determined that the orientation mode parameter with work as
Preceding operating mode is not correspond to.
3. according to the method described in claim 2, it is characterized in that,
After determining region corresponding with the azimuth, further includes:
Judge the whether associated operating mode in the region;
If the associated operating mode in region, execute associated with the region operating mode of judgement whether with
The identical step of current operation mode;
If the region does not have associated operating mode, keep current operation mode constant.
4. the method according to claim 1, wherein
Select candidate pattern the step of include:
Judging the terminal, whether this is less than into shake state and the last time interval exited between shake state
Threshold value;
If time interval is less than threshold value, by except current operation mode and the operating mode being switched to before current operation mode it
Outer other operating modes are as candidate pattern;
If time interval is not less than threshold value, using other operating modes in addition to current operation mode as candidate pattern.
5. a kind of operating mode switching terminal characterized by comprising
Parameter collection module, for obtaining the orientation mode parameter of terminal at predetermined intervals;
Judging treatmenting module, for judging whether the orientation mode parameter is corresponding with the current operation mode of terminal, wherein
The orientation mode parameter includes azimuth rate, then the judging treatmenting module according to the azimuth rate for sentencing
Whether the terminal of breaking is in shake state, if the terminal is in shake state, further selects to wait by selecting module
Lectotype, wherein candidate pattern is other operating modes in addition to current operation mode, passes through statistical module counts candidate's mould
Formula uses probability within the predetermined time, and the judging treatmenting module will make according to the statistical result of the statistical module
Use the candidate pattern of maximum probability as operating mode associated with the state of shake, judgement work associated with the state of shake
Whether mode is identical as current operation mode, if different with current operation mode from the associated operating mode of state is shaken,
Determine that the current operation mode of the orientation mode parameter and terminal is not correspond to;
Mode switch module, for the judging result according to the judging treatmenting module, if the orientation mode parameter and terminal
Current operation mode be not correspond to, then using operating mode corresponding to the orientation mode parameter as the work at present of terminal
Mode.
6. terminal according to claim 5, which is characterized in that
The orientation mode parameter further includes azimuth;
The judging treatmenting module is also used to determine region corresponding with the azimuth, judge associated with the region
Whether operating mode is identical as current operation mode, if operating mode associated with the region and current operation mode are not
Together, it is determined that the orientation mode parameter is not correspond to current operation mode.
7. terminal according to claim 6, which is characterized in that
The judging treatmenting module is also used to judge the whether associated operating mode in the region, if the region has
Whether identical with current operation mode associated operating mode then executes judgement operating mode associated with the region
Step;
The mode switch module is used for the judging result according to the judging treatmenting module, if the region is not associated
Operating mode then keeps current operation mode constant.
8. terminal according to claim 5, which is characterized in that
The selecting module specifically judges the terminal, and this is exited between shake state into shake state and the last time
Whether time interval is less than threshold value;If time interval is less than threshold value, except current operation mode and work at present mould will be switched to
Other operating modes except operating mode before formula are as candidate pattern;If time interval is not less than threshold value, it will remove and work as
Other operating modes except preceding operating mode are as candidate pattern.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510514251.6A CN106470267B (en) | 2015-08-20 | 2015-08-20 | A kind of Working mode switching method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510514251.6A CN106470267B (en) | 2015-08-20 | 2015-08-20 | A kind of Working mode switching method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106470267A CN106470267A (en) | 2017-03-01 |
CN106470267B true CN106470267B (en) | 2019-07-05 |
Family
ID=58229780
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510514251.6A Active CN106470267B (en) | 2015-08-20 | 2015-08-20 | A kind of Working mode switching method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106470267B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111464688B (en) * | 2019-01-22 | 2021-12-28 | 成都鼎桥通信技术有限公司 | Working mode switching method and device |
CN112825037A (en) * | 2019-11-18 | 2021-05-21 | 英业达科技有限公司 | Electronic device and mode switching method thereof |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100876754B1 (en) * | 2007-04-18 | 2009-01-09 | 삼성전자주식회사 | Portable electronic apparatus for operating mode converting |
CN101287032B (en) * | 2008-05-28 | 2011-05-18 | 宇龙计算机通信科技(深圳)有限公司 | Method, system and mobile terminal for mode switching of electronic apparatus |
CN103809725B (en) * | 2012-11-12 | 2017-03-29 | 联想(北京)有限公司 | A kind of electronic equipment and the state switching method based on the electronic equipment |
CN104777982B (en) * | 2015-04-27 | 2017-02-15 | 努比亚技术有限公司 | Method and device for switching terminal input method |
-
2015
- 2015-08-20 CN CN201510514251.6A patent/CN106470267B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106470267A (en) | 2017-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109087239B (en) | Face image processing method and device and storage medium | |
CN104333846B (en) | Position reminding method and device | |
CN104615229B (en) | The system and method for monitoring CPU in real time | |
JP6329833B2 (en) | Wearable terminal and method for controlling wearable terminal | |
CN108701365B (en) | Light spot identification method, device and system | |
CN103294528A (en) | Terminal and process control method | |
CN105682198A (en) | Positioning control method and device of mobile terminal and mobile terminal | |
JP4718227B2 (en) | RADIO COMMUNICATION SYSTEM, RADIO RELAY APPARATUS AND RADIO COMMUNICATION TERMINAL COMPRISING THE SAME, AND COMMUNICATION LOAD ADJUSTING METHOD FOR RADIO RELAY APPARATUS | |
CN104572001A (en) | Split screen starting method and mobile terminal | |
CN106470267B (en) | A kind of Working mode switching method and terminal | |
CN106122060B (en) | Terminal, fan and the method for controlling fan | |
CN111866976B (en) | Network switching method and device | |
CN103312881B (en) | mobile terminal state control method, device, system and mobile terminal | |
CN106028410A (en) | Mobile terminal network switching method and apparatus | |
CN105138112B (en) | Display control method and device | |
CN105792301A (en) | Terminal, method and system for network switching | |
CN104837187B (en) | The power-economizing method and device of radio reception device | |
CN109460706A (en) | Eyeball tracking information processing method and device applied to terminal | |
CN110213591A (en) | A kind of video motion estimating method, device and storage medium | |
CN113692520A (en) | Method for controlling portable device and portable device | |
CN105867800A (en) | Display region adjustment method and apparatus | |
CN105841306A (en) | Control method and mobile terminal | |
CN112954758A (en) | Network switching method and device and electronic equipment | |
CN106357558B (en) | Bandwidth allocation methods and device | |
CN108628261A (en) | process control device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |