CN106445083A - Gravity sensing data correction method and system - Google Patents

Gravity sensing data correction method and system Download PDF

Info

Publication number
CN106445083A
CN106445083A CN201610754360.XA CN201610754360A CN106445083A CN 106445083 A CN106445083 A CN 106445083A CN 201610754360 A CN201610754360 A CN 201610754360A CN 106445083 A CN106445083 A CN 106445083A
Authority
CN
China
Prior art keywords
gravity sensing
sensing data
axis
data
component
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
Application number
CN201610754360.XA
Other languages
Chinese (zh)
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610754360.XA priority Critical patent/CN106445083A/en
Publication of CN106445083A publication Critical patent/CN106445083A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/002Specific input/output arrangements not covered by G06F3/01 - G06F3/16

Abstract

The invention discloses a gravity sensing data correction method. The method is applied to electronic equipment, and the electronic equipment comprises first display equipment and second display equipment, wherein the first display equipment is located at the front of the electronic equipment and the second display equipment is located at the back of the electronic equipment. The method comprises the following steps of: obtaining gravity sensing data of a gravity sensor of the electronic equipment, wherein a gravity coordinate system of the gravity sensor is established by taking the first display equipment as a benchmark; when the second display equipment is located in a using state, determining a screen display manner of the second display equipment; and correcting the gravity sensing data according to the screen display manner of the second display equipment. The invention furthermore provides a gravity sensing data correction system. According to the method and system provided by the invention, the gravity sensing data can be corrected timely, so that the normal use of application programs of the electronic equipment is ensured and then the user experience is improved.

Description

Gravity sensing data correcting method and system
Technical field
The present invention relates to field of terminal technology, more particularly, to a kind of gravity sensing data correcting method and system.
Background technology
Electronic equipment would generally provide hardware sensor (hardware-based sensor) and software sensors (software-based sensor) is detecting the action of electronic equipment.Such as hardware sensor include magnetic force induction sensor, Acceleration transducer (accelerometer) and gyro sensor (gyroscope).Permissible based on this two hardware sensor Realize software sensors, such as gravity sensor, linear acceleration sensors, rotating vector accelerator.The function of software sensors It is to be realized based on hardware sensor,
For example, the gravity sensor of usual electronic equipment is software sensors, in electronic equipment (the such as intelligent hand of single-screen Machine) on very perfect.Electronic equipment to double screen, the wherein first screen sets in electronics in the front of electronic equipment, the second screen The standby back side.When user uses the second screen, when needing gravity sensing data, described electronic equipment feeds back to the gravity-feed tank of the second screen Data is answered to be to obtain based on the coordinate system of the first screen, therefore, gravity sensing data can have problems.When user is on the second screen Using certain application program, described application program normal using when needing gravity sensing data, described application program is second When screen display uses to user, accessed gravity sensing data is inaccurate, will affect described application program Use.Such as user second screen play need gravity sensing data game (as car race game, balanced class game) when it may appear that The direction of motion is contrary or insensitive situation, have impact on the experience of user.
Content of the invention
In view of the foregoing it is necessary to provide a kind of gravity sensing data correcting method and system, correct gravity-feed tank in time Answering data, thus ensureing the normal use of the application program of electronic equipment, improve the experience of user.
A kind of gravity sensing data correcting method, is applied in electronic equipment, and described electronic equipment is included positioned at described electricity First display device in the front of sub- equipment and second display device at the back side positioned at described electronic equipment, methods described bag Include:
Obtain the gravity sensing data of the gravity sensor of described electronic equipment, the gravimetric(al) coordinates system of described gravity sensor Set up on the basis of described first display device;
When described second display device is in use state, determine the screen display mode of described second display device; And
Screen display mode according to described second display device corrects described gravity sensing data.
According to the preferred embodiment of the present invention, described gravimetric(al) coordinates system is with the width levels of described electronic equipment to the right as X-axis Positive direction, with length direction straight up for Y-axis positive direction, with the direction in the front perpendicular to described first display device as Z Axle positive direction.
According to the preferred embodiment of the present invention, when described screen display mode is transverse screen, described according to the described second display The screen display mode of equipment corrects described gravity sensing data and includes:
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, component data in Y-axis for the described gravity sensing data is negated, by described gravity sensing data in Z Component data on axle negates;Or
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, component data in Y-axis for the described gravity sensing data is negated;Or
When component data in Y-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not for 0, component data on Z axis for the described gravity sensing data is negated.
According to the preferred embodiment of the present invention, when described screen display mode is transverse screen, described according to the described second display The screen display mode of equipment corrects described gravity sensing data and includes:
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, component data in X-axis for the described gravity sensing data is negated, by described gravity sensing data in Z Component data on axle negates;Or
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, component data in X-axis for the described gravity sensing data is negated;Or
When component data in X-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not for 0, component data on Z axis for the described gravity sensing data is negated.
A kind of gravity sensing data correction system, runs in electronic equipment, and described electronic equipment is included positioned at described electricity First display device in the front of sub- equipment and be located at described electronic equipment the back side the second display device it is characterised in that Described system includes:
Acquisition module, for obtaining the gravity sensing data of the gravity sensor of described electronic equipment, described gravity sensing The gravimetric(al) coordinates system of device is set up on the basis of described first display device;
Determining module, for when described second display device is in use state, determining described second display device Screen display mode;And
Correction module, corrects described gravity sensing data for the screen display mode according to described second display device.
According to the preferred embodiment of the present invention, described gravimetric(al) coordinates system is with the width levels of described electronic equipment to the right as X-axis Positive direction, with length direction straight up for Y-axis positive direction, with the direction in the front perpendicular to described first display device as Z Axle positive direction.
According to the preferred embodiment of the present invention, when described screen display mode is transverse screen, described correction module is according to described The screen display mode of the second display device corrects described gravity sensing data and includes:
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, component data in Y-axis for the described gravity sensing data is negated, by described gravity sensing data in Z Component data on axle negates;Or
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, component data in Y-axis for the described gravity sensing data is negated;Or
When component data in Y-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not for 0, component data on Z axis for the described gravity sensing data is negated.
According to the preferred embodiment of the present invention, when described screen display mode is transverse screen, described correction module is according to described The screen display mode of the second display device corrects described gravity sensing data and includes:
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, component data in X-axis for the described gravity sensing data is negated, by described gravity sensing data in Z Component data on axle negates;Or
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, component data in X-axis for the described gravity sensing data is negated;Or
When component data in X-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not for 0, component data on Z axis for the described gravity sensing data is negated.
As can be seen from the above technical solutions, when user is in described second display device using described electronic equipment, The present invention can correct the gravity sensing data of described electronic equipment in time, and the gravity sensing data is activation after correction is given request Obtaining the application program of gravity sensing data, thus ensureing the normal use of the application program of electronic equipment, improve user's Experience.
Brief description
Fig. 1 is the structural representation of the preferred embodiment of the electronic equipment that the present invention realizes gravity sensing data correcting method Figure.
Fig. 2 is the schematic diagram of the first display device and the second display device in heretofore described electronic equipment.
Fig. 3 is the schematic diagram of gravimetric(al) coordinates system in the present invention.
Fig. 4 is the flow chart of the preferred embodiment of gravity sensing data correcting method of the present invention.
Fig. 5 and Fig. 6 is the flow chart of another embodiment of gravity sensing data correcting method of the present invention.
Fig. 7 is the functional block diagram of the preferred embodiment of gravity sensing data correction system of the present invention.
Main element symbol description
Electronic equipment 1
Gravity sensing data correction system 10
Storage device 20
Processing equipment 30
Gravity sensor 40
First display device 50
Second display device 60
Acquisition module 100
Determining module 101
Correction module 102
Judge module 103
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings with specific embodiment pair The present invention is described in detail.
As shown in figure 1, being the structural representation of the preferred embodiment of the electronic equipment realizing gravity sensing data correcting method Figure.As shown in this structural representation, electronic equipment 1 includes gravity sensing data correction system 10.This electronic equipment 1 also includes depositing Storage equipment 20, processing equipment 30, gravity sensor 40, the first display device 50 and the second display device 60.Described first display Equipment 50 and described second display device 60 can be display screens that touch-screen etc. is used for display etc..
If Fig. 2 is the schematic diagram of the first display device and the second display device in heretofore described electronic equipment, at this In embodiment, described first display device 50 is located at the front of described electronic equipment 1, and described second display device 60 is located at described The back side of electronic equipment 1.
Preferably, the gravity sensing data correcting method of the present invention is by the gravity sensing data in described electronic equipment 1 Correction system 10 is realizing.Described electronic equipment 1 is a kind of can automatically to carry out numerical value according to the instruction being previously set or store Calculating and/or the equipment of information processing, its hardware includes but is not limited to microprocessor, special IC (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), digital processing unit (Digital Signal Processor, DSP), embedded device etc..
Described electronic equipment 1 includes but is not limited to any one and can pass through keyboard, mouse, remote control, touch pad with user Or the mode such as voice-operated device carries out the electronic product of man-machine interaction, for example, personal computer, panel computer, smart mobile phone, individual Digital assistants (Personal Digital Assistant, PDA), IPTV (Internet Protocol Television, IPTV), intellectual Wearable etc..Wherein, the network residing for described electronic equipment 1 includes but is not limited to Internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN (Virtual Private Network, VPN) etc..
When user uses described second display device 60 of described electronic equipment 1, described gravity sensing Data correction system System 10 can correct the gravity sensing data of described electronic equipment in time, and the gravity sensing data is activation after correction is obtained to request Taking the application program of gravity sensing data, thus ensureing the normal use of the application program of electronic equipment 1, improve the body of user Test
Described storage device 20 is used for storing the program generation of each program segment in described gravity sensing data correction system 10 Code.This storage device 20 can be smart media card (smart media card), safe digital card (secure digital Card), the storage facilities such as flash memory cards (flash card).
Described processing equipment 30 can include one or more microprocessor, digital processing unit.
Described gravity sensor 40 can be hardware sensor (hardware-based sensor) or software Sensor (software-based sensor).Described gravity sensor is used for detecting the number such as acceleration of described electronic equipment 1 According to.
In the present embodiment, the foundation of the gravimetric(al) coordinates system of described gravity sensor is as shown in figure 3, described gravimetric(al) coordinates system On the basis of described first display device 50, with the level of the width of described electronic equipment 1 to the right for X-axis positive direction, with length Be Y-axis positive direction upwards, with the direction perpendicular to described first display device 50 front for Z axis positive direction, that is, described first The back side of display device 50 is the negative value of Z.
In one embodiment of the invention, in described electronic equipment 1 described memory cell 20 storage multiple instruction with Realize a kind of gravity sensing data correcting method, described processing unit 30 can perform the plurality of instruction thus realizing:Obtain institute State the gravity sensing data of the gravity sensor of electronic equipment, the gravimetric(al) coordinates system of described gravity sensor is with the described first display Set up on the basis of equipment;When described second display device is in use state, determine the screen of described second display device Display mode;And described gravity sensing data is corrected according to the screen display mode of described second display device.
In a further embodiment, described gravimetric(al) coordinates system is being with the width levels of described electronic equipment to the right for X-axis just Direction, with length direction straight up for Y-axis positive direction, with the direction in the front perpendicular to described first display device as Z axis Positive direction.
In a further embodiment, when described screen display mode be transverse screen when, described according to described second display set Standby screen display mode corrects described gravity sensing data and includes:
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, component data in Y-axis for the described gravity sensing data is negated, by described gravity sensing data in Z Component data on axle negates;Or
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, component data in Y-axis for the described gravity sensing data is negated;Or
When component data in Y-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not 0, component data on Z axis for the described gravity sensing data is negated.
In a further embodiment, when described screen display mode be transverse screen when, described according to described second display set Standby screen display mode corrects described gravity sensing data and includes:
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, component data in X-axis for the described gravity sensing data is negated, by described gravity sensing data in Z Component data on axle negates;Or
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, component data in X-axis for the described gravity sensing data is negated;Or
When component data in X-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not for 0, component data on Z axis for the described gravity sensing data is negated.
As shown in figure 4, being the flow chart of the preferred embodiment of gravity sensing data correcting method of the present invention.According to different Demand, in this flow chart, the order of step can change, and some steps can be omitted.
S10, described gravity sensing data correction system 10 obtains the weight of the described gravity sensor 40 of described electronic equipment 1 Power sensed data.
In the present embodiment, when described electronic equipment 1 is in mobile status, described gravity sensing data correction system 10 Obtain described gravity sensing data using described gravity sensor 40.Described gravity sensing data is a vector (a, b, c), bag Include three dimensions, a is to be to be the component on Z axis in the component in Y-axis and c in the component in X-axis, b.
S11, when described second display device 60 is in use state, described gravity sensing data correction system 10 determines The screen display mode of described second display device 60.
In the present embodiment, described screen display mode includes transverse screen and portrait layout.Described gravity sensing data correction system 10 determine the screen display mode of described second display device 60 using described gravity sensor 40.When described gravity sensing data Correction system 10 is in using the parameter current (as acceleration) that described gravity sensor 40 detects described electronic equipment 1 When anyhow in the range of the corresponding parameter of state (as acceleration), described gravity sensing data correction system 10 determines described The screen display mode of two display devices 60 is transverse screen.
When described gravity sensing data correction system 10 detects described electronic equipment 1 using described gravity sensor 40 When parameter current (as acceleration) is in the range of the corresponding parameter of vertical state (as acceleration), described gravity-feed tank Data correction system 10 is answered to determine that the screen display mode of described second display device 60 is portrait layout.
S12, described gravity sensing data correction system 10 is according to the screen display mode school of described second display device 60 Just described gravity sensing data.
In the present embodiment, when the screen display mode of described second display device 60 is transverse screen, described in described basis The screen display mode of the second display device 60 corrects described gravity sensing data and includes:
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, described gravity sensing data correction system 10 component data in Y-axis by described gravity sensing data Negate, component data on Z axis for the described gravity sensing data is negated.
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, by described gravity sensing data, the component data in Y-axis takes described gravity sensing data correction system 10 Instead.
When component data in Y-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not for 0, described gravity sensing data correction system 10 component data on Z axis by described gravity sensing data Negate.
In the present embodiment, when the screen display mode of described second display device 60 is portrait layout, described in described basis The screen display mode of the second display device 60 corrects described gravity sensing data and includes:
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, described gravity sensing data correction system 10 component data in X-axis by described gravity sensing data Negate, component data on Z axis for the described gravity sensing data is negated.
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, by described gravity sensing data, the component data in X-axis takes described gravity sensing data correction system 10 Instead.
When component data in X-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not for 0, described gravity sensing data correction system 10 component data on Z axis by described gravity sensing data Negate.
When user is in described second display device 60 using described electronic equipment 1, the present invention can correct described in time The gravity sensing data of electronic equipment, and will correction after gravity sensing data is activation to acquisition request gravity sensing data should With program, thus ensureing the normal use of the application program of electronic equipment 1, improve the experience of user.
As shown in Figures 5 and 6, be another embodiment of gravity sensing data correcting method of the present invention flow chart.According to Different demands, in this flow chart, the order of step can change, and some steps can be omitted.
S20, described gravity sensing data correction system 10 obtains the weight of the described gravity sensor 40 of described electronic equipment 1 Power sensed data.
In the present embodiment, when described electronic equipment 1 is moved, described gravity sensing data correction system 10 utilizes institute State gravity sensor 40 and obtain described gravity sensing data.Described gravity sensing data is a vector (a, b, c), including three Dimension, a is to be to be the component on Z axis in the component in Y-axis and c in the component in X-axis, b.
S21, when described second display device 60 is in use state, described gravity sensing data correction system 10 judges Whether the screen display mode of described second display device 60 is transverse screen.
In the present embodiment, described screen display mode includes transverse screen and portrait layout.Described gravity sensing data correction system 10 determine the screen display mode of described second display device 60 using described gravity sensor 40.When described gravity sensing data Correction system 10 is in using the parameter current (as acceleration) that described gravity sensor 40 detects described electronic equipment 1 When anyhow in the range of the corresponding parameter of state (as acceleration), described gravity sensing data correction system 10 judges described The screen display mode of two display devices 60 is transverse screen, executes S22, judges number of components in Y-axis for the described gravity sensing data According to whether being 0.
When component data in Y-axis for the described gravity sensing data is not 0, executes S23, judge described gravity sensing number Whether it is 0 according to the component data on Z axis.
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis Component data is not execution S26 when 0;When component data in Y-axis for the described gravity sensing data is not 0, and described gravity-feed tank When answering component data on Z axis for the data for 0, execute S27.
When component data in Y-axis for the described gravity sensing data is 0, executes S24, judge described gravity sensing data Whether the component data on Z axis is 0.When component data in Y-axis for the described gravity sensing data is 0, and described gravity-feed tank When answering component data on Z axis for the data to be not 0, execute S25.When component data in Y-axis for the described gravity sensing data is 0, and when component data on Z axis for the described gravity sensing data is not 0, return execution S20.
S25, by described gravity sensing data, the component data on Z axis takes described gravity sensing data correction system 10 Instead.
S26, by described gravity sensing data, the component data in Y-axis takes described gravity sensing data correction system 10 Instead, by described gravity sensing data, the component data on Z axis negates.
S27, by described gravity sensing data, the component data in Y-axis takes described gravity sensing data correction system 10 Instead.
When described gravity sensing data correction system 10 detects described electronic equipment 1 using described gravity sensor 40 When parameter current (as acceleration) is in the range of the corresponding parameter of vertical state (as acceleration), described gravity-feed tank Answer data correction system 10 to judge that the screen display mode of described second display device 60 is portrait layout, execute S28, judge described heavy Whether component data in X-axis for the power sensed data is 0.
When component data in X-axis for the described gravity sensing data is not 0, executes S29, judge described gravity sensing number Whether it is 0 according to the component data on Z axis.
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, execute S32;When component data in X-axis for the described gravity sensing data is not 0, and described gravity-feed tank When answering component data on Z axis for the data for 0, execute S33.
When component data in X-axis for the described gravity sensing data is 0, executes S30, judge described gravity sensing data Whether the component data on Z axis is 0.When component data in X-axis for the described gravity sensing data is 0, and described gravity-feed tank When answering component data on Z axis for the data to be not 0, execute S31.When component data in X-axis for the described gravity sensing data is 0, and when component data on Z axis for the described gravity sensing data is not 0, return execution S20.
S31, by described gravity sensing data, the component data on Z axis takes described gravity sensing data correction system 10 Instead.
S32, by described gravity sensing data, the component data in X-axis takes described gravity sensing data correction system 10 Instead, by described gravity sensing data, the component data on Z axis negates.
S33, by described gravity sensing data, the component data in X-axis takes described gravity sensing data correction system 10 Instead.
In the present embodiment, the gravity sensing data is activation after correction is given and is asked by described gravity sensing data correction system 10 Seek the application program obtaining gravity sensing data.
When user is in described second display device 60 using described electronic equipment 1, the present invention can correct described in time The gravity sensing data of electronic equipment, and will correction after gravity sensing data is activation to acquisition request gravity sensing data should With program, thus ensureing the normal use of the application program of electronic equipment 1, improve the experience of user.
As shown in fig. 7, described gravity sensing data correction system 10 includes acquisition module 100, determining module 101, correction Module 102 and judge module 103.Module alleged by the present invention refers to that can be processed equipment 30 of one kind is performed and can be complete Become the series of computation machine program segment of fixing function, it is stored in storage device 20.Function with regard to each module will be follow-up Embodiment three, describe in detail in example IV.
Embodiment three:
Acquisition module 100, for obtaining the gravity sensing data of the described gravity sensor 40 of described electronic equipment 1.
In the present embodiment, when described electronic equipment 1 is moved, described acquisition module 100 utilizes described gravity sensing Device 40 obtains described gravity sensing data.Described gravity sensing data is a vector (a, b, c), including three dimensions, a be Component in X-axis, b are to be the component on Z axis in the component in Y-axis and c.
Determining module 101, for when described second display device 60 is in use state, described gravity sensing data school Positive system 10 determines the screen display mode of described second display device 60.
In the present embodiment, described screen display mode includes transverse screen and portrait layout.Described determining module 101 utilizes described heavy Power inductor 40 determines the screen display mode of described second display device 60.When described determining module 101 utilizes described gravity The parameter current (as acceleration) that inductor 40 detects described electronic equipment 1 is in the corresponding parameter of state anyhow (such as Acceleration) in the range of when, described determining module 101 determine described second display device 60 screen display mode be horizontal stroke Screen.When described determining module 101 detects the parameter current of described electronic equipment 1 (as accelerated using described gravity sensor 40 Degree vector) when being in the range of the corresponding parameter of vertical state (as acceleration), described determining module 101 determines described the The screen display mode of two display devices 60 is portrait layout.
Correction module 102, corrects described gravity sensing for the screen display mode according to described second display device 60 Data.
In the present embodiment, when the screen display mode of described second display device 60 is transverse screen, described correction module 102 correct described gravity sensing data according to the screen display mode of described second display device 60 includes:
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, described gravity sensing data correction system 10 component data in Y-axis by described gravity sensing data Negate, by described gravity sensing data, the component data on Z axis negates described correction module 102.
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, gravity sensing data correction system 10 described in described correction module 102 is by described gravity sensing data in Y Component data on axle negates.
When component data in Y-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not for 0, by described gravity sensing data, the component data on Z axis negates described correction module 102.
In the present embodiment, when the screen display mode of described second display device 60 is portrait layout, described correction module 102 correct described gravity sensing data according to the screen display mode of described second display device 60 includes:
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, by described gravity sensing data, the component data in X-axis negates described correction module 102, will be described Component data on Z axis for the gravity sensing data negates.
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, by described gravity sensing data, the component data in X-axis negates described correction module 102.
When component data in X-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not for 0, by described gravity sensing data, the component data on Z axis negates described correction module 102.
When user is in described second display device 60 using described electronic equipment 1, the present invention can correct described in time The gravity sensing data of electronic equipment, and will correction after gravity sensing data is activation to acquisition request gravity sensing data should With program, thus ensureing the normal use of the application program of electronic equipment 1, improve the experience of user.
Example IV:
Acquisition module 100, for obtaining the gravity sensing data of the described gravity sensor 40 of described electronic equipment 1.
In the present embodiment, when described electronic equipment 1 is moved, described acquisition module 100 utilizes described gravity sensing Device 40 obtains described gravity sensing data.Described gravity sensing data is a vector (a, b, c), including three dimensions, a be Component in X-axis, b are to be the component on Z axis in the component in Y-axis and c.
Judge module 103, whether the screen display mode for judging described second display device 60 is transverse screen.
In the present embodiment, described screen display mode includes transverse screen and portrait layout.Described judge module 103 utilizes described heavy Power inductor 40 determines the screen display mode of described second display device 60.When described judge module 103 utilizes described gravity The parameter current (as acceleration) that inductor 40 detects described electronic equipment 1 is in the corresponding parameter of state anyhow (such as Acceleration) in the range of when, described judge module 103 judges that the screen display mode of described second display device 60 is horizontal Screen.
The parameter current described electronic equipment 1 is detected using described gravity sensor 40 when described judge module 103 is (such as Acceleration) when being in the range of the corresponding parameter of vertical state (as acceleration), described judge module 103 judges institute The screen display mode stating the second display device 60 is portrait layout.
When the screen display mode of described second display device 60 is transverse screen, described judge module 103 judges described gravity Whether component data in Y-axis for the sensed data is 0.
When component data in Y-axis for the described gravity sensing data is not 0, described judge module 103 judges described heavy Whether component data on Z axis for the power sensed data is 0.
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, by described gravity sensing data, the component data in Y-axis negates described correction module 102, will be described Component data on Z axis for the gravity sensing data negates.
When component data in Y-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, by described gravity sensing data, the component data in Y-axis negates described correction module 102.
When component data in Y-axis for the described gravity sensing data is 0, described judge module 103 judges described gravity Whether component data on Z axis for the sensed data is 0.When component data in Y-axis for the described gravity sensing data is 0, and institute When stating component data on Z axis for the gravity sensing data and being not 0, described correction module 102 is by described gravity sensing data in Z axis On component data negate.
When component data in Y-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not 0, described acquisition module 100 continues to obtain the gravity-feed tank of the described gravity sensor 40 of described electronic equipment 1 Answer data.
When described gravity sensing data correction system 10 detects described electronic equipment 1 using described gravity sensor 40 When parameter current (as acceleration) is in the range of the corresponding parameter of vertical state (as acceleration), described judgement mould Block 103 judges that the screen display mode of described second display device 60 is portrait layout, then described judge module 103 judge described heavy Whether component data in X-axis for the power sensed data is 0.
When component data in X-axis for the described gravity sensing data is not 0, described judge module 103 judges described heavy Whether component data on Z axis for the power sensed data is 0.
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is not 0, by described gravity sensing data, the component data in X-axis negates described correction module 102, will be described Component data on Z axis for the gravity sensing data negates.
When component data in X-axis for the described gravity sensing data is not 0, and described gravity sensing data is on Z axis When component data is 0, by described gravity sensing data, the component data in X-axis negates described correction module 102.
When component data in X-axis for the described gravity sensing data is 0, described judge module 103 judges described gravity Whether component data on Z axis for the sensed data is 0.When component data in X-axis for the described gravity sensing data is 0, and institute When stating component data on Z axis for the gravity sensing data and being not 0, described correction module 102 is by described gravity sensing data in Z axis On component data negate.
When component data in X-axis for the described gravity sensing data be 0, and described gravity sensing data on Z axis point When amount data is not 0, described acquisition module 100 continues to obtain the gravity-feed tank of the described gravity sensor 40 of described electronic equipment 1 Answer data.
In the present embodiment, described correction module 102 by correct after gravity sensing data is activation to acquisition request gravity The application program of sensed data.
When user is in described second display device 60 using described electronic equipment 1, the present invention can correct described in time The gravity sensing data of electronic equipment, and will correction after gravity sensing data is activation to acquisition request gravity sensing data should With program, thus ensureing the normal use of the application program of electronic equipment 1, improve the experience of user.
It should be understood that disclosed system in several embodiments provided by the present invention, apparatus and method are permissible Realize by another way.For example, device embodiment described above is only schematically, for example, described module Divide, only a kind of division of logic function, actual can have other dividing mode when realizing.
The described module illustrating as separating component can be or may not be physically separate, show as module The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.The mesh to realize this embodiment scheme for some or all of module therein can be selected according to the actual needs 's.
In addition, can be integrated in a processing unit in each functional module in each embodiment of the present invention it is also possible to It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form that hardware adds software function module is realized.
The above-mentioned integrated unit realized in the form of software function module, can be stored in an embodied on computer readable and deposit In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) execution the present invention each The part steps of embodiment methods described.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of the spirit or essential attributes of the present invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any attached associated diagram mark in claim should not be considered as the involved right of restriction will Ask.Furthermore, it is to be understood that " inclusion " one word is not excluded for other units or step, odd number is not excluded for plural number.State in system claims Multiple units or device can also be realized by software or hardware by a unit or device.The first, the second grade word It is used for representing title, and be not offered as any specific order.
Finally it should be noted that above example is only in order to illustrate technical scheme and unrestricted, although reference Preferred embodiment has been described in detail to the present invention, it will be understood by those within the art that, can be to the present invention's Technical scheme is modified or equivalent, without deviating from the spirit and scope of technical solution of the present invention.

Claims (8)

1. a kind of gravity sensing data correcting method, is applied in electronic equipment, and described electronic equipment is included positioned at described electronics First display device in the front of equipment and be located at described electronic equipment the back side the second display device it is characterised in that institute The method of stating includes:
Obtain the gravity sensing data of the gravity sensor of described electronic equipment, the gravimetric(al) coordinates system of described gravity sensor is with institute Set up on the basis of stating the first display device;
When described second display device is in use state, determine the screen display mode of described second display device;And
Screen display mode according to described second display device corrects described gravity sensing data.
2. gravity sensing data correcting method as claimed in claim 1 is it is characterised in that described gravimetric(al) coordinates system is with described electricity The width levels of sub- equipment are X-axis positive direction to the right, with length direction straight up for Y-axis positive direction, with perpendicular to described the The direction in the front of one display device is Z axis positive direction.
3. gravity sensing data correcting method as claimed in claim 2 is it is characterised in that working as described screen display mode is horizontal stroke During screen, the described screen display mode according to described second display device corrects described gravity sensing data and includes:
When component data in Y-axis for the described gravity sensing data is not 0, and component on Z axis for the described gravity sensing data When data is not 0, component data in Y-axis for the described gravity sensing data is negated, by described gravity sensing data on Z axis Component data negate;Or
When component data in Y-axis for the described gravity sensing data is not 0, and component on Z axis for the described gravity sensing data When data is 0, component data in Y-axis for the described gravity sensing data is negated;Or
When component data in Y-axis for the described gravity sensing data is 0, and number of components on Z axis for the described gravity sensing data During according to being not 0, component data on Z axis for the described gravity sensing data is negated.
4. gravity sensing data correcting method as claimed in claim 2 is it is characterised in that working as described screen display mode is horizontal stroke During screen, the described screen display mode according to described second display device corrects described gravity sensing data and includes:
When component data in X-axis for the described gravity sensing data is not 0, and component on Z axis for the described gravity sensing data When data is not 0, component data in X-axis for the described gravity sensing data is negated, by described gravity sensing data on Z axis Component data negate;Or
When component data in X-axis for the described gravity sensing data is not 0, and component on Z axis for the described gravity sensing data When data is 0, component data in X-axis for the described gravity sensing data is negated;Or
When component data in X-axis for the described gravity sensing data is 0, and number of components on Z axis for the described gravity sensing data According to not for 0 when, component data on Z axis for the described gravity sensing data is negated.
5. a kind of gravity sensing data correction system, runs in electronic equipment, and described electronic equipment is included positioned at described electronics First display device in the front of equipment and be located at described electronic equipment the back side the second display device it is characterised in that institute The system of stating includes:
Acquisition module, for obtaining the gravity sensing data of the gravity sensor of described electronic equipment, described gravity sensor Gravimetric(al) coordinates system is set up on the basis of described first display device;
Determining module, for when described second display device is in use state, determining the screen of described second display device Display mode;And
Correction module, corrects described gravity sensing data for the screen display mode according to described second display device.
6. gravity sensing data correction system as claimed in claim 5 is it is characterised in that described gravimetric(al) coordinates system is with described electricity The width levels of sub- equipment are X-axis positive direction to the right, with length direction straight up for Y-axis positive direction, with perpendicular to described the The direction in the front of one display device is Z axis positive direction.
7. gravity sensing data correction system as claimed in claim 6 is it is characterised in that working as described screen display mode is horizontal stroke During screen, described correction module corrects described gravity sensing data according to the screen display mode of described second display device and includes:
When component data in Y-axis for the described gravity sensing data is not 0, and component on Z axis for the described gravity sensing data When data is not 0, component data in Y-axis for the described gravity sensing data is negated, by described gravity sensing data on Z axis Component data negate;Or
When component data in Y-axis for the described gravity sensing data is not 0, and component on Z axis for the described gravity sensing data When data is 0, component data in Y-axis for the described gravity sensing data is negated;Or
When component data in Y-axis for the described gravity sensing data is 0, and number of components on Z axis for the described gravity sensing data According to not for 0 when, component data on Z axis for the described gravity sensing data is negated.
8. gravity sensing data correction system as claimed in claim 6 is it is characterised in that working as described screen display mode is horizontal stroke During screen, described correction module corrects described gravity sensing data according to the screen display mode of described second display device and includes:
When component data in X-axis for the described gravity sensing data is not 0, and component on Z axis for the described gravity sensing data When data is not 0, component data in X-axis for the described gravity sensing data is negated, by described gravity sensing data on Z axis Component data negate;Or
When component data in X-axis for the described gravity sensing data is not 0, and component on Z axis for the described gravity sensing data When data is 0, component data in X-axis for the described gravity sensing data is negated;Or
When component data in X-axis for the described gravity sensing data is 0, and number of components on Z axis for the described gravity sensing data According to not for 0 when, component data on Z axis for the described gravity sensing data is negated.
CN201610754360.XA 2016-08-29 2016-08-29 Gravity sensing data correction method and system Pending CN106445083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610754360.XA CN106445083A (en) 2016-08-29 2016-08-29 Gravity sensing data correction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610754360.XA CN106445083A (en) 2016-08-29 2016-08-29 Gravity sensing data correction method and system

Publications (1)

Publication Number Publication Date
CN106445083A true CN106445083A (en) 2017-02-22

Family

ID=58090016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610754360.XA Pending CN106445083A (en) 2016-08-29 2016-08-29 Gravity sensing data correction method and system

Country Status (1)

Country Link
CN (1) CN106445083A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465817A (en) * 2017-07-26 2017-12-12 青岛海信移动通信技术股份有限公司 The processing method of mobile terminal and its motion sensor data
WO2019007325A1 (en) * 2017-07-03 2019-01-10 中兴通讯股份有限公司 Method, device, and system for obtaining sensor data, and computer readable storage medium
CN112325902A (en) * 2020-09-28 2021-02-05 中国船舶重工集团公司第七0七研究所 Method for establishing system-level online calibration reference coordinate system of gravimeter inertial component

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447868A (en) * 2007-11-30 2009-06-03 财团法人工业技术研究院 Method and system for secure data aggregation in wireless sensor networks
CN102841770A (en) * 2012-08-14 2012-12-26 王斌 Method for synchronizing gravity induction, large screen display device and mobile terminal
CN103856797A (en) * 2012-12-04 2014-06-11 深圳市同洲电子股份有限公司 Gravity sensing input method and device and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447868A (en) * 2007-11-30 2009-06-03 财团法人工业技术研究院 Method and system for secure data aggregation in wireless sensor networks
CN102841770A (en) * 2012-08-14 2012-12-26 王斌 Method for synchronizing gravity induction, large screen display device and mobile terminal
CN103856797A (en) * 2012-12-04 2014-06-11 深圳市同洲电子股份有限公司 Gravity sensing input method and device and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019007325A1 (en) * 2017-07-03 2019-01-10 中兴通讯股份有限公司 Method, device, and system for obtaining sensor data, and computer readable storage medium
CN109214242A (en) * 2017-07-03 2019-01-15 中兴通讯股份有限公司 Sensing data acquisition methods, device, system and computer readable storage medium
CN107465817A (en) * 2017-07-26 2017-12-12 青岛海信移动通信技术股份有限公司 The processing method of mobile terminal and its motion sensor data
CN112325902A (en) * 2020-09-28 2021-02-05 中国船舶重工集团公司第七0七研究所 Method for establishing system-level online calibration reference coordinate system of gravimeter inertial component

Similar Documents

Publication Publication Date Title
CN101860561B (en) Information processor and information processing method
CN106104434A (en) Touch panel device is used to determine user's handedness and orientation
CN103907139A (en) Information processing device, information processing method, and program
CN106445083A (en) Gravity sensing data correction method and system
CN102375581B (en) Touch type electronic device and the method improving its touch accuracy
CN106709471A (en) Fall detection method and device
CN107886300A (en) Billboard card management method, apparatus, computer equipment and storage medium
CN104777948B (en) Improve the method and device of Projected capacitive touch panel edge coordinate accuracy
CN113283082B (en) Centroid track generation method, centroid track generation device, computer readable storage medium and robot
CN104063074B (en) Information Display Device And Method,
CN107204044A (en) A kind of picture display process and relevant device based on virtual reality
CN106843634A (en) Screen display method of adjustment and system
US10909224B2 (en) Information processing device, information processing method, and program for tampering detection
CN112417805A (en) Pixel layout processing method and device and storage medium
JP6202874B2 (en) Electronic device, calibration method and program
CN106598366B (en) Input unit, sensor control method, electronic equipment and its control method
CN107016411B (en) Data processing method and device
CN106546261A (en) A kind of angle-data compensation method and device based on virtual reality device
CN106404234A (en) Force sensor
CN103530026A (en) Webpage pop-up box positioning method and device
CN107797652A (en) Adjust the method, apparatus and terminal of display effect
JP2017169985A (en) Information processing method, program, and information processing apparatus
US20210311621A1 (en) Swipe gestures on a virtual keyboard with motion compensation
CN107203257A (en) A kind of head pose compensation method and relevant device
CN111068325B (en) Method, device, equipment and storage medium for collecting articles in game scene

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222

RJ01 Rejection of invention patent application after publication