CN107465817A - The processing method of mobile terminal and its motion sensor data - Google Patents
The processing method of mobile terminal and its motion sensor data Download PDFInfo
- Publication number
- CN107465817A CN107465817A CN201710619448.5A CN201710619448A CN107465817A CN 107465817 A CN107465817 A CN 107465817A CN 201710619448 A CN201710619448 A CN 201710619448A CN 107465817 A CN107465817 A CN 107465817A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- motion sensor
- display screen
- state value
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0266—Details of the structure or mounting of specific components for a display module assembly
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of mobile terminal and its processing method of motion sensor data, belong to electronic technology field.The mobile terminal has positive and negative two relative faces, is provided with display screen on positive and negative two relative faces, methods described includes:Judge whether the mobile terminal overturns;When the mobile terminal is overturn, the coordinate system of motion sensor is updated;The data gathered according to the coordinate system after renewal to the motion sensor carry out Coordinate Conversion.The present invention is effectively improved the accuracy handled the data that sensor collects.The present invention is used to handle the data that motion sensor in the mobile terminal with double screen gathers.
Description
Technical field
The present invention relates to electronic technology field, the processing side of more particularly to a kind of mobile terminal and its motion sensor data
Method.
Background technology
At present, the motion sensors such as acceleration, gyroscope and geomagnetic sensor are typically provided with mobile terminal, it is mobile
Terminal can realize the screen function such as rotation and address navigation automatically by the motion sensor.
In correlation technique, the coordinate system of motion sensor is pre-configured, according to the coordinate system that this has been configured to fortune
The accuracy when data of dynamic sensor collection are handled is relatively low.
The content of the invention
When being handled to solve the data gathered in correlation technique according to the coordinate system configured to motion sensor
Accuracy it is relatively low the problem of, the embodiments of the invention provide a kind of mobile terminal and its processing side of motion sensor data
Method.The technical scheme is as follows:
First aspect, there is provided the processing method of motion sensor data in a kind of mobile terminal, the mobile terminal tool
There are positive and negative two relative faces, be provided with display screen on positive and negative two relative faces, methods described includes:
Judge whether the mobile terminal overturns;
When the mobile terminal is overturn, the coordinate system of motion sensor is updated;
The data gathered according to the coordinate system after renewal to the motion sensor carry out Coordinate Conversion.
Second aspect, there is provided the processing method of motion sensor data in a kind of mobile terminal, the mobile terminal tool
There are positive and negative two relative faces, be provided with display screen on positive and negative two relative faces, methods described includes:
The display screen being currently used is determined in two display screens of the mobile terminal;
It is determined that the coordinate system corresponding to the display screen being currently used;
According to the coordinate system corresponding to the display screen being currently used, the data of motion sensor collection are entered
Row Coordinate Conversion.
The third aspect, there is provided a kind of mobile terminal, the mobile terminal has positive and negative two relative faces, described positive and negative
Display screen is provided with two relative faces, the mobile terminal includes:
Judge module, for judging whether the mobile terminal overturns;
Update module, for when the mobile terminal is overturn, updating the coordinate system of motion sensor;
Modular converter, the data for being gathered according to the coordinate system after renewal to the motion sensor carry out coordinate and turned
Change.
Fourth aspect, there is provided a kind of mobile terminal, the mobile terminal has positive and negative two relative faces, described positive and negative
Display screen is provided with two relative faces, the mobile terminal includes:
First determining module, for the display screen for determining to be currently used in two display screens of the mobile terminal;
Second determining module, for determining and the coordinate system corresponding to the display screen being currently used;
Modular converter, for the coordinate system corresponding to the display screen that is currently used according to, to the motion-sensing
The data of device collection carry out Coordinate Conversion.
5th aspect, there is provided a kind of storage medium, instruction is stored with the storage medium, when the storage medium exists
When being run on computer so that the computer is performed to move in first aspect or any described mobile terminal of second aspect and passed
The processing method of sensor data.
6th aspect, there is provided a kind of mobile terminal, including memory, processor and be stored on the memory and can
The computer program run on a processor, described in the computing device during computer program, realize first aspect or second
The processing method of motion sensor data in any described mobile terminal of aspect.
The beneficial effect that technical scheme provided by the invention is brought is:
The processing method of a kind of mobile terminal provided by the invention and its motion sensor data, by being sent out when mobile terminal
During raw upset, the display screen being currently used is determined in two display screens of mobile terminal, according to the display being currently used
Shield and Coordinate Conversion is carried out to the data of motion sensor collection, relative to correlation technique, this method can be according to being currently used
The data that are gathered to motion sensor of display screen handle so that the coordinate system of the data after processing is with using current display
The coordinate system of motion sensor is identical during screen, is effectively improved the accuracy handled the data that sensor collects.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1-1 is that the mobile terminal of one embodiment of the present invention is provided with LCDs or OLED display screen
Schematic diagram simultaneously;
Fig. 1-2 is the schematic diagram for the another side that ink screen is provided with according to the mobile terminal of one embodiment of the present invention;
Fig. 2 is the flow of the processing method of motion sensor data in the mobile terminal according to one embodiment of the present invention
Figure;
Fig. 3-1 is the signal according to the coordinate system using positive display screen when institute foundation of one embodiment of the present invention
Figure;
Fig. 3-2 is the signal according to the coordinate system of the display screen when institute foundation using reverse side of one embodiment of the present invention
Figure;
Fig. 4 is the stream of the processing method of motion sensor data in the mobile terminal according to another embodiment of the present invention
Cheng Tu;
Fig. 5 is the stream of the processing method of motion sensor data in the mobile terminal according to another embodiment of the invention
Cheng Tu;
Fig. 6-1 is the structured flowchart according to the mobile terminal of one embodiment of the present invention;
Fig. 6-2 is the structural representation according to the mobile terminal of another embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
The mobile terminal that the embodiment of the present invention is provided has positive and negative two relative faces, and positive and negative two relative faces are equal
Display screen is provided with, a face in two faces of the mobile terminal can be liquid crystal or Organic Light Emitting Diode (Organic
Light-Emitting Diode, OLED) display screen, another face can be liquid crystal, OLED display screen or ink screen.Example
Ground, the mobile terminal can be mobile phone.
Fig. 1-1 is that the mobile terminal of one embodiment of the present invention is provided with LCDs or OLED display screen
Schematic diagram simultaneously, Fig. 1-2 are that the another side that ink screen is provided with according to the mobile terminal of one embodiment of the present invention shows
It is intended to, is understood with reference to figure 1-1, LCDs or OLED display screen, reference chart are provided with a face 011 of the mobile terminal
1-2 is understood, ink screen is provided with another face 012 of the mobile terminal, shows that having time and weather etc. are believed in the ink screen
Breath.
In another optional implementation of the embodiment of the present invention, it can be provided with two faces of the mobile terminal
LCDs as Figure 1-1.
In embodiments of the present invention, in mobile terminal the processing method of motion sensor data can have it is a variety of can embodiment party
Formula, the present invention illustrate by taking following three kinds of embodiments as an example.
Fig. 2 is the flow of the processing method of motion sensor data in the mobile terminal according to one embodiment of the present invention
Figure, this method can apply in the mobile terminal as shown in Fig. 1-1 and Fig. 1-2, and with reference to figure 2, this method can include:
Step 201, the screen state value for obtaining mobile terminal.
Because when mobile terminal is overturn, the space coordinates of its motion sensor institute foundation can also change,
Therefore in order to ensure the accuracy of sensing data, method provided in an embodiment of the present invention can be in mobile terminal and use shape
During state, whether real-time judge mobile terminal overturns.
In embodiments of the present invention, mobile terminal can judge whether it overturns according to screen state value.Wherein, shield
Tentiform state value is used for the use state for identifying two display screens, that is to say, it is mobile terminal to identify the display screen being currently used
The display screen of positive display screen or mobile terminal reverse side.The screen state value can use the mode of numerical value to represent currently to be made
Display screen is which of two display screens display screen, such as:Numerical value " 0 " can be used to represent the display being currently used
Shield for the positive display screen of mobile terminal, the display screen for representing to be currently used using numerical value " 1 " is the aobvious of mobile terminal reverse side
Display screen.It is alternatively possible to detect which display screen in two display screens is waken up, and the display screen being waken up is defined as currently
The display screen used, it is then determined that the screen state value of mobile terminal.
Illustratively, it is assumed that current time detects that the display screen being waken up in two display screens of mobile terminal is mobile whole
The display screen of reverse side is held, that is to say, the display screen being currently used is the display screen of mobile terminal reverse side, then can determine that mobile whole
The screen state value at end is " 1 ", that is, the screen state value of the mobile terminal obtained is " 1 ".
Step 202, when screen state value changes, determine that mobile terminal is overturn.
Alternatively, can be by the screen of current time acquisition when the screen state value of acquisition for mobile terminal to mobile terminal
State value is compared with the screen state value that previous moment obtains, when both are different, it may be determined that screen state value changes
Become, then can determine that mobile terminal is overturn, step 203 is then performed, when both are identical, it may be determined that screen state value is not sent out
It is raw to change, then it can determine that mobile terminal is not overturn, terminate deterministic process.
Illustratively, it is assumed that the screen state value at the current time of acquisition for mobile terminal is " 1 ", the screen that previous moment obtains
State value is " 0 ", it is seen that the screen state value at current time is different from the screen state value of previous moment, then can determine that mobile whole
End is overturn.
In practical application, sensor assembly can be provided with mobile terminal, can be included at least in the sensor assembly
One sensor, and monitoring mechanism of the sensor assembly to mobile terminal turn is established, it is specifically as follows:In the thing of sensor
The thread for monitoring screen state node is established in reason layer, the thread can only detect the change of screen state node, work as shifting
When dynamic terminal is overturn, the value (i.e. screen state value) of the screen state node has corresponding change, can according to the change
To determine that mobile terminal is overturn.
It should be noted that in actual applications, except screen state value, mobile terminal can also be examined according to other modes
Survey whether it overturns.For example, being also provided with screens switch button in mobile terminal or can be in any display screen
Upper display screen switches icon, when mobile terminal detects the triggering behaviour for the screens switch button or screens switch icon
When making, it may be determined that mobile terminal is overturn.
Step 203, when mobile terminal is overturn, determine to be currently used in two display screens of mobile terminal
Display screen.
When mobile terminal is overturn, the display screen that wake-up states are currently in two display screens can be defined as
The display screen being currently used.Specifically, mobile terminal can be according to the screen state value of the mobile terminal of acquisition, mobile whole
The display screen being currently used is determined in two display screens at end.Such as:When screen state value is " 1 ", will can move eventually
The display screen of end reverse side is defined as the display screen being currently used, or, when screen state value is " 0 ", will can move eventually
Positive display screen is held to be defined as the display screen being currently used.
Coordinate system corresponding to step 204, the display screen for determining and being currently used.
Mobile terminal for being provided with display screen on positive and negative two faces, uses the display of positive display screen and reverse side
During screen, motion sensor (such as:The motion sensors such as acceleration, gyroscope and geomagnetic sensor) data that it is gathered are entered
The coordinate system of row processing when institute's foundation is different, Fig. 3-1 is refer to using the coordinate system of positive display screen when institute foundation, using anti-
The coordinate system of the display screen when institute foundation in face refer to Fig. 3-2, and two coordinates are can be found that according to Fig. 3-1 and Fig. 3-2 contrast
X-axis and Z axis is in opposite direction in system, if according to used in correlation technique identical coordinate system to collection data (such as:Work as shifting
The data gathered during the functions such as dynamic terminal is rotated automatically using screen, compass and address navigation) handled, and will be after processing
Data application into the display screen of positive display screen or reverse side, then, at least one display screen pair in two display screens
Mistake occurs in the data answered.Therefore, after mobile terminal is overturn, it is thus necessary to determine that be currently used display screen institute it is right
The coordinate system answered, the coordinate system of when institute's foundation, and then raising pair are handled to update motion sensor to the data that it is gathered
The accuracy that the data collected are handled, ensure the normal use of user.
Optionally it is determined that have a variety of achievable modes with the coordinate system corresponding to the display screen that is currently used, the present invention
Embodiment by it is following it is a kind of it is achievable in a manner of exemplified by be described.
Specifically, the process of the coordinate system corresponding to the display screen for determining and being currently used, can include:By screen shape
Input parameter of the state value as default coordinate renewal function, is calculated the coordinates matrix corresponding to screen state value.Wherein,
Screen state value is used for the use state for identifying two display screens, the screen state value and the screen state obtained in step 201
It is worth identical.
Illustratively, when screen state value is " 0 " or " 1 ", can should " 0 " or " 1 " as default coordinate renewal letter
Several input parameters, the coordinates matrix corresponding to screen state value is calculated.
During specific implementation, when mobile terminal is overturn, mobile terminal can dispatch motion sensor side and pre-define
Function interface, and write the interface using screen state value as input parameter, motion sensor is according to writing the defeated of the interface
Enter the default function of parameter call (such as:Set_mirror_status functions), you can obtain the seat corresponding to screen state value
Mark matrix.
It should be noted that when mobile terminal is overturn, sat corresponding to the display screen of the reverse side after its determination upset
The motion sensor of matrix is marked, the motion sensor of coordinates matrix corresponding with determining the positive display screen after overturning can be
Identical sensor, or, two can also be different sensors, and when both are different sensors, each sensing
The default coordinate renewal function that device determines to use during coordinates matrix can also be different function.
Step 205, the coordinate system according to corresponding to the display screen being currently used, the data of motion sensor collection are entered
Row Coordinate Conversion.
Alternatively, it is to a kind of achievable mode of the data progress coordinate transform of motion sensor collection:According to screen
The data that coordinates matrix corresponding to state value gathers to motion sensor carry out transposition computing, to obtain the number after Coordinate Conversion
According to so that the coordinate system of the data after Coordinate Conversion is identical with the coordinate system residing for the display screen being currently used, with raising pair
The accuracy that the data that sensor collects are handled, to ensure that user uses.
It should be noted that when implementing the Coordinate Conversion of data to different types of motion sensor, it is specific real
Existing process has certain difference, illustratively:For the fused type with Function of Information Fusion sensor (such as:Direction passes
Sensor (English:Orientation) and rotating vector sensor is (English:Rotation Vector) etc. sensor):What is had
Sensor perform before its blending algorithm, it is necessary to using motion sensor provided in an embodiment of the present invention data processing method,
Coordinate Conversion, then the input using the data after Coordinate Conversion as blending algorithm are carried out to the input data of blending algorithm, passed through
After blending algorithm calculates, the data of output are to meet the correct data of current coordinate system;Its fusion is performed in the sensor having
During algorithm, input that can be directly using the data of collection as blending algorithm, and to the output data after blending algorithm calculates
(such as:Quaternary number) corresponding Coordinate Conversion is taken, to obtain the correct data for meeting current coordinate system.
It should also be noted that, after handling the data that sensor collects, mobile terminal can be according to mobile whole
The preset algorithm of application software in end is calculated the data after processing, and after calculating and will need to be shown in display screen
Data it is currently displayed by using on display screen, used with standby user.Such as:It can be rotated automatically according to screen, compass
The data after processing are calculated with the preset algorithm of the function such as address navigation, and will need to be shown in display screen after calculating
The currently displayed display screen used of data on, with realize screen rotate automatically, the function such as compass and address navigation.
In summary, in mobile terminal provided in an embodiment of the present invention motion sensor data processing method, by work as
When mobile terminal is overturn, the display screen being currently used is determined in two display screens of mobile terminal, according to currently quilt
The data that the display screen used gathers to motion sensor carry out Coordinate Conversion, and relative to correlation technique, this method being capable of basis
The data that the display screen being currently used gathers to motion sensor are handled so that the coordinate system of the data after processing is with making
Coordinate system with motion sensor during current display screen is identical, is effectively improved and the data that sensor collects are handled
Accuracy.
Fig. 4 is the stream of the processing method of motion sensor data in the mobile terminal according to another embodiment of the present invention
Cheng Tu, this method can apply in the mobile terminal as shown in Fig. 1-1 and Fig. 1-2, and with reference to figure 4, this method can include:
Step 401, the screen state value for obtaining mobile terminal.
Wherein, screen state value is used for the use state for identifying two display screens.The specific implementation process of the step can be with
With reference to above-mentioned steps 201, it is repeated no more herein.
Step 402, when screen state value changes, determine that mobile terminal is overturn.
The specific implementation process of the step may be referred to above-mentioned steps 202, and it is repeated no more herein.
Step 403, when mobile terminal is overturn, update the coordinate system of motion sensor.
Alternatively, the process of the coordinate system of motion sensor is updated, can be included:Using the screen state value after change as
The input parameter of default coordinate renewal function, the coordinates matrix corresponding to the screen state value after changing is calculated, wherein,
Screen state value after change is the screen state value obtained in step 401.
The specific implementation process of the step may be referred in above-mentioned steps 204 using screen state value as default coordinate more
The input parameter of new function, the process of the coordinates matrix corresponding to screen state value is calculated, it is repeated no more herein.
Step 404, the data gathered according to the coordinate system after renewal to motion sensor carry out Coordinate Conversion.
Alternatively, the data gathered according to the coordinate system after renewal to motion sensor carry out the process of Coordinate Conversion, can
With including:The data gathered according to the coordinates matrix being calculated to motion sensor carry out transposition computing.The step it is specific
Implementation process may be referred to above-mentioned steps 205, and it is repeated no more herein.
In summary, in mobile terminal provided in an embodiment of the present invention motion sensor data processing method, by work as
When mobile terminal is overturn, the coordinate system of motion sensor is updated, motion sensor is gathered according to the coordinate system after renewal
Data carry out Coordinate Conversion, relative to correlation technique, this method can update motion according to the upset situation of mobile terminal and pass
The coordinate of sensor, and the data that it is gathered are handled so that after the coordinate system and mobile terminal turn of the data after processing
The coordinate system of motion sensor is identical, is effectively improved the accuracy handled the data that sensor collects.
Fig. 5 is the stream of the processing method of motion sensor data in the mobile terminal according to another embodiment of the invention
Cheng Tu, this method can apply in the mobile terminal as shown in Fig. 1-1 and Fig. 1-2, and with reference to figure 5, this method can include:
Step 501, the screen state value for obtaining mobile terminal.
Wherein, screen state value is used for the use state for identifying two display screens.The specific implementation process of the step can be with
With reference to above-mentioned steps 201, it is repeated no more herein.
Step 502, according to screen state value, it is determined that the display screen being currently used.
The specific implementation process of the step may be referred in above-mentioned steps 203 according to the screen state of the mobile terminal of acquisition
Value, the process of display screen being currently used is determined in two display screens of mobile terminal, it is repeated no more herein.
Coordinate system corresponding to step 503, the display screen for determining and being currently used.
Optionally it is determined that the process with the coordinate system corresponding to the display screen that is currently used, can include:By screen shape
Input parameter of the state value as default coordinate renewal function, is calculated the coordinates matrix corresponding to screen state value.The step
Rapid specific implementation process may be referred to above-mentioned steps 204, and it is repeated no more herein.
Step 504, the coordinate system according to corresponding to the display screen being currently used, the data of motion sensor collection are entered
Row Coordinate Conversion.
Alternatively, the coordinate system according to corresponding to the display screen being currently used, the data of motion sensor collection are entered
The process of row Coordinate Conversion, it can include:The data gathered according to coordinates matrix to motion sensor carry out transposition computing.The step
Rapid specific implementation process may be referred to above-mentioned steps 205, and it is repeated no more herein.
In summary, in mobile terminal provided in an embodiment of the present invention motion sensor data processing method, by
The display screen being currently used is determined in two display screens of mobile terminal, according to the display screen being currently used to motion-sensing
The data of device collection carry out Coordinate Conversion, and relative to correlation technique, this method can be according to the display screen being currently used to fortune
The data of dynamic sensor collection are handled so that the coordinate system of the data after processing is with using motion-sensing during current display screen
The coordinate system of device is identical, is effectively improved the accuracy handled the data that sensor collects.
It should be noted that in mobile terminal provided in an embodiment of the present invention the processing method of motion sensor data step
Rapid sequencing can be adjusted suitably, and step according to circumstances can also accordingly be increased and decreased.It is any to be familiar with this technology neck
The technical staff in domain the invention discloses technical scope in, method that change can be readily occurred in, should all cover the present invention's
Within protection domain, therefore repeat no more.
Fig. 6-1 is according to the structural representation of the mobile terminal of one embodiment of the present invention, and the mobile terminal has just
Anti-phase pair of two faces, display screen is provided with positive and negative two relative faces, as in Figure 6-1, the mobile terminal 600 can be with
Including:
Judge module 601, for judging whether mobile terminal overturns.
Update module 602, for when mobile terminal is overturn, updating the coordinate system of motion sensor.
Modular converter 603, the data for being gathered according to the coordinate system after renewal to motion sensor carry out Coordinate Conversion.
Alternatively, judge module 601, specifically can be used for:The screen state value of mobile terminal is obtained, screen state value is used
In the use state for identifying two display screens.
When screen state value changes, determine that mobile terminal is overturn.
Alternatively, update module 602, specifically can be used for:Using the screen state value after change as default coordinate more
The input parameter of new function, the coordinates matrix corresponding to the screen state value after changing is calculated.
Alternatively, modular converter 603, specifically can be used for:Coordinates matrix according to being calculated is adopted to motion sensor
The data of collection carry out transposition computing.
In summary, mobile terminal provided in an embodiment of the present invention, by update module when mobile terminal is overturn,
The coordinate system of motion sensor is updated, the data that modular converter gathers according to the coordinate system after renewal to motion sensor are sat
Mark conversion, relative to correlation technique, this method can update the coordinate of motion sensor according to the upset situation of mobile terminal, and
The data that it is gathered are handled so that the seat of motion sensor after the coordinate system and mobile terminal turn of the data after processing
Mark system is identical, is effectively improved the accuracy handled the data that sensor collects.
Fig. 6-2 is according to the structural representation of the mobile terminal of another embodiment of the present invention, and the mobile terminal has
Positive and negative two relative faces, display screen are provided with positive and negative two relative faces, as in fig. 6-2, the mobile terminal 600 can
With including:
First determining module 604, for the display screen for determining to be currently used in two display screens of mobile terminal.
Second determining module 605, for the coordinate system corresponding to the display screen that determines and be currently used.
Modular converter 603, for the coordinate system according to corresponding to the display screen being currently used, motion sensor is gathered
Data carry out Coordinate Conversion.
Alternatively, the first determining module 604, specifically can be used for:
The screen state value of mobile terminal is obtained, screen state value is used for the use state for identifying two display screens.
According to screen state value, it is determined that the display screen being currently used.
Alternatively, the second determining module 605, specifically can be used for:
Input parameter using screen state value as default coordinate renewal function, is calculated corresponding to screen state value
Coordinates matrix.
Alternatively, modular converter 603, specifically can be used for:Entered according to the data that coordinates matrix gathers to motion sensor
Row transposition computing.
In summary, mobile terminal provided in an embodiment of the present invention, by the first determining module at two of mobile terminal
The display screen being currently used is determined in display screen, modular converter gathers according to the display screen being currently used to motion sensor
Data carry out Coordinate Conversion, relative to correlation technique, this method can be according to the display screen being currently used to motion-sensing
The data of device collection are handled so that the coordinate system of the data after processing and the seat using motion sensor during current display screen
Mark system is identical, is effectively improved the accuracy handled the data that sensor collects.
It is apparent to those skilled in the art that for convenience and simplicity of description, the movement of foregoing description
The specific work process of terminal, module and submodule, the corresponding process in preceding method embodiment is may be referred to, it is no longer superfluous herein
State.
The embodiment of the present invention additionally provides a kind of storage medium, and the storage medium, which can be that non-volatile computer is readable, deposits
Storage media, instruction is stored with the storage medium, when the storage medium is run on computers so that computer performs above-mentioned
The processing method of motion sensor data in the mobile terminal that embodiment of the method provides.
The embodiment of the present invention additionally provides a kind of mobile terminal, including memory, and processor and storage are on a memory simultaneously
The computer program that can be run on a processor, described in computing device during computer program, realize that above method embodiment carries
The processing method of motion sensor data in the mobile terminal of confession.
The embodiment of the present invention additionally provides a kind of computer program product for including instruction, when it runs on computers
When so that computer performs the processing method of motion sensor data in the mobile terminal that above method embodiment provides.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (10)
1. the processing method of motion sensor data in a kind of mobile terminal, it is characterised in that the mobile terminal has positive and negative
Two relative faces, display screen are provided with positive and negative two relative faces, methods described includes:
Judge whether the mobile terminal overturns;
When the mobile terminal is overturn, the coordinate system of motion sensor is updated;
The data gathered according to the coordinate system after renewal to the motion sensor carry out Coordinate Conversion.
2. according to the method for claim 1, it is characterised in that described to judge whether the mobile terminal overturns, bag
Include:
The screen state value of mobile terminal is obtained, the screen state value is used for the use state for identifying described two display screens;
When the screen state value changes, determine that the mobile terminal is overturn.
3. according to the method for claim 2, it is characterised in that the coordinate system of the renewal motion sensor, including:
Input parameter using the screen state value after change as default coordinate renewal function, after the change is calculated
Coordinates matrix corresponding to screen state value;
The data that the coordinate system according to after renewal gathers to the motion sensor carry out Coordinate Conversion, including:
The data gathered according to the coordinates matrix being calculated to the motion sensor carry out transposition computing.
4. the processing method of motion sensor data in a kind of mobile terminal, it is characterised in that the mobile terminal has positive and negative
Two relative faces, display screen are provided with positive and negative two relative faces, methods described includes:
The display screen being currently used is determined in two display screens of the mobile terminal;
It is determined that the coordinate system corresponding to the display screen being currently used;
According to the coordinate system corresponding to the display screen being currently used, the data of motion sensor collection are sat
Mark conversion.
5. according to the method for claim 4, it is characterised in that described to be determined in two display screens of the mobile terminal
The display screen being currently used, including:
The screen state value of mobile terminal is obtained, the screen state value is used for the use state for identifying described two display screens;
According to the screen state value, it is determined that the display screen being currently used.
6. according to the method for claim 5, it is characterised in that the determination and the display screen institute being currently used are right
The coordinate system answered, including:
Input parameter using the screen state value as default coordinate renewal function, the screen state value institute is calculated
Corresponding coordinates matrix;
The coordinate system corresponding to display screen being currently used described in the basis, the data of motion sensor collection are entered
Row Coordinate Conversion, including:
The data gathered according to the coordinates matrix to the motion sensor carry out transposition computing.
7. a kind of mobile terminal, it is characterised in that the mobile terminal has positive and negative two relative faces, described positive and negative relative
Display screen is provided with two faces, the mobile terminal includes:
Judge module, for judging whether the mobile terminal overturns;
Update module, for when the mobile terminal is overturn, updating the coordinate system of motion sensor;
Modular converter, the data for being gathered according to the coordinate system after renewal to the motion sensor carry out Coordinate Conversion.
8. mobile terminal according to claim 7, it is characterised in that the judge module, be specifically used for:
The screen state value of mobile terminal is obtained, the screen state value is used for the use state for identifying described two display screens;
When the screen state value changes, determine that the mobile terminal is overturn.
9. a kind of mobile terminal, it is characterised in that the mobile terminal has positive and negative two relative faces, described positive and negative relative
Display screen is provided with two faces, the mobile terminal includes:
First determining module, for the display screen for determining to be currently used in two display screens of the mobile terminal;
Second determining module, for determining and the coordinate system corresponding to the display screen being currently used;
Modular converter, for the coordinate system corresponding to the display screen that is currently used according to, the motion sensor is adopted
The data of collection carry out Coordinate Conversion.
10. mobile terminal according to claim 9, it is characterised in that first determining module, be specifically used for:
The screen state value of mobile terminal is obtained, the screen state value is used for the use state for identifying described two display screens;
According to the screen state value, it is determined that the display screen being currently used.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710619448.5A CN107465817A (en) | 2017-07-26 | 2017-07-26 | The processing method of mobile terminal and its motion sensor data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710619448.5A CN107465817A (en) | 2017-07-26 | 2017-07-26 | The processing method of mobile terminal and its motion sensor data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107465817A true CN107465817A (en) | 2017-12-12 |
Family
ID=60547409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710619448.5A Pending CN107465817A (en) | 2017-07-26 | 2017-07-26 | The processing method of mobile terminal and its motion sensor data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107465817A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110686667A (en) * | 2019-09-24 | 2020-01-14 | 努比亚技术有限公司 | Direction indicating method, double-screen terminal and computer readable storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101598569A (en) * | 2008-06-05 | 2009-12-09 | 财团法人工业技术研究院 | Orientation discrimination method and guider thereof are set |
CN201628881U (en) * | 2010-01-25 | 2010-11-10 | 张菊 | Double-screen display equipment |
US8378985B2 (en) * | 2010-05-26 | 2013-02-19 | Sony Mobile Communications Ab | Touch interface for three-dimensional display control |
CN102981645A (en) * | 2012-11-16 | 2013-03-20 | 广东欧珀移动通信有限公司 | Reverse gravity induction method and mobile terminal thereof |
CN104937377A (en) * | 2013-01-17 | 2015-09-23 | 可信定位股份有限公司 | Method and apparatus for handling vertical orientations of devices for constraint free portable navigation |
CN105302418A (en) * | 2015-11-02 | 2016-02-03 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105721703A (en) * | 2016-02-25 | 2016-06-29 | 杭州映墨科技有限公司 | Method for carrying out panoramic positioning and orientation by utilizing mobile phone device sensor |
US20160187128A1 (en) * | 2014-12-31 | 2016-06-30 | Qualcomm Incorporated | Mobile device in-vehicle localization using inertial sensors |
CN106445083A (en) * | 2016-08-29 | 2017-02-22 | 宇龙计算机通信科技(深圳)有限公司 | Gravity sensing data correction method and system |
CN106603769A (en) * | 2016-12-27 | 2017-04-26 | 宇龙计算机通信科技(深圳)有限公司 | Dual-screen display control method, dual-screen display control system and terminal |
CN106775207A (en) * | 2016-11-25 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | Method for handover control, switching control and terminal based on double-display screen |
-
2017
- 2017-07-26 CN CN201710619448.5A patent/CN107465817A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101598569A (en) * | 2008-06-05 | 2009-12-09 | 财团法人工业技术研究院 | Orientation discrimination method and guider thereof are set |
CN201628881U (en) * | 2010-01-25 | 2010-11-10 | 张菊 | Double-screen display equipment |
US8378985B2 (en) * | 2010-05-26 | 2013-02-19 | Sony Mobile Communications Ab | Touch interface for three-dimensional display control |
CN102981645A (en) * | 2012-11-16 | 2013-03-20 | 广东欧珀移动通信有限公司 | Reverse gravity induction method and mobile terminal thereof |
CN104937377A (en) * | 2013-01-17 | 2015-09-23 | 可信定位股份有限公司 | Method and apparatus for handling vertical orientations of devices for constraint free portable navigation |
US20160187128A1 (en) * | 2014-12-31 | 2016-06-30 | Qualcomm Incorporated | Mobile device in-vehicle localization using inertial sensors |
CN105302418A (en) * | 2015-11-02 | 2016-02-03 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105721703A (en) * | 2016-02-25 | 2016-06-29 | 杭州映墨科技有限公司 | Method for carrying out panoramic positioning and orientation by utilizing mobile phone device sensor |
CN106445083A (en) * | 2016-08-29 | 2017-02-22 | 宇龙计算机通信科技(深圳)有限公司 | Gravity sensing data correction method and system |
CN106775207A (en) * | 2016-11-25 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | Method for handover control, switching control and terminal based on double-display screen |
CN106603769A (en) * | 2016-12-27 | 2017-04-26 | 宇龙计算机通信科技(深圳)有限公司 | Dual-screen display control method, dual-screen display control system and terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110686667A (en) * | 2019-09-24 | 2020-01-14 | 努比亚技术有限公司 | Direction indicating method, double-screen terminal and computer readable storage medium |
CN110686667B (en) * | 2019-09-24 | 2024-01-09 | 努比亚技术有限公司 | Direction indication method, double-screen terminal and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10254878B2 (en) | Operating a touch screen control system according to a plurality of rule sets | |
CN101944304B (en) | Device, method and program for displaying map information | |
JP5873942B2 (en) | Mobile terminal device | |
CN106020358B (en) | Transparent electronic device | |
US20150227173A1 (en) | Electronic device and index display method thereof | |
CN101589354A (en) | Orientation-sensitive signal output | |
CN101681234A (en) | Speed/positional mode translations | |
JP2013146095A (en) | Display input device and in-vehicle information unit | |
US20140278088A1 (en) | Navigation Device | |
TW201716937A (en) | Touch sensitive system and stylus for commanding by maneuvering and method thereof | |
CN102999287A (en) | Electronic apparatus and method for controlling display screen of electronic apparatus | |
JP5606635B1 (en) | Electronic device, correction method, and program | |
CN107465817A (en) | The processing method of mobile terminal and its motion sensor data | |
CN111475069A (en) | Display method and electronic equipment | |
CN103064583B (en) | Displaying block aligning method, displaying block changing method and mobile terminal | |
CN107111387B (en) | Method for determining azimuth angle or attitude, touch input device, touch screen and system | |
CN105308540A (en) | Method for processing touch event and apparatus for same | |
CN105335118B (en) | The display methods and device of a kind of electronic equipment control | |
CN102955564B (en) | The operational approach of a kind of terminal and terminal | |
US11947793B2 (en) | Portable terminal, display method, and storage medium | |
CN107632770A (en) | A kind of terminal operation fault-tolerance approach and terminal | |
CN107888767A (en) | Machine master information prompting method and device and mobile terminal | |
KR20100091807A (en) | Portable multimedia terminal and method of inputting command using the same | |
DE112020007543T5 (en) | Initiating a computing device interaction mode utilizing off-screen gesture recognition | |
JP5965757B2 (en) | Tablet device and use environment setting method of tablet device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171212 |
|
RJ01 | Rejection of invention patent application after publication |