CN106679691A - Adjustment method and device for pedometer data, and mobile terminal - Google Patents
Adjustment method and device for pedometer data, and mobile terminal Download PDFInfo
- Publication number
- CN106679691A CN106679691A CN201611198186.1A CN201611198186A CN106679691A CN 106679691 A CN106679691 A CN 106679691A CN 201611198186 A CN201611198186 A CN 201611198186A CN 106679691 A CN106679691 A CN 106679691A
- Authority
- CN
- China
- Prior art keywords
- pedometer
- measurement range
- current
- numerical value
- value
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C22/00—Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
- G01C22/006—Pedometers
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Measurement Of Distances Traversed On The Ground (AREA)
Abstract
The embodiment of the invention discloses an adjustment method and device for pedometer data, and a mobile terminal. The method comprises the following steps: acquiring a current measurement range of an acceleration sensor; when the current measurement range is different from the former measurement range, acquiring a current pedometer value of a pedometer threshold value register; determining a pedometer threshold value according to the current pedometer value and the former measurement range; determining a target pedometer value of the pedometer threshold value register according to the pedometer threshold value and the current measurement range; writing the target pedometer value into the pedometer threshold value register for triggering. The adjustment method for the pedometer data solves the the problem that the measurement range of the acceleration sensor may be changed according to requirements of different application programs, but if the pedometer value is unchanged, the step counting accuracy of a pedometer may be affected; therefore, the pedometer threshold value of the pedometer keeps constant; by adjustment of the applicability of the pedometer value, the effect of improving the step counting accuracy of the pedometer is achieved.
Description
Technical field
The present embodiments relate to terminal control technology, more particularly to a kind of method of adjustment of pedometer data, device and
Mobile terminal.
Background technology
Acceleration transducer is a kind of electronic equipment that can measure acceleration, is widely used.The equipment such as mobile terminal are led to
The acceleration transducer for setting is crossed, can be used for control of playing, such as acceleration transducer can detect the change at inclination angle up and down
Change, therefore the direction controlling all around to object in game is realized by tilting forward and back handheld device;Can be used for image
Automatic turning, by detecting spinning movement and the direction of handheld device with acceleration transducer, turning for display image is wanted in realization
Just;Can be used for the compensation at GPS navigation system dead angle, gps system is by receiving three in 120 degree of satellite-signals of distribution come most
The orientation of object is determined eventually.In some special occasions and landforms, such as tunnel, high building stand in great numbers, jungle, gps signal meeting
Die down or even lose completely, this namely so-called dead angle.And by installing acceleration transducer and general inertial navigation additional, just
The measurement of system dead zone can be carried out.Acceleration transducer is once integrated, the speed reformed into the unit interval becomes
Change amount, so as to measure the movement of the object in dead band;Can be used to set anti-hand shaking function:Hand-held setting is detected with acceleration transducer
Standby vibration/shaking amplitude, shutter is pinned when vibration/shaking amplitude is excessive, makes captured image be forever clear
's;Can be used to set function of flash message:Realize showing word in the air by brandishing handheld device, user can be oneself writing display
Word.This function of flash message is, using the persistance of human vision of people, the cycle brandished to be detected with acceleration transducer, is realized
Shown word is accurately positioned;Can be used to set function of passometer, because people can produce certain regularity when walking about
Vibration, vibration can be detected by acceleration transducer, so as to calculate the step number that people walked or the step number that running is walked.
When the integrated multiple above-mentioned functions of terminal device, above-mentioned different function is to the measurement range of acceleration transducer
It is required that it is different, therefore the measurement range of acceleration transducer can be switched to required measurement range by application program.Due to pedometer
Pedometer numerical value store in pedometer threshold registers, set according to a certain default measurement range, work as acceleration
After the measurement range of sensor changes, meter step can be caused inaccurate.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of method of adjustment of pedometer data, device and mobile terminal, to carry
The accuracy of height meter step.
In a first aspect, the embodiment of the invention provides a kind of method of adjustment of pedometer data, the method includes:
Obtain the current measurement range of acceleration transducer;
When the current measurement range is different from previous measurement range, the current meter step of pedometer threshold registers is obtained
Device numerical value;
According to the current pedometer numerical value and previous measurement range, pedometer threshold values is determined;
According to the pedometer threshold values and the current measurement range, the target meter of the pedometer threshold registers is determined
Step device numerical value;
The target pedometer numerical value is write into the pedometer threshold registers, for triggering meter step.
Second aspect, the embodiment of the present invention additionally provides a kind of adjusting apparatus of pedometer data, and the device includes:
Measurement range acquisition module, the current measurement range for obtaining acceleration transducer;
Current value acquisition module, for when the current measurement range is different from previous measurement range, obtaining meter step
The current pedometer numerical value of device threshold registers;
First threshold determination module, for according to the current pedometer numerical value and previous measurement range, determining pedometer
Threshold values;
Target value determining module, for according to the pedometer threshold values and the current measurement range, determining the meter
Walk the target pedometer numerical value of device threshold registers;
Writing module, for the target pedometer numerical value to be write into the pedometer threshold registers, for triggering
Meter step.
The third aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, and the mobile terminal includes memory, processor
And the computer program that store on a memory and can run on a processor, it is characterised in that described in the computing device
Following steps are realized during computer program:
Obtain the current measurement range of acceleration transducer;
When the current measurement range is different from previous measurement range, the current meter step of pedometer threshold registers is obtained
Device numerical value;
According to the current pedometer numerical value and previous measurement range, pedometer threshold values is determined;
According to the pedometer threshold values and the current measurement range, the target meter of the pedometer threshold registers is determined
Step device numerical value;
The target pedometer numerical value is write into the pedometer threshold registers, for triggering meter step.
The embodiment of the present invention is by obtaining the current measurement range of acceleration transducer;When the current measurement range with it is preceding
When one measurement range is different, the current pedometer numerical value of pedometer threshold registers is obtained;According to the current pedometer numerical value
With previous measurement range, pedometer threshold values is determined;According to the pedometer threshold values and the current measurement range, the meter is determined
Walk the target pedometer numerical value of device threshold registers;The target pedometer numerical value is write into the pedometer threshold registers,
For triggering meter step.The need for the embodiment of the present invention is solved according to different application, the measurement model of acceleration transducer
Enclosing to change, if pedometer numerical value is constant, can influence the problem of the meter step accuracy of pedometer so that the pedometer valve of pedometer
Value keeps constant, pedometer numerical value accommodation, so as to reach the effect of the degree of accuracy for improving pedometer meter step.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the method for adjustment of pedometer data provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for adjustment of another pedometer data provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for adjustment of another pedometer data provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the method for adjustment of another pedometer data provided in an embodiment of the present invention;
Fig. 5 is a kind of structured flowchart of the adjusting apparatus of pedometer data provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part rather than full content related to the present invention is illustrate only in description, accompanying drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The treatment described as flow chart or method.Although each step to be described as flow chart the treatment of order, many of which
Step can be implemented concurrently, concomitantly or simultaneously.Additionally, the order of each step can be rearranged.When its operation
The treatment can be terminated during completion, it is also possible to have the additional step being not included in accompanying drawing.The treatment can be with
Corresponding to method, function, code, subroutine, subprogram etc..
Fig. 1 is a kind of flow chart of the method for adjustment of pedometer data provided in an embodiment of the present invention, and the present embodiment can be fitted
The accuracy walked based on improving pedometer, the method can be performed by the adjusting apparatus of pedometer data, wherein the dress
Putting can be realized by software and/or hardware, typically can it is integrated in the terminal, for example can be smart mobile phone or panel computer
Deng.As shown in figure 1, the method specifically includes following steps:
Step 101, the current measurement range for obtaining acceleration transducer.
Acceleration transducer in the present embodiment can be capacitance acceleration transducer, piezoelectric acceleration transducer,
Piezoresistance type acceleration sensor etc..The need for application program, acceleration transducer needs to set to different measurement ranges.
Can periodically obtain or be triggered according to default trigger signal, to obtain the current measurement range of acceleration transducer.
Optionally, the current measurement range includes 2G measurement ranges, 4G measurement ranges or 8G measurement ranges, wherein, G is
Refer to acceleration of gravity, the i.e. quadratic power of 9.8 meter per seconds.
Exemplary, it is assumed that the current measurement range that pedometer obtains acceleration transducer is 4G measurement ranges.
Step 102, when the current measurement range is different from previous measurement range, obtain pedometer threshold registers
Current pedometer numerical value.
Pedometer numerical value in the present embodiment is storable in pedometer threshold registers, by with acceleration transducer
The LSB (Least Significant Bit, least significant bit) of the pedometer threshold registers that measurement range determines, that is, accelerate
Degree precision, it may be determined that pedometer threshold values.The need for application program, the measurement range of acceleration transducer can change, then
Make current measurement range possible from previous measurement range different, because pedometer numerical value does not change also, so current pedometer
Numerical value is the pedometer threshold values determined jointly with previous measurement range, need to obtain the current pedometer number of pedometer threshold registers
Value, to determine pedometer threshold values.It is the uniformity before and after the meter step effect for ensureing pedometer, it is necessary to ensure that pedometer threshold values is
Steady state value, then need the change according to measurement range, appropriate adjustment to store the pedometer number in pedometer threshold registers
Value.
Exemplary, if default pedometer threshold values is 320mg, the pedometer threshold values can be stored to register, if
The previous measurement range of acceleration transducer is 2G measurement ranges, then current measurement range (4G) is with previous measurement range (2G) no
Together, the current pedometer numerical value of pedometer threshold registers need to be obtained, for example, can is 20.Wherein, g is gravity and speed
Value, the i.e. quadratic power of 9.8 meter per seconds.
Step 103, according to the current pedometer numerical value and previous measurement range, determine pedometer threshold values.
Pedometer threshold values and current pedometer numerical value and the relation of previous measurement range can be first determined in the present embodiment,
And according to current pedometer numerical value and previous measurement range, determine pedometer threshold values.
Exemplary, pedometer threshold values can be determined according to current pedometer numerical value (20) and previous measurement range (2G)
It is 320mg.
Step 104, according to the pedometer threshold values and the current measurement range, determine the pedometer threshold registers
Target pedometer numerical value.
According to pedometer threshold values and the corresponding relation of target pedometer numerical value and current measurement range in the present embodiment, can root
According to pedometer threshold values and current measurement range, the target pedometer numerical value of pedometer threshold registers is determined.
Exemplary, if according to pedometer threshold values (320mg) and current measurement range (4G), determining that pedometer threshold values is deposited
The target pedometer numerical value of device is 10.
Step 105, the target pedometer numerical value is write into the pedometer threshold registers, for triggering meter step.
Target pedometer numerical value corresponding with current measurement range is write into pedometer threshold registers in the present embodiment, with
Walked based on triggering.
Exemplary, target pedometer numerical value (10) is write into pedometer threshold registers, for triggering meter step.
The method of adjustment of pedometer data provided in an embodiment of the present invention, can be by obtaining the current of acceleration transducer
Measurement range;When the current measurement range is different from previous measurement range, the current meter of pedometer threshold registers is obtained
Step device numerical value;According to the current pedometer numerical value and previous measurement range, pedometer threshold values is determined;According to the pedometer valve
Value and the current measurement range, determine the target pedometer numerical value of the pedometer threshold registers;By target meter step
Device numerical value writes the pedometer threshold registers, for triggering meter step.The embodiment of the present invention is solved according to application program
The need for, the measurement range of acceleration transducer can change, if pedometer numerical value is constant, the meter of pedometer can be influenceed to walk effect one
The problem of cause property and accuracy so that the pedometer threshold values of pedometer keeps constant, pedometer numerical value accommodation, so as to reach
The effect of the degree of accuracy for improving pedometer meter step is arrived.
Fig. 2 is the method for adjustment schematic flow sheet of another pedometer data provided in an embodiment of the present invention, the present embodiment
Optimized based on above-described embodiment, in the present embodiment, to step " according to the pedometer threshold values and the current survey
Amount scope, determines the target pedometer numerical value of the pedometer threshold registers " further it is optimized for:According to the current measurement
Scope, determines the acceleration precision of the pedometer threshold registers;According to the pedometer threshold values and the acceleration precision,
Determine the target pedometer numerical value.
Accordingly, the method for the present embodiment comprises the following steps:
Step 201, the current measurement range for obtaining acceleration transducer.
Step 202, when the current measurement range is different from previous measurement range, obtain pedometer threshold registers
Current pedometer numerical value.
Step 203, according to the current pedometer numerical value and previous measurement range, determine pedometer threshold values.
Step 204, according to the current measurement range, determine the acceleration precision of the pedometer threshold registers.
Can be according to measurement range pass corresponding with the acceleration precision of pedometer threshold registers in the embodiment of the present invention
System, and current measurement range, determine the acceleration precision of the pedometer threshold registers.Pedometer threshold registers plus
Velocity accuracy can be the acceleration magnitude corresponding to the least significant bit of pedometer threshold registers.Different application programs according to
The difference of its function, required acceleration precision is different.The measurement range of acceleration transducer is bigger, the acceleration precision of measurement
Can be lower.
Exemplary, the digit of pedometer threshold registers is determined by hardware configuration, is certain value, therefore acceleration transducer
Measurement range it is bigger, the acceleration precision determined by pedometer threshold registers can be lower.
Step 205, according to the pedometer threshold values and the acceleration precision, determine the target pedometer numerical value.
According to target pedometer numerical value and the corresponding relation of pedometer threshold values and acceleration precision in the embodiment of the present invention, with
And pedometer threshold values and acceleration precision, determine target pedometer numerical value.Wherein, target pedometer numerical value and pedometer threshold values and
The corresponding relation of acceleration precision is the ratio that target pedometer numerical value is pedometer threshold values and acceleration precision.
Step 206, the target pedometer numerical value is write into the pedometer threshold registers, for triggering meter step.
The method of adjustment of pedometer data provided in an embodiment of the present invention, can according to the current measurement range, it is determined that
The acceleration precision of the pedometer threshold registers;According to the pedometer threshold values and the acceleration precision, it is determined that described
Target pedometer numerical value.The need for the embodiment of the present invention is solved according to different application, the measurement model of acceleration transducer
Enclosing to change, if pedometer numerical value is constant, can influence the problem of the meter step accuracy of pedometer so that the pedometer valve of pedometer
Value keeps constant, pedometer numerical value accommodation, so as to reach the effect of the degree of accuracy for improving pedometer meter step.
Fig. 3 is the method for adjustment schematic flow sheet of another pedometer data provided in an embodiment of the present invention, the present embodiment
Optimized based on above-described embodiment, in the present embodiment, " the target pedometer numerical value meter is write into step
After step device threshold registers ", also include:Obtain the currency and upper sub-value of acceleration transducer;According to the currency and
Upper sub-value, determines the jitter value of mobile terminal;The target pedometer numerical value in the pedometer threshold registers is obtained, and
Determine pedometer threshold values;When the jitter value is more than the pedometer threshold values, triggering meter step.
Accordingly, the method for the present embodiment comprises the following steps:
Step 301, the current measurement range for obtaining acceleration transducer.
Step 302, when the current measurement range is different from previous measurement range, obtain pedometer threshold registers
Current pedometer numerical value.
Step 303, according to the current pedometer numerical value and previous measurement range, determine pedometer threshold values.
Step 304, according to the pedometer threshold values and the current measurement range, determine the pedometer threshold registers
Target pedometer numerical value.
Step 305, the target pedometer numerical value is write into the pedometer threshold registers, for triggering meter step.
Step 306, the currency and upper sub-value that obtain acceleration transducer.
Every predetermined period, the acceleration magnitude of primary acceleration sensor can be obtained in the embodiment of the present invention.Currency
The acceleration magnitude of acceleration transducer is obtained for this cycle pedometer, upper sub-value is that previous cycle pedometer obtains acceleration sensing
The acceleration magnitude of device.
Step 307, according to the currency and upper sub-value, determine the jitter value of mobile terminal.
The jitter value of mobile terminal can be determined according to currency and upper sub-value in the embodiment of the present invention.Can be by last time
Value subtracts the absolute value of the current acceleration magnitude being worth to as the jitter value of mobile terminal.
Step 308, the target pedometer numerical value obtained in the pedometer threshold registers, and determine pedometer valve
Value.
By obtaining the target pedometer numerical value in pedometer threshold registers in the embodiment of the present invention, and then can basis
Target pedometer numerical value determines pedometer threshold values with current measurement range, and according to current pedometer numerical value and previous measurement model
Enclose, determine that the principle of pedometer threshold values is identical.
Step 309, when the jitter value be more than the pedometer threshold values when, triggering meter step.
In the embodiment of the present invention when jitter value is more than pedometer threshold values, triggering meter step, even if the meter step number of pedometer increases
Plus a unit.When jitter value is less than or equal to pedometer threshold values, meter step is not triggered, i.e. the meter step number of pedometer is constant.For
The accuracy of pedometer meter step is improved, when the jitter value is more than the pedometer threshold values, triggering meter step can include:When
When the jitter value is more than the pedometer threshold values, duration of the jitter value more than pedometer threshold values is obtained;If this continues
Time is more than Preset Time, just triggering meter step.
The method of adjustment of pedometer data provided in an embodiment of the present invention, can be by obtaining the current of acceleration transducer
Value and upper sub-value;According to the currency and upper sub-value, the jitter value of mobile terminal is determined;Obtain the pedometer threshold values deposit
The target pedometer numerical value in device, and determine pedometer threshold values;When the jitter value is more than the pedometer threshold values, touch
Hair meter step, the embodiment of the present invention triggers meter step, solution according to jitter value with the comparative result of the constant pedometer threshold values for determining
If pedometer numerical value of having determined is constant, pedometer threshold values will change inconsequent in the measurement range of acceleration transducer, lead
The problem for causing pedometer meter step effect to change so that pedometer meter walks effect before and after the measurement range of acceleration transducer changes
It is consistent, so as to improve the accuracy of pedometer.
Fig. 4 is the method for adjustment schematic flow sheet of another pedometer data provided in an embodiment of the present invention, the present embodiment
Optimized based on above-described embodiment, in the present embodiment, " the current measurement model of acceleration transducer is obtained to step
Enclose " further it is optimized for:Determine that application program obtains the current frequency of acceleration transducer data;According to the current frequency,
Determine the current measurement range.
Accordingly, the method for the present embodiment comprises the following steps:
Step 401, the current frequency for determining application program acquisition acceleration transducer data.
In the embodiment of the present invention, application program can according to the data such as the acceleration magnitude of the acceleration transducer for getting come
Triggering difference in functionality, for example, can be control game, image automatic turning etc., such as realize that the application program of game control function is obtained
The frequency for taking acceleration transducer data can be than realizing that the application program of control image self-turnover obtains acceleration sensing
The frequency of device data is much larger, therefore realizes that the application program of difference in functionality obtains the frequency difference of acceleration transducer data.Should
The frequency for obtaining acceleration transducer data with program is bigger, illustrates that required precision of the application program to acceleration is higher, therefore
Measurement range need to be reduced.
Need to obtain the application program of acceleration transducer data in the application program that current operation can first be obtained, and
Determine that these application programs obtain the frequency of acceleration transducer data respectively, using highest frequency as the current frequency.
Step 402, according to the current frequency, determine the current measurement range.
In the embodiment of the present invention, current measurement range can be preset and obtain acceleration transducer data with application program
Current frequency corresponding relation, then can according to application program obtain acceleration transducer data current frequency, it is determined that currently
Measurement range.
Step 403, when the current measurement range is different from previous measurement range, obtain pedometer threshold registers
Current pedometer numerical value.
Step 404, according to the current pedometer numerical value and previous measurement range, determine pedometer threshold values.
Step 405, according to the pedometer threshold values and the current measurement range, determine the pedometer threshold registers
Target pedometer numerical value.
Step 406, the target pedometer numerical value is write into the pedometer threshold registers, for triggering meter step.
The method of adjustment of pedometer data provided in an embodiment of the present invention, can be by determining that application program obtains acceleration
The current frequency of sensing data;According to the current frequency, the current measurement range is determined.The embodiment of the present invention is solved
The need for different application, the measurement range of acceleration transducer can change, if pedometer numerical value is constant, can influence meter
The problem of the meter step accuracy of step device so that the pedometer threshold values of pedometer keeps constant, pedometer numerical value accommodation, from
And reached the effect of the degree of accuracy for improving pedometer meter step.
Fig. 5 is a kind of structured flowchart of the adjusting apparatus of pedometer data provided in an embodiment of the present invention, and the device can be by
Software and/or hardware realizes, typically can it is integrated in the terminal, can be by performing the method for adjustment of pedometer data come to moving
The pedometer of dynamic terminal is controlled.As shown in figure 5, the device includes that measurement range acquisition module 501, current value obtains mould
Block 502, the first threshold determination module 503, target value determining module 504 and writing module 505.
Wherein, measurement range acquisition module 501, the current measurement range for obtaining acceleration transducer;Current value
Acquisition module 502, for when the current measurement range is different from previous measurement range, obtaining pedometer threshold registers
Current pedometer numerical value;First threshold determination module 503, for according to the current pedometer numerical value and previous measurement range,
Determine pedometer threshold values;Target value determining module 504, for according to the pedometer threshold values and the current measurement range,
Determine the target pedometer numerical value of the pedometer threshold registers;Writing module 505, for by the target pedometer numerical value
The pedometer threshold registers are write, for triggering meter step.
The adjusting apparatus of pedometer data provided in an embodiment of the present invention, the need for solving according to different application,
The measurement range of acceleration transducer can change, if pedometer numerical value is constant, can influence pedometer meter walk same effect and
The problem of accuracy so that the pedometer threshold values of pedometer keeps constant, pedometer numerical value accommodation, is carried so as to reach
The effect of the degree of accuracy of pedometer meter step high.
On the basis of above-described embodiment, the target value determining module 504 specifically for:
According to the current measurement range, the acceleration precision of the pedometer threshold registers is determined;
According to the pedometer threshold values and the acceleration precision, the target pedometer numerical value is determined.
On the basis of above-described embodiment, also include:
Acceleration information acquisition module, by being walked based on said write module is described by target pedometer numerical value write-in
After device threshold registers, the currency and upper sub-value of acceleration transducer are obtained;
Jitter value determining module, for according to the currency and upper sub-value, determining the jitter value of mobile terminal;
Second threshold determination module, for obtaining the target pedometer numerical value in the pedometer threshold registers,
And determine pedometer threshold values;
Meter step trigger module, for when the jitter value is more than the pedometer threshold values, step to be counted in triggering.
On the basis of above-described embodiment, the measurement range acquisition module 501 specifically for:
Determine that application program obtains the current frequency of acceleration transducer data;
According to the current frequency, the current measurement range is determined.
On the basis of above-described embodiment, the current measurement range includes that 2G measurement ranges, 4G measurement ranges or 8G are surveyed
Amount scope.
The adjusting apparatus of above-mentioned pedometer data can perform the tune of the pedometer data that any embodiment of the present invention is provided
Adjusting method, possesses the corresponding functional module of execution method and beneficial effect.Not ins and outs of detailed description in the present embodiment,
Reference can be made to the method for adjustment of the pedometer data that any embodiment of the present invention is provided.
The embodiment of the present invention additionally provides a kind of mobile terminal, including memory, processor and storage are on a memory simultaneously
The computer program that can be run on a processor, it is characterised in that described in the computing device during computer program realize with
Lower step:
Obtain the current measurement range of acceleration transducer;
When the current measurement range is different from previous measurement range, the current meter step of pedometer threshold registers is obtained
Device numerical value;
According to the current pedometer numerical value and previous measurement range, pedometer threshold values is determined;
According to the pedometer threshold values and the current measurement range, the target meter of the pedometer threshold registers is determined
Step device numerical value;
The target pedometer numerical value is write into the pedometer threshold registers, for triggering meter step.
The mobile terminal can include the adjusting apparatus of the pedometer data that any embodiment of the present invention is provided.Fig. 6 is this
The structural representation of a kind of mobile terminal that inventive embodiments are provided, as shown in fig. 6, the mobile terminal can include:Memory
601st, central processing unit (Central Processing Unit, hereinafter referred to as CPU) 602, Peripheral Interface 603, RF (Radio
Frequency, radio frequency) circuit 605, voicefrequency circuit 606, loudspeaker 611, power management chip 608, input/output (I/O) son
System 609, touch-screen 612, other input/control devicess 610 and outside port 604, these parts pass through one or more
Communication bus or holding wire 607 communicate.
It should be understood that diagram mobile terminal 600 is only an example of mobile terminal, and mobile terminal 600
Can have than the more or less part shown in figure, can combine two or more parts, or can be with
Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special
Integrated circuit is realized in the combination of interior hardware, software or hardware and software.
The mobile terminal of the adjusting apparatus for being integrated with pedometer data for being provided with regard to the present embodiment below is carried out in detail
Description, the mobile terminal is by taking mobile phone as an example.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 can
With including high-speed random access memory, nonvolatile memory can also be included, such as one or more disk memories,
Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU602 and deposited by Peripheral Interface 603, the Peripheral Interface 603
Reservoir 601.
I/O subsystems 609, the I/O subsystems 609 can be by the input/output peripheral in equipment, such as touch-screen 602
(equivalent to the screen in above-described embodiment) and other input/control devicess 610, are connected to Peripheral Interface 603.I/O subsystems
609 can include display controller 6091 and one or more input controllers for controlling other input/control devicess 610
6092.Wherein, one or more input controllers 6092 from other input/control devicess 610 receive electric signal or to other
Input/control devices 610 sends electric signal, and other input/control devicess 610 can include physical button (pressing button, rocking arm
Button etc.), dial, slide switch, control stick, click on roller.What deserves to be explained is, input controller 6092 can with it is following
Any one connection:The instruction equipment of keyboard, infrared port, USB interface and such as mouse.
Touch-screen 612, the touch-screen 612 is the input interface and output interface between user terminal and user, can
Depending on output display to user, visual output can be including figure, text, icon, video etc..
Display controller 6091 in I/O subsystems 609 receives electric signal or is sent out to touch-screen 612 from touch-screen 612
Electric signals.Contact on the detection touch-screen of touch-screen 612, the contact that display controller 6091 will be detected is converted to and display
The interaction of the user interface object on touch-screen 612, that is, realize man-machine interaction, is displayed in the user interface on touch-screen 612
Object can be the icon of running game, the icon etc. that is networked to corresponding network.What deserves to be explained is, equipment can also include light
Mouse, light mouse is the extension for not showing the visual touch sensitive surface for exporting, or the touch sensitive surface formed by touch-screen.
RF circuits 605, are mainly used in setting up the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 605 are received and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 605 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications
Number, and communicated with communication network and other equipment by the electromagnetic signal.RF circuits 605 can be included for performing
The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one
Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, ID mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606, is mainly used in receiving voice data from Peripheral Interface 603, and the voice data is converted into telecommunications
Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611, for the voice signal for receiving mobile phone from wireless network by RF circuits 605, is reduced to sound
And play the sound to user.
Power management chip 608, for being powered by the hardware that CPU602, I/O subsystem and Peripheral Interface are connected
And power management.
The executable following operations of CPU602 provided in an embodiment of the present invention:
Obtain the current measurement range of acceleration transducer;
When the current measurement range is different from previous measurement range, the current meter step of pedometer threshold registers is obtained
Device numerical value;
According to the current pedometer numerical value and previous measurement range, pedometer threshold values is determined;
According to the pedometer threshold values and the current measurement range, the target meter of the pedometer threshold registers is determined
Step device numerical value;
The target pedometer numerical value is write into the pedometer threshold registers, for triggering meter step.
Above-mentioned mobile terminal can perform the method that any embodiment of the present invention is provided, and possess the corresponding function of execution method
Module and beneficial effect.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
More other Equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (11)
1. a kind of method of adjustment of pedometer data, it is characterised in that methods described includes:
Obtain the current measurement range of acceleration transducer;
When the current measurement range is different from previous measurement range, the current pedometer number of pedometer threshold registers is obtained
Value;
According to the current pedometer numerical value and previous measurement range, pedometer threshold values is determined;
According to the pedometer threshold values and the current measurement range, the target pedometer of the pedometer threshold registers is determined
Numerical value;
The target pedometer numerical value is write into the pedometer threshold registers, for triggering meter step.
2. method according to claim 1, it is characterised in that according to the pedometer threshold values and the current measurement model
Enclose, determining the target pedometer numerical value of the pedometer threshold registers includes:
According to the current measurement range, the acceleration precision of the pedometer threshold registers is determined;
According to the pedometer threshold values and the acceleration precision, the target pedometer numerical value is determined.
3. method according to claim 1, it is characterised in that the target pedometer numerical value is being write into the pedometer
After threshold registers, also include:
Obtain the currency and upper sub-value of acceleration transducer;
According to the currency and upper sub-value, the jitter value of mobile terminal is determined;
The target pedometer numerical value in the pedometer threshold registers is obtained, and determines pedometer threshold values;
When the jitter value is more than the pedometer threshold values, triggering meter step.
4. method according to claim 1, it is characterised in that the current measurement range for obtaining acceleration transducer includes:
Determine that application program obtains the current frequency of acceleration transducer data;
According to the current frequency, the current measurement range is determined.
5. according to any described methods of claim 1-4, it is characterised in that the current measurement range includes that 2G measures model
Enclose, 4G measurement ranges or 8G measurement ranges.
6. a kind of adjusting apparatus of pedometer data, it is characterised in that described device includes:
Measurement range acquisition module, the current measurement range for obtaining acceleration transducer;
Current value acquisition module, for when the current measurement range is different from previous measurement range, obtaining pedometer valve
The current pedometer numerical value of value register;
First threshold determination module, for according to the current pedometer numerical value and previous measurement range, determining pedometer threshold values;
Target value determining module, for according to the pedometer threshold values and the current measurement range, determining the pedometer
The target pedometer numerical value of threshold registers;
Writing module, for the target pedometer numerical value to be write into the pedometer threshold registers, for triggering meter step.
7. device according to claim 6, it is characterised in that the target value determining module specifically for:
According to the current measurement range, the acceleration precision of the pedometer threshold registers is determined;
According to the pedometer threshold values and the acceleration precision, the target pedometer numerical value is determined.
8. device according to claim 6, it is characterised in that also include:
Acceleration information acquisition module, for the target pedometer numerical value to be write into the pedometer valve in said write module
After value register, the currency and upper sub-value of acceleration transducer are obtained;
Jitter value determining module, for according to the currency and upper sub-value, determining the jitter value of mobile terminal;
Second threshold determination module, for obtaining the target pedometer numerical value in the pedometer threshold registers, and really
Determine pedometer threshold values;
Meter step trigger module, for when the jitter value is more than the pedometer threshold values, step to be counted in triggering.
9. device according to claim 6, it is characterised in that the measurement range acquisition module specifically for:
Determine that application program obtains the current frequency of acceleration transducer data;
According to the current frequency, the current measurement range is determined.
10. according to any described devices of claim 6-9, it is characterised in that the current measurement range includes that 2G measures model
Enclose, 4G measurement ranges or 8G measurement ranges.
A kind of 11. mobile terminals, including memory, processor and storage are on a memory and the calculating that can run on a processor
Machine program, it is characterised in that realize following steps during computer program described in the computing device:
Obtain the current measurement range of acceleration transducer;
When the current measurement range is different from previous measurement range, the current pedometer number of pedometer threshold registers is obtained
Value;
According to the current pedometer numerical value and previous measurement range, pedometer threshold values is determined;
According to the pedometer threshold values and the current measurement range, the target pedometer of the pedometer threshold registers is determined
Numerical value;
The target pedometer numerical value is write into the pedometer threshold registers, for triggering meter step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611198186.1A CN106679691B (en) | 2016-12-22 | 2016-12-22 | A kind of method of adjustment, device and the mobile terminal of pedometer data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611198186.1A CN106679691B (en) | 2016-12-22 | 2016-12-22 | A kind of method of adjustment, device and the mobile terminal of pedometer data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106679691A true CN106679691A (en) | 2017-05-17 |
CN106679691B CN106679691B (en) | 2019-07-09 |
Family
ID=58870192
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611198186.1A Active CN106679691B (en) | 2016-12-22 | 2016-12-22 | A kind of method of adjustment, device and the mobile terminal of pedometer data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106679691B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107635058A (en) * | 2017-07-31 | 2018-01-26 | 捷开通讯(深圳)有限公司 | The control method of mobile terminal and its Doze patterns, readable storage medium storing program for executing |
CN107690035A (en) * | 2017-11-19 | 2018-02-13 | 佛山市百里洲科技有限公司 | A kind of method of the mobile phone photograph based on acceleration transducer |
CN107896281A (en) * | 2017-11-19 | 2018-04-10 | 佛山市百里洲科技有限公司 | A kind of mobile phone of stabilization capable of taking pictures |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103884870A (en) * | 2014-03-13 | 2014-06-25 | 工业和信息化部电子第五研究所 | Method and device for improving accelerometer calibration accuracy |
US20140207374A1 (en) * | 2013-01-22 | 2014-07-24 | Ensco, Inc. | System and method for tracking and locating a person, animal, or machine |
CN105698815A (en) * | 2016-03-24 | 2016-06-22 | 广东欧珀移动通信有限公司 | Method and device for regulating step counting data |
CN105890619A (en) * | 2014-12-25 | 2016-08-24 | 陆婷 | Pedometer design based on three-axis acceleration sensor |
-
2016
- 2016-12-22 CN CN201611198186.1A patent/CN106679691B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140207374A1 (en) * | 2013-01-22 | 2014-07-24 | Ensco, Inc. | System and method for tracking and locating a person, animal, or machine |
CN103884870A (en) * | 2014-03-13 | 2014-06-25 | 工业和信息化部电子第五研究所 | Method and device for improving accelerometer calibration accuracy |
CN105890619A (en) * | 2014-12-25 | 2016-08-24 | 陆婷 | Pedometer design based on three-axis acceleration sensor |
CN105698815A (en) * | 2016-03-24 | 2016-06-22 | 广东欧珀移动通信有限公司 | Method and device for regulating step counting data |
Non-Patent Citations (1)
Title |
---|
赵宏等: "手机内置加速度传感器数据的空间坐标转换算法", 《计算机应用》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107635058A (en) * | 2017-07-31 | 2018-01-26 | 捷开通讯(深圳)有限公司 | The control method of mobile terminal and its Doze patterns, readable storage medium storing program for executing |
WO2019024720A1 (en) * | 2017-07-31 | 2019-02-07 | 惠州Tcl移动通信有限公司 | Mobile terminal and doze mode control method therefor, and readable storage medium |
CN107690035A (en) * | 2017-11-19 | 2018-02-13 | 佛山市百里洲科技有限公司 | A kind of method of the mobile phone photograph based on acceleration transducer |
CN107896281A (en) * | 2017-11-19 | 2018-04-10 | 佛山市百里洲科技有限公司 | A kind of mobile phone of stabilization capable of taking pictures |
Also Published As
Publication number | Publication date |
---|---|
CN106679691B (en) | 2019-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10234923B2 (en) | Methods and devices for waking up a screen | |
CN106225806B (en) | Calibrate the method, device and mobile terminal of Magnetic Sensor | |
US9870057B1 (en) | Gesture detection using an array of short-range communication devices | |
EP2947553A1 (en) | Touch input control method and device | |
CN105929936B (en) | Method and apparatus for the gestures detection in electronic equipment | |
WO2017133498A1 (en) | Intelligent device and intelligent device control method | |
US8928609B2 (en) | Combining touch screen and other sensing detections for user interface control | |
CN111405110B (en) | Screen control method and device, storage medium and mobile terminal | |
CN106679691B (en) | A kind of method of adjustment, device and the mobile terminal of pedometer data | |
CN109361794B (en) | Zoom control method and device of mobile terminal, storage medium and mobile terminal | |
KR20140008637A (en) | Method using pen input device and terminal thereof | |
CN107025002B (en) | Terminal application control method and device and terminal | |
CN109814775B (en) | Menu item adjusting method and device and terminal | |
CN111177137B (en) | Method, device, equipment and storage medium for data deduplication | |
CN109240479A (en) | Air navigation aid, device, storage medium and electronic equipment | |
CN106681636A (en) | Method and device capable of preventing wrong touch, and mobile terminal | |
WO2019029379A1 (en) | Interaction object control method and device, terminal and computer-readable storage medium | |
CN108759892A (en) | Sensor calibrating method, electronic device and computer readable storage medium | |
CN115686264B (en) | False touch prevention method and equipment | |
CN108362310A (en) | Determination method, apparatus, storage medium and the terminal of earth magnetism accuracy | |
US9983693B2 (en) | Spatial motion-based user interactivity | |
WO2020221109A1 (en) | Method for calculating moving distance, device, and system | |
CN109343066A (en) | Control method, device, storage medium and the mobile terminal of proximity sensor | |
CN113918258B (en) | Page scrolling processing method, device, terminal and storage medium | |
CN106768311A (en) | A kind of environment light detection method, device and 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: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |