CN106231131A - A kind of method and apparatus adding up step number - Google Patents

A kind of method and apparatus adding up step number Download PDF

Info

Publication number
CN106231131A
CN106231131A CN201610835286.4A CN201610835286A CN106231131A CN 106231131 A CN106231131 A CN 106231131A CN 201610835286 A CN201610835286 A CN 201610835286A CN 106231131 A CN106231131 A CN 106231131A
Authority
CN
China
Prior art keywords
preset time
step number
output data
detected
body shake
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610835286.4A
Other languages
Chinese (zh)
Inventor
周龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610835286.4A priority Critical patent/CN106231131A/en
Publication of CN106231131A publication Critical patent/CN106231131A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/21Combinations with auxiliary equipment, e.g. with clocks or memoranda pads
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Abstract

The invention discloses a kind of method and apparatus adding up step number, the method includes: judge whether to detect body shake in Preset Time;If body shake being detected in Preset Time, then according to the vibrations number of times in Preset Time, update step number;Otherwise, according to arm number of times of inswept leg in Preset Time, update step number.The present invention, on the basis of by detection body shake statistics step number, walks error according to the number of times correction meter of the inswept leg of arm, makes meter step more accurate.

Description

A kind of method and apparatus adding up step number
Technical field
The present invention relates to field of measuring technique, particularly relate to a kind of method and apparatus adding up step number.
Background technology
Along with living standard and the raising of human-subject test, people increasingly pay close attention to own health and daily exercise, and statistics is every The step number of it walking, as a kind of effective means monitoring exercise, is widely used in the application of mobile terminal.
In prior art, mobile phone and tradition pedometer detect user by self built-in acceleration transducer and walk time institute The vibrations produced, are analyzed the output data of acceleration transducer, and then obtain the step number of user's walking by coprocessor.So And, when produced vibrations are less when the user walks, it is impossible to accelerated degree sensor detects, the step number counted can be caused Error occurs.
Summary of the invention
Present invention is primarily targeted at a kind of method and apparatus adding up step number of proposition, it is intended to solve prior art and occur The defect of meter step error.
For achieving the above object, a kind of method adding up step number that the present invention provides, including:
Judge whether to detect body shake in Preset Time;
If body shake being detected in Preset Time, then according to the vibrations number of times in Preset Time, update step number;No Then, according to arm number of times of inswept leg in Preset Time, update step number.
Additionally, for achieving the above object, the present invention also proposes a kind of device adding up step number, including:
First judge module, is used for judging whether to detect body shake in Preset Time;
First more new module, in time body shake being detected in Preset Time, according to the vibrations in Preset Time time Number, updates step number;
Second more new module, in time being not detected by body shake in Preset Time, according to arm at Preset Time The number of times of interior inswept leg, updates step number.
The present invention is on the basis of by detection body shake statistics step number, according to the number of times correction meter of the inswept leg of arm Step error, makes meter step more accurate.
Other features and advantages of the present invention will illustrate in the following description, and, partly become from description Obtain it is clear that or understand by implementing the present invention.The purpose of the present invention and other advantages can be by description, rights Structure specifically noted in claim and accompanying drawing realizes and obtains.
Accompanying drawing explanation
Accompanying drawing is used for providing being further appreciated by technical solution of the present invention, and constitutes a part for description, with this The embodiment of application is used for explaining technical scheme together, is not intended that the restriction to technical solution of the present invention.
Fig. 1 is the hardware architecture diagram realizing each optional mobile terminal of embodiment one of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of method flow diagram adding up step number of first embodiment of the invention;
Fig. 4 is a kind of method flow diagram adding up step number of second embodiment of the invention;
Arm action schematic diagram when Fig. 5 is the walking of second embodiment of the invention;
Fig. 6 is the schematic diagram of the output data of the single proximity transducer of second embodiment of the invention;
Fig. 7 is the schematic diagram of the output data of multiple proximity transducers of second embodiment of the invention;
Fig. 8 is a kind of method flow diagram adding up step number of third embodiment of the invention;
Fig. 9 is a kind of structure drawing of device adding up step number of fourth embodiment of the invention.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use is used for The suffix of such as " module ", " parts " or " unit " of expression element is only for the explanation of the beneficially present invention, and itself is not There is specific meaning.Therefore, " module " can mixedly use with " parts ".
Terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include such as mobile phone, Smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP are (portable Multimedia player), the mobile terminal of guider etc. and the fixed terminal of such as numeral TV, desk computer etc.. Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for mobile purpose Outside element, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal realizing each optional mobile terminal of embodiment one of the present invention.
Mobile terminal 100 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assembly, it should be understood that be not required for implementing all groups illustrated Part.Can alternatively implement more or less of assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows mobile terminal 100 and wireless communication system Or the radio communication between network.Such as, wireless communication unit can include broadcast reception module 111, mobile communication module 112, at least one in wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcasting management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be to generate and send Broadcast singal and/or the server of broadcast related information or the broadcast singal generated before receiving and/or broadcast related information And send it to the server of terminal.Broadcast singal can include that TV broadcast singal, radio signals, data are broadcasted Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Pass information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, and such as, it can be with the electronics of DMB (DMB) Program guide (EPG), the form of electronic service guidebooks (ESG) etc. of digital video broadcast-handheld (DVB-H) and exist.Broadcast Receiver module 111 can be broadcasted by using various types of broadcast systems to receive signal.Especially, broadcast reception module 111 Can be by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video wide Broadcast-hand-held (DVB-H), the Radio Data System of forward link media (MediaFLO@), received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcast reception module 111 may be constructed such that and is adapted to provide for extensively Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcast reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memorizer 160 (or other type of storage medium).
Mobile communication module 112 sends radio signals to base station (such as, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can include that voice leads to Words signal, video calling signal or the various types of data sending according to text and/or Multimedia Message and/or receiving.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant Tooth TM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee TM etc..
Positional information module 115 is the module of positional information for checking or obtain mobile terminal.Positional information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 calculates from three or more satellites Range information and correct time information and for the Information application triangulation calculated, thus according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, the method use three being used for calculating position and temporal information is defended Star and by using the position and the error of temporal information that other satellite correction calculates.Additionally, GPS module 115 Velocity information can be calculated by Continuous plus current location information in real time.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include camera 121 He Mike 1220, the camera 121 static map to being obtained by image capture apparatus in Video Capture pattern or image capture mode The view data of sheet or video processes.Picture frame after process may be displayed on display unit 151.At camera 121 Picture frame after reason can be stored in memorizer 160 (or other storage medium) or carry out via wireless communication unit 110 Send, two or more cameras 1210 can be provided according to the structure of mobile terminal.Mike 122 can be at telephone relation mould Formula, logging mode, speech recognition mode etc. operational mode receives sound (voice data) via mike, and can be by Such acoustic processing is voice data.Audio frequency (voice) data after process can be changed in the case of telephone calling model For can be sent to the form output of mobile communication base station via mobile communication module 112.Mike 122 can implement all kinds Noise eliminate (or suppression) algorithm with the noise eliminating (or suppression) and producing during receiving and send audio signal or Person disturbs.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user's input Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (such as, detection due to touched and cause resistance, pressure, the sensitive component of change of electric capacity etc.), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal Orientation, the acceleration or deceleration of mobile terminal 100 of 100 move and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense This sliding-type phone opens or cuts out.It addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 can include that proximity transducer 1410 will combine below This is described by touch screen.
Interface unit 170 is used as at least one external device (ED) and is connected, with mobile terminal 100, the interface that can pass through.Such as, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, for connect have the port of device of identification module, audio frequency input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is for verifying that user uses each of mobile terminal 100 Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..It addition, the device (hereinafter referred to as " identifying device ") with identification module can be to take the form of smart card, therefore, know Other device can be connected with mobile terminal 100 via port or other attachment means.Interface unit 170 may be used for receive from The input (such as, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements or may be used between mobile terminal and external device (ED) transmit data.
It addition, when mobile terminal 100 is connected with external base, interface unit 170 can serve as allowing electricity by it Power provides the path of mobile terminal 100 from base or can serve as allowing from the various command signals of base input by it It is transferred to the path of mobile terminal.May serve as identifying that mobile terminal is from various command signals or the electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio frequency and/or tactile manner Go out signal (such as, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 100.Such as, it is in electricity when mobile terminal 100 During words call mode, display unit 151 can show and call or other (such as, text messaging, multimedia file that communicate Download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern Or during image capture mode, display unit 151 can show image and/or the image of reception of capture, illustrate video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad the most superposed on one another with formed touch screen time, display unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least A kind of.Some in these display may be constructed such that transparence is watched from outside with permission user, and this is properly termed as transparent Display, typical transparent display can for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment wanted, mobile terminal 100 can include two or more display units (or other display device), such as, move Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal receive pattern, call mode, logging mode, Time under the isotype such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or at memorizer 160 The voice data transducing audio signal of middle storage and be output as sound.And, dio Output Modules 152 can provide with mobile The audio frequency output (such as, call signal receives sound, message sink sound etc.) that the specific function that terminal 100 performs is relevant. Dio Output Modules 152 can include speaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 100.Typical event is permissible Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video exports, alarm unit 153 can provide output with the generation of notification event in a different manner.Such as, alarm unit 153 can be with the form of vibration Output is provided, when receiving calling, message or some other entrance communication (incomingcommunication), alarm list Unit 153 can provide sense of touch output (that is, vibration) to notify to user.By providing such sense of touch to export, even if When the mobile phone of user is in the pocket of user, user also is able to identify the generation of various event.Alarm unit 153 is also The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can Temporarily to store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output.And And, memorizer 160 can with storage about when touch be applied to touch screen time the vibration of various modes of output and audio signal Data.
Memorizer 160 can include that the storage medium of at least one type, described storage medium include flash memory, hard disk, many Media card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access store Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 100 can be connected execution memorizer with by network The network storage device cooperation of the storage function of 160.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs and voice call, data Control that communication, video calling etc. are relevant and process.It addition, controller 180 can include for reproducing (or playback) many matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or it is so structured that with control Device 180 processed separates.Controller 180 can perform pattern recognition process, with the handwriting input that will perform on the touchscreen or figure Sheet is drawn input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Suitable electric power needed for part and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implementing for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. Software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any suitable programming language Implementing, software code can be stored in memorizer 160 and be performed by controller 180.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 100 may be constructed such that utilize via frame or packet transmission data all if any Line and wireless communication system and satellite-based communication system operate.
The communication system being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, communication system use Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face relates to cdma communication system, but such teaching is equally applicable to other type of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 100, multiple base station (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to and the BSC275 formation interface that can be couple to base station 270 via back haul link. If back haul link can construct according to any one in the interface that Ganji knows, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system as shown in Figure 2 can include multiple BSC2750.
Each BS270 can service one or more subregion (or region), by multidirectional antenna or the sky of sensing specific direction Each subregion that line covers is radially away from BS270.Or, each subregion can be by for two or more of diversity reception Antenna covers.Each BS270 may be constructed such that support multiple frequencies distribution, and the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent in system the mobile terminal operated by broadcsting transmitter (BT) 295 100.Broadcast reception module 111 is arranged on mobile terminal 100 and sentences the broadcast that reception is sent by BT295 as shown in Figure 1 Signal.In fig. 2 it is shown that several global positioning systems (GPS) satellite 300.Satellite 300 helps to position multiple mobile terminals At least one in 100.
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of satellite obtain useful Location information.GPS module 115 is generally configured to coordinate with satellite 300 to obtain the location letter wanted as shown in Figure 1 Breath.Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use other of position of mobile terminal can be followed the tracks of Technology.It addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 generally participates in call, information receiving and transmitting communicates with other type of.Certain base station 270 receive each instead Processed in specific BS270 to link signal.The data obtained are forwarded to the BSC275 being correlated with.BSC provides call Resource distribution and the mobile management function of the coordination of soft switching process included between BS270.The number that BSC275 also will receive According to being routed to MSC280, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, MSC Yu BSC275 forms interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
As it is shown on figure 3, first embodiment of the invention proposes a kind of method adding up step number, it is applied to include acceleration sensing Device and the mobile terminal of proximity transducer, the method includes:
Step 301, it may be judged whether body shake detected in Preset Time, if it is, perform step 302;Otherwise, Perform step 303.
Specifically, acceleration transducer output data in Preset Time can be obtained, it is judged that acceleration transducer exists Whether the output data in Preset Time meet pre-conditioned, if meeting pre-conditioned, it is determined that body shake detected;No Then, determine and be not detected by body shake.
Wherein, acceleration transducer output data in Preset Time can be the accekeration in Preset Time.
In the present embodiment, it can be determined that whether acceleration transducer output data in Preset Time comprise more than first The peak accelerator of preset value, if it is, determine that acceleration transducer output data in Preset Time meet to preset bar Part;Otherwise, it determines the output data that acceleration transducer is in Preset Time are unsatisfactory for pre-conditioned.
Step 302, according to the vibrations number of times in Preset Time, updates step number.
Specifically, the peak accelerator that can be comprised according to acceleration transducer output data in Preset Time Quantity, updates step number.
In the present embodiment, can be by the step number counted and acceleration transducer output data institute in Preset Time The quantity of the peak accelerator comprised is added, using the result obtained as the step number after updating.
Step 303, according to arm number of times of inswept leg in Preset Time, updates step number.
Specifically, can according to proximity transducer output data in Preset Time comprised more than the second preset value The quantity of peak-data, update step number.
In the present embodiment, the step number counted can be wrapped with proximity transducer output data in Preset Time The twice of the quantity of the peak-data contained is added, using the result obtained as the step number after updating.
First embodiment of the invention is on the basis of by detection body shake statistics step number, according to the inswept leg of arm Number of times correction meter step error, makes meter step more accurate.
As shown in Figure 4, second embodiment of the invention proposes a kind of method adding up step number, is applied to include acceleration sensing Device and the mobile terminal of proximity transducer, the method includes:
Step 401, obtains acceleration transducer output data in Preset Time.
Wherein, acceleration transducer output data in Preset Time can be the accekeration in Preset Time.
In the present embodiment, Preset Time can be 30 seconds.
Step 402, it is judged that whether acceleration transducer output data in Preset Time meet pre-conditioned, if full Foot is pre-conditioned, then perform step 403;Otherwise, step 404 is performed.
Specifically, it can be determined that whether acceleration transducer output data in Preset Time comprise is preset more than first The peak accelerator of value, if it is, determine that acceleration transducer output data in Preset Time meet pre-conditioned;No Then, determine that acceleration transducer output data in Preset Time are unsatisfactory for pre-conditioned.
Step 403, according to acceleration transducer output data in Preset Time, updates step number.
Specifically, the peak accelerator that can be comprised according to acceleration transducer output data in Preset Time Quantity, updates step number.
In the present embodiment, can be by the step number counted and acceleration transducer output data institute in Preset Time The quantity of the peak accelerator comprised is added, using the result obtained as the step number after updating.
Step 404, it is judged that whether acceleration transducer output data after Preset Time meet pre-conditioned, if It is then to perform step 405;Otherwise, flow process is terminated.
Specifically, it can be determined that whether acceleration transducer output data after Preset Time comprise is preset more than first The peak accelerator of value, if it is, determine that acceleration transducer output data after Preset Time meet pre-conditioned;No Then, determine that acceleration transducer output data after Preset Time are unsatisfactory for pre-conditioned.
Step 405, according to proximity transducer output data in Preset Time, updates step number.
Specifically, can according to proximity transducer output data in Preset Time comprised more than the second preset value The quantity of peak-data, update step number.
In the present embodiment, people when walking, arm would generally inswept thigh lateral location, as shown in Figure 5.When the back side is integrated When the mobile terminal having proximity transducer is positioned at thigh side, can be according to proximity transducer output number in Preset Time According to, identify staff action.Arm from be close to away from process, the output packet of single proximity transducer contain a peak value Data, as shown in Figure 6.When mobile terminal includes multiple continuously arranged proximity transducer, each proximity transducer Output data all comprise a peak-data, as it is shown in fig. 7, track and the action of limbs can be described.Correspondingly, can basis The number of times swung back and forth of the arm that proximity transducer identifies, updates step number, i.e. step number and the close sensing that will have counted The twice of the quantity of the peak-data that device output data in Preset Time are comprised is added, using the result that obtains as renewal After step number.
Such as, in the walking process of people, within the time less than 30 seconds, not according to the output data of acceleration transducer Count on step number, but after the above-mentioned time again according to the output data statistics of acceleration transducer to step number, and close Sensor senses the periodic wobble of arm within the above-mentioned time, then explanation acceleration transducer occurred in that within the above-mentioned time Identify inaccurate error, according to proximity transducer output data within the above-mentioned time, statistics step number can be calibrated.
Second embodiment of the invention not according to acceleration transducer output data more new data in Preset Time, and When continuing more new data according to acceleration transducer output data after Preset Time, by proximity transducer at Preset Time The periodic wobble of interior output data identification arm, revises meter step error, makes meter step more accurate.
As shown in Figure 8, third embodiment of the invention proposes a kind of method adding up step number, is applied to include light level The mobile terminal of device, acceleration transducer and proximity transducer, the method includes:
Step 501, obtains the output data of light sensor.
Step 502, it is judged that whether the output data of light sensor are less than presetting light intensity, if it is, perform step Rapid 504;Otherwise, step 503 is performed.
In the present embodiment, the output data of light sensor are less than when presetting light intensity, and light sensor detects shifting Dynamic terminal is in dark surrounds, then judge that mobile terminal has been contained in the trouser pocket of user side.
Step 503, according to the output data of acceleration transducer, updates step number.
Step 504, obtains acceleration transducer output data in Preset Time.
Wherein, acceleration transducer output data in Preset Time can be the accekeration in Preset Time.
In the present embodiment, Preset Time can be 30 seconds.
Step 505, it is judged that whether acceleration transducer output data in Preset Time meet pre-conditioned, if full Foot is pre-conditioned, then perform step 506;Otherwise, step 507 is performed.
Specifically, it can be determined that whether acceleration transducer output data in Preset Time comprise is preset more than first The peak accelerator of value, if it is, determine that acceleration transducer output data in Preset Time meet pre-conditioned;No Then, determine that acceleration transducer output data in Preset Time are unsatisfactory for pre-conditioned.
Step 506, according to acceleration transducer output data in Preset Time, updates step number.
Specifically, the peak accelerator that can be comprised according to acceleration transducer output data in Preset Time Quantity, updates step number.
In the present embodiment, can be by the step number counted and acceleration transducer output data institute in Preset Time The quantity of the peak accelerator comprised is added, using the result obtained as the step number after updating.
Step 507, according to proximity transducer output data in Preset Time, updates step number.
Specifically, can according to proximity transducer output data in Preset Time comprised more than the second preset value The quantity of peak-data, update step number.
In the present embodiment, the step number counted can be wrapped with proximity transducer output data in Preset Time The twice of the quantity of the peak-data contained is added, using the result obtained as the step number after updating.
Such as, in the walking process of people, within the time less than 30 seconds, not according to the output data of acceleration transducer Count on step number, but after the above-mentioned time again according to the output data statistics of acceleration transducer to step number, and close Sensor senses the periodic wobble of arm within the above-mentioned time, then explanation acceleration transducer occurred in that within the above-mentioned time Identify inaccurate error, according to proximity transducer output data within the above-mentioned time, statistics step number can be calibrated.
Third embodiment of the invention is in dark surrounds in the output Data Detection according to light sensor to mobile terminal In, and during not according to acceleration transducer output data more new data in Preset Time, preset by proximity transducer The periodic wobble of the output data identification arm in the time, revises meter step error, makes meter step more accurate.
The present invention further provides a kind of device adding up step number.
Reference Fig. 9, Fig. 9 are a kind of structure drawing of device adding up step number of fourth embodiment of the invention, including:
First judge module 610, is used for judging whether to detect body shake in Preset Time.
Specifically, above-mentioned first judge module 610, specifically for for judging that acceleration transducer is in Preset Time Whether output data meet pre-conditioned, if it is, determine and body shake detected in Preset Time;Otherwise, it determines do not have Have in Preset Time, body shake detected.
In the present embodiment, above-mentioned first judge module 610, specifically for judging that acceleration transducer is in Preset Time Whether output data comprise the peak accelerator more than the first preset value, if it is, determine that acceleration transducer is when default Interior output data meet pre-conditioned;Otherwise, it determines the output data that acceleration transducer is in Preset Time are unsatisfactory for Pre-conditioned.
First more new module 620, in time body shake being detected in Preset Time, according to the vibrations in Preset Time Number of times, updates step number.
Specifically, the above-mentioned first more new module 620, during specifically for being not detected by body shake in Preset Time, According to acceleration transducer output data in Preset Time, update step number.
In the present embodiment, the above-mentioned first more new module 620, specifically for being not detected by body shake in Preset Time Time, according to the quantity of the peak accelerator that acceleration transducer output data in Preset Time are comprised, update step number.
Second more new module 630, in time being not detected by body shake in Preset Time, according to arm when default The number of times of interior inswept leg, updates step number.
Specifically, the above-mentioned second more new module 630, specifically at acceleration transducer output number in Preset Time According to when being unsatisfactory for pre-conditioned, according to proximity transducer output data in Preset Time, update step number.
In the present embodiment, the above-mentioned second more new module 630, specifically at defeated in Preset Time of acceleration transducer Go out data when being unsatisfactory for pre-conditioned, according to proximity transducer output data in Preset Time comprised pre-more than second If the quantity of the peak-data of value, update step number.
Further, said apparatus, also include:
Acquisition module, for obtaining the output data of light sensor;
Second judge module, for judging that whether the output data of light sensor are less than presetting light intensity;
Correspondingly, the above-mentioned second more new module 630, specifically for the output data at light sensor less than default light Intensity, and when being not detected by body shake in Preset Time, according to arm number of times of inswept leg in Preset Time, more New step number.
Further, said apparatus, also include:
3rd judge module, is used for judging whether to detect body shake after Preset Time;
Correspondingly, the above-mentioned second more new module 630, specifically for detecting body shake, and in advance after Preset Time If be not detected by body shake in the time, according to arm number of times of inswept leg in Preset Time, update step number.
Fourth embodiment of the invention is on the basis of by detection body shake statistics step number, according to the inswept leg of arm Number of times correction meter step error, makes meter step more accurate.
It should be noted that in this article, term " includes ", " comprising " or its any other variant are intended to non-row Comprising of his property, so that include that the process of a series of key element, method, article or device not only include those key elements, and And also include other key elements being not expressly set out, or also include intrinsic for this process, method, article or device Key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that including this The process of key element, method, article or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-described embodiment side Method can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot of in the case of The former is more preferably embodiment.Based on such understanding, prior art is done by technical scheme the most in other words The part going out contribution can embody with the form of software product, and this computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, take Business device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every utilize this Equivalent structure or equivalence flow process that bright description and accompanying drawing content are made convert, or are directly or indirectly used in other relevant skills Art field, is the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. the method adding up step number, it is characterised in that including:
Judge whether to detect body shake in Preset Time;
If body shake being detected in Preset Time, then according to the vibrations number of times in Preset Time, update step number;Otherwise, According to arm number of times of inswept leg in Preset Time, update step number.
2. the method for claim 1, it is characterised in that described in judge whether in Preset Time, detect that human body shakes Dynamic, including:
Judge whether acceleration transducer output data in Preset Time comprise the peak accelerator more than the first preset value, If it is, determine and body shake detected in Preset Time;Otherwise, it determines do not detect that in Preset Time human body shakes Dynamic.
3. the method for claim 1, it is characterised in that described according to arm in Preset Time inswept leg time Number, updates step number, including:
Number according to the peak-data more than the second preset value that proximity transducer output data in Preset Time are comprised Amount, updates step number.
4. the method for claim 1, it is characterised in that described according to arm in Preset Time inswept leg time Number, before updating step number, also includes:
Obtain the output data of light sensor, it is judged that the output data of described light sensor are the strongest less than presetting light Degree;
Described according to arm in Preset Time the number of times of inswept leg, update step number, including:
When the output data of described light sensor are less than when presetting light intensity, according to arm inswept leg in Preset Time Number of times, update step number.
5. the method for claim 1, it is characterised in that described according to arm in Preset Time inswept leg time Number, before updating step number, also includes:
Judge whether body shake to be detected after described Preset Time;
Described according to arm in Preset Time the number of times of inswept leg, update step number, including:
When body shake being detected after described Preset Time, according to arm number of times of inswept leg in Preset Time, more New step number.
6. the device adding up step number, it is characterised in that including:
First judge module, is used for judging whether to detect body shake in Preset Time;
First more new module, in time body shake being detected in Preset Time, according to the vibrations number of times in Preset Time, more New step number;
Second more new module, in time being not detected by body shake in Preset Time, sweeps in Preset Time according to arm Cross the number of times of leg, update step number.
7. device as claimed in claim 6, it is characterised in that
Described first judge module, specifically for judging whether acceleration transducer output data in Preset Time comprise greatly In the peak accelerator of the first preset value, if it is, determine and body shake detected in Preset Time;Otherwise, it determines do not have Have in Preset Time, body shake detected.
8. device as claimed in claim 6, it is characterised in that
Described second more new module, during specifically for being not detected by body shake in Preset Time, according to proximity transducer The quantity of the peak-data more than the second preset value that the output data in described Preset Time are comprised, updates step number.
9. device as claimed in claim 6, it is characterised in that also include:
Acquisition module, for obtaining the output data of light sensor;
Second judge module, for judging that whether the output data of described light sensor are less than presetting light intensity;
Described second more new module, specifically for the output data at described light sensor less than default light intensity, and When being not detected by body shake in Preset Time, according to arm number of times of inswept leg in Preset Time, update step number.
10. device as claimed in claim 6, it is characterised in that also include:
3rd judge module, is used for judging whether body shake to be detected after described Preset Time;
Described second more new module, specifically for body shake being detected after described Preset Time, and does not has in Preset Time When body shake being detected, according to arm number of times of inswept leg in Preset Time, update step number.
CN201610835286.4A 2016-09-20 2016-09-20 A kind of method and apparatus adding up step number Pending CN106231131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610835286.4A CN106231131A (en) 2016-09-20 2016-09-20 A kind of method and apparatus adding up step number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610835286.4A CN106231131A (en) 2016-09-20 2016-09-20 A kind of method and apparatus adding up step number

Publications (1)

Publication Number Publication Date
CN106231131A true CN106231131A (en) 2016-12-14

Family

ID=58076356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610835286.4A Pending CN106231131A (en) 2016-09-20 2016-09-20 A kind of method and apparatus adding up step number

Country Status (1)

Country Link
CN (1) CN106231131A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111157016A (en) * 2019-12-27 2020-05-15 维沃移动通信有限公司 Step recording method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103191557A (en) * 2012-01-04 2013-07-10 耐克国际有限公司 Athletic watch
CN103206962A (en) * 2013-03-14 2013-07-17 梅健 Electric pedometer based on approaching type sensing
US20160089080A1 (en) * 2014-09-30 2016-03-31 Mophie, Inc. System and method for activity determination
CN105890620A (en) * 2016-04-06 2016-08-24 广东欧珀移动通信有限公司 Step counting method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103191557A (en) * 2012-01-04 2013-07-10 耐克国际有限公司 Athletic watch
CN103206962A (en) * 2013-03-14 2013-07-17 梅健 Electric pedometer based on approaching type sensing
US20160089080A1 (en) * 2014-09-30 2016-03-31 Mophie, Inc. System and method for activity determination
CN105890620A (en) * 2016-04-06 2016-08-24 广东欧珀移动通信有限公司 Step counting method and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111157016A (en) * 2019-12-27 2020-05-15 维沃移动通信有限公司 Step recording method and electronic equipment
CN111157016B (en) * 2019-12-27 2021-12-21 维沃移动通信有限公司 Step recording method and electronic equipment

Similar Documents

Publication Publication Date Title
CN104980588B (en) A kind of method and apparatus for detecting mobile terminal state
CN106130734A (en) The control method of mobile terminal and control device
CN104967726B (en) Phonetic order treating method and apparatus, mobile terminal
CN104820555B (en) The method, apparatus and terminal of horizontal/vertical screen switching
CN104767889B (en) Screen state control method and device
CN105357367B (en) Recognition by pressing keys device and method based on pressure sensor
CN106850943A (en) A kind of apparatus and method for detecting terminal and the distance of shelter
CN106201181A (en) The display device of icon and method in a kind of application
CN105054505A (en) Smart bracelet and ultraviolet detection method
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN106168879A (en) A kind of method that double-sided screen is mutual and terminal
CN106210376A (en) mobile terminal, vibration prompt control device and method
CN106157970A (en) A kind of audio identification methods and terminal
CN105975753A (en) Method for calculating moving speed of user and mobile terminal
CN106131274A (en) Mobile terminal control device and method
CN106161777B (en) A kind of method and apparatus for realizing rhythm of the heart
CN105187663B (en) Automatically the method and terminal conversed
CN105100418B (en) It is a kind of to realize the method and apparatus reminded
CN105100408B (en) A kind of method and apparatus controlling mobile terminal
CN106303044A (en) A kind of mobile terminal and the acquisition method to coke number
CN106484534A (en) Control method for the mobile terminal of displaying and control device
CN106125898A (en) The method and device of screen rotation
CN106227454B (en) A kind of touch trajectory detection system and method
CN106951350A (en) The inspection method and device of a kind of mobile terminal disk
CN106847229A (en) The brightness regulating apparatus and method of a kind of display screen

Legal Events

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

Application publication date: 20161214