CN106500689A - A kind of method of the attitude for determining mobile terminal and mobile terminal - Google Patents
A kind of method of the attitude for determining mobile terminal and mobile terminal Download PDFInfo
- Publication number
- CN106500689A CN106500689A CN201610966029.4A CN201610966029A CN106500689A CN 106500689 A CN106500689 A CN 106500689A CN 201610966029 A CN201610966029 A CN 201610966029A CN 106500689 A CN106500689 A CN 106500689A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- attitude
- vibrating motor
- gravity
- acceleration
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides a kind of method of the attitude for determining mobile terminal and mobile terminal, is related to communication technical field.The method includes:Record the attitude information of the mobile terminal before the vibrating motor starts;After the vibrating motor starts, the angular velocity data of the mobile terminal is obtained, and the anglec of rotation of the mobile terminal is calculated according to the angular velocity data;According to the anglec of rotation and the attitude information of record of the mobile terminal, the attitude of the mobile terminal is determined.The solution of the present invention solves the vibrated motor operations of gravity sensor to be affected, easy output error message, and then has influence on the problem that the attitude to mobile terminal judges.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of method of the attitude for determining mobile terminal and movement
Terminal.
Background technology
With the mobile terminals such as the development and progress of technology, mobile phone, panel computer have been increasingly becoming can not in daily life
Or the part for lacking.And people are also no longer confined to the use of mobile terminal Base communication function, many of mobile terminal are even more pursued
Sample function, meets the use demand of different scenes.Therefore, more preferably experience to reach, motor is with weight sensor almost
Become the indispensable device on mobile terminal, to realize such as the message informing under screen upset, mute state, larger gravity trip
Play etc..
The need of work of gravity sensor realized by the value of induction acceleration, but, when vibrating motor works, shake
The dynamic acceleration that mobile terminal can be driven to vibrate, affect gravity sensor to sense, obtains the larger result data of error,
And then make to judge error also occur according to gravity sensor detection data to the attitude of mobile terminal.For example, mobile terminal is opened
During screen automatic rotation function, the motor vibrations that new message notification causes can affect the detection data of gravity sensor, erroneous judgement
The attitude of mobile terminal, makes screen rotation occur, but in fact user does not have the action of slewing.
Content of the invention
The present invention provides a kind of method of the attitude for determining mobile terminal and mobile terminal, in order to solve to deposit in prior art
The vibrated motor operations of gravity sensor affect, easy output error message, and then have influence on the attitude to mobile terminal and sentence
Disconnected problem.
In a first aspect, embodiments of the invention provide a kind of method of the attitude for determining mobile terminal, it is applied to be provided with
The mobile terminal of vibrating motor, including:
Record the attitude information of the mobile terminal before the vibrating motor starts;
After the vibrating motor starts, the angular velocity data of the mobile terminal is obtained, and according to the angular speed number
According to the anglec of rotation for calculating the mobile terminal;
According to the anglec of rotation and the attitude information of record of the mobile terminal, the attitude of the mobile terminal is determined.
Second aspect, embodiments of the invention additionally provide a kind of mobile terminal, and the mobile terminal is provided with vibration horse
Reach, including:
Logging modle, for the attitude information of record mobile terminal before the vibrating motor starts;
First processing module, for after the vibrating motor starts, obtaining the angular velocity data of the mobile terminal, and
According to the anglec of rotation that the angular velocity data calculates the mobile terminal;
Determining module, for the anglec of rotation according to the mobile terminal and the attitude information of record, determines the movement
The attitude of terminal.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
The method of the attitude of the determination mobile terminal of the embodiment of the present invention, by recording set vibration on mobile terminal
The attitude information of the mobile terminal before motor starting, and after vibrating motor starts, according to the angle speed of the mobile terminal for obtaining
Degrees of data, calculates the anglec of rotation of the mobile terminal, it becomes possible to recognize attitude of the mobile terminal after vibrating motor startup
Situation of change, and then determine the attitude of the current mobile terminal, it is to avoid only rely on the detection data of gravity sensor to moving
When the attitude of dynamic terminal is determined, vibrated motor operations affect the problem for judging error occur, use gravity sensor
The not vibrated motor of user's scene work interference, bring user more preferably experience.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to embodiment or description of the prior art in
The required accompanying drawing for using is briefly described, it should be apparent that, drawings in the following description are only some realities of the present invention
Example is applied, for those of ordinary skill in the art, without having to pay creative labor, can be with attached according to these
Figure obtains other accompanying drawings.
The step of Fig. 1 is the method for the attitude of the determination mobile terminal of first embodiment of the invention flow chart one;
The step of Fig. 2 is the method for the attitude of the determination mobile terminal of first embodiment of the invention flowchart 2;
The step of Fig. 3 is the method for the attitude of the determination mobile terminal of first embodiment of the invention flow chart 3;
The step of Fig. 4 is the method for the attitude of the determination mobile terminal of first embodiment of the invention flow chart four;
Structural representations one of the Fig. 5 for the mobile terminal of second embodiment of the invention;
Structural representations two of the Fig. 6 for the mobile terminal of second embodiment of the invention;
Structural representations three of the Fig. 7 for the mobile terminal of second embodiment of the invention;
Structural representations of the Fig. 8 for the mobile terminal of third embodiment of the invention;
Structural representations of the Fig. 9 for the mobile terminal of fourth embodiment of the invention.
Specific embodiment
Accompanying drawing in below in conjunction with the embodiment of the present invention, to the embodiment of the present invention in technical scheme carry out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiment.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
First embodiment
As shown in figure 1, a kind of method of the attitude of determination mobile terminal of first embodiment of the invention, is applied to be provided with
The mobile terminal of vibrating motor, including:
Step 101, records the attitude information of the mobile terminal before the vibrating motor starts.
In this step, before have recorded the vibrating motor startup arranged in mobile terminal, the attitude information of the mobile terminal is
After follow-up determination vibrating motor startup, the attitude information of the mobile terminal provides foundation, to solve to be brought after vibrating motor starts
Interference.
Step 102, after the vibrating motor starts, obtains the angular velocity data of the mobile terminal, and according to described
Angular velocity data calculates the anglec of rotation of the mobile terminal.
In this step, after recognizing that vibrating motor starts by monitoring, the angular velocity data of the mobile terminal is obtained, and
The corresponding anglec of rotation is calculated by angular velocity data, the mobile end before starting with the vibrating motor of record in step 101
The attitude information at end carries out next step jointly.
Step 103, according to the anglec of rotation and the attitude information of record of the mobile terminal, determines the mobile terminal
Attitude.
In this step, the anglec of rotation and mobile terminal by the mobile terminal after vibrating motor startup is in vibrating motor
The attitude information of record before starting, it can be realized that the attitudes vibration situation of mobile terminal after vibrating motor starts, and then really
Make the attitude of the current mobile terminal.
So, the attitude information of the mobile terminal before being started by set vibrating motor on record mobile terminal,
And after vibrating motor starts, according to the angular velocity data of the mobile terminal for obtaining, the anglec of rotation of the mobile terminal is calculated, just
Attitudes vibration situation of the mobile terminal after vibrating motor startup is will be understood that, and then determines the current mobile terminal
Attitude, it is to avoid when only relying on the detection data of gravity sensor the attitude of mobile terminal being determined, vibrated motor work
The problem for making to affect to judge error occur, is disturbed using the work of the not vibrated motor of user's scene of gravity sensor, band
Give user's more preferably experience.
Wherein, the angular velocity data of mobile terminal can be detected by being arranged at the angular-rate sensor of the mobile terminal
Arrive, such as gyroscope, with the moment of momentum sensitivity housing relative inertness space of high-speed rotator around being orthogonal to one or two of the axis of rotation
The angular movement detection of individual axle.Certainly, the angular movement detection means for making, rising said function using other principles also applies to this
Inventive embodiment.
And according to angular velocity data, the anglec of rotation of the mobile terminal after vibrating motor starts to be got, and specifically, step
Rapid 102 include:
Angle integration is carried out to the angular velocity data, the anglec of rotation of the mobile terminal is obtained.
So, vibrating motor startup after, by the angular velocity data for getting, can be based on vibrating motor from start when
It is carved into angular velocity data of the operating time at current time to getting to be integrated, obtains the mobile terminal and open from vibrating motor
The anglec of rotation at dynamic moment to current time.
It should be appreciated that in three dimensions, the attitude of mobile terminal be very many, but, corresponding to mobile eventually
The particular location of each attitude at end all can be parallel to one with the centre of sphere plane excessively of the ball of the mobile terminal center as the centre of sphere.
Additionally, for the gravity sensor of mobile terminal, the acceleration of three dimensions all directions can be sensed, a is designated as simultaneouslyx、
ay、az, under static state, to also meet formula g=G is terrestrial gravitation acceleration.Set up in space
Three-dimensional coordinate, each attitude of corresponding mobile terminal, can all correspond to the accekeration of one group of unique three axle, by an attitude just
The accekeration of corresponding three axles can be obtained, the corresponding appearance of mobile terminal can also be obtained by the accekeration of three axles
State.
Therefore, in the embodiment of the present invention, mobile terminal is pre-stored with the corresponding relation of attitude and acceleration of gravity numerical value.Cause
This, specifically, as shown in Fig. 2 before step 101, also includes:
Step 104, obtains the acceleration of gravity of the mobile terminal before the vibrating motor starts, according to the gravity
Acceleration, calculates the attitude information of the mobile terminal.
Understand in the above, the method for the embodiment of the present invention, be the mobile terminal before being started based on vibrating motor
The anglec of rotation after attitude and vibrating motor startup, after understanding vibrating motor startup, the attitudes vibration of the mobile terminal is come really
The attitude of the settled front mobile terminal, and there is between the attitude of mobile terminal and acceleration of gravity numerical value corresponding relation, institute
With in this step, before vibrating motor starts, by obtaining the acceleration of gravity of the mobile terminal, according to the acceleration of gravity
The attitude information of the mobile terminal is calculated, and then executes next step, step 101.
In general, in the case where not there is other explanations, the acceleration of gravity numerical value in the embodiment is to include three-dimensional
The accekeration a of space all directionsx、ay、az's.
It is also noted that, in the use of mobile terminal, such as user, when gravity game racing car is played, is root
User operation is converted to the control to racing car of playing by the acceleration of gravity detected according to gravity sensor, so, for avoiding
The situation that the game that new message notification etc. causes vibrating motor to work and occurs in operation is controlled by the user, in above-described embodiment
On the basis of, as shown in figure 3, after step 103, also including:
Step 105, according to the attitude that determines, calculates corresponding acceleration of gravity, and by the acceleration of gravity for calculating
Acceleration of gravity as the mobile terminal.
Here, the attitude of the current mobile terminal for being determined according to step 103, is calculated corresponding acceleration of gravity,
As the acceleration of gravity of the mobile terminal, the acceleration of gravity that gravity sensor is directly detected is substituted, output is corresponding
Control, accelerated and output error control with avoiding vibrating motor work interference gravity sensor from detecting the larger gravity of error
System, further lifts user experience.
Specifically, after the attitude for determining the current mobile terminal, it is directly based upon in the mobile terminal and is pre-stored with attitude
With the corresponding relation of acceleration of gravity numerical value, the acceleration of gravity of the correspondingly attitude of the current mobile terminal is obtained.
So, when mobile terminal opens automatic roller blind function, and after vibrating motor also starts, gravity biography would not be reused
The acceleration of gravity that sensor is detected, but the acceleration of gravity obtained by the attitude by the current mobile terminal is judging to be
No meet screen roll over condition, and then whether control screen overturns.
But, due to having obtained the attitude of current mobile terminal through step 103, currently whether to enter for mobile terminal
The judgement of row screen upset, it is also possible to completed by current attitude, and accelerate without the need for further obtaining its corresponding gravity
Degree.Therefore, specifically, after step 103, as shown in figure 4, also including:
Step 106, when the attitude that determines meets the screen roll over condition of the mobile terminal, holds to the mobile terminal
Row screen turning operation.
In this step, by judgement directly to the attitude of current mobile terminal, when which meets screen roll over condition, right
Mobile terminal executes screen turning operation, eliminates, and without the need for again
Acceleration of gravity is obtained, handling process is simplified.
Now, it should also be appreciated that, using acceleration of gravity carry out screen upset judge when, corresponding screen turning
The condition of turning is based on acceleration of gravity, such as sets the acceleration a on corresponding three axial directionsx、ay、azScreen turn threshold model
Enclose.And the attitude based on mobile terminal carries out screen upset when judging, corresponding screen roll over condition is to be based on mobile end
The attitude at end.The particular location of one attitude of mobile terminal is parallel to a ball with the center of the mobile terminal as the centre of sphere
Centre of sphere plane is crossed, if setting reference planes, angle of the position relative to reference planes can be then obtained accordingly, this
Sample, can set position and reference planes corresponding to the attitude of mobile terminal based on the screen roll over condition of the attitude of mobile terminal
Angle threshold range.
In sum, the method for the attitude of the determination mobile terminal of the embodiment of the present invention, by recording institute on mobile terminal
The attitude information of the mobile terminal before the vibrating motor startup of setting, and after vibrating motor starts, according to the movement for obtaining
The angular velocity data of terminal, calculates the anglec of rotation of the mobile terminal, to recognize that the mobile terminal starts in vibrating motor
Attitudes vibration situation afterwards, and then determine the attitude of the current mobile terminal, it is to avoid only rely on the detection of gravity sensor
When data are determined to the attitude of mobile terminal, vibrated motor operations affect the problem for judging error occur, using weight
The work interference of the not vibrated motor of user's scene of force snesor, brings user more preferably experience.
Second embodiment
As shown in figure 5, a kind of mobile terminal 500 of second embodiment of the invention, the mobile terminal 500 is provided with vibration
Motor, including:
Logging modle 501, for the attitude information of record mobile terminal before the vibrating motor starts;
First processing module 502, for, after the vibrating motor starts, obtaining the angular speed number of the mobile terminal
According to, and the anglec of rotation of the mobile terminal is calculated according to the angular velocity data;
Determining module 503, for the anglec of rotation according to the mobile terminal and the attitude information of record, determines the shifting
The attitude of dynamic terminal.
Alternatively, on the basis of Fig. 5, as shown in fig. 6, the first processing module 502 includes:
Submodule 5021 is processed, and for angle integration being carried out to the angular velocity data, obtains the rotation of the mobile terminal
Gyration.
Alternatively, also include:
Second processing module 504, for the attitude information in record mobile terminal before the vibrating motor starts
Before, the acceleration of gravity of the mobile terminal before the vibrating motor starts is obtained, according to the acceleration of gravity, is calculated
The attitude information of the mobile terminal.
Alternatively, on the basis of Fig. 5, as shown in fig. 7, also including:
3rd processing module 505, for according to the attitude that determines, calculating corresponding acceleration of gravity, and will calculate
Acceleration of gravity as the mobile terminal acceleration of gravity.
Alternatively, also include:
Fourth processing module 506, for meeting the screen roll over condition of the mobile terminal when the attitude that determines, to institute
State mobile terminal and execute screen turning operation.
Mobile terminal 500 can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 4, for keeping away
Exempt to repeat, repeat no more here.The mobile terminal 500 of the embodiment of the present invention, by recording set vibration on mobile terminal
The attitude information of the mobile terminal before motor starting, and after vibrating motor starts, according to the angle speed of the mobile terminal for obtaining
Degrees of data, calculates the anglec of rotation of the mobile terminal, to recognize that attitude of the mobile terminal after vibrating motor startup becomes
Change situation, and then determine the attitude of the current mobile terminal, it is to avoid only rely on the detection data of gravity sensor to movement
When the attitude of terminal is determined, vibrated motor operations affect the problem for judging error occur, make using gravity sensor
The work interference of the not vibrated motor of user's scene, brings user more preferably experience.
3rd embodiment
Fig. 8 is the structural representation of the mobile terminal of another embodiment of the present invention.Mobile terminal 800 shown in Fig. 8 includes:
At least one processor 801, memory 802, at least one network interface 804 and other users interface 803.Mobile terminal 800
In each component be coupled by bus system 805.It is understood that bus system 805 is used for realizing between these components
Connection communication.Bus system 805 also includes that power bus, controlling bus and status signal are total in addition to data/address bus is included
Line.But for the sake of for clear explanation, various buses are all designated as bus system 805 in fig. 8.Mobile terminal 800 also sets up
There is vibrating motor (not shown), vibrating alert is carried out for the new information to receiving, incoming call etc..
Wherein, user interface 803 can include display, keyboard, button or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
Or may include volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and which is used as outside height
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhancement mode Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 802 of system and method described herein be intended to including but not limited to these and arbitrarily its
It is suitable for the memory of type.
In some embodiments, memory 802 stores following element, can perform module or data structure, or
Person their subset, or their superset:Operating system 8021 and application program 8022.
Wherein, operating system 8021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and process hardware based task.Application program 8022, comprising various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method is may be embodied in application program 8022.
In embodiments of the present invention, by call memory 802 storage program or instruction, specifically, can be application
The program stored in program 8022 or instruction, processor 801 are used for record mobile terminal before the vibrating motor starts
Attitude information;After the vibrating motor starts, the angular velocity data of the mobile terminal is obtained, and according to the angular speed
Data calculate the anglec of rotation of the mobile terminal;According to the anglec of rotation of the mobile terminal and the attitude information of record, really
The attitude of the fixed mobile terminal.
The method that the embodiments of the present invention are disclosed is can apply in processor 801, or is realized by processor 801.
A kind of possibly IC chip of processor 801, the disposal ability with signal.During realization, said method each
Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 801 or software form.Above-mentioned process
Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.Can realize or execute disclosed each method in the embodiment of the present invention, step and logic diagram.General
Processor can be microprocessor or the processor can also be any conventional processor etc..In conjunction with embodiment of the present invention institute
The step of disclosed method, can be embodied directly in hardware decoding processor and execute and complete, or with the hardware in decoding processor
And software module combination execution is completed.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only
In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at
Memory 802, processor 801 read the information in memory 802, the step of complete said method in conjunction with its hardware.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its
Combine to realize.For hardware is realized, processing unit can be realized in one or more special IC (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
Controller, microcontroller, microprocessor, for execute herein described function other electronic units or its combine in.
For software is realized, can be realized herein by the module (such as process, function etc.) of execution function described herein
Described technology.Software code is storable in memory and by computing device.Memory can within a processor or
Realize outside processor.
Alternatively, processor 801 is additionally operable to carry out angle integration to the angular velocity data, obtains the mobile terminal
The anglec of rotation.
Alternatively, as another embodiment, processor 801 is additionally operable to:Obtain described before the vibrating motor starts
The acceleration of gravity of mobile terminal, according to the acceleration of gravity, calculates the attitude information of the mobile terminal.
Alternatively, processor 801 is additionally operable to:According to the attitude that determines, corresponding acceleration of gravity is calculated, and will be calculated
Acceleration of gravity of the acceleration of gravity for going out as the mobile terminal.
Alternatively, processor 801 is additionally operable to:When the attitude that determines meets the screen roll over condition of the mobile terminal,
Screen turning operation is executed to the mobile terminal.
Mobile terminal 800 can realize each process that mobile terminal is realized in previous embodiment, for avoiding repeating, here
Repeat no more.Appearance of the mobile terminal 800 by the mobile terminal before set vibrating motor startup on record mobile terminal
State information, and after vibrating motor starts, according to the angular velocity data of the mobile terminal for obtaining, calculate the rotation of the mobile terminal
Angle, to recognize attitudes vibration situation of the mobile terminal after vibrating motor startup, and then determines the current movement
The attitude of terminal, it is to avoid when only relying on the detection data of gravity sensor the attitude of mobile terminal being determined, vibrated
Motor operations affect the problem for judging error occur, are done using the work of the not vibrated motor of user's scene of gravity sensor
Disturb, bring user more preferably experience.
Fourth embodiment
Fig. 9 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 9
900 can be mobile phone, panel computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 900 in Fig. 9 includes radio frequency (Radio Frequency, RF) circuit 910, memory 920, input
Unit 930, display unit 940, processor 960, voicefrequency circuit 870, WiFi (Wireless Fidelity) module 980 and electricity
Source 990.Mobile terminal 900 is additionally provided with vibrating motor (not shown), carries out for the new information to receiving, incoming call etc.
Vibrating alert.
Wherein, input block 930 can be used for numeral or the character information of receiving user's input, and produce and mobile terminal
The relevant signal input of 900 user setup and function control.Specifically, in the embodiment of the present invention, the input block 930 can
To include contact panel 931.Contact panel 931, also referred to as touch-screen, can collect user thereon or neighbouring touch operation
(such as user is using the operation of any suitable object or annex on contact panel 931 such as finger, stylus), and according to advance
The formula of setting drives corresponding attachment means.Optionally, contact panel 931 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation brings is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
Give the processor 960 again, and the order sent of receiving processor 960 can be executed.Furthermore, it is possible to adopt resistance-type,
The polytypes such as condenser type, infrared ray and surface acoustic wave realize contact panel 931.Except contact panel 931, input block
930 can also include that other input equipments 932, other input equipments 932 can include but is not limited to physical keyboard, function key
One or more in (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Wherein, display unit 940 can be used for display by the information of user input or be supplied to information and the movement of user
The various menu interfaces of terminal 900.Display unit 940 may include display floater 941, optionally, can adopt LCD or organic
The forms such as optical diode (Organic Light-Emitting Diode, OLED) are configuring display floater 941.
It should be noted that contact panel 931 can cover display floater 941, touch display screen is formed, when the touch display screen inspection
Measure thereon or after neighbouring touch operation, processor 960 is sent to determine the type of touch event, with preprocessor
960 provide corresponding visual output in touch display screen according to the type of touch event.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can be distinguished two and show
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area be used for show the higher control of utilization rate, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 960 is the control centre of mobile terminal 900, using various interfaces and connection whole mobile phone
Various pieces, by running or executing software program and/or the module being stored in first memory 921, and call storage
Data in second memory 922, execute the various functions and processing data of mobile terminal 900, so as to mobile terminal 900
Carry out integral monitoring.Optionally, processor 960 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/
Or the data in the second memory 922, the mobile terminal before the vibrating motor starts for record of processor 960
Attitude information;After the vibrating motor starts, the angular velocity data of the mobile terminal is obtained, and according to the angular speed number
According to the anglec of rotation for calculating the mobile terminal;According to the anglec of rotation and the attitude information of record of the mobile terminal, determine
The attitude of the mobile terminal.
Alternatively, as another embodiment, processor 960 is additionally operable to:Angle integration is carried out to the angular velocity data,
Obtain the anglec of rotation of the mobile terminal.
Alternatively, processor 960 is additionally operable to:The gravity for obtaining the mobile terminal before the vibrating motor starts accelerates
Degree, according to the acceleration of gravity, calculates the attitude information of the mobile terminal.
Alternatively, processor 960 is additionally operable to:According to the attitude that determines, corresponding acceleration of gravity is calculated, and will be calculated
Acceleration of gravity of the acceleration of gravity for going out as the mobile terminal.
Alternatively, processor 960 is additionally operable to:When the attitude that determines meets the screen roll over condition of the mobile terminal,
Screen turning operation is executed to the mobile terminal.
It can be seen that, the mobile terminal 900 of the present embodiment is by recording before set vibrating motor startup on mobile terminal
The attitude information of the mobile terminal, and after vibrating motor starts, according to the angular velocity data of the mobile terminal for obtaining, calculating should
The anglec of rotation of mobile terminal, to recognize attitudes vibration situation of the mobile terminal after vibrating motor startup, and then really
Make the attitude of the current mobile terminal, it is to avoid the detection data for only relying on gravity sensor is carried out to the attitude of mobile terminal
When determining, vibrated motor operations affect the problem for judging error occur, and the user's scene using gravity sensor is not vibrated
The work interference of dynamic motor, brings user more preferably experience.
Those of ordinary skill in the art are it is to be appreciated that with reference to each of the embodiment description disclosed in the embodiment of the present invention
The unit and algorithm steps of example, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These
Function is executed with hardware or software mode actually, the application-specific and design constraint depending on technical scheme.Specialty
Technical staff can use different methods to realize described function to each specific application, but this realization should
Think beyond the scope of this invention.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description,
Device and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can pass through other
Mode is realized.For example, device embodiment described above is only that schematically for example, the division of the unit is only
A kind of division of logic function, can have when actually realizing other dividing mode, for example multiple units or component can in conjunction with or
Person is desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
Connect, can be electrical, mechanical or other forms.
The unit that illustrates as separating component can be or may not be physically separate, aobvious as unit
The part for showing can be or may not be physical location, you can be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is realized using in the form of SFU software functional unit and as independent production marketing or when using, can be with
It is stored in a computer read/write memory medium.Such understanding is based on, technical scheme is substantially in other words
The part contributed by prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) execute all or part of step of each embodiment methods described of the invention.
And aforesaid storage medium includes:USB flash disk, portable hard drive, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.
Claims (10)
1. a kind of method of the attitude for determining mobile terminal, is applied to the mobile terminal for being provided with vibrating motor, it is characterised in that
Including:
Record the attitude information of the mobile terminal before the vibrating motor starts;
After the vibrating motor starts, the angular velocity data of the mobile terminal is obtained, and according to the angular velocity data meter
Calculate the anglec of rotation of the mobile terminal;
According to the anglec of rotation and the attitude information of record of the mobile terminal, the attitude of the mobile terminal is determined.
2. method according to claim 1, it is characterised in that described according to the angular velocity data calculate described mobile eventually
The anglec of rotation at end, including:
Angle integration is carried out to the angular velocity data, the anglec of rotation of the mobile terminal is obtained.
3. method according to claim 1, it is characterised in that record movement before vibrating motor startup
Before the attitude information of terminal, also include:
The acceleration of gravity of the mobile terminal before the vibrating motor starts is obtained, according to the acceleration of gravity, is calculated
The attitude information of the mobile terminal.
4. method according to claim 1, it is characterised in that the anglec of rotation and the record according to the mobile terminal
Attitude information, after determining the attitude of the mobile terminal, also include:
According to the attitude that determines, corresponding acceleration of gravity is calculated, and using the acceleration of gravity for calculating as the movement
The acceleration of gravity of terminal.
5. method according to claim 1, it is characterised in that the anglec of rotation and the record according to the mobile terminal
Attitude information, after determining the attitude of the mobile terminal, also include:
When the attitude that determines meets the screen roll over condition of the mobile terminal, screen upset behaviour is executed to the mobile terminal
Make.
6. a kind of mobile terminal, it is characterised in that the mobile terminal is provided with vibrating motor, including:
Logging modle, for the attitude information of record mobile terminal before the vibrating motor starts;
First processing module, for after the vibrating motor starts, obtaining the angular velocity data of the mobile terminal, and according to
The angular velocity data calculates the anglec of rotation of the mobile terminal;
Determining module, for the anglec of rotation according to the mobile terminal and the attitude information of record, determines the mobile terminal
Attitude.
7. mobile terminal according to claim 6, it is characterised in that the first processing module includes:
Submodule is processed, and for angle integration being carried out to the angular velocity data, obtains the anglec of rotation of the mobile terminal.
8. mobile terminal according to claim 6, it is characterised in that also include:
Second processing module, for before the attitude information of the mobile terminal, obtaining before the vibrating motor starts in record
The acceleration of gravity of the mobile terminal before the vibrating motor starts is taken at, according to the acceleration of gravity, the shifting is calculated
The attitude information of dynamic terminal.
9. mobile terminal according to claim 6, it is characterised in that also include:
3rd processing module, for according to the attitude that determines, calculating corresponding acceleration of gravity, and the gravity for calculating being added
Acceleration of gravity of the speed as the mobile terminal.
10. mobile terminal according to claim 6, it is characterised in that also include:
Fourth processing module, for meeting the screen roll over condition of the mobile terminal when the attitude that determines, to the movement
Terminal executes screen turning operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610966029.4A CN106500689B (en) | 2016-10-31 | 2016-10-31 | Method for determining posture of mobile terminal and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610966029.4A CN106500689B (en) | 2016-10-31 | 2016-10-31 | Method for determining posture of mobile terminal and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106500689A true CN106500689A (en) | 2017-03-15 |
CN106500689B CN106500689B (en) | 2021-08-24 |
Family
ID=58322690
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610966029.4A Active CN106500689B (en) | 2016-10-31 | 2016-10-31 | Method for determining posture of mobile terminal and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106500689B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107643840A (en) * | 2017-09-21 | 2018-01-30 | 上海电机学院 | Writing pencil word automatic identifying method and system based on inertia device |
CN113014725A (en) * | 2021-02-19 | 2021-06-22 | 北京字节跳动网络技术有限公司 | Method and device for determining equipment posture, terminal and non-transitory storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140128127A1 (en) * | 2009-09-03 | 2014-05-08 | Htc Corporation | Method of adjusting event prompt degree and mobile electronic device and computer program product using the same |
CN105095934A (en) * | 2015-09-14 | 2015-11-25 | 上海先码信息科技有限公司 | Data exchange apparatus, and control system and control method thereof |
CN105323535A (en) * | 2014-07-28 | 2016-02-10 | 中兴通讯股份有限公司 | Video conference terminal stability control method and video conference terminal |
CN105371846A (en) * | 2015-11-13 | 2016-03-02 | 广州周立功单片机科技有限公司 | Carrier attitude detection method and system |
CN105988140A (en) * | 2015-03-18 | 2016-10-05 | 阿尔卑斯电气株式会社 | Electronic device having geomagnetic sensor and acceleration sensor |
-
2016
- 2016-10-31 CN CN201610966029.4A patent/CN106500689B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140128127A1 (en) * | 2009-09-03 | 2014-05-08 | Htc Corporation | Method of adjusting event prompt degree and mobile electronic device and computer program product using the same |
CN105323535A (en) * | 2014-07-28 | 2016-02-10 | 中兴通讯股份有限公司 | Video conference terminal stability control method and video conference terminal |
CN105988140A (en) * | 2015-03-18 | 2016-10-05 | 阿尔卑斯电气株式会社 | Electronic device having geomagnetic sensor and acceleration sensor |
CN105095934A (en) * | 2015-09-14 | 2015-11-25 | 上海先码信息科技有限公司 | Data exchange apparatus, and control system and control method thereof |
CN105371846A (en) * | 2015-11-13 | 2016-03-02 | 广州周立功单片机科技有限公司 | Carrier attitude detection method and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107643840A (en) * | 2017-09-21 | 2018-01-30 | 上海电机学院 | Writing pencil word automatic identifying method and system based on inertia device |
CN113014725A (en) * | 2021-02-19 | 2021-06-22 | 北京字节跳动网络技术有限公司 | Method and device for determining equipment posture, terminal and non-transitory storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106500689B (en) | 2021-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9910496B2 (en) | Systems and methods for mapping message contents to virtual physical properties for vibrotactile messaging | |
US8537110B2 (en) | Virtual device buttons | |
CN105320267A (en) | Systems and methods for foley-style haptic content creation | |
CN103984493B (en) | Control method by sliding and terminal | |
US8797283B2 (en) | Method and apparatus for performing user-defined macros | |
CN108390964A (en) | A kind of camera head protecting method and mobile terminal | |
CN107506109A (en) | A kind of method and mobile terminal for starting application program | |
CN105824612A (en) | Safety indication method and mobile terminal | |
CN107302661A (en) | A kind of camera control method and mobile terminal | |
CN106504777A (en) | A kind of processing method of recording data and mobile terminal | |
CN106791175A (en) | The reminding method and mobile terminal of a kind of event | |
CN106648113A (en) | Message vibration prompting method and mobile terminal | |
CN106507176A (en) | A kind of method of video playback and mobile terminal | |
CN106445357A (en) | Control method of slider widget, and mobile terminal | |
CN107547738A (en) | A kind of reminding method and mobile terminal | |
CN106126675A (en) | A kind of method of recommendation of audio, Apparatus and system | |
CN103765367A (en) | Information processing apparatus, information processing method, and program | |
CN106101409A (en) | A kind of mobile terminal and control method | |
US20150002417A1 (en) | Method of processing user input and apparatus using the same | |
CN106445669A (en) | Task processing method of application program and mobile terminal | |
CN106445299A (en) | Control method and mobile terminal | |
CN106500689A (en) | A kind of method of the attitude for determining mobile terminal and mobile terminal | |
CN108196781A (en) | The display methods and mobile terminal at interface | |
CN107003758A (en) | ghost point processing method and user equipment | |
JP6120898B2 (en) | Electronic device and control method of electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |