CN108709565A - Step-recording method and step count set - Google Patents
Step-recording method and step count set Download PDFInfo
- Publication number
- CN108709565A CN108709565A CN201810302300.3A CN201810302300A CN108709565A CN 108709565 A CN108709565 A CN 108709565A CN 201810302300 A CN201810302300 A CN 201810302300A CN 108709565 A CN108709565 A CN 108709565A
- Authority
- CN
- China
- Prior art keywords
- step number
- movement step
- movement
- preset time
- database
- 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
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C22/00—Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
- G01C22/006—Pedometers
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
Present invention is disclosed a kind of step-recording method and step count sets, the described method comprises the following steps:Primary movement step number is read every preset time;The movement step number generated in preset time is calculated according to the movement step number of reading;The storage movement step number into database;Judge whether the total movement step number stored in database is greater than or equal to first threshold;If so, being sent out the total movement step number stored in database, and empty the movement step number of storage.A kind of step-recording method that the embodiment of the present invention is provided, movement step number is read by timing and is calculated the movement step number generated in this time and is carried out the storage of movement step number, when total movement step number of storage reaches first threshold, just it is sent out primary movement step count data, to substantially reduce data transmission frequency, the energy consumption for reducing meter step equipment provides the cruising ability of meter step equipment.
Description
Technical field
The present invention relates to electronic technology field, a kind of step-recording method and step count set are especially related to.
Background technology
As the improvement of people's living standards, the family of raising pet is more and more, pet is regarded by some families
One one's share of expenses for a joint undertaking of family increasingly pays close attention to the health of pet, it is desirable to be able to carry out fining treatment and management to pet.
In order to ensure that the physical and mental health of pet, pet owner require pet to have amount of exercise appropriate daily.In order to pet
Amount of exercise be detected, need with pet wear meter step equipment, by meter walk equipment detect pet movement step number, and
The movement step count data detected is sent to server, movement step count data is pushed to the terminal of pet owner by server again
In equipment, pet owner can monitor the amount of exercise of pet.
However, existing meter step equipment sends movement step count data to server in real time, it is largely electric to consume equipment
Amount so that the cruising ability of equipment is poor.
Invention content
The main object of the present invention is to provide a kind of step-recording method and step count set, it is intended to the energy consumption of meter step equipment is reduced,
Improve the cruising ability of meter step equipment.
To achieve these objectives, the embodiment of the present invention proposes a kind of step-recording method, the described method comprises the following steps:
Primary movement step number is read every preset time;
The movement step number generated in the preset time is calculated according to the movement step number of reading;
The storage movement step number into database;
Judge whether the total movement step number stored in the database is greater than or equal to first threshold;
If so, being sent out the total movement step number stored in the database, and empty the movement step number of storage.
Optionally, the preset time is a unit interval, described to be wrapped the step of storage movement step number into database
It includes:
Count the movement step number in a meter step period;Wherein, a meter step period is N number of unit interval, and N is more than 1;
Judge whether the movement step number of statistics is greater than or equal to second threshold;
If so, the movement step number of statistics is stored in the database.
Optionally, the preset time was at least two unit interval, the step of the storage movement step number into database
Suddenly include:
Judge whether the movement step number generated in the preset time is greater than or equal to second threshold;
If so, the movement step number generated in the preset time is stored in the database.
Optionally, the described the step of movement step number generated in the preset time is calculated according to the movement step number of reading
Including:
Judge whether the movement step number that this reads is less than the last movement step number read;
If so, the movement step number that limit of utilization value subtracts last reading adds this movement step number conduct read
The movement step number generated in the preset time;
If it is not, then subtracting the movement step number of last reading as the preset time using the movement step number of this reading
The movement step number of interior generation.
Optionally, the method further includes:
Judge whether accumulative meter step duration is greater than or equal to third threshold value;
If so, be sent out the total movement step number stored in the database, and empty the movement step number of storage with
And accumulative meter step duration is reset.
Optionally, described to include the step of storage movement step number into database:
The movement step number generated in the preset time is directly stored in the database.
Optionally, the first threshold walks for 150-250.
Optionally, the second threshold walks for 4-6.
Optionally, the third threshold value is 50-70 minutes.
Optionally, 4≤N≤6.
The embodiment of the present invention proposes that a kind of step count set, the step count set include simultaneously:
Read module, for reading primary movement step number every preset time;
Computing module, for calculating the movement step number generated in the preset time according to the movement step number of reading;
Memory module, for the storage movement step number into database;
Whether the first judgment module, total movement step number for judging to store in the database are greater than or equal to first
Threshold value;
First processing module, if total movement step number for being stored in the database is greater than or equal to first threshold,
It is then sent out the total movement step number stored in the database, and empties the movement step number of storage.
Optionally, the preset time is a unit interval, and the memory module includes:
Statistic unit, for counting the movement step number in a meter step period;Wherein, a meter step period is N number of unit
Time, and N is more than 1;
First judging unit, for judging whether the movement step number of statistics is greater than or equal to second threshold;
First storage unit walks the movement of statistics if the movement step number for statistics is greater than or equal to second threshold
Number is stored in the database.
Optionally, the preset time was at least two unit interval, and the memory module includes:
Whether second judgment unit, the movement step number for judging to generate in the preset time are greater than or equal to the second threshold
Value;
Second storage unit, if the movement step number for being generated in the preset time is greater than or equal to second threshold,
The movement step number generated in the preset time is stored in the database.
Optionally, the computing module includes:
Third judging unit, for judging whether the movement step number that this reads is less than the last movement step number read;
First computing unit utilizes if the movement step number for this reading is less than the last movement step number read
Limiting value subtracts movement step number that the movement step number of last reading is read along with this as being generated in the preset time
Movement step number;
Second computing unit, if the movement step number for this reading is not less than the last movement step number read, profit
This movement step number read is used to subtract the last movement step number read as the movement step number generated in the preset time.
Optionally, described device further includes:
Second judgment module, by judge it is accumulative based on step duration whether be greater than or equal to third threshold value;
Second processing module is sent out the number if step duration is greater than or equal to third threshold value based on accumulative
According to the total movement step number stored in library, and empties the database and accumulative meter step duration is reset.
Optionally, the memory module is used for:Directly the movement step number generated in the preset time is stored in described
Database.
The embodiment of the present invention also proposes a kind of meter step equipment comprising memory, processor and at least one is stored in
In the memory and it is configured as the application program executed by the processor, the application program is configurable for executing
Aforementioned step-recording method.
A kind of step-recording method that the embodiment of the present invention is provided reads movement step number by timing and calculates this time
The movement step number of interior generation and carry out movement step number storage, when total movement step number of storage reaches first threshold, just to
The outer primary movement step count data of transmission reduces the energy consumption of meter step equipment, provides to substantially reduce data transmission frequency
The cruising ability of meter step equipment.
Description of the drawings
Fig. 1 is the flow chart of one embodiment of step-recording method of the present invention;
Fig. 1 a are the flow charts of another embodiment of step-recording method of the present invention;
Fig. 2 is the module diagram of the step count set first embodiment of the present invention;
Fig. 3 is the module diagram of the computing module in Fig. 2;
Fig. 4 is the module diagram of the memory module in Fig. 2;
Fig. 5 is the another module diagram of the memory module in Fig. 2;
Fig. 6 is the module diagram of the step count set second embodiment of the present invention;
Fig. 7 is the module diagram of another embodiment of step count set of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that is used in the specification of the present invention arranges
It refers to there are the feature, integer, step, operation, element and/or component, but it is not excluded that presence or addition to take leave " comprising "
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes that the whole of one or more associated list items or any cell are combined with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific terminology), there is meaning identical with the general understanding of the those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless by specific definitions as here, the meaning of idealization or too formal otherwise will not be used
To explain.
It includes wireless communication that those skilled in the art of the present technique, which are appreciated that " terminal " used herein above, " terminal device " both,
The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and includes receiving and transmitting hardware
Equipment, have on bidirectional communication link, can execute two-way communication reception and emit hardware equipment.This equipment
May include:Honeycomb or other communication equipments are shown with single line display or multi-line display or without multi-line
The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can
With combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, it is personal
Digital assistants), may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day
It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal device " they can be portable, can transport, be mounted on the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on
Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or mobile phone with music/video playing function, can also be the equipment such as smart television, set-top box.
Those skilled in the art of the present technique are appreciated that server used herein above comprising but it is not limited to computer, net
The cloud that network host, single network server, multiple network server collection or multiple servers are constituted.Here, cloud is by being based on cloud meter
The a large amount of computers or network server for calculating (Cloud Computing) are constituted, wherein cloud computing is the one of Distributed Calculation
Kind, a super virtual computer being made of the computer collection of a group loose couplings.In the embodiment of the present invention, server,
Between terminal device and WNS servers can by any communication mode realize communicate, including but not limited to, be based on 3GPP, LTE,
The mobile communication of WIMAX, based on TCP/IP, the computer network communication of udp protocol and based on bluetooth, Infrared Transmission standard
Low coverage wireless transmission method.
Referring to Fig.1, one embodiment of step-recording method for proposing the present invention, the described method comprises the following steps:
S11, primary movement step number is read every preset time.
In the embodiment of the present invention, after meter step opening of device, communication checking time is carried out with server first, according to server
The current server time issued obtains the fiducial time of equipment along with network takes.
Meter step equipment records current time, starts meter step.MCU (Microcontroller Unit, the micro-control of meter step equipment
Unit processed) real-time accumulated movement step number then to accumulative zeros data, and opens again when accumulative data reach the limit values
Begin accumulative.Meter step equipment then reads from MCU every preset time (i.e. timing) and once moves step number.
The preset time can be a unit interval, such as 1 minute;It can also be at least two unit interval, such as 3-
10 minutes, preferably 5 minutes.Preset time is that the real-time of a unit interval is stronger, be at least two unit interval then more
Power saving can select according to actual needs.
For example, can be that two kinds of operating modes are arranged in meter step equipment, one is heartbeats in 1 minute to monitor pattern in real time, another
Kind is 5 minutes heartbeat battery saving modes.Optionally, when operating mode is 5 minutes battery saving modes, and TCP long connections are normal, meter step
Equipment then read primary movement step number every 5 minutes from MCU;When work pattern is that heartbeat in 1 minute monitors pattern in real time, or is in
When under TCP disconnection reconnecting states, meter step equipment then read primary movement step number every 1 minute from MCU.
S12, the movement step number generated in preset time is calculated according to the movement step number of reading.
In the embodiment of the present invention, meter step equipment carries out the movement step number that this reads with the last movement step number read
Compare, judges whether the movement step number that this reads is less than the last movement step number read.If this movement read step
Number is less than the last movement step number read, then limit of utilization value subtracts the movement step number of last reading along with this reading
Movement step number, as the movement step number generated in the current preset time.If this movement step number read is not less than upper one
The movement step number of secondary reading then subtracts the movement step number of last reading using the movement step number of this reading, as current pre-
If the movement step number generated in the time.
For example, it is assumed that the limiting value that MCU is counted is 65535, when the movement step number of this reading is less than what the last time read
When moving step number, movement step number that movement step number=65535- last times for generating in the current preset time read+this reads
Movement step number;When the movement step number of this reading is not less than the last movement step number read, production in the current preset time
The movement step number that raw movement step number=this movement step number-last time read reads.
S13, the storage movement step number into database.
Optionally, when preset time is a unit interval, i.e., meter step equipment reads primary fortune every a unit interval
When dynamic step number, meter step equipment then counts the movement step number in a meter step period, judge the movement step number of statistics whether be more than or
The movement step number of statistics is then stored in number when the movement step number of statistics is greater than or equal to second threshold equal to second threshold
According to library.
Wherein, a meter step period is N (N>1) a unit interval, optionally, 4≤N≤6, preferably N=5, such as every 5 minutes
For a meter step period, i.e., the every 5 minutes movement step numbers counted once in current 5 minutes.
Optionally, when preset time was at least two unit interval, i.e., meter step equipment is read every at least two unit interval
When taking primary movement step number, meter step equipment then judges whether the movement step number generated in the current preset time is greater than or equal to second
Threshold value will then be produced when the movement step number generated in the current preset time is greater than or equal to second threshold in the current preset time
Raw movement step number is stored in database.
Aforementioned second threshold can be according to actual needs or empirical value determines that 4-6 is walked, preferably 5 steps only deposit
Storage filters out the data less than 5 steps more than or equal to the data of 5 steps.In general, the data less than 5 steps may not be true
Exercise data filters out non-genuine exercise data, can improve the accuracy of meter step by being screened to exercise data.
In certain embodiments, after calculating the movement step number generated in the current preset time, meter step equipment can also
The movement step number generated in preset time is directly stored in database, i.e., meter step equipment does not screen exercise data, will
All exercise datas read are all stored.
Meter step equipment can also further store this meter step time started, meter the end of the step when storage moves step number
The related datas such as time.Wherein, when meter step equipment is every the primary movement step number of a unit interval reading, the meter step time started
With meter the end of the step time, that is, current meter step period at the beginning of and the end time (i.e. current time);When meter step equipment is every extremely
When few two unit interval read primary movement step number, meter step time started and meter the end of the step time i.e. this start to read movement
The time of step number and current time.
S14, judge whether the total movement step number stored in database is greater than or equal to first threshold.When being deposited in database
When total movement step number of storage is greater than or equal to first threshold, into next step S15.
All movement step count datas that meter step equipment stores in real time or in the cumulative data library of timing, obtain total movement
Step number, and the size of more total movement step number and first threshold, judge whether total movement step number is greater than or equal to the first threshold
Value.
First threshold can be set according to actual needs, can be set as 150-250 steps, preferably 200 steps, to take into account equipment
Province electrically and data transmission real-time.
S15, it is sent out the total movement step number stored in database, and empties the movement step number of storage.
In the embodiment of the present invention, when the total movement step number stored in database is greater than or equal to first threshold, meter step
Total movement step number that equipment is then stored into server transmission data library is then emptied in database and is stored after sending successfully
Movement step number.
In other embodiments, total movement step that meter step equipment can also be stored into terminal device transmission data library
Number, the terminals such as the mobile terminals such as described terminal device such as mobile phone, tablet or PC, laptop.
Further, meter step equipment also accumulative meter step duration during meter step, and whether judge accumulative meter step duration
More than or equal to third threshold value.When accumulative meter step duration is greater than or equal to third threshold value, meter step equipment then to server (or
Terminal device) total movement step number for storing in transmission data library, and empty the movement step number of storage and accumulative meter is walked
Duration is reset.
Third threshold value can be set according to actual needs, can be set as 50-70 minutes, preferably 60 minutes i.e. 1 hour,
It is electrical with the province for taking into account real-time and equipment that data are sent.
The step-recording method of the embodiment of the present invention reads movement step number by timing and calculates the fortune generated in this time
Dynamic step number and the storage for carrying out movement step number are just sent out primary when total movement step number of storage reaches first threshold
Step count data is moved, to substantially reduce data transmission frequency, reduces the energy consumption of meter step equipment, provides meter step equipment
Cruising ability.
A is please referred to Fig.1, proposes another embodiment of step-recording method of the present invention, the step-recording method of the present embodiment and above-mentioned reality
It applies example to be substantially the same, difference is further comprising the steps of before being the present embodiment step S11:
S06:Link order is sent to server, and records the first current time;
Meter step device power-up when automatically by wifi or 2G/3G/4G/5G wireless networks to server link order with clothes
Business device, which is realized, to be wirelessly connected.
S07:Receive UTC (Universal Time Coordinated, association of the world that server is fed back according to link order
Between timing) time, and record the second current time;
S08:Data transmission period is obtained according to the first current time, the second current time;
Wherein, data transmission period is that meter step device-to-server sends link order and receives server feedback UTC
Time takes, and data transmission period subtracts the first current time equal to the second current time.
S09:Fiducial time is obtained according to transmission time, UTC time.
Second current time subtracts transmission time and adds server UTC time, to obtain meter step equipment and server
Synchronous fiducial time.
S10:The equipment time will be converted to fiducial time.
To improve the accuracy of meter step equipment time, when meter step equipment reads movement step number, using the equipment time as base
Whether standard is monitored reaches preset time, and sends movement step number to server on the basis of the equipment time, improves server
The temporally accuracy of statistics movement step number.
With reference to Fig. 2, propose that the step count set first embodiment of the present invention, described device include read module 10, calculate mould
Block 20, memory module 30, the first judgment module 40 and first processing module 50, wherein:Read module 10, for when default
Between read primary movement step number;Computing module 20, for calculating the fortune generated in preset time according to the movement step number of reading
Dynamic step number;Memory module 30, for the storage movement step number into database;First judgment module 40, for judging in database
Whether total movement step number of storage is greater than or equal to first threshold;First processing module 50, if for storing in database
Total movement step number is greater than or equal to first threshold, then is sent out the total movement step number stored in database, and empty number
According to library.
The real-time accumulated movement step numbers of MCU of meter step equipment, when accumulative data reach the limit values, then to accumulative data
It resets, and restarts to add up.Read module 10 then reads primary movement step number every preset time (i.e. timing) from MCU.
The preset time can be a unit interval, such as 1 minute;It can also be at least two unit interval, such as 3-
10 minutes, preferably 5 minutes.Preset time is that the real-time of a unit interval is stronger, be at least two unit interval then more
Power saving can select according to actual needs.
For example, can be that two kinds of operating modes are arranged in meter step equipment, one is heartbeats in 1 minute to monitor pattern in real time, another
Kind is 5 minutes heartbeat battery saving modes.Optionally, it when operating mode is 5 minutes battery saving modes, and TCP long connections are normal, reads
Module 10 then read primary movement step number every 5 minutes from MCU;When work pattern is that heartbeat in 1 minute monitors pattern, or place in real time
When under TCP disconnection reconnecting states, read module 10 then read primary movement step number every 1 minute from MCU.
In the embodiment of the present invention, computing module 20 is as shown in figure 3, including third judging unit 21, the first computing unit 22
With the second computing unit 23, wherein:Third judging unit 21, for judging whether the movement step number that this reads is less than the last time
The movement step number of reading;First computing unit 22, if the movement step number for this reading is less than the last movement step read
Number, then when limit of utilization value subtracts movement step number that the movement step number of last reading is read along with this as current preset
The movement step number of interior generation;Second computing unit 23, if the movement step number for this reading is not less than last reading
Step number is moved, then subtracts the last movement step number read as being generated in preset time using movement step number of this reading
Move step number.
For example, it is assumed that the limiting value that MCU is counted is 65535, when the movement step number of this reading is less than what the last time read
When moving step number, movement step number that movement step number=65535- last times for generating in the current preset time read+this reads
Movement step number;When the movement step number of this reading is not less than the last movement step number read, production in the current preset time
The movement step number that raw movement step number=this movement step number-last time read reads.
In the embodiment of the present invention, memory module 30 may be used various ways and store movement step number into database.
Optionally, when preset time is a unit interval, i.e., meter step equipment reads primary fortune every a unit interval
When dynamic step number, memory module 30 then as shown in figure 4, include statistic unit 31, the first judging unit 32 and the first storage unit 33,
Wherein:Statistic unit 31, for counting the movement step number in a meter step period;First judging unit 32, for judging statistics
Movement step number whether be greater than or equal to second threshold;First storage unit 33, if the movement step number for statistics is more than or waits
In second threshold, then the movement step number of statistics is stored in database.
Wherein, a meter step period is N (N>1) a unit interval, optionally, 4≤N≤6, preferably N=5, such as every 5 minutes
For a meter step period, i.e. 31 every 5 minutes movement step numbers counted once in current 5 minutes of statistic unit.
Optionally, when preset time was at least two unit interval, i.e., meter step equipment is read every at least two unit interval
When taking primary movement step number, memory module 30 then as shown in figure 5, include second judgment unit 34 and the second storage unit 35,
In:Whether second judgment unit 34, the movement step number for judging to generate in preset time are greater than or equal to second threshold;Second
Storage unit 35 will produce if the movement step number for being generated in preset time is greater than or equal to second threshold in preset time
Raw movement step number is stored in database.
Aforementioned second threshold can be according to actual needs or empirical value determines that 4-6 is walked, preferably 5 steps only deposit
Storage filters out the data less than 5 steps more than or equal to the data of 5 steps.In general, the data less than 5 steps may not be true
Exercise data filters out non-genuine exercise data, can improve the accuracy of meter step by being screened to exercise data.
In certain embodiments, after computing module 20 calculates the movement step number generated in the current preset time, storage
The movement step number generated in preset time directly can also be stored in database by module 30, i.e., memory module 30 is not to moving number
According to being screened, all exercise datas of reading are all stored.
Memory module 30 can also further store this meter step time started, meter step knot when storage moves step number
The related datas such as beam time.Wherein, when read module 10 is when a unit interval reading primary movement step number, meter step starts
Time and meter the end of the step time, that is, current meter step period at the beginning of and the end time (i.e. current time);When read module 10
When at least two unit interval reading primary movement step number, meter step time started and meter the end of the step time i.e. this start to read
Take time and the current time of movement step number.
In the embodiment of the present invention, all movements that the first judgment module 40 stores in real time or in the cumulative data library of timing
Step count data obtains total movement step number, and the size of more total movement step number and first threshold, judges total movement step number
Whether first threshold is greater than or equal to.
First threshold can be set according to actual needs, can be set as 150-250 steps, preferably 200 steps, to take into account equipment
Province electrically and data transmission real-time.
In the embodiment of the present invention, when the total movement step number stored in database is greater than or equal to first threshold, first
Total movement step number that processing module 50 is then stored into server transmission data library then empties database after sending successfully
The movement step number of middle storage.
In other embodiments, total fortune that first processing module 50 can also be stored into terminal device transmission data library
Dynamic step number, the terminals such as the mobile terminals such as described terminal device such as mobile phone, tablet or PC, laptop.
Further, as shown in fig. 6, in the step count set second embodiment of the present invention, which further includes second sentencing
Disconnected module 60 and Second processing module 70, wherein:Second judgment module 60, by judge it is accumulative based on step duration whether be more than or
Equal to third threshold value;Second processing module 70 is sent out if step duration is greater than or equal to third threshold value based on accumulative
The total movement step number stored in database, and Changqing when emptying the movement step number stored in database and being walked to accumulative meter
Zero.
Third threshold value can be set according to actual needs, can be set as 50-70 minutes, preferably 60 minutes i.e. 1 hour,
It is electrical with the province for taking into account real-time and equipment that data are sent.
The step count set of the embodiment of the present invention reads movement step number by timing and calculates the fortune generated in this time
Dynamic step number and the storage for carrying out movement step number are just sent out primary when total movement step number of storage reaches first threshold
Step count data is moved, to substantially reduce data transmission frequency, reduces the energy consumption of meter step equipment, provides meter step equipment
Cruising ability.
Referring to Fig. 7, propose another embodiment of step count set of the present invention, the step count set of the present embodiment and above-mentioned implementation
Example is substantially the same, and difference is that the step count set of the present embodiment further includes sending module 01, receiving module 02, the first acquisition module
03, the second acquisition module 04 and replacement module 05.
Sending module 01 is used to send link order to server, and records the first current time.When step count set is switched on
It is wirelessly connected to server link order with being realized with server automatically by wifi or 2G/3G/4G/5G wireless networks.It receives
Module 02 is used to receive the UTC that server is fed back according to link order, and (Universal Time Coordinated, the world are coordinated
Time) time, and record the second current time;First acquisition module 03 is used for according to the first current time, the second current time
Obtain data transmission period;Wherein, data transmission period is that meter step device-to-server sends link order and receives service
Device feeds back taking for UTC time, and data transmission period subtracts the first current time equal to the second current time.Second acquisition module
04 according to transmission time, UTC time for obtaining fiducial time.Second current time subtracts transmission time and adds server
UTC time, to obtain the fiducial time of meter step equipment and server sync.Replacement module 05 is for will be replaced into fiducial time
The equipment time.
To improve the accuracy of meter step equipment time, and read module 10 is read when moving step number, with the equipment time
On the basis of monitored whether reach preset time, and first processing module 50 on the basis of the equipment time to server send transport
Dynamic step number improves the accuracy that server temporally counts movement step number.
The present invention proposes that meter step equipment, meter step equipment include memory, processor and at least one is stored in simultaneously
In memory and it is configured as the application program executed by the processor, the application program is configurable for executing one kind
Step-recording method.The step-recording method includes the following steps:Primary movement step number is read every preset time;According to the movement of reading
Step number calculates the movement step number generated in preset time;The storage movement step number into database;Judge to store in database
Whether total movement step number is greater than or equal to first threshold;If so, it is sent out the total movement step number stored in database,
And empty the movement step number of storage.Step-recording method described in the present embodiment is the meter in the present invention involved by above-described embodiment
One step process, details are not described herein.
It will be understood by those skilled in the art that the present invention includes being related to for executing one in operation described herein
Or multinomial equipment.These equipment can specially be designed and be manufactured for required purpose, or can also include general-purpose computations
Known device in machine.There is these equipment the computer program being stored in it, these computer programs selectively to activate
Or reconstruct.Such computer program, which can be stored in equipment (for example, computer) readable medium or be stored in, to be suitable for
Storage e-command is simultaneously coupled in any kind of medium of bus respectively, and the computer-readable medium includes but not limited to
Any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, it is read-only to deposit
Reservoir), RAM (Random Access Memory, random access memory), EPROM (Erasable Programmable Read-
Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable
Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card.It is, readable
Medium includes by any medium of equipment (for example, computer) storage or transmission information in the form of it can read.
Those skilled in the art of the present technique be appreciated that can with computer program instructions come realize these structure charts and/or
The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology is led
Field technique personnel be appreciated that these computer program instructions can be supplied to all-purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods
Device come execute structure chart and/or block diagram and/or flow graph disclosed by the invention frame or multiple frames in specify scheme.
Those skilled in the art of the present technique are appreciated that in the various operations crossed by discussion in the present invention, method, flow
Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention
Other steps, measures, and schemes in kind operation, method, flow may also be alternated, changed, rearranged, decomposed, combined or deleted.
Further, in the prior art to have and step, measure, the scheme in various operations, method, flow disclosed in the present invention
It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The foregoing is merely the preferred embodiment of the present invention, are not intended to limit the scope of the invention, every utilization
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content is applied directly or indirectly in other correlations
Technical field, be included within the scope of the present invention.
Claims (10)
1. a kind of step-recording method, which is characterized in that include the following steps:
Primary movement step number is read every preset time;
The movement step number generated in the preset time is calculated according to the movement step number of reading;
The storage movement step number into database;
Judge whether the total movement step number stored in the database is greater than or equal to first threshold;
If so, being sent out the total movement step number stored in the database, and empty the movement step number of storage.
2. step-recording method according to claim 1, which is characterized in that the preset time is a unit interval, described
Into database, the step of storage movement step number, includes:
Count the movement step number in a meter step period;Wherein, a meter step period is N number of unit interval, and N is more than 1;
Judge whether the movement step number of statistics is greater than or equal to second threshold;
If so, the movement step number of statistics is stored in the database.
3. step-recording method according to claim 1, which is characterized in that the preset time was at least two unit interval,
It is described to include the step of storage movement step number into database:
Judge whether the movement step number generated in the preset time is greater than or equal to second threshold;
If so, the movement step number generated in the preset time is stored in the database.
4. according to claim 1-3 any one of them step-recording methods, which is characterized in that the movement pedometer according to reading
The step of calculating the movement step number generated in the preset time include:
Judge whether the movement step number that this reads is less than the last movement step number read;
If so, limit of utilization value subtracts described in movement step number conduct of the movement step number of last reading along with this reading
The movement step number generated in preset time;
If it is not, then subtracting the last movement step number read as being produced in the preset time using movement step number of this reading
Raw movement step number.
5. according to claim 1-3 any one of them step-recording methods, which is characterized in that the method further includes:
Judge whether accumulative meter step duration is greater than or equal to third threshold value;
If so, be sent out the total movement step number stored in the database, and empty the movement step number of storage and right
Accumulative meter step duration is reset.
6. a kind of step count set, which is characterized in that including:
Read module, for reading primary movement step number every preset time;
Computing module, for calculating the movement step number generated in the preset time according to the movement step number of reading;
Memory module, for the storage movement step number into database;
Whether the first judgment module, total movement step number for judging to store in the database are greater than or equal to the first threshold
Value;
First processing module, if total movement step number for being stored in the database is greater than or equal to first threshold, to
It is outer to send the total movement step number stored in the database, and empty the movement step number of storage.
7. step count set according to claim 6, which is characterized in that the preset time is a unit interval, described
Memory module includes:
Statistic unit, for counting the movement step number in a meter step period;Wherein, a meter step period is N number of unit interval,
And N is more than 1;
First judging unit, for judging whether the movement step number of statistics is greater than or equal to second threshold;
First storage unit deposits the movement step number of statistics if the movement step number for statistics is greater than or equal to second threshold
It is stored in the database.
8. step count set according to claim 6, which is characterized in that the preset time was at least two unit interval,
The memory module includes:
Whether second judgment unit, the movement step number for judging to generate in the preset time are greater than or equal to second threshold;
Second storage unit, if the movement step number for being generated in the preset time is greater than or equal to second threshold, by institute
It states the movement step number generated in preset time and is stored in the database.
9. according to claim 6-8 any one of them step count sets, which is characterized in that the computing module includes:
Third judging unit, for judging whether the movement step number that this reads is less than the last movement step number read;
First computing unit, if the movement step number for this reading is less than the last movement step number read, limit of utilization
Value subtracts the movement step number of last reading along with the movement step number of this reading is as the fortune generated in the preset time
Dynamic step number;
Second computing unit, if the movement step number for this reading utilizes this not less than the last movement step number read
The movement step number of secondary reading subtracts the movement step number of last reading as the movement step number generated in the preset time.
10. according to claim 6-8 any one of them step count sets, which is characterized in that described device further includes:
Second judgment module, by judge it is accumulative based on step duration whether be greater than or equal to third threshold value;
Second processing module is sent out the database if step duration is greater than or equal to third threshold value based on accumulative
Total movement step number of middle storage, and empty the database and accumulative meter step duration is reset.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810302300.3A CN108709565A (en) | 2018-04-04 | 2018-04-04 | Step-recording method and step count set |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810302300.3A CN108709565A (en) | 2018-04-04 | 2018-04-04 | Step-recording method and step count set |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108709565A true CN108709565A (en) | 2018-10-26 |
Family
ID=63867080
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810302300.3A Pending CN108709565A (en) | 2018-04-04 | 2018-04-04 | Step-recording method and step count set |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108709565A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019191991A1 (en) * | 2018-04-04 | 2019-10-10 | 深圳市沃特沃德股份有限公司 | Step-counting method, apparatus, and step-counting device |
CN110349646A (en) * | 2019-07-15 | 2019-10-18 | 上海交通大学 | Recognizing model of movement method and system based on priori knowledge cluster |
CN110411474A (en) * | 2019-07-22 | 2019-11-05 | 杭州沃朴物联科技有限公司 | Step-recording method, equipment, medium, device, chicken board and management system for breeding |
CN113884101A (en) * | 2021-09-29 | 2022-01-04 | 歌尔科技有限公司 | Step counting method of wearable device, wearable device and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103220120A (en) * | 2012-01-20 | 2013-07-24 | 腾讯科技(深圳)有限公司 | Time synchronizing method of mobile terminal, mobile terminal and time synchronizing system |
CN103685765A (en) * | 2013-11-13 | 2014-03-26 | 广东明创软件科技有限公司 | Method for raising endurance of mobile terminal and system thereof |
CN103791915A (en) * | 2014-02-12 | 2014-05-14 | 清华大学 | Bluetooth connection-supported pedometer device |
CN106388786A (en) * | 2016-12-14 | 2017-02-15 | 广东技术师范学院 | Processing method acquiring data based on intelligent ring |
CN106468560A (en) * | 2016-09-13 | 2017-03-01 | 广东欧珀移动通信有限公司 | Data output method based on pedometer message and device |
CN106895849A (en) * | 2017-02-23 | 2017-06-27 | 上海与德信息技术有限公司 | The accurate method of counting and device of a kind of pedometer |
CN107256622A (en) * | 2017-05-31 | 2017-10-17 | 深圳市沃特沃德股份有限公司 | Pet wearable device and its pet information transferring method |
CN107635400A (en) * | 2016-05-09 | 2018-01-26 | 深圳市欸阿技术有限公司 | Pet wearable device and its method for supervising pet |
-
2018
- 2018-04-04 CN CN201810302300.3A patent/CN108709565A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103220120A (en) * | 2012-01-20 | 2013-07-24 | 腾讯科技(深圳)有限公司 | Time synchronizing method of mobile terminal, mobile terminal and time synchronizing system |
CN103685765A (en) * | 2013-11-13 | 2014-03-26 | 广东明创软件科技有限公司 | Method for raising endurance of mobile terminal and system thereof |
CN103791915A (en) * | 2014-02-12 | 2014-05-14 | 清华大学 | Bluetooth connection-supported pedometer device |
CN107635400A (en) * | 2016-05-09 | 2018-01-26 | 深圳市欸阿技术有限公司 | Pet wearable device and its method for supervising pet |
CN106468560A (en) * | 2016-09-13 | 2017-03-01 | 广东欧珀移动通信有限公司 | Data output method based on pedometer message and device |
CN106388786A (en) * | 2016-12-14 | 2017-02-15 | 广东技术师范学院 | Processing method acquiring data based on intelligent ring |
CN106895849A (en) * | 2017-02-23 | 2017-06-27 | 上海与德信息技术有限公司 | The accurate method of counting and device of a kind of pedometer |
CN107256622A (en) * | 2017-05-31 | 2017-10-17 | 深圳市沃特沃德股份有限公司 | Pet wearable device and its pet information transferring method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019191991A1 (en) * | 2018-04-04 | 2019-10-10 | 深圳市沃特沃德股份有限公司 | Step-counting method, apparatus, and step-counting device |
CN110349646A (en) * | 2019-07-15 | 2019-10-18 | 上海交通大学 | Recognizing model of movement method and system based on priori knowledge cluster |
CN110349646B (en) * | 2019-07-15 | 2022-06-10 | 上海交通大学 | Priori knowledge clustering-based motion pattern recognition method and system |
CN110411474A (en) * | 2019-07-22 | 2019-11-05 | 杭州沃朴物联科技有限公司 | Step-recording method, equipment, medium, device, chicken board and management system for breeding |
CN113884101A (en) * | 2021-09-29 | 2022-01-04 | 歌尔科技有限公司 | Step counting method of wearable device, wearable device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108709565A (en) | Step-recording method and step count set | |
CN105912703A (en) | Data storage method and data query method and device | |
CN102625486B (en) | Agent node, sensor network, and method for acquiring sensor network data | |
CN101883444B (en) | Mobile agent acquisition and storage method suitable for Internet of things | |
KR20120107720A (en) | Method and apparatus for managing sensor data and analyzing sensor data | |
CN105230081A (en) | Based on the connectedness of cloud | |
CN107197509A (en) | heartbeat connection method and device | |
CN105577772A (en) | Material receiving method, material uploading method and device | |
CN103390244A (en) | User friend relation polymerization method and platform with operator characteristics | |
CN104503894A (en) | System and method for monitoring state of distributed server in real time | |
CN107067325A (en) | Filter method, filter and the supplying system of stock market data | |
CN107135536A (en) | Method for connecting network and device | |
CN109817319A (en) | Equipment operation state statistical analysis system platform and equipment operation state method for real-time monitoring and system | |
CN109525861A (en) | A kind of method and device of video needed for determining user | |
CN109857802A (en) | Daily record data synchronous method, device, equipment and computer readable storage medium | |
CN103778041B (en) | Data monitoring method and device for internet | |
CN107731284A (en) | Medical data sharing method and system | |
Zhao et al. | Sensor network tomography: Monitoring wireless sensor networks | |
CN106550095A (en) | The yellow page system of the method, device and mobile terminal of health data management | |
CN109089085A (en) | A kind of memory based on high-definition camera is looked for something method, apparatus and system | |
CN103383461B (en) | Tourist group's location acquiring method | |
CN107526808B (en) | Real-time data processing method and device | |
CN112073904B (en) | Event monitoring method, system, device, electronic equipment and storage medium | |
CN112003900B (en) | Method and system for realizing high service availability under high-load scene in distributed system | |
CN204946111U (en) | A kind of medical record information managing queries management all-in-one |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181026 |