CN108156328A - The switching method and device of contextual model - Google Patents
The switching method and device of contextual model Download PDFInfo
- Publication number
- CN108156328A CN108156328A CN201810069587.XA CN201810069587A CN108156328A CN 108156328 A CN108156328 A CN 108156328A CN 201810069587 A CN201810069587 A CN 201810069587A CN 108156328 A CN108156328 A CN 108156328A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- contextual model
- use environment
- far
- step number
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides the switching methods and device of a kind of contextual model, are related to field of terminal technology.The method is applied to mobile terminal, including:When the mobile terminal is under the first contextual model, according to the mobile message of the mobile terminal, the mobile terminal is detected whether far from the corresponding use environment of first contextual model, if first contextual model is switched to the second contextual model by the mobile terminal far from the use environment.The present invention can improve the accuracy and user experience of switching contextual model.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to the switching method and device of a kind of contextual model.
Background technology
With the development of terminal technology, various mobile terminals have been increasingly becoming indivisible in user's life
A part.Mobile terminal can usually be operated in a variety of working conditions, also have difference in different working condition mobile terminals
The method of operation, including receiving the difference of short message or phone to modes such as the alerting pattern of user, the modes for connecting network, from
And the mobile terminal is used in different use environments convenient for user.
In the prior art, mobile terminal would generally preset several contextual models, each contextual model can correspond to a kind of work
Make state, user can actively select one kind according to the demand of use environment in several contextual models, mobile whole so as to control
In being run in a manner that the working condition is limited, such as in silent mode, which is receiving incoming call at end
Or during short massage notice, it will not make a sound.But conventionally, as need to rely on interaction between user into market
Scape pattern switching, and user may forget, thus it can be difficult to when use environment changes also in time to residing feelings
Scape pattern switches over, and accuracy is relatively low, and user experience is poor.
Invention content
The embodiment of the present invention provides a kind of switching method and device of contextual model, to solve to be difficult to accurately according to using ring
Residing for the variation switching of border the problem of contextual model.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
According to the present invention in a first aspect, a kind of switching method of contextual model is provided, applied to mobile terminal, the party
Method includes:
When the mobile terminal is under the first contextual model, according to the mobile message of the mobile terminal, institute is detected
Mobile terminal is stated whether far from the corresponding use environment of first contextual model;
If first contextual model is switched to the second scene mould by the mobile terminal far from the use environment
Formula.
Second aspect according to the present invention provides a kind of switching device of contextual model, applied to mobile terminal, the dress
Put including:
Detection module, for when the mobile terminal is under the first contextual model, according to the shifting of the mobile terminal
Whether dynamic information, detect the mobile terminal far from the corresponding use environment of first contextual model;
Handover module, if switching first contextual model far from the use environment for the mobile terminal
For the second contextual model.
The third aspect according to the present invention provides a kind of mobile terminal, the mobile terminal include processor, memory and
The computer program that can be run on the memory and on the processor is stored in, the computer program is by the processing
The step of device realizes the switching method of contextual model of the present invention when performing.
In embodiments of the present invention, it can be moved when mobile terminal is in the first contextual model according to mobile terminal
Whether dynamic infomation detection mobile terminal is being determined far from the corresponding use environment of the first contextual model far from the use environment
When, the first contextual model is switched to the second contextual model automatically, reduces the complex interaction between user, accurately realizes
Contextual model is switched over according to use environment change, improves the accuracy and user experience of switching contextual model.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 shows a kind of switching method flow chart of contextual model in the embodiment of the present invention one;
Fig. 2 shows a kind of switching method flow charts of contextual model in the embodiment of the present invention two;
Fig. 3 shows a kind of switching method flow chart of contextual model in the embodiment of the present invention three;
Fig. 4 shows a kind of switching method flow chart of contextual model in the embodiment of the present invention four;
Fig. 5 shows the switching method flow chart of another contextual model in the embodiment of the present invention four;
Fig. 6 shows a kind of structure diagram of the switching device of contextual model in the embodiment of the present invention five;
Fig. 7 shows a kind of structure diagram of mobile terminal in the embodiment of the present invention six.
Specific embodiment
Exemplary embodiment of the present invention is more fully described below with reference to accompanying drawings.Although the present invention is shown in attached drawing
Exemplary embodiment, it being understood, however, that the present invention may be realized in various forms without should be by embodiments set forth here
It is limited.It is to be able to be best understood from the present invention, and can be by the scope of the present invention on the contrary, providing these embodiments
Completely it is communicated to those skilled in the art.
Embodiment one
With reference to Fig. 1, the switching method flow chart of the contextual model of the embodiment of the present invention one is shown, can specifically include such as
Lower step:
Step 101, when the mobile terminal is under the first contextual model, according to the mobile letter of the mobile terminal
Whether breath, detect the mobile terminal far from the corresponding use environment of first contextual model.
Due to user in different use environments to there is the mode of running of mobile terminal that may have different demands, so as to
Make the finally certain special contextual models of mobile terminal, for example shifting is may not want that in the scene that the needs such as meeting room are kept quite
Dynamic terminal makes a sound, may not want that mobile terminal sends out electromagnetic signal than more sensitive scene to electromagnetic signal in aircraft etc.
Deng, and when user far from it is above-mentioned need mobile terminal keep special state scene when, it may not be necessary to the mobile terminal continue
In the first contextual model, therefore, for the ease of realizing after mobile terminal is in certain special contextual models far from phase
During the use environment answered, automatically switch the contextual model, so as to improve the accuracy of switching contextual model and user experience, move
Whether dynamic terminal can detect mobile terminal far from corresponding use environment when in the first contextual model.
First contextual model is to be set in mobile terminal for specific use environment, so as to which the mobile terminal be controlled to be in suitable
In the operating status with the specific use environment, for example keep mute or close wireless signal etc..
If the handover operation for receiving user for first contextual model instructs, it may be determined that the mobile terminal is worked as
It is preceding to be in first contextual model.
Handover operation is instructed for controlling mobile terminal that will switch to the contextual model specified, and handover operation instruction can be with
It is triggered by user by performing the predetermined registration operations such as clicking operation, touch operation.
Wherein, mobile terminal can provide contextual model switching entrance, and contextual model switching entrance displaying has at least one
Kind contextual model, so as to be based on contextual model switching entrance, the handover operation received for any contextual model instructs.
Certainly, in practical applications, mobile terminal can also determine whether to switch and in first otherwise
Contextual model, for example switched over automatically according to the switching condition being previously set.
Mobile message is the information for illustrating mobile terminal movement, for judging whether mobile terminal has moved away from first
The use environment of contextual model.The mobile message can be detected to obtain or receive user and submit to obtain by mobile terminal, for example,
The mobile message can include mobile terminal by positioning obtained location information, the location information that user submits, passing through detection
Obtain at least one of distance of mobile terminal movement etc..
Use environment is to need the scene that mobile terminal is made to be in certain scenarios pattern, such as hospital or meeting room etc..
Mobile terminal can by detecting the position that be presently in, by the position with it is aforementioned in be determined to switch to the first scene
The location of the mobile terminal is compared during pattern, so that it is determined that whether mobile terminal is corresponding far from the first contextual model
Use environment.
Step 102, if first contextual model is switched to second by the mobile terminal far from the use environment
Contextual model.
Since mobile terminal has moved away from the corresponding use environment of the first contextual model, it is possible to automatically by the first scene
Pattern switching is the second contextual model, so as to reduce that mobile terminal be in special state and may band loss or influence, for example, because
It is mute and miss phone etc..
Second contextual model can include any contextual model in addition to first mode, alternatively, the second contextual model can
Think mobile terminal last residing contextual model before the first contextual model is switched.
In embodiments of the present invention, it can be moved when mobile terminal is in the first contextual model according to mobile terminal
Whether dynamic infomation detection mobile terminal is being determined far from the corresponding use environment of the first contextual model far from the use environment
When, the first contextual model is switched to the second contextual model automatically, reduces the complex interaction between user, accurately realizes
Contextual model is switched over according to use environment change, improves the accuracy and user experience of switching contextual model.
Embodiment two
With reference to Fig. 2, the switching method flow chart of the contextual model of the embodiment of the present invention two is shown, applied to mobile whole
End, specifically may include steps of:
Step 201, determine that mobile terminal is currently at the first contextual model.
In embodiments of the present invention, optionally, the sound sent out by mobile terminal or vibrations etc. may bother
Other users, for example, in environment such as hospital, classroom and meeting rooms, so as to need in silent mode or vibrating mode, and it is wireless
Signal may be influenced whether to electromagnetic signal than more sensitive equipment normal operation, such as aircraft etc., so as to need in flight
Pattern, thus for the ease of user after the above-mentioned scene stringenter to the contextual model residing for mobile terminal is left and
When switch out the contextual model, to improve the accuracy of switching contextual model, reduce user and miss certain from the mobile terminal
The possibility of a little information, first contextual model include silent mode, vibrating mode or offline mode.
Wherein, silent mode calls loudspeaker at least one of forbidden moves terminal application (such as phone or short message)
Grade sounding components;Vibrating mode is used to that at least one application in mobile terminal to be controlled to be merely able to send out vibrations;Offline mode is used
GSM (Global System for Mobile communication, global mobile communication system are sent out in forbidden moves terminal
System), the wireless signals such as GPRS (General Packet Radio Service, general packet radio service), so as to avoid moving
Dynamic terminal actively contacts base station.
Step 202, it when the mobile terminal switches to first contextual model, obtains residing for the mobile terminal
First position.
Since when mobile terminal is determined in the first contextual model, usual user is in corresponding use environment, because
Whether this can detect mobile terminal present position by alignment system, judge mobile terminal according to mobile terminal locations variation
Through the use environment far from the first contextual model, the accuracy of switching contextual model is further improved.
Wherein, mobile terminal can obtain the first position being presently in by alignment system.
Alignment system can include the alignment system based on satellite positioning tech, such as GPS (Global Positioning
System (global positioning system), BEI-DOU position system etc. or including the alignment system based on mobile operation network.
Certainly, in practical applications, mobile terminal can also acquire first be presently in otherwise
It puts, for example receives user and submit to obtain.
Step 203, obtain the second position residing for the mobile terminal, if the second position and the first position it
Between distance be more than pre-determined distance, it is determined that the mobile terminal is far from use environment.
When detecting that mobile terminal is in the second position, and the distance between the second position and first position be more than it is default away from
From then illustrating that the location of mobile terminal changes greatly, user may have been moved off the use environment of the first contextual model.
Pre-determined distance can be determined in advance with mobile terminal, for example received the numerical value of submission and determined.
For example, by taking alignment system is GPS as an example, since GPS signal usually there will be error, so pre-determined distance is one
Larger numerical value, such as 2000 meters.
The acquisition for mobile terminal mobile terminal is presently in the mode of the second position, the mode phase with obtaining first position
Together, it no longer repeats one by one herein.
In addition, in practical applications, mobile terminal can also be moved by sensor measurements such as gyroscopes from first position
To the distance of the second position.
In embodiments of the present invention, the mobile message of mobile terminal may include above-mentioned first position, the second position or the
The distance between one position and the second position.
Step 204, first contextual model is switched to the second contextual model.
Wherein, the first contextual model is switched to the mode of the second contextual model by mobile terminal, may refer to it is aforementioned in
Associated description no longer repeats one by one herein.
In embodiments of the present invention, optionally, institute before the first contextual model is switched in order to accurately restore mobile terminal
The operating status at place, mobile terminal can obtain and work as when determining to receive the handover operation instruction for the first contextual model
Preceding operating parameter according to the operating parameter, generates the second contextual model.
Wherein, operating parameter is used to control the method for operation of mobile terminal, for example the operating parameter can include giving great volume
It is small, whether shake, vibrating mode, whether disable at least one of parameters such as wireless signal and screen intensity.
In embodiments of the present invention, first, it can be obtained when mobile terminal is in the first contextual model according to mobile terminal
Whether mobile terminal is detected far from the corresponding use environment of the first contextual model to mobile message, and is determining to use ring far from this
During border, the first contextual model is switched to the second contextual model automatically, reduces the complex interaction between user, it is accurate to realize
Contextual model is switched over according to use environment change, improves the accuracy and user experience of switching contextual model.
Secondly, it can be instructed based on user for the handover operation of the first contextual model, determine that mobile terminal is currently at
First contextual model, and then can lead in the case where mobile terminal is actively switched to certain special contextual models by user
Subsequent step is crossed when user is far from the use environment in time from the contextual model is switched out, improves the accurate of switching contextual model
Property.
In addition, mobile terminal present position can be detected by alignment system, changed according to mobile terminal locations and judge to move
Whether dynamic terminal has moved away from the use environment of the first contextual model, further improves the accuracy of switching contextual model.
Embodiment three
With reference to Fig. 3, the switching method flow chart of the contextual model of the embodiment of the present invention three is shown, applied to mobile whole
End, specifically may include steps of:
Step 301, determine that mobile terminal is currently at the first contextual model.
Wherein, mobile terminal determines that the mobile terminal is currently at the mode of the first contextual model, may refer to it is aforementioned in
Associated description, no longer repeat one by one herein.
Step 302, the step number of counting user movement, if the step number is more than default step number, it is determined that the mobile terminal
Far from use environment.
In order to be suitable for the smaller situation of use environment range, than if desired for keeping mute classroom and do not need to keep quiet
The dormitory of sound, so as to improve detection user movement distance accuracy, the mobile terminal can with counting user move step number,
And then the distance for the step number characterization mobile terminal movement for passing through statistics.
Default step number can be determined in advance by mobile terminal, for example received the numerical value of submission and determined.
For example, the default step number can be 500 steps.
In the embodiment of the present application, optionally, in order to improve the reliability of the step number of counting user movement, mobile terminal can
With the step number moved by other device statistics users with several steps such as Intelligent bracelet, smartwatch.
In embodiments of the present invention, the mobile message of mobile terminal is the step number that may include above-mentioned user's movement.
Step 303, first contextual model is switched to the second contextual model.
Wherein, the first contextual model is switched to the mode of the second contextual model by mobile terminal, may refer to it is aforementioned in
Associated description no longer repeats one by one herein.
In embodiments of the present invention, first, it can be obtained when mobile terminal is in the first contextual model according to mobile terminal
Whether mobile terminal is detected far from the corresponding use environment of the first contextual model to mobile message, and is determining to use ring far from this
During border, the first contextual model is switched to the second contextual model automatically, reduces the complex interaction between user, it is accurate to realize
Contextual model is switched over according to use environment change, improves the accuracy and user experience of switching contextual model.
Secondly, whether the step number that can be moved by counting user, judge mobile terminal far from the first feelings by the step number
Whether the use environment of scape pattern suitable for the smaller situation of use environment, further improves and judges mobile terminal far from
The accuracy of the use environment of one contextual model, and then improve the accuracy of switching contextual model.
Example IV
With reference to Fig. 4, the switching method flow chart of the contextual model of the embodiment of the present invention four is shown, applied to mobile whole
End, specifically may include steps of:
Step 401, determine that mobile terminal is currently at the first contextual model.
Wherein, mobile terminal determines that the mobile terminal is currently at the mode of the first contextual model, may refer to it is aforementioned in
Associated description, no longer repeat one by one herein.
Step 402, it when the mobile terminal switches to first contextual model, obtains residing for the mobile terminal
First position.
Wherein, the mode of acquisition for mobile terminal first position, may refer to it is aforementioned in associated description, herein no longer one by one
It repeats.
Step 403, the step number of the second position residing for the mobile terminal and counting user movement is obtained, if described second
The distance between position and the first position are more than pre-determined distance, and the step number is more than default step number, it is determined that the shifting
Dynamic terminal is far from use environment.
In order to further improve the accuracy of use environment of the determining mobile terminal far from the first contextual model, Ke Yiding
Whether position system and many factors such as step number of user's movement judge mobile terminal far from the use environment.
Wherein, the mode of the mode of the acquisition for mobile terminal second position and the step number of counting user movement, may refer to
Associated description in aforementioned, no longer repeats one by one herein.
In embodiments of the present invention, the mobile message of mobile terminal may include above-mentioned first position, the second position, first
The distance between position and the second position or the step number of user's movement.
Step 404, first contextual model is switched to the second contextual model.
Wherein, the first contextual model is switched to the mode of the second contextual model by mobile terminal, may refer to it is aforementioned in
Associated description no longer repeats one by one herein.
Certainly, in practical applications, mobile terminal can determine whether to have moved away from first by least one mode
The use environment of contextual model, and then the first contextual model is switched into the second contextual model.
For example, a kind of switching method flow chart of contextual model is as shown in Figure 5.In step 501, user enters with quiet
The use environment of sound demand, such as classroom or meeting room;In step 502, mobile terminal is set as silent mode by user;In step
In rapid 503, mobile terminal detects that silent mode is opened, then obtaining the mobile terminal by GPS positioning is presently in position,
And pedometer statistics step number is begun through, the use ring that there is mute demand in order to which user is subsequently determined whether to have been moved off
Border;In step 504, whether mobile terminal inspection judges the distance between position for being presently in preserving in position and step 503
More than 2000 meters, if then determining that user has moved away from the use environment, performs step 506, otherwise continues to execute step 504;
In step 505, mobile terminal judges whether the step number of statistics is more than 500 steps, if this during then determining user has moved makes
With environment, step 506 is performed, otherwise continues to execute step 505;In step 506, mobile terminal exits silent mode.And by
Fig. 5 that is to say it is found that can trigger step 506 by step 504 or step 505, when mobile terminal inspection determines to be presently in
The distance between position preserved in position and step 503 is more than 2000 meters, alternatively, when determining that the step number of statistics is more than 500 step,
Mobile terminal be can determine far from the use environment, so as to exit silent mode.
In embodiments of the present invention, first, it can be obtained when mobile terminal is in the first contextual model according to mobile terminal
Whether mobile terminal is detected far from the corresponding use environment of the first contextual model to mobile message, and is determining to use ring far from this
During border, the first contextual model is switched to the second contextual model automatically, reduces the complex interaction between user, it is accurate to realize
Contextual model is switched over according to use environment change, improves the accuracy and user experience of switching contextual model.
Secondly, the various ways such as the step number that can be moved simultaneously by alignment system and user, comprehensive descision movement is eventually
Whether end has moved away from the use environment of the first contextual model, further improves and judges whether mobile terminal has moved away from first
The accuracy of the use environment of contextual model.
Embodiment five
With reference to Fig. 6, show a kind of structure diagram of the switching device of contextual model of the embodiment of the present invention five, be applied to
Mobile terminal can specifically include:
Detection module 601, for when the mobile terminal is under the first contextual model, according to the mobile terminal
Whether mobile message detects the mobile terminal far from the corresponding use environment of first contextual model;
Handover module 602, if cutting first contextual model far from the use environment for the mobile terminal
It is changed to the second contextual model.
Optionally, described device further includes:
First acquisition module, for when the mobile terminal switches to first contextual model, obtaining the movement
First position residing for terminal;
The detection module includes:
First acquisition submodule, for obtaining the second position residing for the mobile terminal;
First determination sub-module, if for the distance between the second position and the first position be more than it is default away from
From, it is determined that the mobile terminal is far from the use environment.
Optionally, the detection module includes:
Statistic submodule, for the step number of counting user movement;
Second determination sub-module, if being more than default step number for the step number, it is determined that the mobile terminal is far from described
Use environment.
Optionally, described device further includes:
Second acquisition module, for when the mobile terminal switches to first contextual model, obtaining the movement
First position residing for terminal;
The detection module includes:
Second acquisition submodule, for obtaining the second position residing for the mobile terminal and the step of counting user movement
Number;
4th determining module, if being more than pre-determined distance for the distance between the second position and the first position,
And the step number is more than default step number, it is determined that the mobile terminal is far from the use environment.
Optionally, first contextual model includes silent mode, vibrating mode or offline mode.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 5
Each process, repeated to avoid, which is not described herein again.
In embodiments of the present invention, it can be moved when mobile terminal is in the first contextual model according to mobile terminal
Whether dynamic infomation detection mobile terminal is being determined far from the corresponding use environment of the first contextual model far from the use environment
When, the first contextual model is switched to the second contextual model automatically, reduces the complex interaction between user, accurately realizes
Contextual model is switched over according to use environment change, improves the accuracy and user experience of switching contextual model.
Embodiment six
A kind of hardware architecture diagram of Fig. 7 mobile terminals of each embodiment to realize the present invention,
The mobile terminal 700 includes but not limited to:It is radio frequency unit 701, network module 702, audio output unit 703, defeated
Enter unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, processor
The components such as 710 and power supply 711.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 7 is not formed
Restriction to mobile terminal, mobile terminal can include than illustrate more or fewer components either combine certain components or
Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 710 are used for:
When the mobile terminal is under the first contextual model, according to the mobile message of the mobile terminal, institute is detected
Mobile terminal is stated whether far from the corresponding use environment of first contextual model;
If first contextual model is switched to the second scene mould by the mobile terminal far from the use environment
Formula.
Optionally, in the mobile message according to the mobile terminal, whether the mobile terminal is detected far from described
Before the corresponding use environment of first contextual model, the method further includes:
When the mobile terminal switches to first contextual model, first residing for the mobile terminal is obtained
It puts;
Whether the mobile message according to the mobile terminal detects the mobile terminal far from the first scene mould
The corresponding use environment of formula includes:
Obtain the second position residing for the mobile terminal;
If the distance between the second position and the first position are more than pre-determined distance, it is determined that the mobile terminal
Far from the use environment.
Optionally, whether the mobile message according to the mobile terminal detects the mobile terminal far from described
The corresponding use environment of one contextual model includes:
The step number of counting user movement;
If the step number is more than default step number, it is determined that the mobile terminal is far from the use environment.
Optionally, in the mobile message according to the mobile terminal, whether the mobile terminal is detected far from described
Before the corresponding use environment of first contextual model, the method further includes:
When the mobile terminal switches to first contextual model, first residing for the mobile terminal is obtained
It puts;
Whether the mobile message according to the mobile terminal detects the mobile terminal far from the first scene mould
The corresponding use environment of formula includes:
Obtain the step number of the second position residing for the mobile terminal and counting user movement;
If the distance between the second position and the first position are more than pre-determined distance, and the step number is more than default
Step number, it is determined that the mobile terminal is far from the use environment.
Optionally, first contextual model includes silent mode, vibrating mode or offline mode.
In embodiments of the present invention, it can be moved when mobile terminal is in the first contextual model according to mobile terminal
Whether dynamic infomation detection mobile terminal is being determined far from the corresponding use environment of the first contextual model far from the use environment
When, the first contextual model is switched to the second contextual model automatically, reduces the complex interaction between user, accurately realizes
Contextual model is switched over according to use environment change, improves the accuracy and user experience of switching contextual model.
It should be understood that the embodiment of the present invention in, radio frequency unit 701 can be used for receive and send messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, handled to processor 710;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 701 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 701 can also by radio communication system and network and other set
Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 702 and has accessed, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
It is that audio output unit 703 can receive radio frequency unit 701 or network module 702 or in memory 709
The audio data of storage is converted into audio signal and exports as sound.Moreover, audio output unit 703 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 700 performs is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 703 includes loud speaker, buzzer and receiver etc..
Input unit 704 is used to receive audio or video signal.Input unit 704 can include graphics processor
(Graphics Processing Unit, GPU) 7041 and microphone 7042, graphics processor 7041 is in video acquisition mode
Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out
Reason.Treated, and picture frame may be displayed on display unit 706.Through graphics processor 7041, treated that picture frame can be deposited
Storage is sent in memory 709 (or other storage mediums) or via radio frequency unit 701 or network module 702.Mike
Wind 7042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The form output of mobile communication base station can be sent to via radio frequency unit 701 by being converted in the case of telephone calling model.
Mobile terminal 700 further includes at least one sensor 705, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 7061, and proximity sensor can close when mobile terminal 700 is moved in one's ear
Display panel 7061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 705 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared ray sensor etc. are spent, details are not described herein.
Display unit 706 is used to show by information input by user or be supplied to the information of user.Display unit 706 can wrap
Display panel 7061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Display panel 7061 is configured in forms such as (Organic Light-Emitting Diode, OLED).
User input unit 707 can be used for receiving the number inputted or character information and generation and the use of mobile terminal
The key signals input that family is set and function control is related.Specifically, user input unit 707 include touch panel 7071 and
Other input equipments 7072.Touch panel 7071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects such as finger, stylus or attachment on touch panel 7071 or in touch panel 7071
Neighbouring operation).Touch panel 7071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 710, receiving area
It manages the order that device 710 is sent and is performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 7071.In addition to touch panel 7071, user input unit 707 can also include other input equipments
7072.Specifically, other input equipments 7072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 7071 can be covered on display panel 7061, when touch panel 7071 is detected at it
On or near touch operation after, send to processor 710 with determine touch event type, be followed by subsequent processing device 710 according to touch
The type for touching event provides corresponding visual output on display panel 7061.Although in the figure 7, touch panel 7071 and display
Panel 7061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments
In, can be integrated by touch panel 7071 and display panel 7061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 708 is the interface that external device (ED) is connect with mobile terminal 700.For example, external device (ED) can include
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 708 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
One or more elements that the input received is transferred in mobile terminal 700 can be used in 700 He of mobile terminal
Data are transmitted between external device (ED).
Memory 709 can be used for storage software program and various data.Memory 709 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 709 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 710 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part is stored in storage by running or performing the software program being stored in memory 709 and/or module and call
Data in device 709 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place
Reason device 710 may include one or more processing units;Preferably, processor 710 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 710.
Mobile terminal 700 can also include the power supply 711 (such as battery) powered to all parts, it is preferred that power supply 711
Can be logically contiguous by power-supply management system and processor 710, so as to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 700 includes some unshowned function modules, details are not described herein.
Embodiment seven
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, and including processor 710, memory 709 is stored in
On memory 709 and the computer program that can be run on the processor 710, the computer program are performed by processor 710
Each process of the switching method embodiment of contextual model above-mentioned Shi Shixian, and identical technique effect can be reached, to avoid
It repeats, which is not described herein again.
Embodiment eight
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each mistake of the switching method embodiment of above-mentioned contextual model when being executed by processor
Journey, and identical technique effect can be reached, it is repeated to avoid, which is not described herein again.Wherein, the computer-readable storage medium
Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those elements, and
And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or device institute
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal (can be mobile phone, computer services
Device, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned specific embodiment is only schematical rather than restricted, those of ordinary skill in the art
Under the enlightenment of the present invention, present inventive concept and scope of the claimed protection are not being departed from, can also made very much
Form is belonged within the protection of the present invention.
Claims (10)
1. a kind of switching method of contextual model, applied to mobile terminal, which is characterized in that the method includes:
When the mobile terminal is under the first contextual model, according to the mobile message of the mobile terminal, the shifting is detected
Whether dynamic terminal is far from the corresponding use environment of first contextual model;
If first contextual model is switched to the second contextual model by the mobile terminal far from the use environment.
2. according to the method described in claim 1, it is characterized in that, in the mobile message according to the mobile terminal, examine
Before the mobile terminal is surveyed whether far from the corresponding use environment of first contextual model, the method further includes:
When the mobile terminal switches to first contextual model, the first position residing for the mobile terminal is obtained;
Whether the mobile message according to the mobile terminal detects the mobile terminal far from first contextual model pair
The use environment answered includes:
Obtain the second position residing for the mobile terminal;
If the distance between the second position and the first position are more than pre-determined distance, it is determined that the mobile terminal is separate
The use environment.
3. according to the method described in claim 1, it is characterized in that, the mobile message according to the mobile terminal, detection
Whether the mobile terminal includes far from the corresponding use environment of first contextual model:
The step number of counting user movement;
If the step number is more than default step number, it is determined that the mobile terminal is far from the use environment.
4. according to the method described in claim 1, it is characterized in that, in the mobile message according to the mobile terminal, examine
Before the mobile terminal is surveyed whether far from the corresponding use environment of first contextual model, the method further includes:
When the mobile terminal switches to first contextual model, the first position residing for the mobile terminal is obtained;
Whether the mobile message according to the mobile terminal detects the mobile terminal far from first contextual model pair
The use environment answered includes:
Obtain the step number of the second position residing for the mobile terminal and counting user movement;
If the distance between the second position and the first position are more than pre-determined distance, and the step number is more than default step
Number, it is determined that the mobile terminal is far from the use environment.
5. according to the method described in claim 1, it is characterized in that, first contextual model includes silent mode, vibrations mould
Formula or offline mode.
6. a kind of switching device of contextual model, applied to mobile terminal, which is characterized in that described device includes:
Detection module, for when the mobile terminal is under the first contextual model, according to the mobile letter of the mobile terminal
Whether breath, detect the mobile terminal far from the corresponding use environment of first contextual model;
Handover module, if first contextual model is switched to far from the use environment for the mobile terminal
Two contextual models.
7. device according to claim 6, which is characterized in that described device further includes:
First acquisition module, for when the mobile terminal switches to first contextual model, obtaining the mobile terminal
Residing first position;
The detection module includes:
First acquisition submodule, for obtaining the second position residing for the mobile terminal;
First determination sub-module, if being more than pre-determined distance for the distance between the second position and the first position,
Determine the mobile terminal far from the use environment.
8. device according to claim 6, which is characterized in that the detection module includes:
Statistic submodule, for the step number of counting user movement;
Second determination sub-module, if being more than default step number for the step number, it is determined that the mobile terminal is far from the use
Environment.
9. device according to claim 6, which is characterized in that described device further includes:
Second acquisition module, for when the mobile terminal switches to first contextual model, obtaining the mobile terminal
Residing first position;
The detection module includes:
Second acquisition submodule, for obtaining the second position residing for the mobile terminal and the step number of counting user movement;
4th determining module, if being more than pre-determined distance, and institute for the distance between the second position and the first position
It states step number and is more than default step number, it is determined that the mobile terminal is far from the use environment.
10. device according to claim 6, which is characterized in that first contextual model includes silent mode, vibrations mould
Formula or offline mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810069587.XA CN108156328A (en) | 2018-01-24 | 2018-01-24 | The switching method and device of contextual model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810069587.XA CN108156328A (en) | 2018-01-24 | 2018-01-24 | The switching method and device of contextual model |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108156328A true CN108156328A (en) | 2018-06-12 |
Family
ID=62459061
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810069587.XA Pending CN108156328A (en) | 2018-01-24 | 2018-01-24 | The switching method and device of contextual model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108156328A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110827972A (en) * | 2019-11-14 | 2020-02-21 | 上海联影医疗科技有限公司 | Terminal mode switching method, device, terminal, system and readable storage medium |
WO2021244567A1 (en) * | 2020-06-04 | 2021-12-09 | 深圳市万普拉斯科技有限公司 | Wireless charging control method and apparatus for smart terminal, and smart terminal |
CN114697445A (en) * | 2020-12-31 | 2022-07-01 | 华为技术有限公司 | Volume adjusting method, electronic equipment, terminal and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103200324A (en) * | 2013-03-28 | 2013-07-10 | 电子科技大学 | Contextual model processing method and device based on NFC (near field communication) in enterprise environment |
CN103970416A (en) * | 2014-04-15 | 2014-08-06 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105120106A (en) * | 2015-09-10 | 2015-12-02 | 天脉聚源(北京)教育科技有限公司 | Switching method and device of contextual models |
CN106060279A (en) * | 2016-08-01 | 2016-10-26 | 青岛歌尔声学科技有限公司 | Automatic mobile phone mode switching method |
CN106716065A (en) * | 2014-09-29 | 2017-05-24 | 夏普株式会社 | Information processing device, method for controlling same, and program |
-
2018
- 2018-01-24 CN CN201810069587.XA patent/CN108156328A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103200324A (en) * | 2013-03-28 | 2013-07-10 | 电子科技大学 | Contextual model processing method and device based on NFC (near field communication) in enterprise environment |
CN103970416A (en) * | 2014-04-15 | 2014-08-06 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN106716065A (en) * | 2014-09-29 | 2017-05-24 | 夏普株式会社 | Information processing device, method for controlling same, and program |
CN105120106A (en) * | 2015-09-10 | 2015-12-02 | 天脉聚源(北京)教育科技有限公司 | Switching method and device of contextual models |
CN106060279A (en) * | 2016-08-01 | 2016-10-26 | 青岛歌尔声学科技有限公司 | Automatic mobile phone mode switching method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110827972A (en) * | 2019-11-14 | 2020-02-21 | 上海联影医疗科技有限公司 | Terminal mode switching method, device, terminal, system and readable storage medium |
WO2021244567A1 (en) * | 2020-06-04 | 2021-12-09 | 深圳市万普拉斯科技有限公司 | Wireless charging control method and apparatus for smart terminal, and smart terminal |
CN114697445A (en) * | 2020-12-31 | 2022-07-01 | 华为技术有限公司 | Volume adjusting method, electronic equipment, terminal and storage medium |
WO2022143040A1 (en) * | 2020-12-31 | 2022-07-07 | 华为技术有限公司 | Volume adjusting method, electronic device, terminal, and storage medium |
CN114697445B (en) * | 2020-12-31 | 2023-09-01 | 华为技术有限公司 | Volume adjusting method, terminal and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108132752A (en) | A kind of method for editing text and mobile terminal | |
CN110445984A (en) | A kind of shooting reminding method and electronic equipment | |
CN108366220A (en) | A kind of video calling processing method and mobile terminal | |
CN108762869A (en) | A kind of information processing method and mobile terminal | |
CN109032468A (en) | A kind of method and terminal of adjustment equipment parameter | |
CN108469968A (en) | A kind of applied program processing method and mobile terminal | |
CN107888765A (en) | A kind of method of handoff scenario pattern, mobile terminal | |
CN108196815A (en) | A kind of adjusting method and mobile terminal of sound of conversing | |
CN108196757A (en) | The setting method and mobile terminal of a kind of icon | |
CN107992342A (en) | A kind of application configuration change method and mobile terminal | |
CN109144703A (en) | A kind of processing method and its terminal device of multitask | |
CN109558046A (en) | A kind of information display method and terminal device | |
CN107835495A (en) | A kind of message prompt method, device and mobile terminal | |
CN109885153A (en) | A kind of screen control method and mobile terminal | |
CN108668328A (en) | A kind of method for switching network and mobile terminal | |
CN108108113A (en) | Webpage switching method and device | |
CN108495349A (en) | A kind of switching method and mobile terminal of carrier network | |
CN109379700A (en) | Localization method and mobile terminal | |
CN108156328A (en) | The switching method and device of contextual model | |
CN108317992A (en) | A kind of object distance measurement method and terminal device | |
CN109257489B (en) | Display method and mobile terminal | |
CN108347642B (en) | A kind of video broadcasting method and mobile terminal | |
CN109547700A (en) | Photographic method and terminal | |
CN109462727A (en) | A kind of filter method of adjustment and mobile terminal | |
CN108196663A (en) | A kind of face identification method, mobile terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180612 |