Accelerometer control method, accelerometer control device and intelligent terminal
An accelerometer and smart terminal technology, applied in the direction of measurement of acceleration, speed/acceleration/impact measurement, measurement device, etc., can solve the problems of forming a splash screen, repeated switching between horizontal and vertical screens, etc., to achieve the effect of dynamic adjustment
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] A kind of accelerometer control method provided by the embodiment of the present invention is described below, please refer to figure 2 , the accelerometer control method in the embodiment of the present invention comprises:
[0048] In step S201, under the running state of the accelerometer, the current vibration situation and the reporting frequency of the smart terminal are obtained;
[0049] In the embodiment of the present invention, after the smart terminal is powered on, it is possible to detect whether the accelerometer is in the running state continuously or periodically or when a preset event is triggered; or, if the application layer of the smart terminal receives the drive of the above smart terminal If the output data of the accelerometer is reported by the upper layer, it can also be determined that the accelerometer is in the running state at this time. When it is determined that the above-mentioned accelerometer is in the running state, the current vib...
Embodiment 2
[0059] On the basis of the first embodiment above, the second embodiment of the present invention provides another accelerometer control method. The following describes the accelerometer control method provided by the embodiment of the present invention. Please refer to image 3 , the accelerometer control method in the embodiment of the present invention comprises:
[0060] In step S301, when the above-mentioned accelerometer is started, the filter control parameters of the above-mentioned accelerometer are initialized;
[0061] In the embodiment of the present invention, the filter control parameters of the accelerometer are initialized each time the accelerometer is started. Wherein, the above-mentioned filter control parameters include a filter order and a sampling frequency, the above-mentioned filter order is the order of the window sliding average digital filter adopted by the above-mentioned accelerometer, and the above-mentioned sampling frequency is the reading of th...
Embodiment 3
[0085] An embodiment of the present invention provides an accelerometer control device, such as Figure 5 As shown, the accelerometer control device 500 in the embodiment of the present invention includes:
[0086] The acquiring unit 501 is configured to acquire the current vibration situation and the reporting frequency of the smart terminal under the running state of the accelerometer, wherein the reporting frequency is that the driving layer of the smart terminal reports the output of the accelerometer to the application layer of the smart terminal The frequency of the data, the above-mentioned vibration situation indicates whether the above-mentioned smart terminal is in a vibration state;
[0087] The determining unit 502 is configured to determine the target filtering control parameters of the accelerometer based on preset filtering parameter adjustment information based on the current vibration situation and reporting frequency acquired by the acquiring unit 501, wherei...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


