CN106500689B - Method for determining posture of mobile terminal and mobile terminal - Google Patents

Method for determining posture of mobile terminal and mobile terminal Download PDF

Info

Publication number
CN106500689B
CN106500689B CN201610966029.4A CN201610966029A CN106500689B CN 106500689 B CN106500689 B CN 106500689B CN 201610966029 A CN201610966029 A CN 201610966029A CN 106500689 B CN106500689 B CN 106500689B
Authority
CN
China
Prior art keywords
mobile terminal
vibration motor
posture
started
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.)
Active
Application number
CN201610966029.4A
Other languages
Chinese (zh)
Other versions
CN106500689A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610966029.4A priority Critical patent/CN106500689B/en
Publication of CN106500689A publication Critical patent/CN106500689A/en
Application granted granted Critical
Publication of CN106500689B publication Critical patent/CN106500689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/10Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
    • G01C21/12Navigation; 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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/20Instruments 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 invention provides a method for determining the posture of a mobile terminal and the mobile terminal, and relates to the technical field of communication. The method comprises the following steps: recording attitude information of the mobile terminal before the vibration motor is started; after the vibration motor is started, acquiring angular velocity data of the mobile terminal, and calculating a rotation angle of the mobile terminal according to the angular velocity data; and determining the posture of the mobile terminal according to the rotation angle of the mobile terminal and the recorded posture information. The scheme of the invention solves the problem that the gravity sensor is influenced by the work of the vibration motor, is easy to output error information and further influences the posture judgment of the mobile terminal.

Description

Method for determining posture of mobile terminal and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a method for determining the posture of a mobile terminal and the mobile terminal.
Background
With the development and progress of the technology, mobile terminals such as mobile phones and tablet computers have become an indispensable part of daily life. People are no longer limited to the use of the basic communication function of the mobile terminal, but rather seek the diversified functions of the mobile terminal to meet the use requirements of different scenes. Therefore, in order to achieve better experience, the motor and the weight sensor almost become necessary devices on the mobile terminal to realize such things as screen turning, message notification in a mute state, a larger gravity game, etc.
Gravity sensor's work needs to be realized through the value of response acceleration, but, at vibrating motor during operation, the vibration can drive mobile terminal and take place the vibration, influences the acceleration that gravity sensor sensed, obtains the great result data of error, and then makes and also appears the error according to gravity sensor detection data to mobile terminal's gesture judgement. For example, when the mobile terminal starts the screen automatic rotation function, the motor vibration caused by the new message notification may affect the detection data of the gravity sensor, misjudge the posture of the mobile terminal, and rotate the screen, but the user does not actually rotate the device.
Disclosure of Invention
The invention provides a method for determining the posture of a mobile terminal and the mobile terminal, which are used for solving the problems that a gravity sensor is influenced by the work of a vibration motor, error information is easy to output, and further the judgment of the posture of the mobile terminal is influenced in the prior art.
In a first aspect, an embodiment of the present invention provides a method for determining an attitude of a mobile terminal, applied to a mobile terminal provided with a vibration motor, including:
recording attitude information of the mobile terminal before the vibration motor is started;
after the vibration motor is started, acquiring angular velocity data of the mobile terminal, and calculating a rotation angle of the mobile terminal according to the angular velocity data;
and determining the posture of the mobile terminal according to the rotation angle of the mobile terminal and the recorded posture information.
In a second aspect, an embodiment of the present invention further provides a mobile terminal provided with a vibration motor, including:
the recording module is used for recording the attitude information of the mobile terminal before the vibration motor is started;
the first processing module is used for acquiring angular velocity data of the mobile terminal after the vibration motor is started, and calculating a rotation angle of the mobile terminal according to the angular velocity data;
and the determining module is used for determining the posture of the mobile terminal according to the rotating angle of the mobile terminal and the recorded posture information.
The technical scheme of the invention has the following beneficial effects:
according to the method for determining the posture of the mobile terminal, provided by the embodiment of the invention, the posture information of the mobile terminal before the vibration motor arranged on the mobile terminal is started is recorded, and the rotation angle of the mobile terminal is calculated according to the acquired angular velocity data of the mobile terminal after the vibration motor is started, so that the posture change condition of the mobile terminal after the vibration motor is started can be known, the current posture of the mobile terminal is further determined, the problem that the judgment is influenced by the work of the vibration motor to cause errors when the posture of the mobile terminal is determined only by the detection data of the gravity sensor is avoided, the user scene using the gravity sensor is not interfered by the work of the vibration motor, and better use experience is brought to users.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a first flowchart illustrating a method for determining the posture of a mobile terminal according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a second step of a method for determining the posture of a mobile terminal according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a third step of a method for determining the posture of the mobile terminal according to the first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a fourth step of a method for determining the posture of a mobile terminal according to the first embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a mobile terminal according to a second embodiment of the present invention;
fig. 6 is a second schematic structural diagram of a mobile terminal according to a second embodiment of the present invention;
fig. 7 is a third schematic structural diagram of a mobile terminal according to a second embodiment of the present invention;
fig. 8 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 9 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First embodiment
As shown in fig. 1, a method for determining an attitude of a mobile terminal according to a first embodiment of the present invention is applied to a mobile terminal provided with a vibration motor, and includes:
and 101, recording the attitude information of the mobile terminal before the vibration motor is started.
In this step, the attitude information of the mobile terminal before the vibration motor arranged in the mobile terminal is started is recorded, and a basis is provided for subsequently determining the attitude information of the mobile terminal after the vibration motor is started, so that the interference caused after the vibration motor is started is solved.
And step 102, after the vibration motor is started, acquiring angular velocity data of the mobile terminal, and calculating a rotation angle of the mobile terminal according to the angular velocity data.
In this step, after knowing that the vibration motor is started through monitoring, the angular velocity data of the mobile terminal is obtained, and the corresponding rotation angle is obtained through calculation by means of the angular velocity data, and the next step is performed together with the attitude information of the mobile terminal before the vibration motor is started, which is recorded in step 101.
And 103, determining the posture of the mobile terminal according to the rotation angle of the mobile terminal and the recorded posture information.
In this step, the posture change condition of the mobile terminal after the vibration motor is started can be known through the rotation angle of the mobile terminal after the vibration motor is started and the posture information recorded by the mobile terminal before the vibration motor is started, and then the current posture of the mobile terminal is determined.
Therefore, the posture information of the mobile terminal before the vibration motor arranged on the mobile terminal is started is recorded, after the vibration motor is started, the rotation angle of the mobile terminal is calculated according to the acquired angular velocity data of the mobile terminal, the posture change condition of the mobile terminal after the vibration motor is started can be known, the current posture of the mobile terminal is further determined, the problem that the judgment of the error is affected by the work of the vibration motor when the posture of the mobile terminal is determined only by the detection data of the gravity sensor is avoided, the user scene using the gravity sensor is not interfered by the work of the vibration motor, and better use experience is brought to a user.
The angular velocity data of the mobile terminal can be detected by an angular velocity sensor arranged on the mobile terminal, such as a gyroscope, and the angular motion of the momentum moment sensitive shell of the high-speed revolving body relative to the inertia space around one or two axes orthogonal to the rotation axis is used for detecting. Of course, angular motion detection devices made using other principles and functioning in the same manner are also suitable for use with embodiments of the present invention.
Specifically, step 102 includes, according to the angular velocity data, acquiring a rotation angle of the mobile terminal after the vibration motor is started:
and carrying out angle integration on the angular velocity data to obtain the rotation angle of the mobile terminal.
In this way, after the vibration motor is started, the acquired angular velocity data can be integrated based on the working time of the vibration motor from the starting time to the current time, so as to obtain the rotation angle of the mobile terminal from the starting time of the vibration motor to the current time.
It should be appreciated that in three-dimensional space, the poses of the mobile terminal are numerous, but the specific position corresponding to each pose of the mobile terminal is parallel to the through-center plane of a ball centered at the center of the mobile terminal. In addition, the gravity sensor for the mobile terminal can simultaneously sense the acceleration in all directions of the three-dimensional space, and the acceleration is marked as ax、ay、azIn the static state, the formula g is also satisfied
Figure BDA0001145478680000041
g is the earth gravitational acceleration. And establishing a three-dimensional coordinate in the space, wherein each gesture corresponding to the mobile terminal corresponds to a unique set of acceleration values of three axes, the acceleration values of the corresponding three axes can be obtained from one gesture, and the gesture corresponding to the mobile terminal can also be obtained from the acceleration values of the three axes.
Therefore, in the embodiment of the invention, the mobile terminal stores the corresponding relation between the gesture and the gravity acceleration value in advance. Therefore, specifically, as shown in fig. 2, before step 101, the method further includes:
and 104, acquiring the gravity acceleration of the mobile terminal before the vibration motor is started, and calculating the posture information of the mobile terminal according to the gravity acceleration.
As can be seen from the above, in the method according to the embodiment of the present invention, based on the posture of the mobile terminal before the vibration motor is started and the rotation angle of the vibration motor after the vibration motor is started, the current posture of the mobile terminal is determined by knowing the change in the posture of the mobile terminal after the vibration motor is started, and there is a corresponding relationship between the posture of the mobile terminal and the gravity acceleration value, so in this step, before the vibration motor is started, the gravity acceleration of the mobile terminal is acquired, the posture information of the mobile terminal is calculated according to the gravity acceleration, and then the next step is executed, step 101.
In general, the gravity acceleration value in this embodiment includes acceleration values a in various directions in a three-dimensional space without further descriptionx、ay、azIn (1).
Furthermore, it should be noted that, in the use of the mobile terminal, for example, when the user plays a gravity game, the user operation is converted into the control of the game racing according to the gravity acceleration detected by the gravity sensor, so to avoid the situation that the game is not controlled by the user due to the operation of the vibration motor caused by a new message notification or the like in the operation, on the basis of the above-mentioned embodiment, as shown in fig. 3, after step 103, the method further includes:
and 105, calculating corresponding gravity acceleration according to the determined posture, and taking the calculated gravity acceleration as the gravity acceleration of the mobile terminal.
Here, according to the current posture of the mobile terminal determined in step 103, a corresponding gravitational acceleration is calculated and obtained, and is used as the gravitational acceleration of the mobile terminal to replace the gravitational acceleration directly detected by the gravity sensor, and corresponding control is output, so that the situation that the vibration motor works to interfere the gravity sensor to detect the gravitational acceleration with a large error and output error control is avoided, and the user experience is further improved.
Specifically, after the current posture of the mobile terminal is determined, the gravitational acceleration corresponding to the current posture of the mobile terminal is obtained directly based on the corresponding relationship between the posture and the gravitational acceleration numerical value prestored in the mobile terminal.
Therefore, when the mobile terminal starts the automatic screen turning function and the vibration motor is started, the gravity acceleration detected by the gravity sensor can not be used, and whether the screen turning condition is met or not is judged through the gravity acceleration obtained by the current posture of the mobile terminal, so that whether the screen is turned or not is controlled.
However, since the current posture of the mobile terminal is obtained via step 103, the determination as to whether the mobile terminal is currently to perform screen flipping can also be performed via the current posture without further obtaining the corresponding gravitational acceleration. Therefore, specifically, after step 103, as shown in fig. 4, the method further includes:
and 106, when the determined gesture meets the screen turning condition of the mobile terminal, executing screen turning operation on the mobile terminal.
In the step, by directly judging the current posture of the mobile terminal, when the posture meets the screen turning condition, the screen turning operation is executed on the mobile terminal, the interference of the vibration motor on the screen turning judgment under the work is eliminated, the gravity acceleration does not need to be obtained again, and the processing flow is simplified.
At this time, it should also be understood that, when the screen inversion determination is made using the acceleration of gravity, the corresponding screen inversion condition is based on the acceleration of gravity, for example, the acceleration a in three axial directions is setx、ay、azThe screen flip threshold range of (1). And when the screen turning judgment is carried out based on the gesture of the mobile terminal, the corresponding screen turning condition is based on the gesture of the mobile terminal. The specific position of a posture of the mobile terminal is parallel to a through-center plane of a ball with the central position of the mobile terminal as the center of the ball, and if the specific position is setAnd a reference plane, wherein the angle of the position relative to the reference plane can be obtained correspondingly, so that the screen turning condition based on the posture of the mobile terminal can set a threshold range of the angle between the position corresponding to the posture of the mobile terminal and the reference plane.
In summary, in the method for determining the posture of the mobile terminal according to the embodiments of the present invention, by recording the posture information of the mobile terminal before the vibration motor provided on the mobile terminal is started, and after the vibration motor is started, calculating the rotation angle of the mobile terminal according to the acquired angular velocity data of the mobile terminal, so as to know the posture change condition of the mobile terminal after the vibration motor is started, and further determine the current posture of the mobile terminal, the problem that an error occurs due to the influence of the work of the vibration motor when the posture of the mobile terminal is determined only by the detection data of the gravity sensor is avoided, so that the user scene using the gravity sensor is not interfered by the work of the vibration motor, and better user experience is brought to the user.
Second embodiment
As shown in fig. 5, a mobile terminal 500 according to a second embodiment of the present invention, the mobile terminal 500 being provided with a vibration motor, includes:
a recording module 501, configured to record posture information of the mobile terminal before the vibration motor is started;
the first processing module 502 is configured to obtain angular velocity data of the mobile terminal after the vibration motor is started, and calculate a rotation angle of the mobile terminal according to the angular velocity data;
a determining module 503, configured to determine the posture of the mobile terminal according to the rotation angle of the mobile terminal and the recorded posture information.
Optionally, on the basis of fig. 5, as shown in fig. 6, the first processing module 502 includes:
and the processing submodule 5021 is used for performing angle integration on the angular velocity data to obtain the rotation angle of the mobile terminal.
Optionally, the method further comprises:
the second processing module 504 is configured to, before recording the posture information of the mobile terminal before the vibration motor is started, obtain a gravitational acceleration of the mobile terminal before the vibration motor is started, and calculate the posture information of the mobile terminal according to the gravitational acceleration.
Optionally, on the basis of fig. 5, as shown in fig. 7, the method further includes:
and a third processing module 505, configured to calculate a corresponding gravitational acceleration according to the determined posture, and use the calculated gravitational acceleration as the gravitational acceleration of the mobile terminal.
Optionally, the method further comprises:
a fourth processing module 506, configured to execute a screen flipping operation on the mobile terminal when the determined gesture meets a screen flipping condition of the mobile terminal.
The mobile terminal 500 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition. According to the mobile terminal 500 provided by the embodiment of the invention, the posture information of the mobile terminal before the vibration motor arranged on the mobile terminal is started is recorded, and after the vibration motor is started, the rotation angle of the mobile terminal is calculated according to the acquired angular velocity data of the mobile terminal, so that the posture change condition of the mobile terminal after the vibration motor is started can be known, and the current posture of the mobile terminal can be further determined, and the problem that the judgment is influenced by the work of the vibration motor to cause errors when the posture of the mobile terminal is determined only by the detection data of the gravity sensor is avoided, so that a user scene using the gravity sensor is not interfered by the work of the vibration motor, and better use experience is brought to a user.
Third embodiment
Fig. 8 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 800 shown in fig. 8 includes: at least one processor 801, memory 802, at least one network interface 804, and other user interfaces 803. The various components in the mobile terminal 800 are coupled together by a bus system 805. It is understood that the bus system 805 is used to enable communications among the components connected. The bus system 805 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 805 in fig. 8. The mobile terminal 800 is further provided with a vibration motor (not shown in the figure) for performing vibration reminding on the received new message, incoming call and the like.
The user interface 803 may include, among other things, a display, a keyboard, buttons or a pointing device (e.g., a mouse, trackball, touch pad or touch screen, etc.
It will be appreciated that the memory 802 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 802 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 802 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 8021 and application programs 8022.
The operating system 8021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 8022 includes various application programs, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing a method according to an embodiment of the present invention may be included in application program 8022.
In the embodiment of the present invention, the processor 801 is configured to record the posture information of the mobile terminal before the vibration motor is started by calling a program or an instruction stored in the memory 802, specifically, a program or an instruction stored in the application program 8022; after the vibration motor is started, acquiring angular velocity data of the mobile terminal, and calculating a rotation angle of the mobile terminal according to the angular velocity data; and determining the posture of the mobile terminal according to the rotation angle of the mobile terminal and the recorded posture information.
The methods disclosed in the embodiments of the present invention described above may be implemented in the processor 801 or implemented by the processor 801. The processor 801 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 801. The Processor 801 may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802, and combines the hardware to complete the steps of the method.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the processor 801 is further configured to perform angle integration on the angular velocity data to obtain a rotation angle of the mobile terminal.
Optionally, as another embodiment, the processor 801 is further configured to: and acquiring the gravity acceleration of the mobile terminal before the vibration motor is started, and calculating the attitude information of the mobile terminal according to the gravity acceleration.
Optionally, the processor 801 is further configured to: and calculating corresponding gravity acceleration according to the determined posture, and taking the calculated gravity acceleration as the gravity acceleration of the mobile terminal.
Optionally, the processor 801 is further configured to: and when the determined gesture meets the screen turning condition of the mobile terminal, performing screen turning operation on the mobile terminal.
The mobile terminal 800 can implement each process implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition. The mobile terminal 800 calculates the rotation angle of the mobile terminal by recording the posture information of the mobile terminal before the vibration motor arranged on the mobile terminal is started, and after the vibration motor is started, according to the acquired angular velocity data of the mobile terminal, so as to know the posture change condition of the mobile terminal after the vibration motor is started, and further determine the current posture of the mobile terminal.
Fourth embodiment
Fig. 9 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 900 in fig. 9 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 900 in fig. 9 includes a Radio Frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a processor 960, an audio circuit 870, a wifi (wireless fidelity) module 980, and a power supply 990. The mobile terminal 900 is further provided with a vibration motor (not shown in the figure) for performing vibration reminding on the received new message, incoming call and the like.
The input unit 930 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 900. Specifically, in the embodiment of the present invention, the input unit 930 may include a touch panel 931. The touch panel 931, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 931 (for example, a user may operate the touch panel 931 by using a finger, a stylus pen, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 931 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 960, where the touch controller can receive and execute commands sent by the processor 960. In addition, the touch panel 931 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 931, the input unit 930 may also include other input devices 932, and the other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 940 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 900. The display unit 940 may include a display panel 941, and the display panel 941 may be optionally configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 931 may overlay the display panel 941 to form a touch display screen, and when the touch display screen detects a touch operation on or near the touch display screen, the touch display screen transmits the touch operation to the processor 960 to determine the type of the touch event, and then the processor 960 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 960 is a control center of the mobile terminal 900, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 900 and processes data by operating or executing software programs and/or modules stored in the first memory 921 and calling data stored in the second memory 922, thereby integrally monitoring the mobile terminal 900. Optionally, processor 960 may include one or more processing units.
In the embodiment of the present invention, the processor 960 is configured to record the posture information of the mobile terminal before the vibration motor is started by calling the software program and/or module stored in the first memory 921 and/or the data stored in the second memory 922; after the vibration motor is started, acquiring angular velocity data of the mobile terminal, and calculating a rotation angle of the mobile terminal according to the angular velocity data; and determining the posture of the mobile terminal according to the rotation angle of the mobile terminal and the recorded posture information.
Optionally, as another embodiment, the processor 960 is further configured to: and carrying out angle integration on the angular velocity data to obtain the rotation angle of the mobile terminal.
Optionally, the processor 960 is further configured to: and acquiring the gravity acceleration of the mobile terminal before the vibration motor is started, and calculating the attitude information of the mobile terminal according to the gravity acceleration.
Optionally, the processor 960 is further configured to: and calculating corresponding gravity acceleration according to the determined posture, and taking the calculated gravity acceleration as the gravity acceleration of the mobile terminal.
Optionally, the processor 960 is further configured to: and when the determined gesture meets the screen turning condition of the mobile terminal, performing screen turning operation on the mobile terminal.
It can be seen that, the mobile terminal 900 of this embodiment calculates the rotation angle of the mobile terminal by recording the posture information of the mobile terminal before the vibration motor is started, and after the vibration motor is started, according to the acquired angular velocity data of the mobile terminal, so as to know the posture change condition of the mobile terminal after the vibration motor is started, and further determine the current posture of the mobile terminal, thereby avoiding the problem that the judgment of the posture of the mobile terminal is affected by the work of the vibration motor when the posture of the mobile terminal is determined only by the detection data of the gravity sensor, so that the user scene using the gravity sensor is not interfered by the work of the vibration motor, and bringing better use experience to the user.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. A method for determining the posture of a mobile terminal, which is applied to the mobile terminal provided with a vibration motor, is characterized by comprising the following steps:
recording attitude information of the mobile terminal before the vibration motor is started;
after the vibration motor is started, acquiring angular velocity data of the mobile terminal, and calculating a rotation angle of the mobile terminal according to the angular velocity data;
determining the posture of the mobile terminal according to the rotation angle of the mobile terminal and the recorded posture information;
after determining the posture of the mobile terminal according to the rotation angle of the mobile terminal and the recorded posture information, the method further comprises the following steps:
calculating corresponding gravity acceleration according to the determined gesture, and taking the calculated gravity acceleration as the gravity acceleration of the mobile terminal, wherein the gravity acceleration of the mobile terminal is used for determining whether the gesture meets a screen turning condition of the mobile terminal;
and when the determined gesture meets the screen turning condition of the mobile terminal, performing screen turning operation on the mobile terminal.
2. The method according to claim 1, wherein said calculating the rotation angle of the mobile terminal according to the angular velocity data comprises:
and carrying out angle integration on the angular velocity data to obtain the rotation angle of the mobile terminal.
3. The method of claim 1, wherein the recording of the attitude information of the mobile terminal prior to the activation of the vibration motor further comprises:
and acquiring the gravity acceleration of the mobile terminal before the vibration motor is started, and calculating the attitude information of the mobile terminal according to the gravity acceleration.
4. A mobile terminal, characterized in that the mobile terminal is provided with a vibration motor, comprising:
the recording module is used for recording the attitude information of the mobile terminal before the vibration motor is started;
the first processing module is used for acquiring angular velocity data of the mobile terminal after the vibration motor is started, and calculating a rotation angle of the mobile terminal according to the angular velocity data;
the determining module is used for determining the posture of the mobile terminal according to the rotating angle of the mobile terminal and the recorded posture information;
further comprising:
the third processing module is used for calculating corresponding gravity acceleration according to the determined gesture, and taking the calculated gravity acceleration as the gravity acceleration of the mobile terminal, wherein the gravity acceleration of the mobile terminal is used for determining whether the gesture meets a screen turning condition of the mobile terminal;
and the fourth processing module is used for executing screen turning operation on the mobile terminal when the determined gesture meets the screen turning condition of the mobile terminal.
5. The mobile terminal of claim 4, wherein the first processing module comprises:
and the processing submodule is used for carrying out angle integration on the angular velocity data to obtain the rotation angle of the mobile terminal.
6. The mobile terminal of claim 4, further comprising:
the second processing module is used for acquiring the gravity acceleration of the mobile terminal before the vibration motor is started before recording the attitude information of the mobile terminal before the vibration motor is started, and calculating the attitude information of the mobile terminal according to the gravity acceleration.
CN201610966029.4A 2016-10-31 2016-10-31 Method for determining posture of mobile terminal and mobile terminal Active CN106500689B (en)

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 CN106500689A (en) 2017-03-15
CN106500689B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107643840B (en) * 2017-09-21 2020-12-04 上海电机学院 Automatic handwriting pen character recognition method and system based on inertial device
CN113014725A (en) * 2021-02-19 2021-06-22 北京字节跳动网络技术有限公司 Method and device for determining equipment posture, terminal and non-transitory storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI473490B (en) * 2009-09-03 2015-02-11 Htc Corp Method for adjusting degree of event prompt, and mobile electronic device and computer program product using the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN106500689A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
US9357396B2 (en) Terminal device
EP2743795B1 (en) Electronic device and method for driving camera module in sleep mode
EP3114556B1 (en) Proximity sensor-based interactions
JP5038296B2 (en) Orientation sensitivity signal output
US10955928B2 (en) Application swap based on smart device movement
EP3249498B1 (en) Display screen controlling method and apparatus
JP2014179085A (en) Method and devices for displaying graphical user interfaces based on user contact
WO2014178021A1 (en) User interface apparatus and associated methods
JP2015531139A (en) Input device with hand posture control
CN107562335B (en) Display area adjusting method and mobile terminal
JP2010086192A (en) Mobile device, computer program, and recording medium
CN106970752B (en) Screen capturing method and mobile terminal
US20120127089A1 (en) Method and apparatus for performing user-defined macros
KR20140119546A (en) Method and apparatus for displaying user interface
JP2008502043A (en) Portable device for user content navigation
CN106500689B (en) Method for determining posture of mobile terminal and mobile terminal
KR20150001130A (en) Method for processing user input and apparatus for the same
CN109033100A (en) The method and device of content of pages is provided
WO2018133211A1 (en) Screen switching method for dual-screen electronic device, and dual-screen electronic device
US20140184495A1 (en) Portable Device Input by Configurable Patterns of Motion
CN107179803B (en) Information input method and mobile terminal
JP6408241B2 (en) Mobile terminal device
KR20110010522A (en) User interface method using drag action and terminal
KR20140117092A (en) display device and method for controlling thereof
CN114144749B (en) Operation method based on touch input and electronic device thereof

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