CN107562341A - gravity sensor direction adjusting method, device and terminal - Google Patents

gravity sensor direction adjusting method, device and terminal Download PDF

Info

Publication number
CN107562341A
CN107562341A CN201710750977.9A CN201710750977A CN107562341A CN 107562341 A CN107562341 A CN 107562341A CN 201710750977 A CN201710750977 A CN 201710750977A CN 107562341 A CN107562341 A CN 107562341A
Authority
CN
China
Prior art keywords
gravity sensor
gravity
jni
application
kernel
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
CN201710750977.9A
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.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings 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 Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN201710750977.9A priority Critical patent/CN107562341A/en
Publication of CN107562341A publication Critical patent/CN107562341A/en
Pending legal-status Critical Current

Links

Abstract

The present invention provides a kind of gravity sensor direction adjusting method, device and terminal, by the lib storehouses that JNI is loaded in the regulation application of gravity sensor direction;In the gravity sensor direction, the framework layers of regulation application add the JNI interfaces;The interface of hal layers is mounted in the JNI, the kernel of the hal layers toward the gravity sensor transmits the direction regulated value of gravity sensor;The kernel of the gravity sensor is according to the direction regulated value of the gravity sensor received, modification will report to the value of the axle of gravity three of gravity application in the weight-driven node of gravity sensor, can solve the problems, such as that user can not carry out modification to gravity sensor direction.

Description

Gravity sensor direction adjusting method, device and terminal
Technical field
The present invention relates to automatic control technology field, more particularly to a kind of gravity sensor direction adjusting method, device And terminal.
Background technology
Present mobile phone has more amusement functions not only with making a phone call, the game of wherein gravity class be also it is very more, But in current Android phone and flat board, there are many transverse screen mobile phone and flat board, and many gravity game are also only supported to erect Screen mobile phone only supports transverse screen mobile phone, moreover, the direction of gravity sensor is fixed in Android frameworks, makes user couple Gravity sensor direction can not carry out modification.
The content of the invention
It is an object of the present invention to provide a kind of gravity sensor direction adjusting method, device and terminal, and it can be solved The problem of user can not carry out modification to gravity sensor direction.
The present invention provides a kind of gravity sensor direction adjusting method, and gravity sensor direction adjusting method includes:
JNI lib storehouses are loaded in the regulation application of gravity sensor direction;
In the gravity sensor direction, the framework layers of regulation application add the JNI interfaces;
The interface of hal layers is mounted in the JNI, the kernel transmission gravity of the hal layers toward the gravity sensor passes The direction regulated value of sensor;
The kernel of the gravity sensor is according to the direction regulated value of the gravity sensor received, in gravity sensor Modification will report to the value of the axle of gravity three of gravity application in weight-driven node.
Further, the direction regulated value of the gravity sensor is a number group membership.
Further, the kernel of the hal layers toward the gravity sensor transmits the direction regulated value of gravity sensor, bag Include:
The gravity sensor direction regulation that the JNI obtains user operates and sends hal layers to;
The hal layers are adjusted according to the gravity sensor direction of the user received and operated, from direction regulated value storehouse Middle poll chooses the direction regulated value of a gravity sensor and is sent to the kernel of the gravity sensor.
Further, the direction regulated value storehouse includes 8 number group memberships, the corresponding regulation side of each array member To.
Further, the kernel of the gravity sensor is weighing according to the direction regulated value of the gravity sensor received Modification will be reported to after the value of the axle of gravity three of gravity application in the weight-driven node of force snesor, including:
The instruction whether user terminates the regulation operation of gravity sensor direction is obtained,
If it is not, step is repeated below until getting the instruction that user terminates the regulation operation of gravity sensor direction:
The gravity sensor direction regulation that the JNI obtains user operates and sends hal layers to;
The hal layers are adjusted according to the gravity sensor direction of the user received and operated, from direction regulated value storehouse Middle poll chooses the direction regulated value of a gravity sensor and is sent to the kernel of the gravity sensor;
The kernel of the gravity sensor is according to the direction regulated value of the gravity sensor received, in gravity sensor Modification will report to the value of the axle of gravity three of gravity application in weight-driven node.
Further, the gravity sensor direction regulation application is the application of internal system.
Further, the gravity sensor direction regulation application is the application realized by selinux.
The present invention also provides a kind of gravity sensor direction adjusting apparatus, the gravity sensor direction adjusting apparatus bag Include:
Loading device, for loading JNI lib storehouses in the regulation application of gravity sensor direction;
The adding set to be communicated with the loading device, in gravity sensor direction regulation application Framework layers add the JNI interfaces;
The hanging device to be communicated with the loading device, for mounting the interface of hal layers, the hal layers in the JNI Toward the direction regulated value of the kernel transmission gravity sensor of the gravity sensor;
The adjusting means to be communicated with the hanging device, for the kernel for the gravity sensor according to the weight received The direction regulated value of force snesor, the gravity three that report to gravity application is changed in the weight-driven node of gravity sensor The value of axle.
The present invention also provides a kind of terminal, and the terminal includes above-mentioned gravity sensor direction adjusting apparatus.
The present invention also provides a kind of terminal, and the terminal includes:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed Manage device:
JNI lib storehouses are loaded in the regulation application of gravity sensor direction;
In the gravity sensor direction, the framework layers of regulation application add the JNI interfaces;
The interface of hal layers is mounted in the JNI, the kernel transmission gravity of the hal layers toward the gravity sensor passes The direction regulated value of sensor;
The kernel of the gravity sensor is according to the direction regulated value of the gravity sensor received, in gravity sensor Modification will report to the value of the axle of gravity three of gravity application in weight-driven node.
The application can change the value of the axle of gravity three to be reported so as to change the gravity of Consumer's Experience in weight-driven Direction.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow the above and other objects, features and advantages of the present invention can Become apparent, below especially exemplified by preferred embodiment, and coordinate accompanying drawing, describe in detail as follows.
Brief description of the drawings
Fig. 1 is a kind of structural representation of terminal.
Fig. 2 is the schematic flow sheet for the gravity sensor direction adjusting method that first embodiment of the invention provides.
Fig. 3 is the schematic flow sheet for the gravity sensor direction adjusting method that second embodiment of the invention provides.
Fig. 4 is the schematic flow sheet for the gravity sensor direction adjusting method that third embodiment of the invention provides.
Fig. 5 is the application principle figure of gravity sensor direction adjusting method as shown in Figure 4.
Fig. 6 is the schematic flow sheet for the gravity sensor direction adjusting method that fourth embodiment of the invention provides.
Fig. 7 is the structural representation for the gravity sensor direction adjusting apparatus that fifth embodiment of the invention provides.
Fig. 8 is the structural representation for the terminal that sixth embodiment of the invention provides.
Embodiment
Further to illustrate the present invention to reach the technological means and effect that predetermined goal of the invention is taken, below in conjunction with Accompanying drawing and preferred embodiment, to according to gravity sensor direction proposed by the present invention adjusting method, device and terminal, it is specific real Mode, method, step, structure, feature and its effect are applied, is described in detail as follows.
For the present invention foregoing and other technology contents, feature and effect, in the following preferable reality coordinated with reference to schema Applying in the detailed description of example to clearly appear from.By the explanation of embodiment, when predetermined mesh can be reached to the present invention The technological means taken and effect be able to more deeply and it is specific understand, but institute's accompanying drawings are only to provide with reference to saying It is bright to be used, not it is used for being any limitation as the present invention.
Fig. 1 shows a kind of structured flowchart of terminal.The present invention gravity sensor direction adjusting method can with but it is unlimited In applied to terminal as shown in Figure 1, wearable device etc. can also be applied to.As shown in figure 1, terminal 10 includes memory 102nd, storage control 104, one or more (one is only shown in figure) processors 106, Peripheral Interface 108, radio-frequency module 110th, locating module 112, photographing module 114, audio-frequency module 116, screen 118 and key-press module 120.These components pass through one Bar or a plurality of communication bus/signal wire 122 mutually communicate.
It is appreciated that the structure shown in Fig. 1 is only to illustrate, terminal 10 may also include more more or less than shown in Fig. 1 Component, or there is the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can use hardware, software or its combination Realize.
Memory 102 can be used for storage software program and module, such as the gravity sensor direction in the embodiment of the present invention Programmed instruction/module corresponding to adjusting method and device, processor 106 are stored in soft in storage control 104 by operation Part program and module, so as to perform various function application and data processing, that is, realize that above-mentioned gravity sensor direction is adjusted Save method and device.
Memory 102 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 102 can further comprise Relative to the remotely located memory of processor 106, these remote memories can pass through network connection to terminal 10.Above-mentioned net The example of network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 106 and Access of other possible components to memory 102 can be carried out under the control of storage control 104.
Various input/output devices are coupled to CPU and memory 102 by Peripheral Interface 108.The operation of processor 106 is deposited Various softwares in reservoir 102, instruction are to perform the various functions of terminal 10 and carry out data processing.
In certain embodiments, Peripheral Interface 108, processor 106 and storage control 104 can be in one single chips Realize.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 110 is used to receiving and sending electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, so that with Communication network or other equipment are communicated.Radio-frequency module 110 may include the various existing electricity for being used to perform these functions Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, Memory etc..Radio-frequency module 110 can be communicated or led to various networks such as internet, intranet, wireless network Wireless network is crossed to be communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standards, agreement and technology, and including but not limited to the whole world is mobile logical Letter system (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division Multiple access, W-CDMA), CDMA (Code division access, CDMA), TDMA (time division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, IMU The agreement of news and short message, and any other suitable communications protocol, or even may include that those are not developed currently yet Agreement.
Locating module 112 is used for the current location for obtaining terminal 10.The example of locating module 112 includes but is not limited to the whole world Global position system (GPS), the location technology based on WLAN or mobile radio communication.
Photographing module 114 is used to shoot photo or video.The photo or video of shooting can be stored to memory 102 It is interior, and can be sent by radio-frequency module 110.
Audio-frequency module 116 provides a user COBBAIF, and it may include one or more microphones, one or more raises Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data at Peripheral Interface 108, and voice data is converted into power information, Power information is transmitted to loudspeaker.Loudspeaker is converted to power information the sound wave that human ear can hear.Voicefrequency circuit is also from microphone Place receives power information, converts electrical signals to voice data, and by data transmission in network telephony into Peripheral Interface 108 to enter traveling one The processing of step.Voice data can obtain at memory 102 or by radio-frequency module 110.In addition, voice data can also Store into memory 102 or be transmitted by radio-frequency module 110.In some instances, audio-frequency module 116 may also include One earphone broadcasts hole, for providing COBBAIF to earphone or other equipment.
Screen 118 provides an output interface between terminal 10 and user.Specifically, screen 118 is shown to user regards Frequency exports, and the content of these video frequency outputs may include word, figure, video and its any combination.Some output results are corresponding In some user interface objects.It should be understood that screen 118 can also include Touch Screen.Touch Screen is in terminal 10 with using One output and inputting interface are provided simultaneously between family.Except showing video frequency output to user, Touch Screen also receives user's Input, such as the gesture operation such as the click of user, slip, so that input of the user interface object to these users responds. The technology of detection user's input can be based on resistance-type, condenser type or other any possible touch control detection technologies.Touch-control The instantiation of screen display unit includes but is not limited to liquid crystal display or light emitting polymer displays.
Key-press module 120 equally provides user's interface inputted to terminal 10, and user can be different by pressing Button is so that terminal 10 performs different functions.
Fig. 2 is the schematic flow sheet for the gravity sensor direction adjusting method that first embodiment of the invention provides.Such as Fig. 2 institutes Show, gravity sensor direction adjusting method comprises the following steps:
Step S21:JNI lib storehouses are loaded in the regulation application of gravity sensor direction;
Here, JNI lib storehouses can be the JNI of C Plus Plus lib storehouses;
Step S22:In the gravity sensor direction, the framework layers of regulation application add the JNI interfaces;
Step S23:The interface of hal layers is mounted in the JNI, the kernel of the hal layers toward the gravity sensor passes Send the direction regulated value of gravity sensor;
Step S24:The kernel of the gravity sensor is according to the direction regulated value of the gravity sensor received, in gravity Modification will report to the value of the axle of gravity three of gravity application in the weight-driven node of sensor.
Here, the application that the gravity application, which can be game of gravity class etc., to be needed to obtain weight parameter to perform.
In the present embodiment, can gravity sensor direction adjust APP in load JNI lib storehouses, first we Framework layers add jni interfaces, the mounting hal layer interfaces in JNI, weight-driven equipment directly corresponding to operation in hal layers Node and toward kernel biography value, after kernel receives, the value of the axle of gravity three to be reported of being modified in weight-driven is so as to changing Become the gravity direction of Consumer's Experience.
Fig. 3 is the schematic flow sheet for the gravity sensor direction adjusting method that second embodiment of the invention provides.Such as Fig. 3 institutes The gravity sensor direction adjusting method shown, comprises the following steps:
Step S31:JNI lib storehouses are loaded in the regulation application of gravity sensor direction;
Here, JNI lib storehouses can be the JNI of C Plus Plus lib storehouses;
Step S32:In the gravity sensor direction, the framework layers of regulation application add the JNI interfaces;
Step S33:The interface of hal layers is mounted in the JNI, the kernel of the hal layers toward the gravity sensor passes Send the direction regulated value of the gravity sensor of array member's form;
Step S34:The kernel of the gravity sensor is according to the direction of the gravity sensor of the group membership's form received Regulated value, the value for the axle of gravity three that report to gravity application is changed in the weight-driven node of gravity sensor.
Here, in bottom layer driving, direction can be adjusted to one kind by a number group membership.Because direction is impossible It is infinite, it can once change a direction to realize that user often clicks on by array circulation and can be recycled to the side of normal use To value.For example, 8 arrays can be preset to correspond to 8 kinds of different directions.
Fig. 4 is the schematic flow sheet for the gravity sensor direction adjusting method that third embodiment of the invention provides.Such as Fig. 4 institutes Show, gravity sensor direction adjusting method comprises the following steps:
Step S41:JNI lib storehouses are loaded in the regulation application of gravity sensor direction;
Here, JNI lib storehouses can be the JNI of C Plus Plus lib storehouses;
Step S42:In the gravity sensor direction, the framework layers of regulation application add the JNI interfaces;
Step S43:The interface of hal layers is mounted in the JNI;
Step S44:The gravity sensor direction regulation that the JNI obtains user operates and sends hal layers to;
Step S45:The hal layers are adjusted according to the gravity sensor direction of the user received and operated, from direction Poll chooses the direction regulated value of a gravity sensor and is sent to the kernel of the gravity sensor in regulated value storehouse;
Step S46:The kernel of the gravity sensor is according to the direction regulated value of the gravity sensor received, in gravity Modification will report to the value of the axle of gravity three of gravity application in the weight-driven node of sensor.
Here, a button program can be designed, user changes the direction of the gravity sensor of mobile phone by this button So as to allow all gravity game and gravity application perfection to run.
For example, as shown in figure 5, the flow of user's operation can be as follows:
Step S51:Acquisition user applies in the regulation of gravity sensor direction and regulation button is clicked on interface;
Step S52:The direction regulated value that a gravity sensor is chosen in the regulation of gravity sensor direction using poll is carried out Direction adjusts;
Step S53:Obtain whether user is satisfied with to plan gravity sensor direction after adjustment,
If satisfied, step S54 terminates;
If dissatisfied, performed again since step S51.
Fig. 6 is the schematic flow sheet for the gravity sensor direction adjusting method that fourth embodiment of the invention provides.Such as Fig. 6 institutes Show, gravity sensor direction adjusting method comprises the following steps:
Step S61:JNI lib storehouses are loaded in the regulation application of gravity sensor direction;
Here, JNI lib storehouses can be the JNI of C Plus Plus lib storehouses;
Step S62:In the gravity sensor direction, the framework layers of regulation application add the JNI interfaces;
Step S63:The interface of hal layers is mounted in the JNI;
Step S64:The gravity sensor direction regulation that the JNI obtains user operates and sends hal layers to;
Step S65:The hal layers are adjusted according to the gravity sensor direction of the user received and operated, from direction Poll chooses the direction regulated value of a gravity sensor and is sent to the kernel of the gravity sensor in regulated value storehouse;
Step S66:The kernel of the gravity sensor is according to the direction regulated value of the gravity sensor received, in gravity Modification will report to the value of the axle of gravity three of gravity application in the weight-driven node of sensor;
Step S67:The instruction whether user terminates the regulation operation of gravity sensor direction is obtained,
If so, then step S68:Terminate;
If it is not, it is repeated below S64~S67.
The gravity sensor direction regulation application can be the application of internal system.
The gravity sensor direction regulation application can also be the application realized by selinux.
Here, the application could be arranged to internal system APP in gravity sensor direction APP, rights concerns, can also lead to Selinux solutions are crossed, do not influence android certifications.
Fig. 7 is the structural representation for the gravity sensor direction adjusting apparatus that fifth embodiment of the invention provides.Such as Fig. 7 institutes Show, a kind of gravity sensor direction adjusting apparatus, including loading device 70, communicated with the loading device adding set 71, The hanging device 72 to be communicated with the loading device and the adjusting means 73 to be communicated with the hanging device.
Wherein, loading device 70, for loading JNI lib storehouses in the regulation application of gravity sensor direction;
The adding set 71 to be communicated with the loading device, in gravity sensor direction regulation application Framework layers add the JNI interfaces;
The hanging device 72 to be communicated with the loading device, for mounting the interface of hal layers, the hal in the JNI Direction regulated value of the layer toward the kernel transmission gravity sensor of the gravity sensor;
The adjusting means 73 that is communicated with the hanging device, for the kernel for the gravity sensor according to receiving The direction regulated value of gravity sensor, the gravity that report to gravity application is changed in the weight-driven node of gravity sensor The value of three axles.
Fig. 8 is the structural representation for the terminal that sixth embodiment of the invention provides.As shown in figure 8, terminal passes including gravity Sensor direction adjusting apparatus 80, the concrete structure of gravity sensor direction adjusting apparatus 80 refer to Fig. 7, will not be repeated here. The concrete structure of terminal can be with reference chart 1.
The application also provides a kind of terminal, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed Manage device:
JNI lib storehouses are loaded in the regulation application of gravity sensor direction;
In the gravity sensor direction, the framework layers of regulation application add the JNI interfaces;
The interface of hal layers is mounted in the JNI, the kernel transmission gravity of the hal layers toward the gravity sensor passes The direction regulated value of sensor;
The kernel of the gravity sensor is according to the direction regulated value of the gravity sensor received, in gravity sensor Modification will report to the value of the axle of gravity three of gravity application in weight-driven node.
The concrete structure of terminal can be with reference chart 1.
In summary, the application can change the value of the axle of gravity three to be reported so as to change user's body in weight-driven The gravity direction tested.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to. For system class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.
The above described is only a preferred embodiment of the present invention, any formal limitation not is made to the present invention, though So the present invention is disclosed above with preferred embodiment, but is not limited to the present invention, any to be familiar with this professional technology people Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification For the equivalent embodiment of equivalent variations, as long as being the technical spirit pair according to the present invention without departing from technical solution of the present invention content Any simple modification, equivalent change and modification that above example is made, in the range of still falling within technical solution of the present invention.

Claims (10)

1. a kind of gravity sensor direction adjusting method, it is characterised in that gravity sensor direction adjusting method includes:
JNI lib storehouses are loaded in the regulation application of gravity sensor direction;
In the gravity sensor direction, the framework layers of regulation application add the JNI interfaces;
The interface of hal layers is mounted in the JNI, the kernel of the hal layers toward the gravity sensor transmits gravity sensor Direction regulated value;
The kernel of the gravity sensor is according to the direction regulated value of the gravity sensor received, in the gravity of gravity sensor Modification will report to the value of the axle of gravity three of gravity application in driving node.
2. gravity sensor direction as claimed in claim 1 adjusting method, it is characterised in that the direction of the gravity sensor Regulated value is a number group membership.
3. gravity sensor direction as claimed in claim 2 adjusting method, it is characterised in that the hal layers are toward the gravity The direction regulated value of the kernel transmission gravity sensor of sensor, including:
The gravity sensor direction regulation that the JNI obtains user operates and sends hal layers to;
The hal layers are adjusted according to the gravity sensor direction of the user received and operated, and are taken turns from the regulated value storehouse of direction Ask the direction regulated value for choosing a gravity sensor and be sent to the kernel of the gravity sensor.
4. gravity sensor direction as claimed in claim 3 adjusting method, it is characterised in that the direction regulated value storehouse Zhong Bao Include 8 number group memberships, the corresponding regulation direction of each array member.
5. gravity sensor direction as claimed in claim 1 adjusting method, it is characterised in that the kernel of the gravity sensor According to the direction regulated value of the gravity sensor received, weight will be reported to by being changed in the weight-driven node of gravity sensor After the value of the axle of gravity three of power application, including:
The instruction whether user terminates the regulation operation of gravity sensor direction is obtained,
If it is not, step is repeated below until getting the instruction that user terminates the regulation operation of gravity sensor direction:
The gravity sensor direction regulation that the JNI obtains user operates and sends hal layers to;
The hal layers are adjusted according to the gravity sensor direction of the user received and operated, and are taken turns from the regulated value storehouse of direction Ask the direction regulated value for choosing a gravity sensor and be sent to the kernel of the gravity sensor;
The kernel of the gravity sensor is according to the direction regulated value of the gravity sensor received, in the gravity of gravity sensor Modification will report to the value of the axle of gravity three of gravity application in driving node.
6. gravity sensor direction as claimed in claim 5 adjusting method, it is characterised in that adjust in the gravity sensor direction Section application is the application of internal system.
7. gravity sensor direction as claimed in claim 1 adjusting method, it is characterised in that adjust in the gravity sensor direction Section application is the application realized by selinux.
A kind of 8. gravity sensor direction adjusting apparatus, it is characterised in that including:
Loading device, for loading JNI lib storehouses in the regulation application of gravity sensor direction;
The adding set to be communicated with the loading device, for the framework in gravity sensor direction regulation application Layer adds the JNI interfaces;
The hanging device to be communicated with the loading device, for mounting the interface of hal layers in the JNI, the hal layers are toward institute State the direction regulated value of the kernel transmission gravity sensor of gravity sensor;
The adjusting means to be communicated with the hanging device, passed for the kernel for the gravity sensor according to the gravity received The direction regulated value of sensor, the axle of gravity three that gravity is applied will be reported to by being changed in the weight-driven node of gravity sensor Value.
9. a kind of terminal, it is characterised in that the terminal includes gravity sensor direction as claimed in claim 8 regulation dress Put.
A kind of 10. terminal, it is characterised in that including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the processing when executed Device:
JNI lib storehouses are loaded in the regulation application of gravity sensor direction;
In the gravity sensor direction, the framework layers of regulation application add the JNI interfaces;
The interface of hal layers is mounted in the JNI, the kernel of the hal layers toward the gravity sensor transmits gravity sensor Direction regulated value;
The kernel of the gravity sensor is according to the direction regulated value of the gravity sensor received, in the gravity of gravity sensor Modification will report to the value of the axle of gravity three of gravity application in driving node.
CN201710750977.9A 2017-08-28 2017-08-28 gravity sensor direction adjusting method, device and terminal Pending CN107562341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710750977.9A CN107562341A (en) 2017-08-28 2017-08-28 gravity sensor direction adjusting method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710750977.9A CN107562341A (en) 2017-08-28 2017-08-28 gravity sensor direction adjusting method, device and terminal

Publications (1)

Publication Number Publication Date
CN107562341A true CN107562341A (en) 2018-01-09

Family

ID=60975997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710750977.9A Pending CN107562341A (en) 2017-08-28 2017-08-28 gravity sensor direction adjusting method, device and terminal

Country Status (1)

Country Link
CN (1) CN107562341A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004184659A (en) * 2002-12-03 2004-07-02 Sharp Corp Information equipment
CN103631467A (en) * 2012-08-20 2014-03-12 华为终端有限公司 Method for regulating display content and mobile terminal
CN103870289A (en) * 2012-12-10 2014-06-18 联想(北京)有限公司 Display mode adjusting method and electronic device
CN105872166A (en) * 2016-06-12 2016-08-17 重庆蓝岸通讯技术有限公司 Method for directly adapting gravity sensor without code modification
CN105867655A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Method and device for user to define actions to control alarm clock of intelligent mobile terminal
CN106027365A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Information interaction method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004184659A (en) * 2002-12-03 2004-07-02 Sharp Corp Information equipment
CN103631467A (en) * 2012-08-20 2014-03-12 华为终端有限公司 Method for regulating display content and mobile terminal
CN103870289A (en) * 2012-12-10 2014-06-18 联想(北京)有限公司 Display mode adjusting method and electronic device
CN105867655A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Method and device for user to define actions to control alarm clock of intelligent mobile terminal
CN106027365A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Information interaction method and device
CN105872166A (en) * 2016-06-12 2016-08-17 重庆蓝岸通讯技术有限公司 Method for directly adapting gravity sensor without code modification

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张承寰: ""基于Android平台的通用传感器系统的设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Similar Documents

Publication Publication Date Title
CN112136304A (en) Electronic device for performing network connection based on data transmission of application and method thereof
CN106105054B (en) Mthods, systems and devices for crosspoint Bluetooth communication
WO2021129525A1 (en) Antenna circuit, electronic device, and antenna performance adjustment method
CN104965848B (en) A kind of front end resource loading method and device
CN110324859A (en) Transfer resource selection method, configuration method, terminal and the network equipment of secondary link
CN105760127A (en) Screen transfer method, screen transfer device and mobile terminal
CN108307432B (en) WiFi control method, mobile terminal and computer-readable storage medium
CN110401473A (en) Dynamic adjusts method, mobile terminal and the storage medium of transmission power
JP7345062B2 (en) Relay connection establishment method and equipment
CN109525999B (en) DMRS (demodulation reference signal) determining method, configuration method, terminal and base station
CN107329729A (en) Volume adjusting method, volume adjustment device and terminal
CN107787006A (en) Hotspot network quality detection method, mobile terminal and storage medium
CN108307433A (en) Hotspot sharing method, mobile terminal and computer readable storage medium
CN110022592A (en) A kind of method for network access, mobile terminal and server
CN108449203A (en) One parameter configuration method, the network equipment and computer readable storage medium
CN110391885A (en) Information transferring method, the network equipment and the terminal of unauthorized frequency range
CN107766088A (en) Interface optimization method, system and computer-readable recording medium
CN110062416A (en) The notice of resources relationship determines method, base station and terminal
CN107562341A (en) gravity sensor direction adjusting method, device and terminal
WO2022218196A1 (en) Transmission power control method and related device
CN109358796A (en) A kind of game visual field sharing method, terminal and readable storage medium storing program for executing
CN111315031A (en) Uplink transmission method, terminal and network equipment
CN107734493A (en) A kind of main screen shows regular adaptation method, device and computer-readable recording medium
CN107515745A (en) A kind of picture mark position self-adapting regulation method and equipment
CN107231646A (en) Flow managing method, device and terminal based on double-terminal

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
CB02 Change of applicant information

Address after: 518057 Room1702-1703, Room 1702-1703, Label 1, Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 1702-1703

Applicant after: Shenzhen acoustic Cmi Holdings Ltd

Address before: 518057 Room1702-1703, Room 1702-1703, Label 1, Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 1702-1703

Applicant before: Shenzhen sound Holdings Limited

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20180109

RJ01 Rejection of invention patent application after publication