CN103327162B - Contextual model setting method and terminal device - Google Patents

Contextual model setting method and terminal device Download PDF

Info

Publication number
CN103327162B
CN103327162B CN201210075731.3A CN201210075731A CN103327162B CN 103327162 B CN103327162 B CN 103327162B CN 201210075731 A CN201210075731 A CN 201210075731A CN 103327162 B CN103327162 B CN 103327162B
Authority
CN
China
Prior art keywords
terminal equipment
contextual model
time
value
collection
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
Application number
CN201210075731.3A
Other languages
Chinese (zh)
Other versions
CN103327162A (en
Inventor
黄神治
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210075731.3A priority Critical patent/CN103327162B/en
Publication of CN103327162A publication Critical patent/CN103327162A/en
Application granted granted Critical
Publication of CN103327162B publication Critical patent/CN103327162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a contextual model setting method and a terminal device. The method includes the steps of obtaining influence factor collecting values after the terminal device collects influence factors in the environment where the terminal device is placed, determining a first contextual model according to the influence factor collecting values, the corresponding relationship of a pre-stored influence factor threshold and the influence factors and the corresponding relationship of the contextual model and the influence factors, and setting a contextual module according to the first contextual model, wherein the influence factors include at least one of environmental noise, environmental luminance, the speed of the terminal device, the accelerated speed of the terminal device, the accelerated speed change rate of the terminal device, the height of a place where the terminal device is located, the environmental temperature and time, and the first contextual model is a contextual model which the terminal device belongs to at present. According to the technical scheme, various influence factors are considered to set the contextual model, and setting precision and setting efficiency of the contextual model are improved.

Description

Scene mode setting method and terminal equipment
Technical field
The present invention relates to mobile communication technology, particularly relate to a kind of scene mode setting method and terminal equipment.
Background technology
Universal along with the development of mobile communication technology and mobile phone, contacting of the life of people and mobile phone is more and more closer.The daily routines of current people need to experience many different scenes, and different scenes exists different demands to arranging of mobile phone contextual model.Such as, people are movable out of doors, such as, run, when going window-shopping, because environment is more noisy, may require that ringing sound of cell phone is larger, and mobile phone vibrations are simultaneously than stronger, and better remind effect can play, this pattern is called outdoor pattern.Again such as, when people enter indoor, when carrying out common daily life activity, then mobile phone only needs the tinkle of bells of normal quantity size just much of that, and do not need vibrations, this pattern is called mode standard.Again such as, people are when driving, then mobile phone may be needed directly to receive and dispatch news in brief with hands-free way call, voice reading and input pattern, and this pattern is called vehicle-mounted pattern.
Current most of mobile phone all needs people manually to arrange for the switching of contextual model, troublesome poeration and often arrange because people forget and bring and miss phone or the problem such as to be bothered by the tinkle of bells.For these problems, prior art proposes the method making mobile phone Lookup protocol contextual model.The method mainly starts contextual model and detects when sending a telegram here, the environmental noise residing for detection of handset, and carries out sampling analysis with the audio file being pre-stored within mobile phone and compare, and estimates sight residing for mobile phone accordingly and arranges the contextual model of mobile phone.But the environment that the method all only uses sound to judge residing for mobile phone to various contextual model, error is comparatively large, makes contextual model arrange inaccurate or need to repeat to arrange.
Summary of the invention
The invention provides a kind of scene mode setting method and terminal equipment, precision and efficiency are set in order to what improve contextual model.
The embodiment of the present invention provides a kind of scene mode setting method, comprising:
Terminal equipment gathers the influencing factor in environment residing for described terminal equipment, obtain influencing factor collection value, described influencing factor comprise environmental noise, ambient brightness, the speed of described terminal equipment, the acceleration of described terminal equipment, the rate of acceleration change of described terminal equipment, height residing for described terminal equipment, ambient temperature and time at least one of them;
Described terminal equipment is according to the corresponding relation of described influencing factor collection value, the influencing factor thresholding prestored and contextual model and influencing factor, and determine the first contextual model, described first contextual model is the current contextual model that should belong to of described terminal equipment;
Described terminal equipment carries out the setting of contextual model according to described first contextual model.
The embodiment of the present invention provides a kind of terminal equipment, comprising:
Data acquisition module, gather for the influencing factor in environment residing for described terminal equipment, obtain influencing factor collection value, described influencing factor comprise environmental noise, ambient brightness, the speed of described terminal equipment, the acceleration of described terminal equipment, the rate of acceleration change of described terminal equipment, height residing for described terminal equipment, ambient temperature and time at least one of them;
Mode decision module, for the corresponding relation according to described influencing factor collection value, the influencing factor thresholding prestored and contextual model and influencing factor, determine the first contextual model, described first contextual model is the current contextual model that should belong to of described terminal equipment;
Pattern arranges module, for carrying out the setting of contextual model according to described first contextual model.
The scene mode setting method that the embodiment of the present invention provides and terminal equipment, terminal equipment is gathered by the various factors in environment residing for terminal equipment, obtain influencing factor collection value, then according to the corresponding relation of influencing factor collection value, the influencing factor thresholding prestored and contextual model and influencing factor, determine current affiliated contextual model, and carry out the setting of contextual model according to the contextual model determined.The embodiment of the present invention allows different contextual models to use different influencing factors, and can based on one or more influencing factors to the judgement of often kind of contextual model, and no longer as prior art, all contextual models are all judged based on this influencing factor of ambient noise, improve the accuracy of the contextual model determined, and then improve precision and the efficiency of contextual model setting.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart of the scene mode setting method that Fig. 1 provides for one embodiment of the invention;
The flow chart of the scene mode setting method that Fig. 2 provides for another embodiment of the present invention;
The structural representation of the terminal equipment that Fig. 3 provides for one embodiment of the invention;
The structural representation of the terminal equipment that Fig. 4 provides for another embodiment of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The flow chart of the scene mode setting method that Fig. 1 provides for one embodiment of the invention.As shown in Figure 1, the method for the present embodiment comprises:
Step 101, terminal equipment gather the influencing factor in environment residing for terminal equipment, obtain influencing factor collection value, described influencing factor comprise ambient noise, ambient brightness, the speed of terminal equipment, the acceleration of terminal equipment, the rate of acceleration change of terminal equipment, height residing for terminal equipment, ambient temperature and time at least one of them.
Step 102, terminal equipment are according to the corresponding relation of influencing factor collection value, the influencing factor thresholding prestored and contextual model and influencing factor, and determine the first contextual model, described first contextual model is the current contextual model that should belong to of terminal equipment.
Step 103, terminal equipment carry out the setting of contextual model according to the first contextual model.
Wherein, influencing factor refers to the influential factor of the contextual model of terminal equipment, one of them or its combination such as ambient noise, ambient brightness, ambient temperature, time, the speed of terminal equipment, the acceleration of terminal equipment, the rate of acceleration change of terminal equipment and the height residing for terminal equipment can be comprised, but be also not limited thereto.
Comparatively common contextual model comprises outdoor pattern, vehicle-mounted pattern, mode standard, offline mode etc.Wherein, often kind of contextual model all with environmental correclation.
Illustrate the relation between each influencing factor and contextual model.Such as, people are movable out of doors, and such as, when going window-shopping, environment is usually more noisy, therefore can judge that user is in open air or is in indoor by ambient noise, so ambient noise is relevant with outdoor pattern and mode standard etc.; In addition, people also may carry out various motions such as running, climb the mountain out of doors, now terminal equipment will be in random motion, the rate of acceleration change of terminal equipment can be greater than 0 and can constantly change, by judging that the rate of acceleration change of terminal equipment can identify whether user is in regular motion state, therefore, the rate of acceleration change of terminal equipment is also relevant to outdoor pattern.Again such as, people are when driving a car, and the speed of mobile terminal and the speed of automobile can always, be in certain velocity interval, can judge whether user is driving a car by the speed of mobile terminal, so the speed of mobile terminal is usually relevant to vehicle-mounted pattern.Again such as, people are when airplane, and the height above sea level residing for terminal equipment is higher, and therefore, can be judged by the height residing for terminal equipment whether user is in state of flight, therefore, the height residing for terminal equipment is relevant to offline mode.
From above-mentioned, the influencing factor that different contextual model is corresponding is not identical, and the environmental factor affecting same contextual model can also be multiple.Divide all contextual models cause arranging inaccurate and repeating the problem that arranges of contextual model to only solve in prior art environmentally a kind of factor of noise, the terminal equipment of the present embodiment divides based on the many factors in residing environment and arranges contextual model.
Concrete, the terminal equipment of the present embodiment prestores thresholding corresponding to influencing factor, i.e. influencing factor thresholding.Wherein, influencing factor thresholding is mainly used in carrying out grade classification to influencing factor.Illustrate, cause for environment, influencing factor thresholding is noise gate, is mainly used in carrying out grade classification to ambient noise, such as, ambient noise can be divided into noisy, general, quiet.For ambient brightness, influencing factor thresholding is luminance threshold, is mainly used in carrying out grade classification to ambient brightness, such as, ambient brightness can be divided into strong light environment, general environment and low light environment.
In addition, the terminal equipment of the present embodiment is also previously stored with the corresponding relation between contextual model and influencing factor, and it is relevant with which influencing factor that this corresponding relation is mainly used in describing which kind of contextual model.Illustrate, for outdoor pattern, mainly relevant with the rate of acceleration change of ambient noise, mobile terminal etc., therefore the corresponding relation between rate of acceleration change terminal equipment storing outdoor pattern and ambient noise, mobile terminal.For vehicle-mounted pattern, main relevant with the speed of terminal equipment, therefore terminal equipment stores the corresponding relation between vehicle-mounted pattern and the speed of terminal equipment.
The terminal equipment of the present embodiment passes through the influencing factor in residing environment, the speed of such as ambient noise, ambient brightness, ambient temperature, time, terminal equipment, the acceleration of terminal equipment, the rate of acceleration change of terminal equipment, the height etc. residing for terminal equipment, gather, obtain influencing factor collection value.Then, terminal equipment is according to the corresponding relation between stored contextual model and influencing factor, obtain the influencing factor collection value corresponding with often kind of contextual model, then by the influencing factor collection value of acquisition and comparing with influencing factor thresholding corresponding to influencing factor collection value obtained of prestoring, mark off the grade belonging to influencing factor, finally determine the current contextual model that should belong to of terminal equipment, then carry out the setting of contextual model based on the contextual model determined (i.e. the first contextual model).
Illustrate at this, owing to carrying out the setting of contextual model in various embodiments of the present invention according to multiple influencing factor simultaneously, the quantity of the contextual model that terminal equipment is supported is more.For the ease of correctly arranging contextual model, priority can be set for each contextual model.Compare based on the collection value of each influencing factor and threshold value corresponding to each contextual model determine the first contextual model time, according to the priority of each contextual model of configuration, according to the corresponding relation between each contextual model and influencing factor, the collection value of influencing factor and corresponding thresholding can be compared successively; After determining the first contextual model, for the contextual model that follow-up priority is lower, terminal equipment does not just need the corresponding relation between contextual model lower according to follow-up priority again and influencing factor the collection value of influencing factor and corresponding thresholding to be compared to have processed.Wherein, the priority relationship of each contextual model allows different user to carry out adaptability setting according to the practical application of oneself.Illustrate, consider aircraft safety sex chromosome mosaicism, the priority that can arrange offline mode is the highest; Consider that inside automobile, possibility sound is more noisy, and generally can not reach the speed of automobile out of doors, so it is higher than the priority of outdoor pattern to arrange vehicle-mounted pattern; And the important ratio of sleep pattern is more weak, so it is minimum to arrange its priority, the priority relationship therefore between each contextual model is followed successively by: the outdoor pattern > sleep pattern of the vehicle-mounted pattern > of offline mode >.
In the present embodiment, terminal equipment no longer as prior art only environmentally a kind of factor of noise all contextual models are divided and are arranged, but by the corresponding relation of contextual model and influencing factor, realize using different influencing factors to divide and arrange to different contextual model, and allow to use various factors to divide and arrange to same contextual model, improve accuracy and precision that contextual model is set, and then decrease the number of times repeating to arrange contextual model, what improve contextual model arranges efficiency.
The flow chart of the scene mode setting method that Fig. 2 provides for another embodiment of the present invention.As shown in Figure 2, the method for the present embodiment comprises:
Step 201, terminal equipment carry out to the influencing factor in environment residing for terminal equipment the collection that a time acquisition time was the second fixed time every the first fixed time, obtain influencing factor collection value.
Wherein, step 201 is a kind of specific implementation of step 101.Specifically say, to be gap periods with the first fixed time gather the influencing factor in environment residing for terminal equipment terminal equipment, obtains influencing factor collection value.Wherein, each time span gathered was the second fixed time, and the influencing factor collection value at every turn collected refers to and collects within the second fixed time.
Wherein, the first fixed time and the second fixed time all can be arranged according to the type of terminal equipment and practical application request etc. voluntarily.The occurrence of the present embodiment to the first fixed time and the second fixed time does not limit, and the first fixed time and the second fixed time are designated as Δ T respectively 1with Δ T 2.
In the present embodiment, influencing factor can comprise equally ambient noise, ambient brightness, ambient temperature, time, the speed of terminal equipment, the size of the acceleration of terminal equipment, the rate of acceleration change of terminal equipment and the height residing for terminal equipment etc. at least one of them, but to be not limited thereto.Wherein, can the description of embodiment shown in Figure 1 about explanation relevant between each influencing factor and contextual model.
Step 202, terminal equipment are according to after the first fixed time arrived, the corresponding relation of the influencing factor collection value collected within the second fixed time, the influencing factor thresholding prestored and contextual model and influencing factor, determine the first contextual model, described first contextual model is the current contextual model that should belong to of terminal equipment.
In the present embodiment, terminal equipment mainly periodically determines the current contextual model that should belong to of terminal equipment according to the first fixed time.Concrete, terminal equipment is according to the corresponding relation between stored contextual model and influencing factor, from the influencing factor collection value collected within this second fixed time current, obtain the influencing factor collection value corresponding with often kind of contextual model, then by the influencing factor collection value of acquisition and comparing with influencing factor thresholding corresponding to influencing factor collection value obtained of prestoring, mark off the grade belonging to influencing factor, finally determine the current contextual model that should belong to of terminal equipment, then the setting of contextual model is carried out based on the contextual model determined (i.e. the first contextual model).
Step 203, terminal equipment carry out the setting of contextual model according to the first contextual model.
Concrete, the first contextual model often determined by terminal equipment, just carries out the setting of a contextual model, namely periodically carries out the setting of contextual model according to the first fixed time.
In the present embodiment, terminal equipment periodically carries out the setting of contextual model according to the first fixed time.Due in actual application, environment residing for people can change at any time, so terminal equipment periodically carries out the demand arranging realistic application of contextual model, make contextual model follow the change of actual environment and change, make user can not omit mobile phone short message or not be disturbed.
The present embodiment provides a kind of step 103 and step 203, and namely terminal equipment carries out the embodiment of the setting of contextual model according to the first contextual model.This execution mode comprises: the second contextual model and the first contextual model, after determining the first contextual model, compare by terminal equipment; If the second contextual model is not identical with the first contextual model, terminal equipment switches to the first contextual model from the second contextual model; If the second contextual model is identical with the first contextual model, then terminal equipment can not carry out the switching of contextual model.Wherein, the second contextual model is the contextual model of the current use of terminal equipment.Usually, under terminal equipment all can be in certain contextual model, the outdoor pattern arranged such as, under terminal equipment may be in the mode standard of acquiescence or before being in is inferior, therefore the present embodiment is by comparing the first contextual model and the second contextual model and carrying out the mode of contextual model setting according to comparative result, the setting of contextual model can be carried out when the first contextual model is identical with the second contextual model, be conducive to alleviating the burden of terminal equipment, economize on resources.
Further, terminal equipment, when the second contextual model and the first contextual model are not identical, can switch to the first contextual model according to the setting command of user's input from the second contextual model, also can switch to the first contextual model from the second contextual model voluntarily.Concrete, terminal equipment can pre-configured 3rd fixed time.3rd fixed time was used for inputting setting command for user.Such as, terminal equipment after judging that the second contextual model is not identical with the first contextual model, can provide a contextual model to arrange interface to user, inputs setting command, but be not limited thereto for user.Terminal equipment, while providing contextual model to arrange interface to user, can start timer or counter, carries out timing to the 3rd fixed time.If receive the setting command of user's input within the 3rd fixed time, terminal equipment switches to the first contextual model according to setting command from the second contextual model; If do not receive the setting command of user's input after the 3rd fixed time terminated, then terminal equipment switches to the first contextual model from the second contextual model automatically.Further, if terminal equipment have received within the 3rd fixed time user input mandatum cassatorium is set, then terminal equipment can cancel setting, namely maintains original contextual model, i.e. the second contextual model.Wherein, the 3rd fixed time also can carry out adaptability setting according to terminal equipment and practical application scene, such as, can be set to for 5 seconds.The terminal equipment of the present embodiment is supported user to input setting command and is carried out the formula setting of sight mould according to setting command, meets the use habit of user, is conducive to improving user experience.
Further, terminal equipment, while providing contextual model to arrange interface to user, can also send contextual model to user and arrange information, so that user can input setting command in time or arrange mandatum cassatorium.Concrete, terminal equipment can send information with vibration mode or voice mode to user.Wherein, the mode that terminal equipment sends information can be pre-set in the setting option of terminal equipment by user.
Based on the various embodiments described above, the embodiment of the present invention provides a kind of step 101 or step 201, and namely terminal equipment obtains the embodiment of various influencing factor collection value.This execution mode comprises the operation of following at least one:
Terminal equipment is gathered ambient noise by audio frequency apparatus, obtains Noise Acquisition value.Preferably, terminal equipment can carry out to ambient noise the collection that a time acquisition time was the second fixed time by audio frequency apparatus every the first fixed time, obtain Noise Acquisition value, namely terminal equipment periodically gathered the noise in residing environment according to the first fixed time, so that periodically carry out the setting of contextual model.Wherein, within the second fixed time, terminal equipment carries out continuous acquisition especially by audio frequency apparatus to ambient noise.Wherein, for terminal equipment, this audio frequency apparatus can its microphone, but is not limited thereto.Such as, terminal equipment can comprise be specifically designed to gather ambient noise audio frequency apparatus and configure corresponding software, by this audio frequency apparatus and corresponding software, ambient noise is gathered.Wherein, terminal equipment uses its microphone to have ambient noise collection and realizes the low advantage of cost.Particularly, terminal equipment can be recorded to ambient noise by its microphone within the second fixed time, then recording file is encoded to pulse code modulation (Pulse-Code Modulation, PCM) encode, then sample to pcm encoder according to certain frequency, sampled value is Noise Acquisition value.
Terminal equipment is gathered ambient brightness (light namely in environment) by light collecting device, obtains brightness collection value.Preferably, terminal equipment can carry out to ambient brightness the collection that a time acquisition time was the second fixed time by light collecting device every the first fixed time, obtain brightness collection value, namely terminal equipment periodically gathered the brightness in residing environment according to the first fixed time, so that periodically carry out the setting of contextual model.Wherein, within the second fixed time, terminal equipment carries out periodicity gather according to frequency acquisition to ambient brightness especially by light collecting device.Wherein, for terminal equipment, this light collecting device can light sensor, but is not limited thereto.Such as, terminal equipment can comprise be specifically designed to gather ambient brightness collecting device and configure corresponding software, by special collecting device and corresponding software, ambient brightness is gathered.At present, terminal equipment can arrange light sensor usually, therefore terminal equipment uses its light sensor to have ambient brightness collection realizes the low advantage of cost.Concrete, terminal equipment can be sampled to ambient light with fixed sampling frequency by its light sensor, and sampled value is brightness collection value.
Terminal equipment is gathered by the coordinate information of station acquisition equipment to terminal equipment, according to the time point acquisition speed collection value of the coordinate information collected and coordinate acquisition information.Preferably, terminal equipment can carry out to the coordinate information of terminal equipment the collection that a time acquisition time was the second fixed time every the first fixed time Negotiation speed collecting device, acquisition speed collection value, namely terminal equipment periodically gathered the coordinate information of terminal equipment according to the first fixed time, so that periodically carry out the setting of contextual model.Wherein, within the second fixed time, terminal equipment carries out periodicity gather according to frequency acquisition to the coordinate information of terminal equipment especially by station acquisition equipment.Wherein, station acquisition equipment can be GPS, but is not limited thereto.At present, most terminal equipment is all provided with GPS, therefore uses the coordinate information of GPS acquisition terminal equipment to have to be easy to realize and lower-cost advantage.Such as, terminal equipment can utilize the positioning function of its GPS, remove according to Fixed Time Interval (i.e. sample frequency) coordinate information obtaining terminal equipment within the second fixed time, then the movement velocity of terminal equipment is calculated according to the acquisition time interval (i.e. the difference of adjacent twice acquisition time) of the coordinate information to collect for adjacent twice and adjacent twice, and then acquisition speed collection value.
Terminal equipment is gathered by the motion state of acceleration collecting device to terminal equipment, obtains acceleration collection value.Preferably, terminal equipment can carry out to the motion state of terminal equipment the collection that a time acquisition time was the second fixed time by acceleration collecting device every the first fixed time, obtain acceleration collection value, namely terminal equipment periodically gathered the motion state of terminal equipment according to the first fixed time, so that periodically carry out the setting of contextual model.Wherein, within the second fixed time, terminal equipment carries out periodicity gather according to frequency acquisition to the motion state of terminal equipment especially by acceleration collecting device.Wherein, acceleration collecting device can be acceleration transducer, but is not limited thereto.At present, most terminal equipment can arrange acceleration transducer, therefore by acceleration transducer, collection be carried out to the motion state of terminal equipment and have and be easy to advantages such as realizing, cost is low.Concrete, terminal equipment can be sampled with the motion state of fixed sampling frequency to terminal equipment by its acceleration transducer within the second fixed time, and sampled value is the instantaneous acceleration of terminal equipment, that is acceleration collection value.
Further, terminal equipment according to acceleration collection value and the time point gathering acceleration collection value, can also obtain rate of acceleration change collection value.Concrete, terminal equipment according to acceleration collection value and the time point gathering acceleration collection value, can carry out calculus of differences to continuous two acceleration collection values, obtains rate of acceleration change, and then obtain multiple rate of acceleration change sampled value.
Terminal equipment is gathered by the height of height collecting device to terminal equipment, obtains height collection value.Preferably, terminal equipment can carry out to the height residing for terminal equipment the collection that a time acquisition time was the second fixed time by height collecting device every the first fixed time, obtain height collection value, namely terminal equipment periodically gathered the height residing for terminal equipment according to the first fixed time, so that periodically carry out the setting of contextual model.Wherein, within the second fixed time, terminal equipment carries out periodicity gather according to frequency acquisition to the height of terminal equipment especially by height collecting device.Wherein, height collecting device can be GPS, but is not limited thereto.At present, most terminal equipment is all provided with GPS, so utilize the positioning function of GPS, obtains the elevation information at terminal equipment place and has and be easy to advantages such as realizing, cost is low.Concrete, terminal equipment can utilize the positioning function of its GPS, within the second fixed time, go the locating information of acquisition GPS according to Fixed Time Interval (i.e. sample frequency) and calculate the elevation information of terminal equipment based on locating information, namely obtaining height collection value.
Terminal equipment can be gathered ambient temperature by temperature acquisition equipment, obtain temperature acquisition value preferred, terminal equipment can carry out to ambient temperature the collection that a time acquisition time was the second fixed time by temperature acquisition equipment every the first fixed time, obtain temperature acquisition value, namely terminal equipment periodically gathered, so that periodically arrange contextual model the temperature in environment residing for terminal equipment according to the first fixed time.Wherein, within the second fixed time, terminal equipment carries out periodicity gather according to frequency acquisition to ambient temperature especially by temperature acquisition equipment.Wherein, temperature acquisition equipment can be temperature sensor, but is not limited thereto.
Terminal equipment can gather its system time, acquisition time collection value.Preferably, terminal equipment can carry out to the system time of terminal equipment the collection that a time acquisition time was the second fixed time every the first fixed time, acquisition time collection value.For system time, terminal equipment can only gather once within the second fixed time, does not need to gather repeatedly, is conducive to the resource of saving terminal equipment.
Illustrate at this, the process that terminal equipment prestores each influencing factor thresholding also comprises and gathering various influencing factor, and obtain the process of influencing factor sampled value, then terminal equipment just calculates influencing factor thresholding according to the influencing factor sampled value obtained.
Below the process that terminal equipment obtains various influencing factor thresholding is described.
Be ambient noise for influencing factor, influencing factor thresholding is noise gate.Such as, terminal equipment can be recorded to the noise under varying environment by its microphone, then recording file is decoded as pcm encoder, then samples to pcm encoder according to certain frequency, obtains Noise Acquisition value; Then terminal equipment can be averaged to Noise Acquisition value, using this mean value as noise gate.In the present embodiment, described " varying environment " can be divided into noisy environment and quiet environment, then terminal equipment can by carrying out the process such as recording and then obtaining a noise gate to the noise in designated environment.Further, in order to improve the precision of noise gate, terminal equipment periodically can be recorded to the noise in designated environment according to the first fixed time, decoding, the process such as sampling, obtain the Noise Acquisition value in multiple cycle, the Noise Acquisition value in multiple cycle is averaged, using this mean value as noise gate.Further, ambient noise can also be divided more grade according to information such as the amplitude of the sampling resolution of noise samples value, sampled point and distributions by terminal equipment, such as be divided into noisy, general and quiet Three Estate, namely described " varying environment " comprises noisy environment, general environment and quiet environment.The present embodiment is to be divided into Three Estate, then terminal equipment can process and then acquisition upper noise limit value and noise lower limit value by carrying out recording etc. to the noise in the noisy environment of specifying (such as downtown area) and the quiet environment (environment at night of such as indoor or sleep in evening) of specifying respectively, and is designated as T respectively vHand T vL.When ambient noise is more than or equal to T vHtime be noisy environment, when ambient noise is less than T vHand be greater than T vLtime be general environment, when ambient noise is less than or equal to T vLtime be quiet environment.
Be ambient brightness for influencing factor, influencing factor thresholding is luminance threshold.Such as, terminal equipment can be sampled with fixed sampling frequency within a certain period of time by its light sensor in the environment of different light rays intensity, obtains brightness collection value; Then the luma samples value of interior acquisition is during this period of time averaged, using mean value as luminance threshold.Wherein, terminal equipment can arrange a luminance threshold, ambient brightness is divided into high light and low-light two grades.Terminal equipment can also arrange two luminance threshold, ambient brightness is divided into high light, general and low-light Three Estate.The present embodiment is to arrange two luminance threshold, then terminal equipment can by neutralizing dim environment (the such as pocket of specifying to the strong light environment of specifying (environment as fluorescent lamp or sunlight direct irradiation) respectively, night is at environment that is outdoor or sleep of turning off the light evening) in light intensity carry out collections and wait and process acquisition brightness higher limit and brightness lower limit, and be designated as T respectively lHand T lL.When ambient brightness is more than or equal to T lHtime be strong light environment, when ambient brightness is less than T lHand be greater than T lLtime be general environment, when ambient brightness is less than or equal to T lLtime be dim environment.
Be the speed of terminal equipment for influencing factor, influencing factor thresholding is speed threshold.Such as, terminal equipment can utilize the positioning function of its GPS, go to obtain the coordinate information of terminal equipment according to Fixed Time Interval, and the change of coordinate information obtained for twice by front and back and the time interval of acquisition calculate the movement velocity of terminal equipment, and then acquisition speed collection value.Then, the multiple speed acquisition values obtained within a period of time are averaged, using mean value as speed threshold by terminal equipment.The speed of terminal equipment is divided at a slow speed for terminal equipment by the present embodiment, middling speed and quick three kinds of situations, then terminal equipment can by respectively to specify in environment at a slow speed (such as to people's walking or run time speed) and quick environment in speed (train of such as high-speed cruising or the speed of automobile) gather, process acquisition low speed thresholding and the high speed thresholding such as calculating, be designated as T respectively sLand T sH.Wherein, correspond at a slow speed the speed of people's walking or running, middling speed corresponds to car speed, refers to fast than automobile speed faster.When the speed of terminal equipment is greater than T sLand be less than T sHtime be middling speed motion, when the speed of terminal equipment is less than or equal to T sLtime, think microinching, when the speed of terminal equipment is more than or equal to T sHtime be rapid movement.
Be the acceleration of terminal equipment for influencing factor, influencing factor thresholding is acceleration threshold.Such as, terminal equipment can be sampled with the motion state of fixed sampling frequency to terminal equipment by its acceleration transducer, and sampled value is the instantaneous acceleration of terminal equipment, that is acceleration collection value.The size of comprehensive acceleration, if acceleration is 0, the motion state of terminal equipment can be divided into uniform motion or inactive state by terminal equipment; If acceleration is greater than 0, the motion state of terminal equipment can be divided into variable motion state by terminal equipment.Whether the present embodiment is mainly used in distinguishing terminal equipment by acceleration and remains static or uniform speed motion state, and relative set acceleration threshold, is designated as T aL.When the acceleration of terminal equipment is less than or equal to T aLtime, think that terminal equipment remains static or uniform speed motion state; When being greater than T aLtime, think that terminal equipment is in variable motion state.
Be the rate of acceleration change of terminal equipment for influencing factor, influencing factor thresholding is rate of acceleration change thresholding.Such as, terminal equipment can be sampled with the motion state of fixed sampling frequency to terminal equipment by its acceleration transducer, then calculus of differences is carried out to continuous two sampled values, obtain rate of acceleration change, and then obtain multiple rate of acceleration change sampled value, then the multiple rate of acceleration change collection values obtained being averaged obtains rate of acceleration change thresholding.The size of comprehensive rate of acceleration change, the motion of terminal equipment can be divided into regular motion and irregular movement both of these case by terminal equipment, but is not limited thereto.The present embodiment is to be divided into two kinds of situations, and relative set rate of acceleration change thresholding, is designated as T aH.When the rate of acceleration change of terminal equipment is greater than T aHtime, think that terminal equipment is in irregular movement state.Such as, because gravity center shift is comparatively large when people walks or runs, belong to irregular movement; And the bicycle of smooth-ride and automobilism are all regular motion.
For the height of influencing factor residing for terminal equipment, influencing factor thresholding is height thresholding.Such as, terminal equipment can utilize the positioning function of its GPS, go the locating information of acquisition GPS according to Fixed Time Interval and calculate the elevation information of terminal equipment based on locating information, namely height collection value is obtained, then the height collection value of acquisition is averaged, using mean value as height thresholding.In the present embodiment, terminal equipment can according to height thresholding, User Status is divided into and is on aircraft and is non-ly on aircraft.Height thresholding is designated as T by the present embodiment hH.When the height residing for terminal equipment is greater than T hHtime, think that user is on aircraft; Otherwise think that user is not on aircraft.Wherein, T hHbe generally the minimum altitude of aircraft flight.
Be the time for influencing factor, influencing factor thresholding is time threshold.Wherein, terminal equipment can preset two time thresholds, and distinguishes daytime and night with these two time thresholds.In the present embodiment, these two time thresholds are called time upper limit value and time lower limit, and are designated as T respectively tHand T tL.T is in when the time that terminal equipment collects tHand T tLbetween, then think daytime, otherwise think night.Wherein, user can arrange T voluntarily according to the daily schedule of oneself tHand T tL, as arranged morning 8 at 6 in evening for daylight hours.
Further, the embodiment of the present invention provides a kind of definition of new contextual model, i.e. sleep pattern.Wherein, this sleep pattern mainly considers that cellphone subscriber's use habit of not shutting down of sleeping evening proposes.Different user can according to the use habit self-defining sleep pattern of oneself.The present embodiment provides a kind of definition meeting the sleep pattern of the use habit of most of user.The sleep pattern of the present embodiment mainly includes but not limited to following content: automatically close APN (Access Point Name, APN); Automatic closedown Wireless Fidelity (Wireless Fidelity, WIFI); Automatic closedown bluetooth; Automatic closedown satellite fix; Mobile phone reminding manner is ring tone modes, and the tinkle of bells starts little, along with the incoming call time is strengthened gradually by weak.
In conjunction with the sleep pattern of outdoor pattern of the prior art, vehicle-mounted pattern, offline mode and embodiment of the present invention definition, below the present invention, how embodiment detailed description terminal equipment determines the first contextual model.
For outdoor pattern, the influencing factor of its correspondence is ambient noise or rate of acceleration change.Then terminal equipment is according to the corresponding relation of outdoor pattern and influencing factor, Noise Acquisition value or rate of acceleration change sampled value is obtained from all influencing factor collection values collected, or only ambient noise or rate of acceleration change are gathered, obtain Noise Acquisition value or rate of acceleration change sampled value.Then, Noise Acquisition value or rate of acceleration change collection value are averaging processing by terminal equipment, obtain noise average or rate of acceleration change mean value.Then, noise average or rate of acceleration change mean value compare with upper noise limit value or rate of acceleration change thresholding by end equipment respectively.If noise average is more than or equal to upper noise limit value or rate of acceleration change mean value is more than or equal to rate of acceleration change thresholding, then terminal equipment determines that outdoor pattern is the first contextual model, and namely outdoor pattern is the current contextual model that should belong to of terminal equipment.
For vehicle-mounted pattern, the influencing factor of its correspondence is the speed of terminal equipment.Then terminal equipment is according to the corresponding relation of vehicle-mounted pattern and influencing factor, acquisition speed collection value from all influencing factor collection values collected, or only gathers the speed of terminal equipment, obtains speed acquisition value.Then, speed acquisition value is averaging processing by terminal equipment, acquisition speed mean value.Then, speed average compares with low speed thresholding and height thresholding by terminal equipment respectively.If speed average is greater than low speed thresholding and be less than high speed thresholding, terminal equipment determines that vehicle-mounted pattern is the first contextual model, and namely the current contextual model that should belong to of terminal equipment is vehicle-mounted pattern.
For offline mode, the height of influencing factor residing for terminal equipment of its correspondence.Then terminal equipment is according to the corresponding relation of offline mode and influencing factor, obtains height collection value, or only gather the height residing for terminal equipment from all influencing factor collection values collected, and obtains height collection value.Then, height collection value is averaging processing by terminal equipment, obtains height average.Then, height average and height thresholding compare by terminal equipment; If height average is greater than height thresholding, terminal equipment determination offline mode is the first contextual model, and namely the current contextual model that should belong to of terminal equipment is offline mode.
For sleep pattern, the influencing factor of its correspondence is ambient noise, ambient brightness, the acceleration of terminal equipment and time.Then terminal equipment is according to the corresponding relation of sleep pattern and influencing factor, noise samples value, brightness collection value, acceleration collection value and time collection value is obtained from all influencing factor collection values collected, or only the acceleration of ambient noise, ambient brightness, terminal equipment and time are gathered, obtain noise samples value, brightness collection value, acceleration collection value and time collection value.Then, noise samples value, brightness collection value, acceleration collection value and time collection value are averaging processing by terminal equipment respectively, obtain noise average, average brightness, acceleration mean value and time average.Then, noise average, average brightness and acceleration mean value compare with noise lower limit value, brightness lower limit, acceleration threshold by terminal equipment respectively, and time average are compared with time upper limit value and time lower limit respectively.If noise average is less than or equal to noise lower limit value, average brightness is less than or equal to brightness lower limit, acceleration mean value is less than or equal to acceleration threshold, and time average is greater than time lower limit and is less than time upper limit value, then terminal equipment determination sleep pattern is the first contextual model, and namely the current affiliated contextual model of terminal equipment is sleep pattern.
Illustrate at this, the present invention is only illustrated outdoor pattern, vehicle-mounted pattern, offline mode and sleep pattern, but is not limited thereto.Because terminal equipment in the embodiment of the present invention can obtain various influencing factor collection value, therefore support mark off more Scenario pattern, for the deterministic process of other contextual models and the deterministic process of above-mentioned illustrational contextual model similar.
Illustrate at this, the terminal equipment in the embodiment of the present invention can be smart mobile phone, but is not limited thereto, such as, can also be various with at least one of them the intelligent terminal such as microphone, GPS, light sensor, acceleration transducer, temperature sensor.In addition, along with the development of terminal equipment, terminal equipment can also configure increasing transducer, gather for influencing factors more in environment residing for terminal equipment, more to divide contextual model, that improves contextual model arranges precision and efficiency.
The structural representation of the terminal equipment that Fig. 3 provides for one embodiment of the invention.As shown in Figure 3, the terminal equipment of the present embodiment comprises: data acquisition module 31, mode decision module 32 and pattern arrange module 33.
Wherein, data acquisition module 31, gather for the influencing factor in environment residing for terminal equipment, obtain influencing factor collection value, described influencing factor comprise environmental noise, ambient brightness, the speed of terminal equipment, the acceleration of terminal equipment, the rate of acceleration change of terminal equipment, height residing for terminal equipment, ambient temperature and time at least one of them.
Mode decision module 32, be connected with data acquisition module 31, for the corresponding relation of the influencing factor collection value obtained according to data acquisition module 31, the influencing factor thresholding prestored and contextual model and influencing factor, determine the first contextual model, described first contextual model is the current contextual model that should belong to of terminal equipment.
Pattern arranges module 33, is connected with mode decision module 32, and the first contextual model for determining according to mode decision module 32 carries out the setting of contextual model.
Each functional module of the terminal equipment of the present embodiment can be used for the flow process performing scene mode setting method shown in Fig. 1, and its specific works principle repeats no more, and refers to the description of embodiment of the method.
The terminal equipment of the present embodiment, gathered by the various factors in environment residing for terminal equipment, obtain influencing factor collection value, then according to the corresponding relation of influencing factor collection value, the influencing factor thresholding prestored and contextual model and influencing factor, determine current affiliated contextual model, and carry out the setting of contextual model according to the contextual model determined.The terminal equipment of the embodiment of the present invention allows different contextual models to use different influencing factors, and can based on one or more influencing factors to the judgement of often kind of contextual model, and no longer as prior art, all contextual models are all judged based on this influencing factor of ambient noise, improve the accuracy of the contextual model determined, and then improve precision and the efficiency of contextual model setting.
The structural representation of the terminal equipment that Fig. 4 provides for another embodiment of the present invention.The terminal equipment of the present embodiment can based on realization embodiment illustrated in fig. 3, and as shown in Figure 4, the terminal equipment of the present embodiment also comprises: data acquisition module 31, mode decision module 32 and pattern arrange module 33.
Further, the data acquisition module 31 of the present embodiment can comprise at least one data acquisition submodule following:
First data acquisition submodule 311, for carrying out to ambient noise the collection that a time acquisition time was the second fixed time every the first fixed time, obtains Noise Acquisition value.Within the second fixed time, the first data acquisition submodule 311 specifically can carry out continuous acquisition to ambient noise, and collection period corresponding to this frequency acquisition is different from the first fixed time.Wherein, the first data acquisition submodule 311 can be microphone, but is not limited thereto.
Second data acquisition submodule 312, for carrying out to ambient brightness the collection that a time acquisition time was the second fixed time every the first fixed time, obtains brightness collection value.Within the second fixed time, the second data acquisition submodule 312 specifically can carry out periodicity collection according to certain frequency acquisition to ambient brightness, and collection period corresponding to this frequency acquisition is different from the first fixed time.Wherein, the second data acquisition submodule 312 can be light sensor, but is not limited thereto.
3rd data acquisition submodule 313, for carrying out to the coordinate information of terminal equipment the collection that a time acquisition time was the second fixed time every the first fixed time, according to the time point acquisition speed collection value of coordinate information and coordinate acquisition information.Within the second fixed time, the 3rd data acquisition submodule 313 specifically can carry out periodicity collection according to certain frequency acquisition to the coordinate information of terminal equipment, and collection period corresponding to this frequency acquisition is different from the first fixed time.Wherein, the 3rd data acquisition submodule 313 can be GPS, but is not limited thereto.
Further, the 3rd data acquisition submodule 313 can also be used for carrying out to the height residing for terminal equipment the collection that a time acquisition time was the second fixed time every the first fixed time, obtains height collection value.
4th data acquisition submodule 314, for carrying out to the motion state of terminal equipment the collection that a time acquisition time was the second fixed time every the first fixed time, obtain acceleration collection value, and according to acceleration collection value and the time point acquisition rate of acceleration change collection value gathering acceleration collection value.Within the second fixed time, the 4th data acquisition submodule 314 specifically can carry out periodicity collection according to certain frequency acquisition to the motion state of terminal equipment, and collection period corresponding to this frequency acquisition is different from the first fixed time.Wherein, the 4th data acquisition submodule 314 can be acceleration transducer.
5th data acquisition submodule 315, for carrying out to ambient temperature the collection that a time acquisition time was the second fixed time every the first fixed time, obtains temperature acquisition value.Within the second fixed time, the 5th data acquisition submodule 315 specifically can carry out periodicity collection according to certain frequency acquisition to ambient temperature, and collection period corresponding to this frequency acquisition is different from the first fixed time.Wherein, the 5th data acquisition submodule 315 can be temperature sensor, but is not limited thereto.
6th data acquisition submodule 316, for carrying out to the system time of terminal equipment the collection that a time acquisition time was the second fixed time every the first fixed time, acquisition time collection value.
Further, the mode decision module 32 of the present embodiment comprise following at least one determine submodule:
First determines submodule 321, for the corresponding relation according to outdoor pattern and influencing factor, Noise Acquisition value or rate of acceleration change collection value are averaging processing, obtain noise average or rate of acceleration change mean value, noise average or rate of acceleration change mean value are compared with upper noise limit value or rate of acceleration change thresholding respectively, if noise average is more than or equal to upper noise limit value or rate of acceleration change mean value is more than or equal to rate of acceleration change thresholding, determine that outdoor pattern is the first contextual model.
Second determines submodule 322, for the corresponding relation according to vehicle-mounted pattern and influencing factor, speed acquisition value is averaging processing, acquisition speed mean value, speed average is compared with low speed thresholding and high speed thresholding respectively, if speed average is greater than low speed thresholding and be less than high speed thresholding, determine that vehicle-mounted pattern is the first contextual model.
3rd determines submodule 323, for the corresponding relation according to offline mode and influencing factor, height collection value is averaging processing, obtain height average, height average and height thresholding are compared, if height average is greater than height thresholding, determine that offline mode is the first contextual model.
4th determines submodule 324, for the corresponding relation according to sleep pattern and influencing factor, by noise samples value, brightness collection value, acceleration collection value and time collection value are averaging processing respectively, obtain noise average, average brightness, acceleration mean value and time average, by noise average, average brightness and acceleration mean value respectively with noise lower limit value, brightness lower limit, acceleration threshold compares, and time average is compared with time upper limit value and time lower limit respectively, if noise average is less than or equal to noise lower limit value, average brightness is less than or equal to brightness lower limit, acceleration mean value is less than or equal to acceleration threshold, and time average is greater than time lower limit and is less than time upper limit value, determine that sleep pattern is the first contextual model.
Further, the pattern of the present embodiment arranges module 33 and comprises: comparison sub-module 331 and pattern switching submodule 332.
Wherein, comparison sub-module 331, for the second contextual model and the first contextual model being compared, described second contextual model is the contextual model of the current use of terminal equipment.
Pattern switching submodule 332, is connected with comparison sub-module 331, at the comparative result of comparison sub-module 331 be the second contextual model not identical with the first contextual model time, switch to the first contextual model from the second contextual model.
Further, the pattern switching submodule 332 of the present embodiment specifically may be used for the setting command receiving user's input within the 3rd fixed time, the first contextual model is switched to from the second contextual model according to setting command, or for after the 3rd fixed time terminated, do not receive setting command or receive within the 3rd fixed time user input mandatum cassatorium is set time, automatically switch to the first contextual model from the second contextual model.
Further, the pattern of the present embodiment arranges module 33 and also comprises: information prompting submodule 333.
Information prompting submodule 333, is connected with comparison sub-module 331, at the comparative result of comparison sub-module 331 be the second contextual model not identical with the first contextual model time, send contextual model to user and information be set.
Above-mentioned each function sub-modules can be used for performing the corresponding flow process in scene mode setting method shown in Fig. 1 or Fig. 2, and its specific works principle repeats no more, and refers to the description of embodiment of the method.
The terminal equipment of the present embodiment, gathered by the various factors in environment residing for terminal equipment, obtain influencing factor collection value, then according to the corresponding relation of influencing factor collection value, the influencing factor thresholding prestored and contextual model and influencing factor, determine current affiliated contextual model, and carry out the setting of contextual model according to the contextual model determined.The terminal equipment of the embodiment of the present invention allows different contextual models to use different influencing factors, and can based on one or more influencing factors to the judgement of often kind of contextual model, and no longer as prior art, all contextual models are all judged based on this influencing factor of ambient noise, improve the accuracy of the contextual model determined, and then improve precision and the efficiency of contextual model setting.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (16)

1. a scene mode setting method, is characterized in that, comprising:
Terminal equipment gathers the influencing factor in environment residing for described terminal equipment, obtain influencing factor collection value, described influencing factor comprise environmental noise, ambient brightness, the speed of described terminal equipment, the acceleration of described terminal equipment, the rate of acceleration change of described terminal equipment, height residing for described terminal equipment, ambient temperature and time at least one of them;
Described terminal equipment is according to the corresponding relation of described influencing factor collection value and the contextual model prestored and influencing factor, the influencing factor collection value corresponding with it is added in contextual model often kind described, and the influencing factor collection value of adding in often kind of described contextual model and the influencing factor thresholding prestored are compared, mark off the grade of the influencing factor corresponding with contextual model often kind described, the first contextual model is determined according to the grade of described division, described first contextual model is the current contextual model that should belong to of described terminal equipment, wherein, one or more influencing factor collection value is added with in same contextual model,
Described terminal equipment carries out the setting of contextual model according to described first contextual model.
2. scene mode setting method according to claim 1, is characterized in that, described terminal equipment gathers the influencing factor in environment residing for described terminal equipment, obtains influencing factor collection value and comprises:
Described terminal equipment carries out to the influencing factor in environment residing for described terminal equipment the collection that a time acquisition time was the second fixed time every the first fixed time, obtains described influencing factor collection value.
3. scene mode setting method according to claim 2, it is characterized in that, described terminal equipment carries out to the influencing factor in environment residing for described terminal equipment the collection that a time acquisition time was the second fixed time every the first fixed time, obtains described influencing factor collection value and comprises the operation of following at least one:
Described terminal equipment carries out to described ambient noise the collection that a time acquisition time is described second fixed time by audio frequency apparatus every described first fixed time, obtains Noise Acquisition value;
Described terminal equipment carries out to described ambient brightness the collection that a time acquisition time is described second fixed time by light collecting device every described first fixed time, obtains brightness collection value;
Described terminal equipment carries out to the coordinate information of described terminal equipment the collection that a time acquisition time is described second fixed time by station acquisition equipment every described first fixed time, according to described coordinate information and the time point acquisition speed collection value gathering described coordinate information;
Described terminal equipment carries out to the motion state of described terminal equipment the collection that a time acquisition time is described second fixed time by acceleration collecting device every described first fixed time, obtain acceleration collection value, and according to described acceleration collection value and the time point acquisition rate of acceleration change collection value gathering described acceleration collection value;
Described terminal equipment carries out to the height residing for described terminal equipment the collection that a time acquisition time is described second fixed time by height collecting device every described first fixed time, obtains height collection value;
Described terminal equipment carries out to described ambient temperature the collection that a time acquisition time is described second fixed time by temperature acquisition equipment every described first fixed time, obtains temperature acquisition value;
Described terminal equipment every described first fixed time by carrying out to the system time of described terminal equipment the collection that a time acquisition time is described second fixed time, acquisition time collection value.
4. scene mode setting method according to claim 3, is characterized in that, described audio frequency apparatus is microphone; Described light collecting device is light sensor; Described station acquisition equipment is GPS; Described acceleration collecting device is acceleration transducer; Described height collecting device is GPS; Described temperature acquisition equipment is temperature sensor.
5. the scene mode setting method according to claim 3 or 4, it is characterized in that, described terminal equipment is according to the corresponding relation of described influencing factor collection value and the contextual model prestored and influencing factor, the influencing factor collection value corresponding with it is added in contextual model often kind described, and the influencing factor collection value of adding in often kind of described contextual model and the influencing factor thresholding prestored are compared, mark off the grade of the influencing factor corresponding with contextual model often kind described, determine the first contextual model according to the grade of described division, comprising:
Described Noise Acquisition value or described rate of acceleration change collection value, according to the corresponding relation of outdoor pattern and influencing factor, are averaging processing by described terminal equipment, obtain noise average or rate of acceleration change mean value;
Described noise average or described rate of acceleration change mean value compare with upper noise limit value or rate of acceleration change thresholding by described terminal equipment respectively;
If described noise average is more than or equal to described upper noise limit value or described rate of acceleration change mean value is more than or equal to rate of acceleration change thresholding, described terminal equipment determines that outdoor pattern is described first contextual model; Or
Described speed acquisition value, according to the corresponding relation of vehicle-mounted pattern and influencing factor, is averaging processing, acquisition speed mean value by described terminal equipment;
Described speed average compares with low speed thresholding and high speed thresholding by described terminal equipment respectively;
If described speed average is greater than described low speed thresholding and be less than described high speed thresholding, described terminal equipment determines that vehicle-mounted pattern is described first contextual model; Or
Described height collection value, according to the corresponding relation of offline mode and influencing factor, is averaging processing by described terminal equipment, obtains height average;
Described height average and height thresholding compare by described terminal equipment;
If described height average is greater than described height thresholding, described terminal equipment determination offline mode is described first contextual model; Or
Described terminal equipment is according to the corresponding relation of sleep pattern and influencing factor, described noise samples value, brightness collection value, acceleration collection value and time collection value are averaging processing respectively, obtain noise average, average brightness, acceleration mean value and time average;
Described noise average, average brightness and acceleration mean value compare with noise lower limit value, brightness lower limit, acceleration threshold by described terminal equipment respectively, and described time average are compared with time upper limit value and time lower limit respectively;
If described noise average is less than or equal to described noise lower limit value, described average brightness is less than or equal to described brightness lower limit, described acceleration mean value is less than or equal to described acceleration threshold, and described time average is greater than described time lower limit and is less than described time upper limit value, described terminal equipment determination sleep pattern is described first contextual model.
6. the scene mode setting method according to claim 1 or 2 or 3 or 4, it is characterized in that, the setting that described terminal equipment carries out contextual model according to described first contextual model comprises:
Second contextual model and described first contextual model compare by described terminal equipment, and described second contextual model is the contextual model of the current use of described terminal equipment;
If described second contextual model is not identical with described first contextual model, described terminal equipment switches to described first contextual model from described second contextual model.
7. scene mode setting method according to claim 6, is characterized in that, described terminal equipment switches to described first contextual model to comprise from described second contextual model:
If described terminal equipment receives the setting command of user's input within the 3rd fixed time, switch to described first contextual model according to described setting command from described second contextual model;
If described terminal equipment does not receive described setting command after described 3rd fixed time terminates, automatically switch to described first contextual model from described second contextual model.
8. scene mode setting method according to claim 7, is characterized in that, also comprises:
Described terminal equipment, when described second contextual model is not identical with described first contextual model, sends contextual model to described user and arranges information.
9. a terminal equipment, is characterized in that, comprising:
Data acquisition module, gather for the influencing factor in environment residing for described terminal equipment, obtain influencing factor collection value, described influencing factor comprise environmental noise, ambient brightness, the speed of described terminal equipment, the acceleration of described terminal equipment, the rate of acceleration change of described terminal equipment, height residing for described terminal equipment, ambient temperature and time at least one of them;
Mode decision module, for the corresponding relation according to described influencing factor collection value and the contextual model prestored and influencing factor, the influencing factor collection value corresponding with it is added in contextual model often kind described, and the influencing factor collection value of adding in often kind of described contextual model and the influencing factor thresholding prestored are compared, mark off the grade of the influencing factor corresponding with contextual model often kind described, the first contextual model is determined according to the grade of described division, described first contextual model is the current contextual model that should belong to of described terminal equipment, wherein, one or more influencing factor collection value is added with in same contextual model,
Pattern arranges module, for carrying out the setting of contextual model according to described first contextual model.
10. terminal equipment according to claim 9, it is characterized in that, described data acquisition module, specifically for carrying out to the influencing factor in environment residing for described terminal equipment the collection that a time acquisition time was the second fixed time every the first fixed time, obtains described influencing factor collection value.
11. terminal equipments according to claim 10, is characterized in that, described data acquisition module comprises at least one data acquisition submodule following:
First data acquisition submodule, for carrying out to described ambient noise the collection that a time acquisition time is described second fixed time every described first fixed time, obtains Noise Acquisition value;
Second data acquisition submodule, for carrying out to described ambient brightness the collection that a time acquisition time is described second fixed time every described first fixed time, obtains brightness collection value;
3rd data acquisition submodule, for carrying out to the coordinate information of described terminal equipment the collection that a time acquisition time is described second fixed time every described first fixed time, according to described coordinate information and the time point acquisition speed collection value gathering described coordinate information; Or for carrying out to the height residing for described terminal equipment the collection that a time acquisition time is described second fixed time every described first fixed time, obtain height collection value;
4th data acquisition submodule, for carrying out to the motion state of described terminal equipment the collection that a time acquisition time is described second fixed time every described first fixed time, obtain acceleration collection value, and according to described acceleration collection value and the time point acquisition rate of acceleration change collection value gathering described acceleration collection value;
5th data acquisition submodule, for carrying out to described ambient temperature the collection that a time acquisition time is described second fixed time every described first fixed time, obtains temperature acquisition value;
6th data acquisition submodule, for carrying out to the system time of described terminal equipment the collection that a time acquisition time is described second fixed time every described first fixed time, acquisition time collection value.
12. terminal equipments according to claim 11, is characterized in that, described first data acquisition submodule is microphone; Described second data acquisition submodule is light sensor; Described 3rd data acquisition submodule is GPS; Described 4th data acquisition submodule is acceleration transducer; Described 5th data acquisition submodule is temperature sensor.
13. terminal equipments according to claim 10 or 11, is characterized in that, described mode decision module comprise following at least one determine submodule:
First determines submodule, for the corresponding relation according to outdoor pattern and influencing factor, described Noise Acquisition value or described rate of acceleration change collection value are averaging processing, obtain noise average or rate of acceleration change mean value, described noise average or described rate of acceleration change mean value are compared with upper noise limit value or rate of acceleration change thresholding respectively, if described noise average is more than or equal to described upper noise limit value or described rate of acceleration change mean value is more than or equal to rate of acceleration change thresholding, determine that outdoor pattern is described first contextual model,
Second determines submodule, for the corresponding relation according to vehicle-mounted pattern and influencing factor, described speed acquisition value is averaging processing, acquisition speed mean value, described speed average is compared with low speed thresholding and high speed thresholding respectively, if described speed average is greater than described low speed thresholding and be less than described high speed thresholding, determine that vehicle-mounted pattern is described first contextual model;
3rd determines submodule, for the corresponding relation according to offline mode and influencing factor, described height collection value is averaging processing, obtain height average, described height average and height thresholding are compared, if described height average is greater than described height thresholding, determine that offline mode is described first contextual model;
4th determines submodule, for the corresponding relation according to sleep pattern and influencing factor, by described noise samples value, brightness collection value, acceleration collection value and time collection value are averaging processing respectively, obtain noise average, average brightness, acceleration mean value and time average, by described noise average, average brightness and acceleration mean value respectively with noise lower limit value, brightness lower limit, acceleration threshold compares, and described time average is compared with time upper limit value and time lower limit respectively, if described noise average is less than or equal to described noise lower limit value, described average brightness is less than or equal to described brightness lower limit, described acceleration mean value is less than or equal to described acceleration threshold, and described time average is greater than described time lower limit and is less than described time upper limit value, determine that sleep pattern is described first contextual model.
14. terminal equipments according to claim 9 or 10 or 11 or 12, it is characterized in that, described pattern arranges module and comprises:
Comparison sub-module, for the second contextual model and described first contextual model being compared, described second contextual model is the contextual model of the current use of described terminal equipment;
Pattern switching submodule, at the comparative result of described comparison sub-module be described second contextual model not identical with described first contextual model time, switch to described first contextual model from described second contextual model.
15. terminal equipments according to claim 14, it is characterized in that, described pattern switching submodule specifically for receiving the setting command of user's input within the 3rd fixed time, described first contextual model is switched to from described second contextual model according to described setting command, or for after described 3rd fixed time terminates, do not receive described setting command or receive within described 3rd fixed time described user input mandatum cassatorium is set time, automatically switch to described first contextual model from described second contextual model.
16. terminal equipments according to claim 15, is characterized in that, described pattern arranges module and also comprises:
Information prompting submodule, at the comparative result of described comparison sub-module be described second contextual model not identical with described first contextual model time, send contextual model to described user and information be set.
CN201210075731.3A 2012-03-21 2012-03-21 Contextual model setting method and terminal device Active CN103327162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210075731.3A CN103327162B (en) 2012-03-21 2012-03-21 Contextual model setting method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210075731.3A CN103327162B (en) 2012-03-21 2012-03-21 Contextual model setting method and terminal device

Publications (2)

Publication Number Publication Date
CN103327162A CN103327162A (en) 2013-09-25
CN103327162B true CN103327162B (en) 2015-06-03

Family

ID=49195681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210075731.3A Active CN103327162B (en) 2012-03-21 2012-03-21 Contextual model setting method and terminal device

Country Status (1)

Country Link
CN (1) CN103327162B (en)

Families Citing this family (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533171A (en) * 2013-10-21 2014-01-22 英华达(上海)科技有限公司 Method and control device for automatic mobile phone profile switching and mobile phone with automatic mobile phone profile switching function
CN103634480B (en) * 2013-12-17 2017-03-01 百度在线网络技术(北京)有限公司 The method and apparatus of communication in communication terminal
CN104219402A (en) * 2014-02-14 2014-12-17 爱沟通网络科技有限公司 System for improving VoIP communication quality
CN103945365A (en) * 2014-03-20 2014-07-23 可牛网络技术(北京)有限公司 Automatic control method and device for airplane mode and mobile equipment
CN104980559B (en) * 2014-04-02 2022-01-11 华为技术有限公司 Method and device for setting color ring back tone and determining color ring back tone music
CN103986839A (en) * 2014-05-30 2014-08-13 深圳市中兴移动通信有限公司 Method for automatically setting contextual model and mobile terminal
CN105446578B (en) * 2014-06-27 2019-07-26 联想(北京)有限公司 A kind of information processing method, the first electronic equipment and wearable electronic equipment
CN105338597A (en) * 2014-07-16 2016-02-17 北京奇虎科技有限公司 Method of switching portable positioning equipment to power saving mode, apparatus and system
CN105388820A (en) * 2014-08-25 2016-03-09 深迪半导体(上海)有限公司 Intelligent monitoring device and monitoring method thereof, and monitoring system
CN105577897A (en) * 2014-10-14 2016-05-11 富泰华工业(深圳)有限公司 System and method for changing setting automatically
CN105611031A (en) * 2014-11-21 2016-05-25 中兴通讯股份有限公司 Terminal control method, terminal control device and terminal
CN105843373A (en) * 2015-01-16 2016-08-10 联想(北京)有限公司 Electronic equipment and control method of electronic equipment
US9980089B2 (en) 2015-01-21 2018-05-22 Htc Corporation Method for changing profile of a mobile terminal based on location and altitude
TWI547829B (en) * 2015-01-27 2016-09-01 宏達國際電子股份有限公司 Mobile device, notification method, and computer-readable recording medium
CN105991812A (en) * 2015-01-27 2016-10-05 宏达国际电子股份有限公司 Mobile device, prompt method and computer-readable recording medium
CN104660820B (en) * 2015-02-28 2017-07-14 努比亚技术有限公司 The implementation method and mobile terminal of mobile terminal administration pattern
CN104660827A (en) * 2015-03-18 2015-05-27 努比亚技术有限公司 Method and terminal for message reminding
CN106161753A (en) * 2015-04-17 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of scene mode setting method and device
CN104902081B (en) * 2015-04-30 2017-05-03 广东欧珀移动通信有限公司 Control method of flight mode and mobile terminal
CN104853041B (en) * 2015-04-30 2017-03-01 广东欧珀移动通信有限公司 A kind of control method of offline mode and mobile terminal
CN104898840A (en) * 2015-05-26 2015-09-09 联想(北京)有限公司 Information processing method and apparatus, and electronic device
CN104836918B (en) * 2015-05-28 2018-12-07 惠州Tcl移动通信有限公司 A kind of the contextual model automatic switching method and system of mobile terminal
CN104994241A (en) * 2015-07-17 2015-10-21 上海斐讯数据通信技术有限公司 Novel night mode protection method and system, and electronic device
CN105101189B (en) * 2015-08-31 2019-06-04 北京奇虎科技有限公司 Mobile terminal anti-tracking method and mobile terminal
CN106487997A (en) * 2015-09-01 2017-03-08 阿里巴巴集团控股有限公司 Transaction methods and system
CN105208216A (en) * 2015-10-22 2015-12-30 小米科技有限责任公司 Control method and device for terminal, and terminal
CN105245722B (en) * 2015-10-29 2019-05-14 深圳市艾酷通信软件有限公司 The based reminding method and mobile terminal of mobile terminal
CN105391862A (en) * 2015-11-24 2016-03-09 上海斐讯数据通信技术有限公司 Method and device for switching scene mode
CN108293080A (en) * 2015-11-26 2018-07-17 华为技术有限公司 A kind of method of contextual model switching
CN105306736A (en) * 2015-11-27 2016-02-03 努比亚技术有限公司 Message reminding mobile terminal and message reminding method
CN106982290A (en) * 2016-01-19 2017-07-25 中兴通讯股份有限公司 Do not disturb control method and device
CN105808332B (en) * 2016-02-29 2020-02-21 宇龙计算机通信科技(深圳)有限公司 Scene mode switching method and device and terminal
CN105827860A (en) * 2016-05-11 2016-08-03 惠州Tcl移动通信有限公司 Intelligent no-disturbance mode control method and system based on mobile terminal
CN105872243A (en) * 2016-05-13 2016-08-17 乐视控股(北京)有限公司 Mobile-phone mode switching method and device based on wireless network
CN106791148A (en) * 2016-12-30 2017-05-31 深圳天珑无线科技有限公司 The method and apparatus of environmental pattern is adjusted according to ambient parameter
CN107708187A (en) * 2017-09-12 2018-02-16 北京小米移动软件有限公司 The control method and device of sleep pattern
CN107567083B (en) * 2017-10-16 2021-07-30 北京小米移动软件有限公司 Method and device for performing power-saving optimization processing
CN107861605B (en) * 2017-11-06 2021-03-16 北京小米移动软件有限公司 Data processing method and device
CN107943266A (en) * 2017-11-20 2018-04-20 北京小米移动软件有限公司 power consumption control method, device and equipment
CN107995676A (en) * 2017-11-24 2018-05-04 北京小米移动软件有限公司 terminal control method and device
CN108132772A (en) * 2018-01-12 2018-06-08 四川斐讯信息技术有限公司 The playback method and system of a kind of audio signal, processing unit
CN108762849A (en) * 2018-05-31 2018-11-06 上海爱优威软件开发有限公司 The method of adjustment and terminal of the camera triggering mode of locking screen interface
CN110875979A (en) * 2018-08-31 2020-03-10 努比亚技术有限公司 Contextual model control method, terminal and computer readable storage medium
CN112449051B (en) * 2019-08-16 2022-03-11 华为技术有限公司 Flight state detection method and terminal equipment
CN111916080A (en) * 2020-08-04 2020-11-10 中国联合网络通信集团有限公司 Voice recognition resource selection method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098525A (en) * 2006-06-28 2008-01-02 英业达股份有限公司 Mode switching system and method
CN101997979A (en) * 2010-10-21 2011-03-30 中兴通讯股份有限公司 Method and device for switching scene modes of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753711B (en) * 2008-12-16 2014-03-12 株式会社Ntt都科摩 Mobile terminal function switching method and device thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098525A (en) * 2006-06-28 2008-01-02 英业达股份有限公司 Mode switching system and method
CN101997979A (en) * 2010-10-21 2011-03-30 中兴通讯股份有限公司 Method and device for switching scene modes of mobile terminal

Also Published As

Publication number Publication date
CN103327162A (en) 2013-09-25

Similar Documents

Publication Publication Date Title
CN103327162B (en) Contextual model setting method and terminal device
US20210329412A1 (en) Method for detecting context of a mobile device and a mobile device with a context detection module
CN103414825B (en) Based on profile switching method and the mobile terminal thereof of transducer group
CN102647766B (en) Method and device for migrating user in high-speed rail communication network
CN102484771B (en) Information provider unit and information providing method, radio communication device and wireless communications method and wireless communication system
CN102223601B (en) Location service method and system, and terminal
CN104200667B (en) A kind of traffic congestion hierarchical detection method based on mobile phone signal data
CN109831689B (en) Data buffering method and mobile terminal
CN104076904A (en) Method and device for controlling hardware state of mobile terminal
CN102334372A (en) User equipment and accessing method thereof
CN105094112A (en) Vehicle telematics unit power management
CN103634480A (en) Method and device for communication in mobile communication terminal
CN103581979A (en) WIFI network access method and terminal device
CN105554861A (en) Method and system of automatic networking on the basis of position and time
CN105549718A (en) Method and device for optimizing power consumption of application program and electronic equipment
CN105629785A (en) Intelligent automobile driving control method and apparatus
CN104658186A (en) Intelligent alarming method and system
CN102158608A (en) Method and device for automatically changing mobile phone working mode
CN112367641A (en) Method for automatically switching communication modules and vehicle-mounted intelligent T-BOX system
CN215265030U (en) Intelligent street crossing sound system, mobile terminal and interactive prompting device
CN208675495U (en) The playback equipment that vehicle and its multimedia automatically control
CN108449787B (en) Connection control method and device and electronic equipment
US11395225B1 (en) Low-power long-range wireless network communication protocol with rate switching and scheduled messaging
CN111462510A (en) Cloud intelligent voice prompt system based on mobile phone map navigation
CN106358318A (en) Hotspot building method and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant