CN106679691B - A kind of method of adjustment, device and the mobile terminal of pedometer data - Google Patents

A kind of method of adjustment, device and the mobile terminal of pedometer data Download PDF

Info

Publication number
CN106679691B
CN106679691B CN201611198186.1A CN201611198186A CN106679691B CN 106679691 B CN106679691 B CN 106679691B CN 201611198186 A CN201611198186 A CN 201611198186A CN 106679691 B CN106679691 B CN 106679691B
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.)
Active
Application number
CN201611198186.1A
Other languages
Chinese (zh)
Other versions
CN106679691A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611198186.1A priority Critical patent/CN106679691B/en
Publication of CN106679691A publication Critical patent/CN106679691A/en
Application granted granted Critical
Publication of CN106679691B publication Critical patent/CN106679691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
    • G01C22/006Pedometers

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 method of adjustment, device and the mobile terminals of a kind of pedometer data.Wherein, this method comprises: obtaining the current measurement range of acceleration transducer;When the current measurement range and previous measurement range difference, the current pedometer numerical value of pedometer threshold registers is obtained;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 numerical value of the pedometer threshold registers is determined;The pedometer threshold registers are written into the target pedometer numerical value, for triggering.The embodiment of the present invention solves the needs according to different application, the measurement range of acceleration transducer can change, if pedometer numerical value is constant, the problem of will affect pedometer step counting accuracy, so that the pedometer threshold values of pedometer is kept constant, pedometer numerical value is adaptively adjusted, to achieve the effect that the accuracy for improving pedometer step counting.

Description

A kind of method of adjustment, device and the mobile terminal of pedometer data
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 technique
Acceleration transducer is a kind of electronic equipment that can measure acceleration, is widely used.The equipment such as mobile terminal are logical The acceleration transducer for crossing setting, can be used for game control, as acceleration transducer can detecte the change at inclination angle up and down Change, therefore realizes the direction controlling all around to object in game by tilting forward and back handheld device;It can be used for image Automatic turning realizes turning for the image of being shown by detecting spinning movement and the direction of handheld device with acceleration transducer Just;It can be used for the compensation at GPS navigation system dead angle, GPS system is by receiving three satellite-signals in 120 degree of distributions come most The orientation of object is determined eventually.In some special occasions and landforms, if tunnel, high building stand in great numbers, jungle, GPS signal meeting It dies down or even loses completely, this namely so-called dead angle.And by installing acceleration transducer and general inertial navigation additional, just It can carry out the measurement of system dead zone.Acceleration transducer is once integrated, the speed reformed into the unit time becomes Change amount, to measure the movement of the object in dead zone;It can be used for being arranged anti-hand shaking function: being set with acceleration transducer detection is hand-held Standby vibration/shaking amplitude, locks shutter when vibration/shaking amplitude is excessive, and it is clear for making captured image forever 's;It can be used for that function of flash message is arranged: showing text in the sky by brandishing handheld device realization, user oneself can write display Text.This function of flash message is the persistance of human vision using people, and the period brandished is detected with acceleration transducer, is realized The accurate positionin of shown text;It can be used for that function of passometer is arranged, since people can generate certain regularity when walking about Vibration, vibration can detecte by acceleration transducer, to calculate the step number that people is walked or the step number that running is walked.
When terminal device integrates multiple above-mentioned functions, 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 be stored in pedometer threshold registers, be to be set according to a certain default measurement range, work as acceleration After the measurement range of sensor changes, step counting inaccuracy will lead to.
Summary of the invention
In view of this, the embodiment of the present invention provides method of adjustment, device and the mobile terminal of a kind of pedometer data, to mention The accuracy of high step counting.
In a first aspect, the embodiment of the invention provides a kind of methods of adjustment of pedometer data, this method comprises:
Obtain the current measurement range of acceleration transducer;
When the current measurement range and previous measurement range difference, the current step counting 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 Walk device numerical value;
The pedometer threshold registers are written into the target pedometer numerical value, for triggering step counting.
Second aspect, the embodiment of the invention also provides a kind of adjustment device of pedometer data, which includes:
Measurement range obtains module, for obtaining the current measurement range of acceleration transducer;
Current value obtains module, for obtaining step counting when the current measurement range and previous measurement range difference The current pedometer numerical value of device threshold registers;
First threshold determination module, for determining pedometer according to the current pedometer numerical value and previous measurement range Threshold values;
Target value determining module, for determining the meter according to the pedometer threshold values and the current measurement range Walk the target pedometer numerical value of device threshold registers;
Writing module, for the pedometer threshold registers to be written in the target pedometer numerical value, for triggering Step counting.
The third aspect, the embodiment of the invention also provides a kind of mobile terminal, which includes memory, processor And store the computer program that can be run on a memory and on a processor, which is characterized in that described in the processor executes It is performed the steps of when computer program
Obtain the current measurement range of acceleration transducer;
When the current measurement range and previous measurement range difference, the current step counting 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 Walk device numerical value;
The pedometer threshold registers are written into the target pedometer numerical value, for triggering step counting.
The current measurement range that the embodiment of the present invention passes through acquisition acceleration transducer;When the current measurement range is with before When one measurement range difference, 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 pedometer threshold registers are written into the target pedometer numerical value, For triggering step counting.The embodiment of the present invention solves the needs according to different application, the measurement model of acceleration transducer Enclosing can change, if pedometer numerical value is constant, the problem of will affect the step counting accuracy of pedometer, so that the pedometer valve of pedometer Value is kept constant, and pedometer numerical value is adaptively adjusted, to achieve the effect that the accuracy for improving pedometer step counting.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the method for adjustment of pedometer data provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the method for adjustment of another pedometer data provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the method for adjustment of another pedometer data provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of the method for adjustment of another pedometer data provided in an embodiment of the present invention;
Fig. 5 is a kind of structural block diagram of the adjustment device of pedometer data provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram 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 limiting the invention.It also should be noted that in order to just In description, only some but not all contents related to the present invention are shown in the drawings.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, 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 fit For improving the accuracy of the step counting of pedometer, this method can be executed by the adjustment device of pedometer data, wherein the dress Setting can be implemented by software and/or hardware, and can generally integrate in the terminal, such as can be smart phone or tablet computer Deng.As shown in Figure 1, this method specifically comprises the 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..According to the needs of application program, acceleration transducer, which needs to be arranged, arrives different measurement ranges. It can periodically acquire 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 range, 4G measurement range or 8G measurement range, wherein G is Refer to acceleration of gravity, the i.e. quadratic power of 9.8 meter per seconds.
Illustratively, it is assumed that the current measurement range that pedometer obtains acceleration transducer is 4G measurement range.
Step 102, when the current measurement range and when previous measurement range difference, 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) for the pedometer threshold registers that measurement range determines, that is, accelerate Precision is spent, can determine pedometer threshold values.According to the needs of application program, the measurement range of acceleration transducer can change, then Make current measurement range may be different from previous measurement range, since pedometer numerical value changes not yet, 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.For the consistency of the front and back of the step counting effect of guarantee pedometer, need to guarantee that pedometer threshold values is Steady state value then needs the change according to measurement range, appropriate to adjust the pedometer number being stored in pedometer threshold registers Value.
Illustratively, if default pedometer threshold values is 320mg, which, which may not need, is stored to register, if The previous measurement range of acceleration transducer is 2G measurement range, then current measurement range (4G) and previous measurement range (2G) be no Together, the current pedometer numerical value of pedometer threshold registers need to be obtained, such as can be 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.
The relationship of pedometer threshold values Yu current pedometer numerical value and previous measurement range can be determined in the present embodiment first, And according to current pedometer numerical value and previous measurement range, pedometer threshold values is determined.
Illustratively, pedometer threshold values can be determined according to current pedometer numerical value (20) and previous measurement range (2G) For 320mg.
Step 104, according to the pedometer threshold values and the current measurement range, determine the pedometer threshold registers Target pedometer numerical value.
It, can root according to the corresponding relationship of pedometer threshold values and target pedometer numerical value and current measurement range in the present embodiment According to pedometer threshold values and current measurement range, the target pedometer numerical value of pedometer threshold registers is determined.
Illustratively, if according to pedometer threshold values (320mg) and current measurement range (4G), determine that pedometer threshold values is deposited The target pedometer numerical value of device is 10.
The pedometer threshold registers are written in the target pedometer numerical value by step 105, for triggering step counting.
Pedometer threshold registers are written into target pedometer numerical value corresponding with current measurement range in the present embodiment, with For triggering step counting.
Illustratively, pedometer threshold registers are written into target pedometer numerical value (10), for triggering step counting.
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 and previous measurement range difference, the current meter of pedometer threshold registers is obtained Walk 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 the target step counting The pedometer threshold registers are written in device numerical value, for triggering step counting.The embodiment of the present invention is solved according to application program Needs, the measurement range of acceleration transducer can change, if pedometer numerical value is constant, will affect the step counting effect one of pedometer The problem of cause property and accuracy, so that the pedometer threshold values of pedometer is kept constant, pedometer numerical value is adaptively adjusted, to reach The effect for improving the accuracy of pedometer step counting is arrived.
Fig. 2 is the method for adjustment flow diagram of another pedometer data provided in an embodiment of the present invention, the present embodiment It is optimized based on above-described embodiment, in the present embodiment, to step " according to the pedometer threshold values and the current survey Range is measured, determines the target pedometer numerical value of the pedometer threshold registers " it advanced optimizes are as follows: according to the current measurement Range 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.
Correspondingly, the method for the present embodiment includes the following steps:
Step 201, the current measurement range for obtaining acceleration transducer.
Step 202, when the current measurement range and when previous measurement range difference, 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.
It can be closed according to measurement range is 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 add Velocity accuracy can be acceleration value corresponding to the least significant bit of pedometer threshold registers.Different application programs according to The difference of its function, required acceleration precision are different.The measurement range of acceleration transducer is bigger, the acceleration precision of measurement It can be lower.
Illustratively, the digit of pedometer threshold registers is determined by hardware configuration, is certain value, therefore acceleration transducer Measurement range it is bigger, by pedometer threshold registers determine acceleration precision can be lower.
Step 205, according to the pedometer threshold values and the acceleration precision, determine the target pedometer numerical value.
According to the corresponding relationship of target pedometer numerical value and 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 relationship of acceleration precision is the ratio that target pedometer numerical value is pedometer threshold values and acceleration precision.
The pedometer threshold registers are written in the target pedometer numerical value by step 206, for triggering step counting.
The method of adjustment of pedometer data provided in an embodiment of the present invention can be determined according to the current measurement range The acceleration precision of the pedometer threshold registers;According to the pedometer threshold values and the acceleration precision, determine described in Target pedometer numerical value.The embodiment of the present invention solves the needs according to different application, the measurement model of acceleration transducer Enclosing can change, if pedometer numerical value is constant, the problem of will affect the step counting accuracy of pedometer, so that the pedometer valve of pedometer Value is kept constant, and pedometer numerical value is adaptively adjusted, to achieve the effect that the accuracy for improving pedometer step counting.
Fig. 3 is the method for adjustment flow diagram of another pedometer data provided in an embodiment of the present invention, the present embodiment It is optimized based on above-described embodiment, in the present embodiment, " meter is written into the target pedometer numerical value in step Walk device threshold registers " after, further includes: obtain the current value and upper sub-value of acceleration transducer;According to the current value 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 greater than the pedometer threshold values, step counting is triggered.
Correspondingly, the method for the present embodiment includes the following steps:
Step 301, the current measurement range for obtaining acceleration transducer.
Step 302, when the current measurement range and when previous measurement range difference, 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.
The pedometer threshold registers are written in the target pedometer numerical value by step 305, for triggering step counting.
Step 306, the current value and upper sub-value for obtaining acceleration transducer.
In the embodiment of the present invention acceleration value of primary acceleration sensor can be obtained every predetermined period.Current value The acceleration value of acceleration transducer is obtained for this period pedometer, upper sub-value is that previous cycle pedometer obtains acceleration sensing The acceleration value of device.
Step 307, according to the current value and upper sub-value, determine the jitter value of mobile terminal.
The jitter value of mobile terminal can be determined according to current value and upper sub-value in the embodiment of the present invention.It can be by last time Value subtracts jitter value of the absolute value as mobile terminal for the acceleration value that current value obtains.
The target pedometer numerical value in step 308, the acquisition 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 and current measurement range determine pedometer threshold values, and according to current pedometer numerical value and previous measurement model It encloses, determines that the principle of pedometer threshold values is identical.
Step 309, when the jitter value be greater than the pedometer threshold values when, trigger step counting.
In the embodiment of the present invention when jitter value is greater than pedometer threshold values, step counting is triggered, even if the step counting number of pedometer increases Add a unit.When jitter value is less than or equal to pedometer threshold values, step counting is not triggered, i.e. the step counting number of pedometer is constant.For The accuracy for improving pedometer step counting, when the jitter value is greater than the pedometer threshold values, triggering step counting may include: to work as When the jitter value is greater than the pedometer threshold values, the duration that jitter value is greater than pedometer threshold values is obtained;If this continues Time is greater than preset time, just triggers step counting.
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 current value 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 greater than the pedometer threshold values, touching Step counting is sent out, the embodiment of the present invention triggers step counting according to the comparison result of jitter value and the constant pedometer threshold values determined, solves 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 of causing pedometer step counting effect to change, so that pedometer step counting effect is before and after the measurement range of acceleration transducer changes It is consistent, to improve the accuracy of pedometer.
Fig. 4 is the method for adjustment flow diagram of another pedometer data provided in an embodiment of the present invention, the present embodiment It is optimized based on above-described embodiment, in the present embodiment, " the current measurement model of acceleration transducer is obtained to step Enclose " it advanced optimizes are as follows: determine that application program obtains the current frequency of acceleration transducer data;According to the current frequency, Determine the current measurement range.
Correspondingly, the method for the present embodiment includes the following steps:
Step 401 determines that application program obtains the current frequency of acceleration transducer data.
In the embodiment of the present invention, application program can according to the data such as the acceleration value of the acceleration transducer got come Trigger different function, such as can be control game, image automatic turning etc., such as realize that the application program of game control function obtains Acceleration sensing can be obtained than realizing the application program of control image self-turnover by taking the frequency of acceleration transducer data The frequency of device data is much larger, therefore realizes that the application program of different function obtains the frequency difference of acceleration transducer data.It answers The frequency for obtaining acceleration transducer data with program is bigger, illustrates that the application program is higher to the required precision of acceleration, therefore Measurement range need to be reduced.
The application program for needing to obtain acceleration transducer data in currently running application program can be obtained first, 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 application program obtains acceleration transducer data Current frequency corresponding relationship, then can obtain the current frequency of acceleration transducer data according to application program, determine current Measurement range.
Step 403, when the current measurement range and when previous measurement range difference, 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.
The pedometer threshold registers are written in the target pedometer numerical value by step 406, for triggering step counting.
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 solves According to the needs of different application, the measurement range of acceleration transducer can change, if pedometer numerical value is constant, will affect meter The problem of walking the step counting accuracy of device, so that the pedometer threshold values of pedometer is kept constant, pedometer numerical value is adaptively adjusted, from And the accuracy for improving pedometer step counting is achieved the effect that.
Fig. 5 is a kind of structural block diagram of the adjustment device of pedometer data provided in an embodiment of the present invention, which can be by Software and or hardware realization can generally integrate in the terminal, can be by executing the method for adjustment of pedometer data come to shifting The pedometer of dynamic terminal is controlled.As shown in figure 5, the device includes that measurement range obtains 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 obtains module 501, for obtaining the current measurement range of acceleration transducer;Current value Module 502 is obtained, for obtaining pedometer threshold registers when the current measurement range and previous measurement range difference Current pedometer numerical value;First threshold determination module 503 is used for according to the current pedometer numerical value and previous measurement range, Determine pedometer threshold values;Target value determining module 504 is used 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 is used for the target pedometer numerical value The pedometer threshold registers are written, for triggering step counting.
The adjustment device of pedometer data provided in an embodiment of the present invention, solves the needs according to different application, The measurement range of acceleration transducer can change, if pedometer numerical value is constant, will affect pedometer step counting same effect and The problem of accuracy, so that the pedometer threshold values of pedometer is kept constant, pedometer numerical value is adaptively adjusted, and is mentioned to reach The effect of the accuracy of high pedometer step counting.
On the basis of the above embodiments, the target value determining module 504 is specifically used 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 the above embodiments, further includes:
Acceleration information obtains module, for the step counting to be written in the target pedometer numerical value in the write module After device threshold registers, the current value and upper sub-value of acceleration transducer are obtained;
Jitter value determining module, for determining the jitter value of mobile terminal according to the current value and upper sub-value;
Second threshold determination module, for obtaining the target pedometer numerical value in the pedometer threshold registers, And determine pedometer threshold values;
Step counting trigger module, for triggering step counting when the jitter value is greater than the pedometer threshold values.
On the basis of the above embodiments, the measurement range obtains module 501 and is specifically used 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 the above embodiments, the current measurement range includes that 2G measurement range, 4G measurement range or 8G are surveyed Measure range.
The tune of pedometer data provided by any embodiment of the invention can be performed in the adjustment device of above-mentioned pedometer data Adjusting method has the corresponding functional module of execution method and beneficial effect.The not technical detail of detailed description in the present embodiment, It can be found in the method for adjustment for the pedometer data that any embodiment of that present invention provides.
The embodiment of the invention also 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, which is characterized in that the processor realized when executing the computer program with Lower step:
Obtain the current measurement range of acceleration transducer;
When the current measurement range and previous measurement range difference, the current step counting 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 Walk device numerical value;
The pedometer threshold registers are written into the target pedometer numerical value, for triggering step counting.
The mobile terminal may include the adjustment device for the pedometer data that any embodiment of that present invention provides.Fig. 6 is this The structural schematic diagram for a kind of mobile terminal that inventive embodiments provide, as shown in fig. 6, the mobile terminal may include: memory 601,602, Peripheral Interface 603, RF (Radio central processing unit (Central Processing Unit, hereinafter referred to as CPU) Frequency, radio frequency) circuit 605, voicefrequency circuit 606, loudspeaker 611, power management chip 608, input/output (I/O) System 609, touch screen 612, other input/control devicess 610 and outside port 604, these components pass through one or more Communication bus or signal wire 607 communicate.
It should be understood that illustrating the example that mobile terminal 600 is only mobile terminal, and mobile terminal 600 It can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can include one or more signal processings and/or dedicated It is realized in the combination of hardware, software or hardware and software including integrated circuit.
The mobile terminal with regard to provided in this embodiment for being integrated with the adjustment device of pedometer data carries out detailed below Description, which takes the mobile phone as an example.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 can It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU602 and deposited by Peripheral Interface 603, the Peripheral Interface 603 Reservoir 601.
I/O subsystem 609, the I/O subsystem 609 can be by the input/output peripherals in equipment, such as touch screen 602 (being equivalent to the screen in above-described embodiment) and other input/control devicess 610, are connected to Peripheral Interface 603.I/O subsystem 609 may 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, other input/control devicess 610 may include physical button (push button, rocker arm Button etc.), dial, slide switch, control stick, click idler wheel.It is worth noting that input controller 6092 can with it is following Any one connection: the indicating equipment of keyboard, infrared port, USB interface and such as mouse.
Touch screen 612, the touch screen 612 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 6091 in I/O subsystem 609 receives electric signal from touch screen 612 or sends out to touch screen 612 Electric signals.Touch screen 612 detects the contact on touch screen, and the contact that display controller 6091 will test is converted to and is shown The interaction of user interface object on touch screen 612, i.e. realization human-computer interaction, the user interface being shown on touch screen 612 Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 605 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 605 receives and sends RF letter Number, RF signal is also referred to as electromagnetic signal, and RF circuit 605 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 605 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606 is mainly used for receiving audio data from Peripheral Interface 603, which is converted to telecommunications Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611 is reduced to sound for mobile phone to be passed through RF circuit 605 from the received voice signal of wireless network And the sound is played to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface are powered And power management.
The executable following operation of CPU602 provided in an embodiment of the present invention:
Obtain the current measurement range of acceleration transducer;
When the current measurement range and previous measurement range difference, the current step counting 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 Walk device numerical value;
The pedometer threshold registers are written into the target pedometer numerical value, for triggering step counting.
Method provided by any embodiment of the invention can be performed in above-mentioned mobile terminal, has the corresponding function of execution method Module and beneficial effect.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (11)

1. a kind of method of adjustment of pedometer data, which is characterized in that the described method includes:
Obtain the current measurement range of acceleration transducer;
When the current measurement range and previous measurement range difference, 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 pedometer threshold registers are written into the target pedometer numerical value, for triggering step counting.
2. the method according to claim 1, wherein according to the pedometer threshold values and the current measurement model It encloses, determines that 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. the method according to claim 1, wherein the pedometer is written in the target pedometer numerical value After threshold registers, further includes:
Obtain the current value and upper sub-value of acceleration transducer;
According to the current value and upper sub-value, the jitter value of mobile terminal is determined;
Obtain the target pedometer numerical value in the pedometer threshold registers, and according to the target pedometer numerical value with And current measurement range determines target pedometer threshold values;
When the jitter value is greater than the target pedometer threshold values, step counting is triggered.
4. the method according to claim 1, wherein 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. method according to claim 1 to 4, which is characterized in that the current measurement range includes 2G measurement model It encloses, 4G measurement range or 8G measurement range.
6. a kind of adjustment device of pedometer data, which is characterized in that described device includes:
Measurement range obtains module, for obtaining the current measurement range of acceleration transducer;
Current value obtains module, for obtaining pedometer valve when the current measurement range and previous measurement range difference The current pedometer numerical value of value register;
First threshold determination module, for determining pedometer threshold values according to the current pedometer numerical value and previous measurement range;
Target value determining module, for determining the pedometer according to the pedometer threshold values and the current measurement range The target pedometer numerical value of threshold registers;
Writing module, for the pedometer threshold registers to be written in the target pedometer numerical value, for triggering step counting.
7. device according to claim 6, which is characterized in that the target value determining module is specifically used 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, which is characterized in that further include:
Acceleration information obtains module, for the pedometer valve to be written in the target pedometer numerical value in the write module After value register, the current value and upper sub-value of acceleration transducer are obtained;
Jitter value determining module, for determining the jitter value of mobile terminal according to the current value and upper sub-value;
Second threshold determination module, for obtaining the target pedometer numerical value in the pedometer threshold registers, and root Target pedometer threshold values is determined according to the target pedometer numerical value and current measurement range;
Step counting trigger module, for triggering step counting when the jitter value is greater than the target pedometer threshold values.
9. device according to claim 6, which is characterized in that the measurement range obtains module and is specifically used 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 device of claim 6-9, which is characterized in that the current measurement range includes 2G measurement model It encloses, 4G measurement range or 8G measurement range.
11. a kind of mobile terminal including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor performs the steps of when executing the computer program
Obtain the current measurement range of acceleration transducer;
When the current measurement range and previous measurement range difference, 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 pedometer threshold registers are written into the target pedometer numerical value, for triggering step counting.
CN201611198186.1A 2016-12-22 2016-12-22 A kind of method of adjustment, device and the mobile terminal of pedometer data Active CN106679691B (en)

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 CN106679691A (en) 2017-05-17
CN106679691B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8862394B2 (en) * 2013-01-22 2014-10-14 Ensco, Inc. System and method for tracking and locating a person, animal, or machine
CN103884870B (en) * 2014-03-13 2016-08-24 工业和信息化部电子第五研究所 The method and apparatus improving accelerometer calibration precision
CN105890619A (en) * 2014-12-25 2016-08-24 陆婷 Pedometer design based on three-axis acceleration sensor
CN105698815B (en) * 2016-03-24 2018-07-27 广东欧珀移动通信有限公司 Count the adjusting method and device of step data

Also Published As

Publication number Publication date
CN106679691A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN106225806B (en) Calibrate the method, device and mobile terminal of Magnetic Sensor
WO2017133498A1 (en) Intelligent device and intelligent device control method
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
CN111405110B (en) Screen control method and device, storage medium and mobile terminal
CN106705989B (en) step recording method, device and terminal
CN111177137B (en) Method, device, equipment and storage medium for data deduplication
CN106790978B (en) Control method, device and the mobile terminal of mobile terminal screen state
CN111049510B (en) Touch key, control method and electronic equipment
CN109814775B (en) Menu item adjusting method and device and terminal
CN109240479A (en) Air navigation aid, device, storage medium and electronic equipment
CN112162684A (en) Parameter adjusting method and device and electronic equipment
CN111651030B (en) Sensor detection method and device, storage medium and mobile terminal
US9983693B2 (en) Spatial motion-based user interactivity
CN109343066A (en) Control method, device, storage medium and the mobile terminal of proximity sensor
CN107943406B (en) touch point determining method of touch screen and terminal
CN106768311A (en) A kind of environment light detection method, device and terminal
CN111637975B (en) Wrist temperature measuring method and device, wearable device and storage medium
CN106525067B (en) A kind of control method of pedometer, device and mobile terminal
CN115686264B (en) False touch prevention method and equipment
CN106092130B (en) Step-recording method, device and the mobile terminal of pedometer
CN106293006B (en) Run the method, device and mobile terminal in Magnetic Sensor calibration algorithm library
CN109211115B (en) Measuring method and device
CN109974658A (en) Measurement method, device, storage medium and mobile terminal
US20190063948A1 (en) Electronic device for performing step counting with false-positive rejection

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
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.

GR01 Patent grant
GR01 Patent grant