CN106648916A - Pedometer message reporting method and apparatus - Google Patents
Pedometer message reporting method and apparatus Download PDFInfo
- Publication number
- CN106648916A CN106648916A CN201610822603.9A CN201610822603A CN106648916A CN 106648916 A CN106648916 A CN 106648916A CN 201610822603 A CN201610822603 A CN 201610822603A CN 106648916 A CN106648916 A CN 106648916A
- Authority
- CN
- China
- Prior art keywords
- pedometer
- step number
- message
- application process
- application
- 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
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/545—Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
-
- 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)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Telephone Function (AREA)
- Measurement Of Distances Traversed On The Ground (AREA)
Abstract
An embodiment of the invention discloses a pedometer message reporting method. The method comprises the steps of monitoring a step number subjected to statistics by a pedometer, and when the step number subjected to statistics by the pedometer is greater than or equal to a preset step number threshold, generating an interrupt instruction; detecting the interrupt instruction reported by the pedometer, and awakening a system according to the interrupt instruction; detecting a pedometer message reported by the pedometer through a driver layer to obtain the step number contained in the pedometer; and reporting the step number contained in the pedometer message to an application server. In addition, an embodiment of the invention discloses a pedometer message reporting apparatus. By adopting the method and the apparatus, the accuracy of step number statistics can be improved.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of report method and device of pedometer message.
Background technology
In prior art, increasing software contains the function of meter step, for example, wechat meter step, QQ motions etc., for
For these softwares, its corresponding step number is detected after paces by pedometer built-in in terminal, is driving layer by paces
Data are reported, and the application program such as wechat application, QQ applications of application layer monitors the related news that pedometer is reported, 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 are stored in the register of corresponding chip internal, and this is posted
There is the maximum of the numerical value of storage in storage, for example, for the register of 16, the maximum of the step number that can be stored
For 65535.When the data of pedometer statistics exceed the maximum of above-mentioned register, corresponding numerical value can be directly zeroed, this
It is exactly common spillover.
During pedometer is reported the data for counting on, if there occurs the spilling of data, this is reported
Data can be significantly less than the data that report of last time, that is to say, that the step number stored in register is jumped from a larger value
Change to a less value.In the case where there is data spilling, corresponding application such as wechat motion etc. is walked meter is being detected
After the step number that device is reported, can directly go up this less step Numerical and counted, but be because that data there occurs spilling, and
Do not consider that data overflow the impact that the actual value to step number is produced during statistics, so as to result in statistics step number not
The actual amount of exercise of user can be really reacted, there is a problem of that the accuracy of data statistics is not enough.
The content of the invention
It is to solve to cause meter because the size of the storable data of the register of pedometer is limited in conventional art based on this
The spilling that the data counted in step device are produced proposes one so as to the not enough technical problem of caused step number statistical accuracy, spy
Plant the report method of pedometer message.
A kind of report method of pedometer message, including:
The step number of monitoring pedometer statistics, in the step number of pedometer statistics default step number threshold value is more than or equal to
When, generate interrupt instruction;
The interrupt instruction that detection pedometer is reported, according to the interrupt instruction system is waken up;
Detect that the pedometer, by the pedometer message for driving layer to report, obtains the step included in the pedometer message
Number;
The step number included in the pedometer message is reported into application server.
Optionally, in one embodiment, it is described that the step number included in the pedometer message is reported into application service
Also include after the step of device:
Obtain application process corresponding with the application server;
Judge that the application process, whether in background operation state, is if so, then closed the application process and restarted.
Optionally, in one embodiment, it is described the step of close the application process and restart after also include:
It is described restart after application process in, perform the pedometer that the detection pedometer is reported by driving layer
The step of message.
Optionally, in one embodiment, methods described also includes:
It is described restart after application process in, if detect the pedometer being disappeared by driving the pedometer that reports of layer
Breath, obtains the step number included in the pedometer message, the step number is updated in the application server, the application server
For the step number to be added into default motion step number in the application server.
Optionally, in one embodiment, methods described also includes:
If the meter step that corresponding first step number of pedometer message that the application process is detected is detected less than the last time
Corresponding second step number of device message, generates the abnormal information of step number, and performs the closing application process and restart
The step of.
Additionally, causing meter step because the size of the storable data of the register of pedometer is limited in solve conventional art
The spilling that the data counted in device are produced proposes one kind so as to the not enough technical problem of caused step number statistical accuracy, spy
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 pedometer statistics
Or during equal to default step number threshold value, generate interrupt instruction;
System wake-up module, for detecting the interrupt instruction that pedometer is reported, according to the interrupt instruction system is waken up;
Pedometer message-detection, for detecting that the pedometer, by the pedometer message for driving layer to report, is obtained
The step number included in the pedometer message;
Step number reporting module, for the step number included in the pedometer message to be reported into application server.
Optionally, in one embodiment, described device also includes application process running status determining module, for obtaining
Application process corresponding with the application server;Judge that the application process, whether in background operation state, is if so, then closed
Close the application process and restart.
Optionally, in one embodiment, the application process running status determining module be additionally operable to it is described restart after
Application process in, perform the pedometer message that the detection pedometer is reported by driving layer.
Optionally, in one embodiment, described device also include step number accumulator module, for it is described restart after should
With in process, if detecting the pedometer by the pedometer message for driving layer to report, obtain and included in the pedometer message
Step number, the step number is updated in the application server, the application server be used for by the step number be added to it is described should
With default motion step number in server.
Optionally, in one embodiment, described device also includes step number exception processing module, if entering for the application
Corresponding second step number of pedometer message that corresponding first step number of pedometer message that journey is detected is detected less than the last time,
Generate the abnormal information of step number, and perform described the step of close the application process and restart.
Implement the embodiment of the present invention, will have the advantages that:
After employing the report method and device of above-mentioned pedometer message, the step number for counting in pedometer is supervised
Survey, when the step number reaches default spilling threshold value, generate interrupt instruction and wake up system, then report corresponding step number
To application layer, so that corresponding meter step application gets the step number statistics related to threshold value is overflowed, then in meter step next time
In the case that device reports step number, the step number for reporting is a less number, though the numerical value less than last time report with spilling
The corresponding step number of threshold value, but it is because that step number is reported corresponding step number before overflowing, therefore directly incite somebody to action this
Do not miss because step number overflows the loss of data being likely to result in the cumulative step number for having counted in the application of the secondary step number for reporting yet.
The technical scheme of the impact that step number is overflowed is not considered compared to directly will report when previous step number in conventional art, using this
Invention, can improve the accuracy of the data statistics of the step count data that pedometer is reported.
Description of the drawings
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
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
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 one embodiment;
Fig. 2 is a kind of structural representation of the reporting device of pedometer message in one embodiment;
Fig. 3 is the structural representation of the computer equipment of the report method that aforementioned pedometer message is run in one 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 is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.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 creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Causing in pedometer because the size of the storable data of the register of pedometer is limited in solve conventional art
The spilling that the data of statistics are produced is in the present embodiment, special so as to the not enough technical problem of caused step number statistical accuracy
A kind of report method of pedometer message is proposed, the realization of the method can be dependent on computer program, and the computer program can
Run on the computer system based on von Neumann system, the computer program can be the process of pedometer statistics
The meter step such as program or wechat motion, QQ length of runs sequence be dynamic using corresponding step number statistics application.The computer system can be
Be provided with such as smart mobile phone, panel computer, PC of pedometer sensor etc. of operation above computer program is serviced
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 or equal to default in the step number of pedometer statistics
During step number threshold value, interrupt instruction is generated.
Step S104:The interrupt instruction that detection pedometer is reported, according to the interrupt instruction system is waken up.
In the present embodiment, pedometer updates the step number for detecting in the step number of statistics when paces are detected,
That is, during pedometer detects paces, the step number counted in pedometer can be with the accumulative continuous increasing of paces
Plus.In the present embodiment, because the size of the register of the step number of the corresponding storage statistics of pedometer is limited, it has one can
The maximum of the step number to store, as overflows threshold value.In the case of the register that register is 16, corresponding spilling
Threshold value is 65535, then after the step number of statistics is for 65535, again in the case of accumulation step number, and the step stored in register
Number can restart accumulation from 0.
In the present embodiment, default step number threshold value can be set to above-mentioned spilling threshold value, or is overflow with this
Go out some close value of threshold value, for example, in the case where threshold value is overflowed for 65535, the step number threshold value can be arranged
For 65534.
In the present embodiment, if detecting the step number of pedometer statistics more than or equal to default step number threshold value, generate
Interrupt instruction, corresponding processor is processed after the interrupt instruction is detected for the interrupt instruction in terminal, for example,
Go the step number for obtaining statistics in pedometer that instruction either occurs so that pedometer is reported the step number of statistics or according in
Disconnected wake instruction system wakes up corresponding using the operation for carrying out correlation.
In the present embodiment, after the interrupt instruction that pedometer is reported is detected, system is waken up according to the interrupt instruction,
Namely process corresponding with pedometer has been waken up, and for example, wechat motion.
Step S106:Detect that the pedometer, by the pedometer message for driving layer to report, obtains the pedometer message
In the step number that includes.
In the present embodiment, after pedometer generates interrupt instruction and wakes up system, can count in pedometer
Step number is reported, i.e., generate pedometer message according to the step number counted in pedometer, then by the pedometer message by driving
Dynamic layer is reported.
In general, pedometer, can be via driving layer to report after step number is detected, and in general, pedometer is reported
The frequency of step number can detect each time after step number updates to generate corresponding interrupt instruction, and then terminal is being detected
After interrupt instruction, the step number that pedometer is reported being obtained, or, in order to save the power consumption of terminal, can also arrange in the terminal
One timer, the step number for regularly reporting pedometer to detect, with that is, be not that pedometer often detects step number more new capital
New step number is reported, but the renewal that corresponding step count information is sent to driving layer of timing.Also or, receiving
Obtain the corresponding step number of step number to obtain after instruction, corresponding step number is included in pedometer message by pedometer is reported.Tool
In body embodiment, the data that for example device such as pedometer, sensor, touch-screen gets all are to report framework via driving layer
Layer, is then reported to application layer, so that the related application in application layer gets corresponding pedometer message and meter
The step number of step device statistics.
Step S108:The step number included in the pedometer message is reported into application server.
The meter step softwares such as the wechat motion in application layer are receiving pedometer message and are obtaining in the pedometer message
Comprising step number after, you can corresponding step number is reported into corresponding application server, that is to say, that corresponding application clothes
The situation of the step number of current statistic is stored in business device.Or, in other embodiments, can also be and will wrap in pedometer message
The step number for containing is stored in corresponding application in default storage region, for example, be not connected into network or will need not counted
Step number networking show but only that terminal it is current show the page on be shown meter step software in, pedometer is disappeared
The step number included in breath is updated in the corresponding storage region of corresponding meter step software, and is entered in the corresponding step number statistics page
Row shows.
It should be noted that in the present embodiment, if the step number for detecting pedometer statistics in step s 102 exceedes in advance
If step number threshold value in the case of, corresponding step number can be reported, in this case, application layer such as wechat transport
The meter step software such as dynamic can receive the step number for reporting.In the case where step number continues to be accumulated, the step number meeting counted in pedometer
Statistics is re-started by zero because of overflowing, is again reported the step number counted in pedometer after step number is zeroed
When, if the number of times that the step number for reporting is reported less than the last time, data exception can be judged to by corresponding application and be considered invalid
's.But, after terminal or pedometer are closed and restart, can be considered as because data after restarting can be zeroed then
Effectively, therefore, in this embodiment, if the step number counted in pedometer exceedes default step number threshold value and generates interrupt instruction
After corresponding step number is reported, in addition it is also necessary to corresponding meter is walked into software and is restarted.
Specifically, in an optional embodiment, above-mentioned report the step number included in the pedometer message should
With also including after the step of server:Obtain application process corresponding with the application server;Judge the application process
Whether background operation state is in, if so, then closes the application process and restart.
That is, when the corresponding application process of meter step software is under background operation state, corresponding application is entered
Journey may proceed to detect the message that pedometer is reported that the step number reported in order to avoid pedometer is because less than the last step number for reporting
And it is invalid to be determined, in the present embodiment, apply accordingly it will report more than the step number of default step number threshold value
Afterwards, the corresponding application process under background operation state is closed, is then restarted, and in restarting application process
It is middle to continue to detect the pedometer message that reports of pedometer, i.e., the above-mentioned closing application process and the step of restart after also wrap
Include:It is described restart after application process in, perform the pedometer message that the detection pedometer is reported by driving layer
The step of.
In another embodiment, if meter step software is closed, start corresponding meter step software and continue inspection
Survey the pedometer message that pedometer is reported.
Further, in the present embodiment, the meter that pedometer is reported is being detected in the corresponding application process of meter step software
After step device message, the step number that includes in pedometer message can be obtained and the step number is updated in the corresponding storage region of pedometer
In, or the step number is updated in the corresponding application server of meter step software.
Specifically, said method also includes:It is described restart after application process in, if detect the pedometer passing through
The pedometer message for driving layer to report, obtains the step number included in the pedometer message, and the step number is updated to application clothes
In business device, the application server is used to for the step number to be added to default motion step number in the application server.
Specifically, in the application process after restarting, if detecting the pedometer that pedometer is reported by driving layer
Message, and the step number included in the pedometer message is obtained, then the step number is updated in application server, application server
After the step number included in the pedometer message of the corresponding client upload of meter step software in terminal in reception, by the step number
In cumulative step number statistics corresponding with the user in the application server.
Further, in an optional embodiment, said method also includes:If the meter that the application process is detected
Corresponding second step number of pedometer message that corresponding first step number of step device message is detected less than the last time, generates step number exception
Information, and perform described the step of close the application process and restart.
That is, in the terminal corresponding application process when the corresponding step number of pedometer message is detected, according to upper
One-time detection to pedometer message in the step number that includes, it is determined that corresponding step number is in the pedometer message that previous ought be detected
It is no to be greater than or equal to corresponding step number in the last pedometer message for detecting, if so, then corresponding step number is updated and is existed
In terminal in step number statistics corresponding with meter step software, or corresponding step number is uploaded into corresponding application server;Instead
It, if it is not, then illustrate that corresponding step number may occur exception in the pedometer message for currently reporting, also, it is abnormal or invalid
Step number will not carry out in corresponding application server it is cumulative, in order to the step number that counts pedometer continues in application clothes
Added up in business device, need that corresponding application is closed and restarted, and examined in application process after restarting
Survey the pedometer message that pedometer is reported.
Additionally, causing meter step because the size of the storable data of the register of pedometer is limited in solve conventional art
The spilling that the data counted in device are produced so as to the not enough technical problem of caused step number statistical accuracy, in one 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 the pedometer message
Interrupt instruction generation module 102, system wake-up module 104, pedometer message-detection 106, step number reporting module 108 are included,
Wherein:
Interrupt instruction generation module 102 is big in the step number of pedometer statistics for monitoring the step number of pedometer statistics
In or during equal to default step number threshold value, generate interrupt instruction;
System wake-up module 104, for detecting the interrupt instruction that pedometer is reported, according to the interrupt instruction system is waken up
System;
Pedometer message-detection 106, for detecting that the pedometer, by the pedometer message for driving layer to report, is obtained
Take the step number included in the pedometer message;
Step number reporting module 108, for the step number included in the pedometer message to be reported into application server.
Optionally, in one embodiment, as shown in Fig. 2 said apparatus also determine mould including application process running status
Block 110, for obtaining application process corresponding with the application server;Judge the application process whether in running background
State, if so, then closes the application process and restarts.
Optionally, in one embodiment, above-mentioned application process running status determining module 110 is additionally operable to restart described
In application process afterwards, the pedometer message that the detection pedometer is reported by driving layer is performed.
Optionally, in one embodiment, as shown in Fig. 2 said apparatus also include step number accumulator module 112, for
It is described restart after application process in, if detecting the pedometer by driving the pedometer message that reports of layer, obtain the meter
The step number included in step device message, the step number is updated in the application server, and the application server is used to walk this
Number is added to default motion step number in the application server.
Optionally, in one embodiment, as shown in Fig. 2 said apparatus also include step number exception processing module 114, use
If the pedometer message that corresponding first step number of pedometer message detected in the application process is detected less than the last time
Corresponding second step number, generates the abnormal information of step number, and performs described the step of close the application process and restart.
Implement the embodiment of the present invention, will have the advantages that:
After employing the report method and device of above-mentioned pedometer message, the step number for counting in pedometer is supervised
Survey, when the step number reaches default spilling threshold value, generate interrupt instruction and wake up system, then report corresponding step number
To application layer, so that corresponding meter step application gets the step number statistics related to threshold value is overflowed, then in meter step next time
In the case that device reports step number, the step number for reporting is a less number, though the numerical value less than last time report with spilling
The corresponding step number of threshold value, but it is because that step number is reported corresponding step number before overflowing, therefore directly incite somebody to action this
Do not miss because step number overflows the loss of data being likely to result in the cumulative step number for having counted in the application of the secondary step number for reporting yet.
The technical scheme of the impact that step number is overflowed is not considered compared to directly will report when previous step number in conventional art, using this
Invention, can improve the accuracy of the data statistics of the step count data that pedometer is reported.
In one embodiment, as shown in figure 3, Fig. 3 illustrates a kind of report method of the above-mentioned pedometer message of operation
Terminal based on the computer system of von Neumann system.The computer system can be smart mobile phone, panel computer, palm electricity
The terminal devices such as brain, notebook computer or PC.Specifically, it may include the outer input interface connected by system bus
1001st, processor 1002, memory 1003 and output interface 1004.Wherein, outer input interface 1001 optionally can be wrapped at least
Include network interface 10012.Memory 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 the grade equipment of 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, built-in storage is operationally loaded into
In 10034, then it is compiled as being transferred to be performed in processor 1002 after machine code, so that being based on von Neumann system
Computer system in form interrupt instruction generation module 102, system wake-up module 104, pedometer message detection in logic
Module 106, step number reporting module 108, application process running status determining module 110, step number accumulator module 112 and step number are different
Normal processing module 114.And in the report method implementation procedure of above-mentioned pedometer message, the parameter of input passes through outside input
Interface 1001 is received, and is transferred to be cached in memory 1003, is then input to be processed in processor 1002, the knot of process
Fruit data or be cached in memory 1003 are subsequently processed, or are passed to output interface 1004 and are exported.
Step in present invention method can according to actual needs carry out order adjustment, merge and delete.
Unit in embodiment of the present invention terminal can according to actual needs be merged, divides and deleted.It is of the invention real
The terminal for applying example offer is including but not limited to carriedOr other operating systems
Terminal, such as mobile phone.Can also be other terminals, such as with Touch sensitive surface (for example, touch-screen display and/or
Trackpad) laptop computer or panel computer or desktop computer.
In the following discussion, describe a kind of including display and the terminal of Touch sensitive surface.It should be appreciated, however, that terminal
One or more other physical user-interface devices, such as physical keyboard, mouse and/or action bars can be included.
Terminal generally supports various application programs, it is such as following in one or more:Picture application program, presentation application
Program, word-processing application, webpage establishment application program, disk editor's application program, spreadsheet applications, game are answered
With program, telephony application, videoconference application, email application, instant message application program, exercise
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 various application programs that can be performed in terminal can use at least one shared physical user-interface device, such as
Touch sensitive surface.One or more function of Touch sensitive surface and the corresponding information being displayed in terminal can be adjusted from a kind of application program
It is whole and/or be changed to a kind of lower application program and/or be adjusted and/or change in corresponding application programs.So, terminal is total to
Various application journeys can be supported using clearly user interface directly perceived for a user with physical structure (such as Touch sensitive surface)
Sequence.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, can be
Related hardware is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such 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 is only present pre-ferred embodiments, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations 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, it is characterised in that include:
The step number of monitoring pedometer statistics, it is raw when the step number of pedometer statistics is more than or equal to default step number threshold value
Into interrupt instruction;
The interrupt instruction that detection pedometer is reported, according to the interrupt instruction system is waken up;
Detect that the pedometer, by the pedometer message for driving layer to report, obtains the step number included in the pedometer message;
The step number included in the pedometer message is reported into application server.
2. the report method of pedometer message according to claim 1, it is characterised in that described by the pedometer message
In the step number that includes the step of report application server after also include:
Obtain application process corresponding with the application server;
Judge that the application process, whether in background operation state, is if so, then closed the application process and restarted.
3. the report method of pedometer message according to claim 2, it is characterised in that the closing application process
And the step of restart after also include:
It is described restart after application process in, perform the pedometer message that the detection pedometer is reported by driving layer
The step of.
4. the report method of pedometer message according to claim 3, it is characterised in that methods described also includes:
It is described restart after application process in, if detecting the pedometer by driving the pedometer message that reports of layer, obtain
The step number included in the pedometer message is taken, the step number is updated in the application server, the application server is used for
The step number is added into default motion step number in the application server.
5. the report method of pedometer message according to claim 1, it is characterised in that methods described also includes:
If corresponding first step number of pedometer message that the application process is detected disappears less than the pedometer that the last time detects
Corresponding second step number is ceased, the abnormal information of step number is generated, and performs the step closed the application process and restart
Suddenly.
6. a kind of reporting device of pedometer message, it is characterised in that include:
Interrupt instruction generation module, for monitoring the step number of pedometer statistics, is more than or waits in the step number of pedometer statistics
When default step number threshold value, interrupt instruction is generated;
System wake-up module, for detecting the interrupt instruction that pedometer is reported, according to the interrupt instruction system is waken up;
Pedometer message-detection, for detecting that the pedometer, by the pedometer message for driving layer to report, obtains described
The step number included in pedometer message;
Step number reporting module, for the step number included in the pedometer message to be reported into application server.
7. the reporting device of pedometer message according to claim 6, it is characterised in that described device is also included using entering
Journey running status determining module, for obtaining application process corresponding with the application server;Judge that the application process is
It is no in background operation state, if so, then close the application process and restart.
8. the reporting device of pedometer message according to claim 7, it is characterised in that the application process running status
Determining module be additionally operable to it is described restart after application process in, perform what the detection pedometer was reported by driving layer
Pedometer message.
9. the reporting device of pedometer message according to claim 8, it is characterised in that described device is also tired including step number
Plus module, for it is described restart after application process in, if detecting the pedometer by driving the pedometer that reports of layer
Message, obtains the step number included in the pedometer message, the step number is updated in the application server, the application service
Device is used to for the step number to be added to default motion step number in the application server.
10. the reporting device of pedometer message according to claim 6, it is characterised in that described device also includes step number
Exception processing module, if detecting less than last for corresponding first step number of pedometer message that the application process is detected
Corresponding second step number of pedometer message for arriving, generates the abnormal information of step number, and performs the closing application
Journey and the step of restart.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610822603.9A CN106648916B (en) | 2016-09-13 | 2016-09-13 | Method and device for reporting pedometer message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610822603.9A CN106648916B (en) | 2016-09-13 | 2016-09-13 | Method and device for reporting pedometer message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106648916A true CN106648916A (en) | 2017-05-10 |
CN106648916B CN106648916B (en) | 2020-04-03 |
Family
ID=58852176
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610822603.9A Active CN106648916B (en) | 2016-09-13 | 2016-09-13 | Method and device for reporting pedometer message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648916B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109115240A (en) * | 2018-08-02 | 2019-01-01 | 上海亿保健康管理有限公司 | A kind of step-recording method based on Android step-counting sensor |
WO2019090611A1 (en) * | 2017-11-09 | 2019-05-16 | 深圳传音通讯有限公司 | Detection method and detection apparatus for step counting function of intelligent device |
CN116089109A (en) * | 2022-05-30 | 2023-05-09 | 荣耀终端有限公司 | Step counting data transmission method and related device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1147171A (en) * | 1995-08-30 | 1997-04-09 | 三星电子株式会社 | Data segement sync detection circuit and method thereof |
CN101149702A (en) * | 2007-11-14 | 2008-03-26 | 华为技术有限公司 | Operating system failure testing method and device |
CN103134520A (en) * | 2013-03-07 | 2013-06-05 | 南京中科盟联信息科技有限公司 | Pedometer equipment supporting automatic micro-blog data synchronization and synchronization method of pedometer equipment |
CN105843365A (en) * | 2016-03-24 | 2016-08-10 | 广东欧珀移动通信有限公司 | Sensor control method and device |
CN105900346A (en) * | 2014-09-29 | 2016-08-24 | 华为技术有限公司 | Anti-lost prompting method and anti-theft device |
CN105920804A (en) * | 2016-06-17 | 2016-09-07 | 北京景联传媒科技有限公司 | Fitness equipment information networking system and fitness equipment information networking method |
-
2016
- 2016-09-13 CN CN201610822603.9A patent/CN106648916B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1147171A (en) * | 1995-08-30 | 1997-04-09 | 三星电子株式会社 | Data segement sync detection circuit and method thereof |
CN101149702A (en) * | 2007-11-14 | 2008-03-26 | 华为技术有限公司 | Operating system failure testing method and device |
CN103134520A (en) * | 2013-03-07 | 2013-06-05 | 南京中科盟联信息科技有限公司 | Pedometer equipment supporting automatic micro-blog data synchronization and synchronization method of pedometer equipment |
CN105900346A (en) * | 2014-09-29 | 2016-08-24 | 华为技术有限公司 | Anti-lost prompting method and anti-theft device |
CN105843365A (en) * | 2016-03-24 | 2016-08-10 | 广东欧珀移动通信有限公司 | Sensor control method and device |
CN105920804A (en) * | 2016-06-17 | 2016-09-07 | 北京景联传媒科技有限公司 | Fitness equipment information networking system and fitness equipment information networking method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019090611A1 (en) * | 2017-11-09 | 2019-05-16 | 深圳传音通讯有限公司 | Detection method and detection apparatus for step counting function of intelligent device |
CN109115240A (en) * | 2018-08-02 | 2019-01-01 | 上海亿保健康管理有限公司 | A kind of step-recording method based on Android step-counting sensor |
CN116089109A (en) * | 2022-05-30 | 2023-05-09 | 荣耀终端有限公司 | Step counting data transmission method and related device |
CN116089109B (en) * | 2022-05-30 | 2023-10-20 | 荣耀终端有限公司 | Step counting data transmission method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN106648916B (en) | 2020-04-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3514684A1 (en) | Memory recovery method and apparatus | |
EP3502881B1 (en) | Method for preloading application, storage medium, and terminal device | |
CN111045814B (en) | Resource scheduling method and terminal equipment | |
CN107239339B (en) | System performance optimization parameter determination method, system performance optimization method and device | |
CN106197468B (en) | The method and system of pedometer step number renewal | |
Han et al. | E3: Energy-efficient engine for frame rate adaptation on smartphones | |
CN107506240B (en) | Background application program control method and device, storage medium and electronic equipment | |
Yu et al. | Sensing human-screen interaction for energy-efficient frame rate adaptation on smartphones | |
CN108768870B (en) | Flow control methods, device and mobile terminal | |
CN106445715B (en) | The report method and device of pedometer message | |
CN106468560B (en) | Data output method and device based on pedometer message | |
CN106648916A (en) | Pedometer message reporting method and apparatus | |
US10789171B2 (en) | Information processing method and device, and method and device for displaying dynamic information | |
CN111258736B (en) | Information processing method and device and electronic equipment | |
WO2019062462A1 (en) | Application control method and apparatus, storage medium and electronic device | |
WO2024078494A1 (en) | Thread management method and apparatus, electronic device, and storage medium | |
CN107491349B (en) | Applied program processing method and device, computer equipment, storage medium | |
CN106482742B (en) | The acquisition methods and device of step counting data | |
CN113271360A (en) | Recommendation method and device of application program, electronic device and medium | |
CN111767136B (en) | Process management method, terminal and device with storage function | |
CN114143590A (en) | Video playing method, server and storage medium | |
CN105915448A (en) | Transmitting method and device for user mode subscription information based on RCS client | |
CN113721803B (en) | Data generation method, device, equipment and storage medium | |
CN106502860A (en) | A kind of method and device for obtaining power consumption information | |
CN111224936B (en) | User abnormal request detection method, system, device and machine readable 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: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |