CN106468560B - Data output method and device based on pedometer message - Google Patents

Data output method and device based on pedometer message Download PDF

Info

Publication number
CN106468560B
CN106468560B CN201610822605.8A CN201610822605A CN106468560B CN 106468560 B CN106468560 B CN 106468560B CN 201610822605 A CN201610822605 A CN 201610822605A CN 106468560 B CN106468560 B CN 106468560B
Authority
CN
China
Prior art keywords
numerical value
pedometer
message
value
overflows
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.)
Expired - Fee Related
Application number
CN201610822605.8A
Other languages
Chinese (zh)
Other versions
CN106468560A (en
Inventor
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610822605.8A priority Critical patent/CN106468560B/en
Publication of CN106468560A publication Critical patent/CN106468560A/en
Application granted granted Critical
Publication of CN106468560B publication Critical patent/CN106468560B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Measurement Of Distances Traversed On The Ground (AREA)

Abstract

The embodiment of the invention discloses a kind of data output methods based on pedometer message, it include: the pedometer message for detecting pedometer and being reported by driving layer, the second value that the pedometer message that the last time of the first numerical value and the target time that the pedometer message that acquisition target time detects includes detects includes;When first numerical value is less than second value, determine that first numerical value overflows;When first numerical value overflows, the spilling threshold value of the pedometer is obtained, is generated according to the second value and the spilling threshold value and overflows numerical value;The sum of the spilling numerical value and first numerical value is exported as the first numerical value.In addition, the embodiment of the invention also discloses a kind of data output devices based on pedometer message.Using the present invention, whether the data that can effectively identify that pedometer uploads overflow, and improve step number statistical accuracy.

Description

Data output method and device based on pedometer message
Technical field
The present invention relates to field of computer technology more particularly to a kind of data output methods and dress based on pedometer message It sets.
Background technique
In the prior art, more and more softwares contain the function of step counting, for example, wechat step counting, QQ movement etc., for For these softwares, corresponding step number is after detecting paces by pedometer built-in in terminal, in driving layer by paces The application programs such as data report, and the wechat application of application layer, QQ are applied monitor the related news that pedometer reports, then will be corresponding Step number update the step counting page moved in the wechat step counting page or QQ.
In general, the paces data of pedometer statistics are stored in the register of corresponding chip interior, and this is posted There is the maximum value of the numerical value of storage in storage, for example, for one 16 registers, the maximum value for the step number that can be stored It is 65535.When the data of pedometer statistics are more than the maximum value of above-mentioned register, corresponding numerical value can be directly zeroed, this It is exactly common spillover.
During pedometer is reported the data counted on, if the spilling of data has occurred, this is reported Data can be significantly less than the last data reported, that is to say, that the step number stored in register is from a biggish value jump Change to a lesser value.In the case where data spilling occurs, corresponding application is detecting step counting such as wechat movement After the step number that device reports, this directly upper lesser step Numerical of meeting is counted, but because data are overflowed, and There is no the influences for considering that data spilling generates the actual value of step number during statistics, not so as to cause the step number counted The actual amount of exercise of user can be really reacted, there is a problem of the accuracy deficiency of data statistics.
Summary of the invention
Based on this, to solve to cause to count because the size of the storable data of the register of pedometer limits in traditional technology The spilling that the data that count generate in step device so as to cause step number statistical accuracy deficiency technical problem, spy proposes one Data output method of the kind based on pedometer message.
A kind of data output method based on pedometer message, comprising:
The pedometer message that detection pedometer is reported by driving layer, obtaining the pedometer message that target time detects includes The second value that the pedometer message that the last time of first numerical value and the target time detects includes;
When first numerical value is less than second value, determine that first numerical value overflows;
When first numerical value overflows, the spilling threshold value of the pedometer is obtained, according to the second value It is generated with the spilling threshold value and overflows numerical value;
The sum of the spilling numerical value and first numerical value is exported as the first numerical value.
Optionally, in one embodiment, before the step of judgement first numerical value overflows further include:
Judge pedometer message that the last time for the pedometer message and target time that the target time detects detects it Between whether occurred to restart, if it is not, then determining that first numerical value overflows.
Optionally, in one embodiment, before the step of judgement first numerical value overflows further include:
Judge pedometer message that the last time for the pedometer message and target time that the target time detects detects it Between whether occurred pedometer resetting, if it is not, then determining that first numerical value overflows.
Optionally, in one embodiment, before the step of judgement first numerical value overflows further include:
Judge first numerical value whether be less than preset first threshold and the second value whether be greater than it is preset Second threshold, if so, determining that first numerical value overflows, if it is not, then generating the prompting message of pedometer data exception.
Optionally, in one embodiment, first numerical value for obtaining the pedometer message that target time detects and including After the step of second value that the pedometer message detected with the last time of the target time includes further include:
Obtain the upper of first time stamp that the pedometer message that the acquisition target time detects includes and the target time One-time detection to pedometer message the second timestamp for including, determined according to first time stamp and second timestamp The corresponding time interval of the target time;
The ratio for obtaining the sum and the time interval of the spilling numerical value and first numerical value, is greater than in the ratio When preset third threshold value, first numerical exception is determined, and generate the prompt information of pedometer data exception;
When the ratio is not more than preset third threshold value, execute described by the spilling numerical value and first numerical value Sum the step of being exported as the first numerical value.
In addition, to solve to lead to step counting because the size of the storable data of the register of pedometer limits in traditional technology The spilling that the data that count in device generate so as to cause step number statistical accuracy deficiency technical problem, spy proposes one kind Data output device based on pedometer message.
A kind of data output device based on pedometer message, comprising:
Numerical value obtains module, and the pedometer message reported for detecting pedometer by driving layer obtains target time and detects Pedometer message the first numerical value for including and the target time the pedometer message that detects of last time the second number for including Value;
Numerical value overflows determination module, for when first numerical value is less than second value, determining the first numerical value hair It is raw to overflow;
Numerical value determining module is overflowed, for obtaining the spilling door of the pedometer when first numerical value overflows Limit value generates according to the second value and the spilling threshold value and overflows numerical value;
Output module, for exporting the sum of the spilling numerical value and first numerical value as the first numerical value.
Optionally, in one embodiment, described device further includes restarting judgment module, for judging the target time inspection Whether occurred to restart between the pedometer message that the last time of the pedometer message measured and target time detects, weight is occurring Qi Shi calls the numerical value to overflow determination module.
Optionally, in one embodiment, described device further includes resetting judgment module, for judging the target time inspection Whether pedometer resetting was occurred between the pedometer message that the last time of the pedometer message measured and target time detects, When pedometer resetting occurs, the numerical value is called to overflow determination module.
Optionally, in one embodiment, the numerical value overflows whether determination module is also used to judge first numerical value Whether it is greater than preset second threshold less than preset first threshold and the second value, if so, determining described first Numerical value overflows, if it is not, then generating the prompting message of pedometer data exception.
Optionally, in one embodiment, described device further includes change rate determining module, for obtaining the acquisition mesh The pedometer message that the last time of the first time stamp that the pedometer message that mark detects includes and the target time detects The second timestamp for including determines between the target time corresponding time according to first time stamp and second timestamp Every;The ratio for obtaining the sum and the time interval of the spilling numerical value and first numerical value is greater than default in the ratio Third threshold value when, determine first numerical exception, and generate the prompt information of pedometer data exception;The ratio not When greater than preset third threshold value, the output module is called.
Implement the embodiment of the present invention, will have the following beneficial effects:
After above-mentioned data output method and device based on pedometer message, detecting by pedometer When corresponding step number is less than corresponding step number in the last pedometer message detected in the pedometer message of report, determine current The secondary step number detected is overflowed, and according to the corresponding specific step number overflowed threshold value and determine spilling of register, and according to Corresponding step number determines the specific step number of output in the occurrence of spilling and the pedometer message that previous ought be detected.Also It is to say, it is contemplated that influence of the register spilling to the step number of statistics avoids the not statistical uncertainty true defect of step number caused by spilling, Improve the accuracy of data statistics.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Wherein:
Fig. 1 is a kind of flow diagram of the data output method based on pedometer message in one embodiment;
Fig. 2 is a kind of structural schematic diagram of the data output device based on pedometer message in one embodiment;
Fig. 3 is the knot that the computer equipment of the aforementioned data output method based on pedometer message is run in one embodiment Structure schematic diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
To solve to cause in pedometer in traditional technology because the size of the storable data of the register of pedometer limits The spilling that the data of statistics generate so as to cause step number statistical accuracy deficiency technical problem, in the present embodiment, spy A kind of data output method based on pedometer message is proposed, the realization of this method can be dependent on computer program, the calculating Machine program can run on the computer system based on von Neumann system, which can be pedometer statistical number According to step countings the apply corresponding step number statistics such as processing routine or wechat movement, QQ length of run sequence be dynamic application.The department of computer science System can be such as smart phone for being provided with pedometer sensor for running above-mentioned computer program, tablet computer, personal electricity The servers such as brain or terminal.
Specifically, as shown in Figure 1, the above-mentioned data output method based on pedometer message includes the following steps:
Step S102: the pedometer message that detection pedometer is reported by driving layer obtains the pedometer that target time detects The second value that the pedometer message that the last time of the first numerical value and the target time that message includes detects includes.
In general, pedometer can report, in general, pedometer is reported after detecting step number via driving layer The frequency of step number can be detects that step number update generates corresponding interrupt instruction later each time, and then terminal is detecting After interrupt instruction, obtains the step number that pedometer reports and periodically reported alternatively, a timer can also be arranged in the terminal The step number that pedometer detects, with that is, be not that pedometer often detects that step number more new capital reports new step number, But the update that corresponding step count information is sent to driving layer of timing.Also alternatively, obtaining the corresponding step number of step number receiving After acquisition instruction, corresponding step number is included in pedometer message by pedometer and is reported.In specific embodiment, such as step counting The data that the devices such as device, sensor, touch screen are got all are to be reported to ccf layer via driving layer, are then reported to application Layer, so that the step number that the relevant application in application layer gets corresponding pedometer message and pedometer counts.
It should be noted that in the present embodiment, not only needing to obtain the pedometer that the pedometer that this is detected reports Message, it is also necessary to obtain the pedometer message that last pedometer reports, and obtain the above-mentioned pedometer detected twice and disappear Corresponding step number in breath obtains the pedometer message corresponding first when the pedometer that previous or target time detects reports Numerical value, and obtain the corresponding second value of pedometer message that the last pedometer detected reports.
Step S104: when first numerical value is less than second value, determine that first numerical value overflows.
In general, in a particular embodiment, because of the continuous accumulation of step number, after the pedometer message that detects it is corresponding Step number is greater than in the corresponding step number of pedometer message preceding detected.But because the corresponding register of pedometer is deposited The size limitation in space is stored up, there are certain limitations for the storable step number of register, that is, there is a storable step number most The value is referred to as to overflow threshold value by big value in the present embodiment.Because the step number stored in a register reaches above-mentioned spilling In the case where threshold value, if pedometer continues the corresponding data storage of the paces that will test into pedometer, deposited in register The data of storage will be zeroed, that is to say, that in the case where register is 16 registers, corresponding spilling threshold value is 65535, then in the case where the step number of statistics is 65535 and then secondary accumulation step number, the step number stored in register can be from 0 Restart to accumulate.
That is, because in general, the step countings software such as wechat movement periodically all can carry out corresponding data more daily Newly, i.e., in step counting software the update of the statistical conditions of step number be than more frequently, therefore, what adjacent pedometer twice reported The difference of corresponding step number is little in pedometer message, also, the corresponding spilling threshold value of the corresponding register of general pedometer It is all a biggish numerical value, therefore, if corresponding step number is less than last pedometer in the pedometer message that pedometer reports Corresponding step number is small in the pedometer message that last time reports, and illustrates corresponding in pedometer message that corresponding pedometer reports Step number be it is abnormal, this exception may be because last time report among pedometer message exist overflow.
In the present embodiment, if the corresponding step number of pedometer message (i.e. the first numerical value) that previous ought be detected is less than previous The secondary corresponding step number of pedometer message (i.e. second value) detected then determines that the pedometer message that previous ought be detected is corresponding The first numerical value be numerical value after overflowing.
Step number S106: when first numerical value overflows, the spilling threshold value of the pedometer is obtained, according to described Second value and the spilling threshold value, which generate, overflows numerical value.
If corresponding first numerical value of the pedometer message that previous ought be detected overflows, illustrate directly to take the first numerical value As step number statistics the result is that unreasonable, overflow because not accounting for step number to being counted in the corresponding register of pedometer The influence of step number.
In the present embodiment, need the step number for considering to store in register be by above-mentioned corresponding spilling threshold value it It is zeroed afterwards, so, if if the step number is not zeroed, the step number actually reported should be on the basis of overflowing threshold value In addition the corresponding step number of pedometer message that previous ought be detected, that is to say, that the step number actually reported should overflow thresholding Value with the first numerical value and.
For other side, the step number difference between pedometer message that last time pedometer reports, on as two The difference of the corresponding step number of pedometer message of report, in general, the step countings software such as wechat movement is with being reported according to this Difference between pedometer message and the pedometer message that the last time reports is corresponding in step countings softwares such as wechat movements to determine The step number that should be added up in application server, therefore, it is necessary to calculate in the corresponding step number of pedometer message that this is reported not What is considered influences because of spilling bring, that is, the step number of spilling.In the present embodiment, it overflows between threshold value and second value Difference be because overflow caused by overflow numerical value.
Step S108: the sum of the spilling numerical value and first numerical value is exported as the first numerical value.
In specific implementation, the numerical value that wechat movement etc. exports in step countings software be pedometer message twice detection it Between step number difference and above-mentioned steps S106 in determine overflow numerical value and the first numerical value and, according to spilling numerical value and The sum of first numerical value resets the first numerical value, then exports the first numerical value after resetting.
It should be noted that in the present embodiment, if terminal is weighed between the detection of pedometer message twice It opens, then corresponding pedometer has carried out shutoff operation and do not restart, and pedometer is being deposited in the case where being restarted Then the data stored in device can be all cleared to add up since new from 0.Therefore, in an alternative embodiment, judging During whether corresponding step number overflows in pedometer message, it is also necessary to consider whether terminal is rebooted or step counting Whether device is rebooted.
Specifically, in one embodiment, before the step of above-mentioned judgement first numerical value overflows further include: sentence Whether occur between the pedometer message that the last time of the target of the breaking time pedometer message detected and target time detects It crosses and restarts, if it is not, then determining that first numerical value overflows.
In another embodiment, before the step of above-mentioned judgement first numerical value overflows further include: judge institute It states and whether meter occurred between the pedometer message that last time of the target time pedometer message detected and target time detects Step, which is thought highly of, sets, if it is not, then determining that first numerical value overflows.
That is, only in the case where terminal or pedometer are not restarted previous corresponding step can will be being worked as Number is judged to overflowing, conversely, if corresponding numerical value is zeroed, this to return after terminal or pedometer be rebooted Zero is not because cannot be judged as overflowing, in this case, the first numerical value is less than second caused by spilling Numerical value is that normally, corresponding first numerical value of pedometer message that the step countings software such as wechat movement directly will test is corresponding It is updated in application server.
In the present embodiment, because corresponding spilling threshold value is biggish in register, and general user is twice Pedometer reports between pedometer message, and the step number of accumulation is limited, that is to say, that even if determining the step counting detected twice The corresponding step number of device message is overflowed, if overflow numerical value and the first numerical value and excessively greatly in the case where, it is also possible to count Corresponding data are tampered in the pedometer message that step device reports, in order to avoid this kind of situation, it is also necessary to be determined and be worked as previous inspection Corresponding first numerical value of the pedometer message measured is less than preset first threshold, and the last pedometer detected disappears It ceases corresponding second value and is less than preset second threshold, otherwise, then not can determine that the first numerical value overflows.It needs to illustrate , in the present embodiment, according to overflowing threshold value and user movement when the specific data of first threshold and second threshold Historical data determine.Specifically, in one embodiment, before the step of above-mentioned judgement first numerical value overflows Further include: judge whether first numerical value is less than preset first threshold and whether the second value is greater than preset Two threshold values, if so, determining that first numerical value overflows, if it is not, then generating the prompting message of pedometer data exception.
Further, when whether the corresponding data of pedometer message for considering that pedometer reports are abnormal, it is also necessary to consider The variable quantity of data and the relationship between the time, that is to say, that need consider within the unit time step number variation whether be Reasonably.
Specifically, in one embodiment, the first numerical value that the pedometer message that above-mentioned acquisition target time detects includes After the step of second value that the pedometer message detected with the last time of the target time includes further include: described in acquisition Obtain the step counting that the first time that the pedometer message that target time detects includes stabs and the last time of the target time detects The second timestamp that device message includes determines that the target time is corresponding according to first time stamp and second timestamp Time interval;The ratio of the sum and the time interval of the spilling numerical value and first numerical value is obtained, it is big in the ratio When preset third threshold value, first numerical exception is determined, and generate the prompt information of pedometer data exception;Described When ratio is not more than preset third threshold value, execute described using the sum of the spilling numerical value and first numerical value as the first number The step of value output.
That is, not only containing the step number counted accordingly in pedometer message, corresponding report is further comprised Time, according to the time that the pedometer message detected twice includes can determine the pedometer message detected twice when Between be spaced.As previously mentioned, overflow numerical value and the first numerical value and be to be counted between the message of pedometer twice detected Step number, ratio between the two can reflect the variable quantity of step number in the unit time.And this variable quantity is not exceed centainly Limitation, if being more than the limiting value of preset changing value, illustrate corresponding step in currently detected pedometer message Number may be tampered, and in this case, generate the number that the prompting message of pedometer message exception is used to prompt user current According to that may be tampered, conversely, then the sum for overflowing numerical value and first numerical value is exported as the first numerical value.
In addition, to solve to lead to step counting because the size of the storable data of the register of pedometer limits in traditional technology The spilling that the data that count in device generate so as to cause step number statistical accuracy deficiency technical problem, in one embodiment In, as shown in Figure 2, it is also proposed that a kind of data output device based on pedometer message, specifically, pedometer message should be based on Data output device include that numerical value obtains module 102, numerical value overflows determination module 104, overflows numerical value determining module 106, defeated Module 108 out, in which:
Numerical value obtains module 102, and the pedometer message reported for detecting pedometer by driving layer obtains target time detection To pedometer message the first numerical value for including and the target time the pedometer message that detects of last time include second Numerical value;
Numerical value overflows determination module 104, for determining first numerical value when first numerical value is less than second value It overflows;
Numerical value determining module 106 is overflowed, for obtaining the spilling of the pedometer when first numerical value overflows Threshold value generates according to the second value and the spilling threshold value and overflows numerical value;
Output module 108, for exporting the sum of the spilling numerical value and first numerical value as the first numerical value.
Optionally, in one embodiment, as shown in Fig. 2, above-mentioned apparatus further includes restarting judgment module 110, for sentencing Whether occur between the pedometer message that the last time of the target of the breaking time pedometer message detected and target time detects It crosses and restarts, when restarting, the numerical value is called to overflow determination module.
Optionally, in one embodiment, as shown in Fig. 2, above-mentioned apparatus further includes resetting judgment module 112, for sentencing Whether occur between the pedometer message that the last time of the target of the breaking time pedometer message detected and target time detects Pedometer resetting is crossed, when pedometer resetting occurs, the numerical value is called to overflow determination module.
Optionally, in one embodiment, numerical value spilling determination module 104 described above is also used to judge first number Value whether is less than preset first threshold and whether the second value is greater than preset second threshold, if so, determining institute It states the first numerical value to overflow, if it is not, then generating the prompting message of pedometer data exception.
Optionally, in one embodiment, it as shown in Fig. 2, above-mentioned apparatus further includes change rate determining module 114, is used for Obtain the last detection of the first time stamp that the pedometer message that the acquisition target time detects includes and the target time To pedometer message the second timestamp for including, the target is determined according to first time stamp and second timestamp Secondary corresponding time interval;The ratio for obtaining the sum and the time interval of the spilling numerical value and first numerical value, in institute When stating ratio greater than preset third threshold value, first numerical exception is determined, and generate the prompt letter of pedometer data exception Breath;When the ratio is not more than preset third threshold value, the output module 108 is called.
Implement the embodiment of the present invention, will have the following beneficial effects:
After above-mentioned data output method and device based on pedometer message, detecting by pedometer When corresponding step number is less than corresponding step number in the last pedometer message detected in the pedometer message of report, determine current The secondary step number detected is overflowed, and according to the corresponding specific step number overflowed threshold value and determine spilling of register, and according to Corresponding step number determines the specific step number of output in the occurrence of spilling and the pedometer message that previous ought be detected.Also It is to say, it is contemplated that influence of the register spilling to the step number of statistics avoids the not statistical uncertainty true defect of step number caused by spilling, Improve the accuracy of data statistics.
In one embodiment, as shown in figure 3, Fig. 3 is illustrated, a kind of to run the above-mentioned data based on pedometer message defeated The terminal of the computer system based on von Neumann system of method out.The computer system can be smart phone, plate electricity The terminal devices such as brain, palm PC, laptop or PC.Specifically, may include by the outer of system bus connection Portion's input interface 1001, processor 1002, memory 1003 and output interface 1004.Wherein, outer input interface 1001 is optional Include at least network interface 10012.Memory 1003 may include external memory 10032 (such as hard disk, CD or floppy disk Deng) and built-in storage 10034.Output interface 1004 can include at least the equipment such as display screen 10042.
In the present embodiment, the operation of this method is based on computer program, and the program file of the computer program is stored in In the external memory 10032 of the aforementioned computer system based on von Neumann system, it is loaded into built-in storage at runtime It in 10034, is then compiled as being transferred in processor 1002 after machine code executing, so that being based on von Neumann system Computer system in form that numerical value in logic, which obtains module 102, numerical value overflows determination module 104, overflows numerical value determines mould Block 106, output module 108 restart judgment module 110, resetting judgment module 112, change rate determining module 114.And above-mentioned In data output method implementation procedure based on pedometer message, the parameter of input passes through outer input interface 1001 and receives, And be transferred in memory 1003 and cache, it is then input in processor 1002 and is handled, the result data or caching of processing It is subsequently handled in memory 1003, or is passed to output interface 1004 and is exported.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (12)

1. a kind of data output method based on pedometer message characterized by comprising
The pedometer message that detection pedometer is reported by driving layer obtains the pedometer message that target time detects includes first The second value that the pedometer message that the last time of numerical value and the target time detects includes;
When first numerical value is less than second value, determine that first numerical value overflows;
When first numerical value overflows, the spilling threshold value of the pedometer is obtained, according to the second value and institute It states to overflow threshold value and generate and overflows numerical value;
The sum of the spilling numerical value and first numerical value is exported as the first numerical value.
2. the data output method according to claim 1 based on pedometer message, which is characterized in that described in the judgement Before the step of first numerical value overflows further include:
Judge be between pedometer message that the last time of the target time pedometer message detected and target time detects It is no to occur to restart, if it is not, then determining that first numerical value overflows.
3. the data output method according to claim 1 based on pedometer message, which is characterized in that described in the judgement Before the step of first numerical value overflows further include:
Judge be between pedometer message that the last time of the target time pedometer message detected and target time detects It is no that pedometer resetting occurred, if it is not, then determining that first numerical value overflows.
4. the data output method according to any one of claims 1 to 3 based on pedometer message, which is characterized in that described Before determining the step of first numerical value overflows further include:
Judge whether first numerical value is less than preset first threshold and whether the second value is greater than preset second Threshold value, if so, determining that first numerical value overflows, if it is not, then generating the prompting message of pedometer data exception.
5. the data output method according to claim 1 based on pedometer message, which is characterized in that the acquisition target The pedometer message that the last time of the first numerical value that the secondary pedometer message detected includes and the target time detects includes Second value the step of after further include:
Obtain the last time of first time stamp and the target time that the pedometer message that the acquisition target time detects includes The second timestamp that the pedometer message detected includes, according to stabbing the first time and second timestamp determines The corresponding time interval of target time;
The ratio for obtaining the sum and the time interval of the spilling numerical value and first numerical value is greater than default in the ratio Third threshold value when, determine first numerical exception, and generate the prompt information of pedometer data exception;
The ratio be not more than preset third threshold value when, execute it is described by it is described spilling numerical value and first numerical value and The step of as the output of the first numerical value.
6. a kind of data output device based on pedometer message characterized by comprising
Numerical value obtains module, and the pedometer message reported for detecting pedometer by driving layer obtains the meter that target time detects The second value that the pedometer message that the last time of the first numerical value and the target time that step device message includes detects includes;
Numerical value overflows determination module, for when first numerical value is less than second value, determining that first numerical value occurs to overflow Out;
Numerical value determining module is overflowed, for obtaining the spilling threshold value of the pedometer when first numerical value overflows, It is generated according to the second value and the spilling threshold value and overflows numerical value;
Output module, for exporting the sum of the spilling numerical value and first numerical value as the first numerical value.
7. the data output device according to claim 6 based on pedometer message, which is characterized in that described device is also wrapped It includes and restarts judgment module, based on judging that the last time of pedometer message and target time that the target time detects detects Whether occurred to restart between step device message, and when restarting, the numerical value was called to overflow determination module.
8. the data output device according to claim 6 based on pedometer message, which is characterized in that described device is also wrapped Resetting judgment module is included, based on judging that the last time of pedometer message and target time that the target time detects detects Pedometer resetting whether occurred between step device message, when pedometer resetting occurs, the numerical value is called to overflow determination module.
9. according to any data output device based on pedometer message of claim 6 to 8, which is characterized in that described Numerical value overflows determination module and is also used to judge whether first numerical value is less than preset first threshold and the second value Whether preset second threshold is greater than, if so, determining that first numerical value overflows, if it is not, then generating pedometer data Abnormal prompting message.
10. the data output device according to claim 6 based on pedometer message, which is characterized in that described device is also Including change rate determining module, for obtain first time stamp that the pedometer message that the acquisition target time detects includes and The second timestamp that the pedometer message that the last time of the target time detects includes stabs and described according to the first time Second timestamp determines the corresponding time interval of the target time;Obtain sum and the institute of the spilling numerical value and first numerical value The ratio for stating time interval determines first numerical exception, and generate meter when the ratio is greater than preset third threshold value Walk the prompt information of device data exception;When the ratio is not more than preset third threshold value, the output module is called.
11. a kind of computer-readable storage medium, which is characterized in that the computer-readable storage medium is stored with calculating Machine program, the computer program complete method described in claim 1 to 5 any one for instructing related hardware.
12. a kind of terminal, which is characterized in that the terminal includes outer input interface, processor, memory and output interface;
Wherein, processor requires side described in 1 to 5 any one for calling the program stored in memory with perform claim Method.
CN201610822605.8A 2016-09-13 2016-09-13 Data output method and device based on pedometer message Expired - Fee Related CN106468560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610822605.8A CN106468560B (en) 2016-09-13 2016-09-13 Data output method and device based on pedometer message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610822605.8A CN106468560B (en) 2016-09-13 2016-09-13 Data output method and device based on pedometer message

Publications (2)

Publication Number Publication Date
CN106468560A CN106468560A (en) 2017-03-01
CN106468560B true CN106468560B (en) 2019-05-28

Family

ID=58230495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610822605.8A Expired - Fee Related CN106468560B (en) 2016-09-13 2016-09-13 Data output method and device based on pedometer message

Country Status (1)

Country Link
CN (1) CN106468560B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107393260B (en) * 2017-07-31 2020-04-21 歌尔科技有限公司 Sedentariness reminding method and device and wrist type sedentariness reminder
CN108709565A (en) * 2018-04-04 2018-10-26 深圳市沃特沃德股份有限公司 Step-recording method and step count set
WO2019191991A1 (en) * 2018-04-04 2019-10-10 深圳市沃特沃德股份有限公司 Step-counting method, apparatus, and step-counting device
CN110411474A (en) * 2019-07-22 2019-11-05 杭州沃朴物联科技有限公司 Step-recording method, equipment, medium, device, chicken board and management system for breeding
CN113835779A (en) * 2021-09-16 2021-12-24 平安养老保险股份有限公司 Exercise step number processing method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193168A (en) * 2006-11-24 2008-06-04 鸿富锦精密工业(深圳)有限公司 Media terminal converter, network phone maintenance system and method
CN103577117A (en) * 2012-08-09 2014-02-12 深圳市腾讯计算机系统有限公司 Method and device for data storage
CN103858397A (en) * 2013-12-26 2014-06-11 华为技术有限公司 Predistortion feedback method, apparatus and system
CN105556474A (en) * 2013-05-17 2016-05-04 起元科技有限公司 Managing memory and storage space for a data operation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193168A (en) * 2006-11-24 2008-06-04 鸿富锦精密工业(深圳)有限公司 Media terminal converter, network phone maintenance system and method
CN103577117A (en) * 2012-08-09 2014-02-12 深圳市腾讯计算机系统有限公司 Method and device for data storage
CN105556474A (en) * 2013-05-17 2016-05-04 起元科技有限公司 Managing memory and storage space for a data operation
CN103858397A (en) * 2013-12-26 2014-06-11 华为技术有限公司 Predistortion feedback method, apparatus and system

Also Published As

Publication number Publication date
CN106468560A (en) 2017-03-01

Similar Documents

Publication Publication Date Title
CN106468560B (en) Data output method and device based on pedometer message
CN109597685B (en) Task allocation method, device and server
CN107111527B (en) Data stream processing language for analytical instrumentation software
US10558544B2 (en) Multiple modeling paradigm for predictive analytics
EP3019971B1 (en) Methods and systems for performance monitoring for mobile applications
WO2021147481A1 (en) Monitoring method and apparatus, and electronic device
CN102929735B (en) A kind of method and apparatus of clock correction
Zhang et al. Panappticon: Event-based tracing to measure mobile application and platform performance
CN106445715B (en) The report method and device of pedometer message
CN106441349B (en) Forgery message determination method and device based on pedometer message
CN106197468B (en) The method and system of pedometer step number renewal
CN100549979C (en) The CPU usage detection method and the system of system task
CN107833051B (en) Data statistical method and system
CN109697247B (en) Method and device for detecting data accuracy
CN100484032C (en) Method for processing abnormal overturn of host machine
CN112434308A (en) Application vulnerability detection method and device, electronic equipment and computer storage medium
CN115370973A (en) Water supply leakage monitoring method and device, storage medium and electronic equipment
JP2018060332A (en) Incident analysis program, incident analysis method, information processing device, service specification program, service specification method and service specification device
CN106482742A (en) The acquisition methods of meter step data and device
CN106648916A (en) Pedometer message reporting method and apparatus
CN108509255B (en) Method and device for processing hardware interrupt
CN103064776A (en) Performance monitoring method and performance monitoring device
CN106445698B (en) Method and device for acquiring step counting data
CN101320416A (en) Method and system for detecting debugging mode of software
CN116647377A (en) Website inspection method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190528