CN106445715A - Method and device for reporting pedometer messages - Google Patents
Method and device for reporting pedometer messages Download PDFInfo
- Publication number
- CN106445715A CN106445715A CN201610822601.XA CN201610822601A CN106445715A CN 106445715 A CN106445715 A CN 106445715A CN 201610822601 A CN201610822601 A CN 201610822601A CN 106445715 A CN106445715 A CN 106445715A
- Authority
- CN
- China
- Prior art keywords
- step number
- pedometer
- message
- pedometer message
- statistics
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- 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
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Distances Traversed On The Ground (AREA)
Abstract
The embodiment of the invention discloses a method and a device for reporting pedometer messages. The method comprises the following steps: monitoring a step number accounted by a pedometer, and generating an interrupt instruction when the step number accounted by the pedometer is greater than a preset step number threshold; detecting the interrupt instruction reported by the pedometer, awakening a system according to the interrupt instruction, generating a first pedometer message according to the step number accounted by the pedometer, and reporting the first pedometer message through a driving layer, wherein the first pedometer message corresponds to a first value; detecting a step number acquisition instruction, acquiring a second step number accounted by the pedometer according to the step number acquisition instruction; generating a second pedometer message according to the second step number, wherein a second value corresponding to the second pedometer message is equal to the sum of the second step number and the preset step number threshold. In addition, the embodiment of the invention further discloses a device for reporting the pedometer messages. By adopting the method and the device, step number accounting accuracy can be improved.
Description
Technical field
The present invention relates to field of computer technology, more particularly, to a kind of report method of pedometer message and device.
Background technology
In prior art, increasing software contains the function of meter step, and for example, wechat meter walks, QQ motion etc., for
For these softwares, its corresponding step number be paces are detected by built-in pedometer in terminal after, driving layer by paces
Data reports, and the application program such as the wechat application of application layer, QQ application monitors the related news that pedometer reports, then will be corresponding
Step number update wechat meter walk the page or QQ motion meter step the page.
In general, the paces data of pedometer statistics is stored in the depositor of corresponding chip internal, and this is posted
There is the maximum of the numerical value of storage, for example, for the depositor of 16, the maximum of the step number that can store in storage
For 65535.When the data of pedometer statistics exceedes the maximum of above-mentioned depositor, corresponding numerical value can be directly zeroed, this
It is exactly common spillover.
During the data counting on is reported by pedometer, if there occurs the spilling of data, this reports
Data can be significantly less than the data that reports of last time that is to say, that the step number of storage is jumped from a larger value in depositor
Change to a less value.In the case of occurring data to overflow, corresponding application such as wechat motion etc., meter step is being detected
After the step number that device reports, can directly go up this less step Numerical and be counted, but be because that data there occurs spilling, and
Do not consider during statistics that data overflows the impact that the actual value to step number produces, thus result in the step number of statistics not
The actual quantity of motion of user can really be reacted, there is a problem of that the accuracy of data statisticss is not enough.
Content of the invention
Based on this, the size for solving the storable data of the depositor because of pedometer in conventional art limits and leads to count
What in step device, the data of statistics produced overflow thus the not enough technical problem of the step number statistical accuracy that leads to, and spy proposes one
Plant the report method of pedometer message.
A kind of report method of pedometer message, including:
The step number of monitoring pedometer statistics, when the step number of described pedometer statistics is more than default step number threshold value, generates
Interrupt instruction;
The interrupt instruction that detection pedometer reports, wakes up system according to described interrupt instruction, is counted according to described pedometer
Step number generate the first pedometer message, and by drive layer described first pedometer message is reported, described first count
Step device message corresponds to the first step number;
The second pedometer message that detection pedometer reports, obtains corresponding second step number of described pedometer message;
When described second step number is less than the first step number, judges that described second step number is overflowed, calculate the described first step
Number and the step numbers of described second step number and, by described step number with report.
Optionally, in one embodiment, the described step judging that described second step number generation is overflowed also includes:
Judge to detect whether occurred to restart between described first pedometer message and described second pedometer message, if
No, then judge that described second step number is overflowed.
Optionally, in one embodiment, the described step judging that described second step number generation is overflowed also includes:
Judge to detect whether pedometer occurred between described first pedometer message and described second pedometer message
Reset, if it is not, then judging that described second step number is overflowed.
Optionally, in one embodiment, described judge described second step number occur overflow step before also include:
Obtain the very first time corresponding with described first pedometer, when obtaining corresponding with described second pedometer second
Between;
According to the described very first time and time interval described in described second Time Calculation;
Calculate the ratio of the second step number and described time interval, be more than or equal to default rate of change threshold value in described ratio
When, judge that described second pedometer message, as forging message and generating the abnormal prompting message of step number, is less than institute in described ratio
When stating rate of change threshold value, execution is described to judge that described second step number occurs the step overflowed.
Optionally, in one embodiment, methods described also includes:
If described pedometer is detected by driving the pedometer message that reports of layer, obtain and comprise in this pedometer message
Step number, this step number is stored to default memory area, this step number is uploaded to default application server, described application service
Device is used for this step number is added to the motion step number of statistics in described application server.
Additionally, leading to meter step for solving the size restriction of the storable data of the depositor because of pedometer in conventional art
What in device, the data of statistics produced overflow thus the not enough technical problem of the step number statistical accuracy that leads to, and spy proposes one kind
The reporting device of pedometer message.
A kind of reporting device of pedometer message, including:
Interrupt instruction generation module, for monitoring the step number of pedometer statistics, is more than in the step number of described pedometer statistics
During default step number threshold value, generate interrupt instruction;
First step number acquisition module, for detecting the interrupt instruction that pedometer reports, wakes up system according to described interrupt instruction
System, generates the first pedometer message according to the step number of described pedometer statistics, and by driving layer, described first pedometer is disappeared
Breath is reported, and described first pedometer message corresponds to the first step number;
Second step number acquisition module, for detecting the second pedometer message that pedometer reports, obtains described pedometer and disappears
Cease corresponding second step number;
Step number reporting module, for when described second step number is less than the first step number, judging that described second step number occurs to overflow
Go out, calculate described first step number and described second step number step number and, by described step number with report.
Optionally, in one embodiment, described device also includes restarting determining module, for judging to detect described the
Whether occurred to restart between one pedometer message and described second pedometer message, when restarting, called described step number
Reporting module.
Optionally, in one embodiment, described device also includes resetting determining module, for judging to detect described the
Whether occurring pedometer to reset between one pedometer message and described second pedometer message, resetting there is pedometer
When, call described step number reporting module.
Optionally, in one embodiment, described device also includes rate of change determining module, for obtaining and described first
The pedometer corresponding very first time, obtain second time corresponding with described second pedometer;According to the described very first time and institute
State time interval described in the second Time Calculation;Calculate the ratio of the second step number and described time interval, described ratio be more than or
During equal to default rate of change threshold value, judge described second pedometer message as forging message and generate the abnormal prompting of step number and disappear
Breath, when described ratio is less than described rate of change threshold value, calls described step number reporting module.
Optionally, in one embodiment, described device also includes step number statistical module, by detect described based on walk
When device is by driving pedometer message that layer reports, obtains the step number comprising in this pedometer message, this step number is stored to pre-
If memory area, this step number is uploaded to default application server, described application server be used for this step number is added to
The motion step number of statistics in described application server.
Implement the embodiment of the present invention, will have the advantages that:
After employing report method and the device of above-mentioned pedometer message, the step number for statistics in pedometer is supervised
Survey, when this step number reaches default spilling threshold value, generate interrupt instruction and wake up system, then corresponding step number is reported
To application layer, so that corresponding meter step application gets the step number statistics related to overflowing threshold value, then in upper once meter step
In the case that device reports step number, if the step number reporting is less than the front step number once reporting, the step number and upper that this is reported
Secondary report step number and as the step number finally reporting.That is, after in pedometer, the step number of statistics is overflowed,
On the basis of the step number that follow-up step number reports, add what the last time reported during default spilling threshold value because statistics step number exceedes
Step number, using the two and as the final result reporting so that contain in this step number of reporting overflowing because of pedometer
The loss of data being likely to result in.Directly will not consider, when previous step number reports, the shadow that step number is overflowed compared in conventional art
The technical scheme rung, using the present invention, can improve the accuracy of the data statisticss of the step count data that pedometer reports.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable
Other accompanying drawings are obtained according to these accompanying drawings.
Wherein:
Fig. 1 is a kind of schematic flow sheet of the report method of pedometer message in an embodiment;
Fig. 2 is a kind of structural representation of the reporting device of pedometer message in an embodiment;
Fig. 3 is the structural representation of the computer equipment of report method running aforementioned pedometer message in an embodiment
Figure.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
Size for solving the storable data of the depositor because of pedometer in conventional art limits and leads in pedometer
What the data of statistics produced overflows thus the technical problem of the step number statistical accuracy deficiency leading to, in the present embodiment, special
Propose a kind of report method of pedometer message, the realization of the method can be dependent on computer program, and this computer program can
Run on the computer system based on von Neumann system, this computer program can be the process of pedometer statistical data
Program or wechat motion, QQ length of run sequence such as move at the application of meter step application corresponding step number statistics.This computer system can be
That runs above computer program is provided with the service such as the such as smart mobile phone of pedometer sensor, panel computer, PC
Device or terminal.
Specifically, as shown in figure 1, the report method of above-mentioned pedometer message comprises the steps:
Step S102:The step number of monitoring pedometer statistics, is more than default step number threshold in the step number of described pedometer statistics
During value, generate interrupt instruction.
In the present embodiment, pedometer, when paces is detected, the step number detecting is updated in the step number of statistics,
That is, during pedometer detects paces, in pedometer, the step number of statistics constantly can increase with the accumulative of paces
Plus.In the present embodiment, because the size of the depositor of step number of pedometer corresponding storage statistics limits, it has one can
With the maximum of the step number of storage, as overflow threshold value.Depositor be 16 depositor in the case of, corresponding spilling
Threshold value is 65535, then after the step number of statistics is 65535, again in the case of accumulation step number, the step of storage in depositor
Number can restart to accumulate from 0.
In the present embodiment, default step number threshold value can be set to above-mentioned spilling threshold value or overflow with this
Go out some close value of threshold value, for example, in the case that spilling threshold value is 65535, this step number threshold value can be arranged
For 65534.
In the present embodiment, if step number pedometer statistics is detected is more than or equal to default step number threshold value, generate
Interrupt instruction, in terminal, corresponding processor is processed for this interrupt instruction after this interrupt instruction is detected, for example,
Go obtain pedometer in statistics step number or occur instruction so that pedometer the step number of statistics is reported or according in
Disconnected wake instruction system or the corresponding application of wake-up carry out related operation.
In the present embodiment, after the interrupt instruction that pedometer reports is detected, system is waken up according to this interrupt instruction,
Namely waken up process corresponding with pedometer, for example, wechat is moved.
Step S104:The interrupt instruction that detection pedometer reports, wakes up system according to described interrupt instruction, according to described meter
The step number of step device statistics generates the first pedometer message, and is reported described first pedometer message by driving layer, institute
State the first pedometer message and correspond to the first step number.
In the present embodiment, after pedometer generates interrupt instruction and wakes up system, can will count in pedometer
Step number is reported, and that is, the step number according to statistics in pedometer generates pedometer message, then passes through to drive by this pedometer message
Dynamic layer reports.
In general, pedometer, can be via driving layer to report after step number is detected, and in general, pedometer reports
The frequency of step number can be to detect each time after step number updates all to generate corresponding interrupt instruction, and then terminal is detecting
After interrupt instruction, obtaining the step number that pedometer reports, or, in order to save the power consumption of terminal, can also arrange in the terminal
One intervalometer, regularly reports the step number that pedometer detects, with that is, be not that pedometer often detects step number more new capital
New step number is reported, but the renewal sending corresponding step count information to driving layer of timing.Also or, receiving
After obtaining the acquisition instruction of step number corresponding step number, by pedometer, corresponding step number is included in pedometer message and reports.Tool
In body embodiment, the data that for example device such as pedometer, sensor, touch screen gets is all to report framework via driving layer
Layer, is then reported to application layer, so that the application in the correlation of application layer gets corresponding pedometer message and meter
The step number of step device statistics.
Step S106:The second pedometer message that detection pedometer reports, obtains described pedometer message corresponding second
Step number.
In the present embodiment, after pedometer has reported the first pedometer message, obtain instruction in user input step number
Or after other detect the trigger event of other triggering step numbers acquisition instructions, pedometer can be by the step number counting in pedometer
Report, the step number of statistics will be included in pedometer message and reported in pedometer.In the present embodiment, by pedometer
After the step number of statistics exceedes default step number threshold value and generates interrupt instruction and then report the first pedometer message, detect
Pedometer message is referred to as the second pedometer message that is to say, that the second pedometer message is to disappear the first pedometer is detected
The pedometer message next time detecting after breath, in the second pedometer message, corresponding step number is the second step number.
Step S108:When described second step number is less than the first step number, judges that described second step number is overflowed, calculate institute
State the first step number and described second step number step number and, by described step number with report.
In general, in a particular embodiment, because the continuous accumulation of step number, after the pedometer message that detects corresponding
Step number is greater than in the corresponding step number of pedometer message front detecting.But, because the depositing of the corresponding depositor of pedometer
The size in storage space limits, and the storable step number of depositor has certain restriction, that is, there is a storable step number
Big value, in the present embodiment, this value is referred to as to overflow threshold value.Because the step number storing in a register reaches above-mentioned spilling
In the case of threshold value, if pedometer continues in corresponding for the paces detecting data Cun Chudao pedometer, deposit in depositor
Storage data will be zeroed that is to say, that depositor be 16 depositor in the case of, corresponding spilling threshold value be
65535, then, after the step number of statistics is 65535, again in the case of accumulation step number, in depositor, the step number of storage can be from 0
Restart to accumulate.
That is, because in general, the meter step software such as wechat motion timing all can carry out corresponding data more daily
Newly, that is, meter step software in step number statistical conditions renewal be ratio more frequently, therefore, adjacent pedometer twice reports
In pedometer message, the lookup of corresponding step number is little, and, the general corresponding spilling threshold value of the corresponding depositor of pedometer
It is all a larger numerical value, therefore, if corresponding step number is less than last pedometer in the pedometer message that reports of pedometer
In the pedometer message that last time reports, corresponding step number is little, illustrates corresponding in the pedometer message that corresponding pedometer reports
Step number is abnormal, and this exception is possibly due to report to exist in the middle of pedometer message in last time overflow.
In the present embodiment, if corresponding second step number of the second pedometer message that ought previous detect once is examined less than front
Corresponding first step number of the first pedometer message measuring, then judge the second pedometer message that ought previous detect corresponding the
Two step numbers are the step numbers after overflowing.
Because the corresponding first pedometer message of default step number threshold value will have been exceeded before overflowing have been reported,
That is, corresponding step number as overflows threshold value, in this case, again in the front pedometer message once detecting
Corresponding second step number of the second pedometer message detecting is to start again from 0 after pedometer message in upper once having reported
Accumulative, therefore, detecting between the first pedometer message and the second pedometer message, the paces that pedometer detects correspond to
Step number summation be the second step number.Therefore, in the present embodiment, it is not less than on the last time to the step number that pedometer reports
Corresponding first step number in first pedometer message of report, then need the step number that the last time reported to take into account that is to say, that
The step number reporting be the first step number with the step number of the second step number and.
It should be noted that in the present embodiment, if between the detection of pedometer message twice, terminal is weighed
Open, then corresponding pedometer has carried out shutoff operation and do not restart, and pedometer is in the case of being restarted, it is being deposited
In device, the data of storage all can be cleared and then from 0 from newly starting to add up.Therefore, in an optional embodiment, judging
In addition it is also necessary to consider whether terminal is rebooted or counts step during in pedometer message, whether corresponding step number overflows
Whether device is rebooted.
Specifically, in one embodiment, described second step number of above-mentioned judgement also includes before there is the step overflowed:Sentence
Whether disconnected detecting occurred to restart, if it is not, then judging between described first pedometer message and described second pedometer message
Described second step number is overflowed.
In another embodiment, the described step judging that described second step number generation is overflowed also includes:Judgement detects
Pedometer whether was occurred to reset between described first pedometer message and described second pedometer message, if it is not, then judging institute
State the second step number to overflow.
That is, only in the case that terminal or pedometer are not restarted or reset, previous right working as
The second step number answered is judged to overflow, if conversely, after terminal or pedometer be restarted or reset, its corresponding numerical value
It is zeroed, this zero is not to lead to because overflowing, and therefore can not be judged as overflowing, in this case,
Second step number is normal less than the first step number, and the meter step software such as wechat motion directly will be corresponding for the pedometer detecting message
Second step number is updated in corresponding application server.
Further, when whether the corresponding data of pedometer message considering that pedometer reports is abnormal in addition it is also necessary to consider
The variable quantity of data and the relation between the time that is to say, that need considers that whether step number change within the unit interval is
Reasonably.
Specifically, in one embodiment, described second step number of above-mentioned judgement also includes before there is the step overflowed:Obtain
Take the very first time corresponding with described first pedometer, obtain second time corresponding with described second pedometer;According to described
The very first time and time interval described in described second Time Calculation;Calculate the ratio of the second step number and described time interval, in institute
When stating ratio and being more than or equal to default rate of change threshold value, judge described second pedometer message as forging message and generate step number
Abnormal prompting message, when described ratio is less than described rate of change threshold value, execution is described to judge that described second step number occurs to overflow
The step going out.
That is, not only containing the step number of corresponding statistics in pedometer message, further comprises corresponding reporting
Time, the time that the pedometer message package according to detecting twice contains can determine the pedometer message that detects twice when
Between be spaced.Because pedometer after the first pedometer message is detected is zeroed that is to say, that the second step number because of overflowing
The step number counting between the message of pedometer twice as detecting, the ratio between the second step number and above-mentioned time interval is
The variable quantity of step number in the unit interval can be reflected.And this variable quantity is not over certain restriction, if having exceeded default
Changing value ultimate value (i.e. default rate of change threshold value), then illustrate corresponding in the second currently detected pedometer message
Second step number may be tampered, and in this case, generate the abnormal prompting message of pedometer message and be used for pointing out user to work as
Front data may be tampered, conversely, then execution judges whether the second step number occurs the associative operation overflowing.
Further, in the present embodiment, the meter in application layer walks software and disappears receiving the pedometer that pedometer reports
After breath, step number corresponding in pedometer message can be updated and count the page or memory area in corresponding step number.Specifically,
In the present embodiment, methods described also includes:If described pedometer is detected by driving the pedometer message that layer reports, obtain
The step number comprising in this pedometer message, this step number is stored to default memory area, this step number is uploaded to default answering
With server, described application server for being added to the motion step number of statistics in described application server by this step number.
That is, after meter step software gets the step number comprising in pedometer message, if currently corresponding meter step
In software, corresponding step number statistics is not need to upload on network, then store this step number corresponding default to this meter step software
Memory area in, if currently corresponding meter step software corresponding step number statistics be intended to upload to corresponding application server, example
As wechat is moved, then the step number obtaining from pedometer message is uploaded to application server, application server is on receiving
After the step number passing, this step number is added in the motion step number of corresponding statistics in application server.
Additionally, leading to meter step for solving the size restriction of the storable data of the depositor because of pedometer in conventional art
What in device, the data of statistics produced overflow thus the not enough technical problem of the step number statistical accuracy that leads to, in an embodiment
In, as shown in Figure 2 it is also proposed that a kind of reporting device of pedometer message, specifically, the reporting device bag of this pedometer message
Include interrupt instruction generation module 102, the first step number acquisition module 104, the second step number acquisition module 106, step number reporting module
108, wherein:
Interrupt instruction generation module 102 is for monitoring the step number of pedometer statistics, big in the step number of described pedometer statistics
When default step number threshold value, generate interrupt instruction;
First step number acquisition module 104, for detecting the interrupt instruction that pedometer reports, wakes up according to described interrupt instruction
System, generates the first pedometer message according to the step number of described pedometer statistics, and by driving layer by described first pedometer
Message is reported, and described first pedometer message corresponds to the first step number;
Second step number acquisition module 106, for detecting the second pedometer message that pedometer reports, obtains described pedometer
Corresponding second step number of message;
Step number reporting module 108, for when described second step number is less than the first step number, judging that described second step number occurs
Overflow, calculate described first step number and described second step number step number and, by described step number with report.
Optionally, in one embodiment, as shown in Fig. 2 said apparatus also include restarting determining module 110, it is used for sentencing
Whether disconnected detecting occurred to restart between described first pedometer message and described second pedometer message, was restarting
When, call described step number reporting module 108.
Optionally, in one embodiment, as shown in Fig. 2 said apparatus also include resetting determining module 112, it is used for sentencing
Whether disconnected detecting occurred pedometer to reset between described first pedometer message and described second pedometer message, occurring
When crossing pedometer replacement, call described step number reporting module 108.
Optionally, in one embodiment, as shown in Fig. 2 said apparatus also include rate of change determining module 114, it is used for
Obtain the very first time corresponding with described first pedometer, obtain second time corresponding with described second pedometer;According to institute
State the very first time and time interval described in described second Time Calculation;Calculate the ratio of the second step number and described time interval,
When described ratio is more than or equal to default rate of change threshold value, judge described second pedometer message as forging message and generate step
The abnormal prompting message of number, when described ratio is less than described rate of change threshold value, calls described step number reporting module 108.
Optionally, in one embodiment, as shown in Fig. 2 said apparatus also include step number statistical module 116, for
When the pedometer message that described pedometer is reported is detected by driving layer, obtain the step number comprising in this pedometer message, will
This step number stores to default memory area, and this step number is uploaded to default application server, and described application server is used for
This step number is added to the motion step number of statistics in described application server.
Implement the embodiment of the present invention, will have the advantages that:
After employing report method and the device of above-mentioned pedometer message, the step number for statistics in pedometer is supervised
Survey, when this step number reaches default spilling threshold value, generate interrupt instruction and wake up system, then corresponding step number is reported
To application layer, so that corresponding meter step application gets the step number statistics related to overflowing threshold value, then in upper once meter step
In the case that device reports step number, if the step number reporting is less than the front step number once reporting, the step number and upper that this is reported
Secondary report step number and as the step number finally reporting.That is, after in pedometer, the step number of statistics is overflowed,
On the basis of the step number that follow-up step number reports, add what the last time reported during default spilling threshold value because statistics step number exceedes
Step number, using the two and as the final result reporting so that contain in this step number of reporting overflowing because of pedometer
The loss of data being likely to result in.Directly will not consider, when previous step number reports, the shadow that step number is overflowed compared in conventional art
The technical scheme rung, using the present invention, can improve the accuracy of the data statisticss of the step count data that pedometer reports.
In one embodiment, as shown in figure 3, Fig. 3 illustrates a kind of report method running above-mentioned pedometer message
The terminal of the computer system based on von Neumann system.This computer system can be smart mobile phone, panel computer, palm electricity
The terminal units such as brain, notebook computer or PC.Specifically, it may include the outer input interface being connected by system bus
1001st, processor 1002, memorizer 1003 and output interface 1004.Wherein, outer input interface 1001 optionally can at least wrap
Include network interface 10012.Memorizer 1003 may include external memory 10032 (such as hard disk, CD or floppy disk etc.) and memory storage
Device 10034.Output interface 1004 can at least include display screen 10042 grade equipment.
In the present embodiment, the operation of this method is based on computer program, and the program file of this computer program is stored in
In the external memory 10032 of the aforementioned computer system based on von Neumann system, operationally it is loaded into built-in storage
In 10034, after being then compiled as machine code, it is transferred to execution in processor 1002, so that being based on von Neumann system
Computer system in form interrupt instruction generation module 102 in logic, the first step number acquisition module 104, the second step number obtain
Delivery block 106, step number reporting module 108, restart determining module 110, reset determining module 112, rate of change determining module 114 with
And step number statistical module 116.And in the report method implementation procedure of above-mentioned pedometer message, the parameter of input is all by outside
Input interface 1001 receives, and is transferred to caching in memorizer 1003, is then input to be processed in processor 1002, processes
Result data or be cached in memorizer 1003 subsequently processed, or be passed to output interface 1004 and exported.
Step in present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit in embodiment of the present invention terminal can merge according to actual needs, divides and delete.The present invention is real
The terminal applying example offer includes but is not limited to carryOr other operating systems
Terminal, such as mobile phone.Can also be other terminals, such as have Touch sensitive surface (for example, touch-screen display and/or
Trackpad) laptop computer or panel computer or desk computer.
In the following discussion, describe a kind of terminal including display and Touch sensitive surface.It should be appreciated, however, that terminal
Other physical user-interface device one or more, such as physical keyboard, mouse and/or action bars can be included.
Terminal generally supports multiple application programs, such as one or more of following:Picture application program, assume application
Program, word-processing application, webpage create application program, disk editor's application program, spreadsheet applications, game should
With program, telephony application, videoconference application, email application, instant message application program, take exercise and prop up
Hold application program, photograph management application program, digital camera applications program, digital video camcorder application program, network browsing
Application program, digital music player application and/or video frequency player application program.
The physical user-interface device that the various application programs that can execute in terminal can be shared using at least one, such as
Touch sensitive surface.One or more function of Touch sensitive surface and the corresponding information being shown in terminal can be adjusted from a kind of application program
Whole and/or be changed to a kind of lower application program and/or be adjusted in corresponding application programs and/or change.So, being total to of terminal
Various application journeys can be supported with physical structure (such as Touch sensitive surface) using clearly user interface directly perceived for a user
Sequence.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible
Instruct related hardware to complete by computer program, described program can be stored in a computer read/write memory medium
In, this program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosed be only present pre-ferred embodiments, certainly the right model of the present invention can not be limited with this
Enclose, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (10)
1. a kind of report method of pedometer message is it is characterised in that include:
The step number of monitoring pedometer statistics, when the step number of described pedometer statistics is more than default step number threshold value, generates and interrupts
Instruction;
The interrupt instruction that detection pedometer reports, wakes up system according to described interrupt instruction, according to the step of described pedometer statistics
Number generates the first pedometer message, and is reported described first pedometer message by driving layer, described first pedometer
Message corresponds to the first step number;
The second pedometer message that detection pedometer reports, obtains corresponding second step number of described pedometer message;
Described second step number be less than the first step number when, judge described second step number overflow, calculate described first step number and
The step number of described second step number and, by described step number and reporting.
2. the report method of pedometer message according to claim 1 is it is characterised in that described second step number of described judgement
The step overflowed is occurred also to include:
Judge to detect whether occurred to restart between described first pedometer message and described second pedometer message, if it is not,
Then judge that described second step number is overflowed.
3. the report method of pedometer message according to claim 1 is it is characterised in that described second step number of described judgement
The step overflowed is occurred also to include:
Judge to detect and between described first pedometer message and described second pedometer message, whether occurred pedometer to reset,
If it is not, then judging that described second step number is overflowed.
4. the report method of pedometer message according to claim 1 is it is characterised in that described second step number of described judgement
Also include before there is the step overflowed:
Obtain the very first time corresponding with described first pedometer, obtain second time corresponding with described second pedometer;
According to the described very first time and time interval described in described second Time Calculation;
Calculate the ratio of the second step number and described time interval, when described ratio is more than or equal to default rate of change threshold value,
Judge that described second pedometer message, as forging message and generating the abnormal prompting message of step number, is less than described change in described ratio
During rate threshold value, execution is described to judge that described second step number occurs the step overflowed.
5. the report method according to the arbitrary described pedometer message of Claims 1-4 is it is characterised in that methods described is also wrapped
Include:
If described pedometer is detected by driving the pedometer message that layer reports, obtain the step comprising in this pedometer message
Number, this step number is stored to default memory area, this step number is uploaded to default application server, described application server
For this step number being added to the motion step number of statistics in described application server.
6. a kind of reporting device of pedometer message is it is characterised in that include:
Interrupt instruction generation module, for monitoring the step number of pedometer statistics, is more than default in the step number of described pedometer statistics
Step number threshold value when, generate interrupt instruction;
First step number acquisition module, for detecting the interrupt instruction that pedometer reports, wakes up system, root according to described interrupt instruction
Step number according to described pedometer statistics generates the first pedometer message, and is carried out described first pedometer message by driving layer
Report, described first pedometer message corresponds to the first step number;
Second step number acquisition module, for detecting the second pedometer message that pedometer reports, obtains described pedometer message pair
The second step number answered;
Step number reporting module, for when described second step number is less than the first step number, judging that described second step number is overflowed, meter
Calculate described first step number and described second step number step number and, by described step number with report.
7. the reporting device of pedometer message according to claim 6 is it is characterised in that described device also includes restarting really
Cover half block, for judge detect whether occur between described first pedometer message and described second pedometer message overweight
Open, when restarting, call described step number reporting module.
8. the reporting device of pedometer message according to claim 6 is it is characterised in that described device also includes resetting really
Cover half block, step based on judging to detect and whether occurring between described first pedometer message and described second pedometer message
Think highly of and put, when occurring pedometer to reset, call described step number reporting module.
9. the reporting device of pedometer message according to claim 6 is it is characterised in that described device also includes rate of change
Determining module, for obtaining the very first time corresponding with described first pedometer, acquisition corresponding with described second pedometer the
Two times;According to the described very first time and time interval described in described second Time Calculation;Calculate the second step number and described time
The ratio at interval, when described ratio is more than or equal to default rate of change threshold value, judges described second pedometer message as puppet
Make message and generate the abnormal prompting message of step number, when described ratio is less than described rate of change threshold value, call in described step number
Report module.
10. the reporting device according to the arbitrary described pedometer message of claim 6 to 9 is it is characterised in that described device is also wrapped
Include step number statistical module, for when the pedometer message that described pedometer is reported is detected by driving layer, obtaining this meter step
The step number comprising in device message, this step number is stored to default memory area, this step number is uploaded to default application service
Device, described application server is used for this step number is added to the motion step number of statistics in described application server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610822601.XA CN106445715B (en) | 2016-09-13 | 2016-09-13 | The report method and device of pedometer message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610822601.XA CN106445715B (en) | 2016-09-13 | 2016-09-13 | The report method and device of pedometer message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106445715A true CN106445715A (en) | 2017-02-22 |
CN106445715B CN106445715B (en) | 2019-10-25 |
Family
ID=58167860
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610822601.XA Active CN106445715B (en) | 2016-09-13 | 2016-09-13 | The report method and device of pedometer message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106445715B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107063293A (en) * | 2017-04-24 | 2017-08-18 | 深圳市沃特沃德股份有限公司 | Reporting position method and apparatus |
CN108458724A (en) * | 2017-12-29 | 2018-08-28 | 青岛真时科技有限公司 | A kind of step-recording method and device |
CN108763007A (en) * | 2018-05-31 | 2018-11-06 | 腾讯科技(深圳)有限公司 | A kind of recognition methods, device and the server of meter step warping apparatus |
WO2019090611A1 (en) * | 2017-11-09 | 2019-05-16 | 深圳传音通讯有限公司 | Detection method and detection apparatus for step counting function of intelligent device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60543A (en) * | 1983-06-17 | 1985-01-05 | Fujitsu Ltd | State information reporting method of input-output control device |
CN102033802A (en) * | 2010-11-11 | 2011-04-27 | 广东威创视讯科技股份有限公司 | Device and method for counting accumulated operating time of display equipment |
CN103619056A (en) * | 2013-12-02 | 2014-03-05 | 华为终端有限公司 | Method and terminal for reporting sensor data |
CN104142728A (en) * | 2013-05-08 | 2014-11-12 | 英属维京群岛速位互动股份有限公司 | Electronic device |
-
2016
- 2016-09-13 CN CN201610822601.XA patent/CN106445715B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60543A (en) * | 1983-06-17 | 1985-01-05 | Fujitsu Ltd | State information reporting method of input-output control device |
CN102033802A (en) * | 2010-11-11 | 2011-04-27 | 广东威创视讯科技股份有限公司 | Device and method for counting accumulated operating time of display equipment |
CN104142728A (en) * | 2013-05-08 | 2014-11-12 | 英属维京群岛速位互动股份有限公司 | Electronic device |
CN103619056A (en) * | 2013-12-02 | 2014-03-05 | 华为终端有限公司 | Method and terminal for reporting sensor data |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107063293A (en) * | 2017-04-24 | 2017-08-18 | 深圳市沃特沃德股份有限公司 | Reporting position method and apparatus |
WO2019090611A1 (en) * | 2017-11-09 | 2019-05-16 | 深圳传音通讯有限公司 | Detection method and detection apparatus for step counting function of intelligent device |
CN108458724A (en) * | 2017-12-29 | 2018-08-28 | 青岛真时科技有限公司 | A kind of step-recording method and device |
CN108458724B (en) * | 2017-12-29 | 2021-06-04 | 歌尔科技有限公司 | Step counting method and device |
CN108763007A (en) * | 2018-05-31 | 2018-11-06 | 腾讯科技(深圳)有限公司 | A kind of recognition methods, device and the server of meter step warping apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN106445715B (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106445715A (en) | Method and device for reporting pedometer messages | |
US9633381B2 (en) | Mobile application monitoring system | |
EP2241100B1 (en) | Mobile application monitoring system | |
CN106468560A (en) | Data output method based on pedometer message and device | |
CN110221921A (en) | EMS memory management process, terminal and computer readable storage medium | |
CN108777666A (en) | The shunt method and relevant device of link aggregation | |
CN105302637A (en) | Restoration method and apparatus for jamming caused by system process runtime exception and mobile terminal | |
CN108768870B (en) | Flow control methods, device and mobile terminal | |
CN107515663A (en) | The method and apparatus for adjusting central processor core running frequency | |
Yu et al. | Sensing human-screen interaction for energy-efficient frame rate adaptation on smartphones | |
CN110990138A (en) | Resource scheduling method, device, server and storage medium | |
CN106197468B (en) | The method and system of pedometer step number renewal | |
CN109635029A (en) | Data processing method, device, equipment and medium based on label index system | |
CN112035320B (en) | Service monitoring method and device, electronic equipment and readable storage medium | |
CN109992473A (en) | Monitoring method, device, equipment and the storage medium of application system | |
CN109271208A (en) | Parameter setting method, device, terminal and storage medium | |
CN106933677A (en) | System exception processing method and processing device | |
CN109753243A (en) | Copy dispositions method, Cloud Server and storage medium | |
CN106648916A (en) | Pedometer message reporting method and apparatus | |
CN107071284A (en) | A kind of photographic method and terminal | |
CN106482742B (en) | The acquisition methods and device of step counting data | |
CN105848130A (en) | Data traffic management method and terminal | |
CN105915448A (en) | Transmitting method and device for user mode subscription information based on RCS client | |
CN112463626B (en) | Memory leakage positioning method and device, computer equipment and storage medium | |
CN111818509B (en) | Resource conversion method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |