CN106412250A - Drop statistical method and device - Google Patents

Drop statistical method and device Download PDF

Info

Publication number
CN106412250A
CN106412250A CN201610807809.4A CN201610807809A CN106412250A CN 106412250 A CN106412250 A CN 106412250A CN 201610807809 A CN201610807809 A CN 201610807809A CN 106412250 A CN106412250 A CN 106412250A
Authority
CN
China
Prior art keywords
terminal
earth
fallen
fall
duration
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
Application number
CN201610807809.4A
Other languages
Chinese (zh)
Other versions
CN106412250B (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 CN201610807809.4A priority Critical patent/CN106412250B/en
Publication of CN106412250A publication Critical patent/CN106412250A/en
Application granted granted Critical
Publication of CN106412250B publication Critical patent/CN106412250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The embodiment of the invention provides a drop statistical method and device. The method comprises the following steps: detecting whether a terminal drops, continuously performing drop landing detection if the terminal drops; when detecting that the terminal lands, adding once on the drop time of the terminal, and starting timing; when detecting that the terminal lands within the time slot that the timing reaches the first preset duration, maintaining the constant of the drop time. The scheme starts counting when the terminal firstly lands after the drop occurs, and stops counting when the terminal re-lands within the preset time slot after the first landing, thereby avoiding counting the re-dropping of the terminal after the terminal drops to rebound. Compared with the prior art, the accuracy of counting the drop time can be improved.

Description

One kind falls statistical method and device
Technical field
The present invention relates to field of terminal technology is and in particular to one kind falls statistical method and device.
Background technology
With the development of terminal technology, the function that the terminal such as mobile phone has gets more and more.For example, music function, social work( Energy, navigation feature etc., bring great convenience to user.While enjoying convenient, people are more next to the degree of dependence of terminal Higher.
In actual use, terminal from user handss fall, from table fall situations such as often occurs.Making in terminal With during, terminal can count to drop number.And the height when terminal is fallen higher when, terminal is fallen and is touched with ground Can rebound after hitting, then fall again.After terminal is fallen, this situation of bounce-back can cause terminal to repeat statistics to fall time Number, thus cause the accuracy counting drop number low.
Content of the invention
The embodiment of the present invention provides one kind to fall statistical method and device, can improve the accuracy of statistics drop number.
The embodiment of the present invention provides one kind to fall statistical method, including:
Whether detection terminal is fallen;
If described terminal is fallen, persistently carry out falling detection of contacting to earth;
When described terminal is detected and contacting to earth, by the drop number increase of described terminal once, and start timing;
Reach in the time period of the first preset duration in described timing, when described terminal is detected again and contacting to earth, maintain Described drop number is constant.
Accordingly, the embodiment of the present invention also provides one kind to fall statistic device, including:
Fall detection module, whether fall for detection terminal;
Contact to earth detection module, for when described terminal is fallen, persistently carrying out falling detection of contacting to earth;
Statistical module, for when described terminal is contacted to earth, by the drop number increase of described terminal once, and starting meter When;
Maintenance module, for reaching in described timing in the time period of the first preset duration, when detecting described end again When contacting to earth in end, maintain described drop number constant.
Whether the embodiment of the present invention is fallen using detection terminal;If this terminal is fallen, persistently fallen Contact to earth detection;When this terminal is detected and contacting to earth, by the drop number increase of this terminal once, and start timing;In this timing Reach in the time period of the first preset duration, when this terminal is detected again and contacting to earth, maintain this drop number constant.The program Being counted when contacting to earth first after terminal is fallen, and contact to earth again in the preset time period after terminal is contacted to earth first When do not counted, count such that it is able to avoid terminal is fallen with falling again after bounce-back, with respect to prior art Speech, it can be avoided that carrying out repeat count to the bounce-back after falling, can improve the accuracy of statistics drop number.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below Accompanying drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, can also be obtained other attached according to these accompanying drawings Figure.
Fig. 1 is the schematic flow sheet falling statistical method that the embodiment of the present invention one provides.
Fig. 2 is the schematic flow sheet falling statistical method that the embodiment of the present invention two provides.
Fig. 3 be the embodiment of the present invention three provide the first fall the structural representation of statistic device.
Fig. 4 is the structural representation that the second that the embodiment of the present invention three provides falls statistic device.
Fig. 5 be the embodiment of the present invention three provide the third fall the structural representation of statistic device.
Fig. 6 is the 4th kind of structural representation falling statistic device that the embodiment of the present invention three provides.
Fig. 7 is the 5th kind of structural representation falling statistic device that the embodiment of the present invention three provides.
Fig. 8 is the structural representation of the first terminal that the embodiment of the present invention four provides.
Fig. 9 is the structural representation of the second terminal that the embodiment of the present invention four provides.
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 describes.Obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other enforcement that those skilled in the art are obtained under the premise of not making creative work Example, broadly falls into the scope of protection of the invention.
Term " first " in description and claims of this specification and above-mentioned accompanying drawing, " second ", " the 3rd " etc. (if present) is for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that this The object of sample description can exchange in the appropriate case.Additionally, term " comprising " and " having " and their any deformation, meaning Figure is to cover non-exclusive comprising.For example, contain the process of series of steps, method or contain a series of modules or list The device of unit, terminal, system are not necessarily limited to those steps or module or the unit clearly listed, and can also include unclear The step listed or module or unit it is also possible to include for these processes, method, device, terminal or intrinsic its of system Its step or module or unit.
The embodiment of the present invention provides one kind to fall statistical method, device and terminal, is described in detail respectively below.
Embodiment one
The present embodiment will be described from the angle falling statistic device, this device specifically can integrated in the terminal, should Terminal can be the equipment such as smart mobile phone, panel computer.
One kind falls statistical method, including:Whether detection terminal is fallen;If this terminal is fallen, persistently enter Row falls detection of contacting to earth;When this terminal is detected and contacting to earth, by the drop number increase of this terminal once, and start timing;? This timing reached in the time period of the first preset duration, when this terminal is detected again and contacting to earth, maintained this drop number constant.
As shown in figure 1, this falls detection method, idiographic flow can include:
S101, whether detection terminal is fallen.
The state of sensor detection terminal in concrete application, can be passed through.For example, it is possible in terminal integrated gravity sensitive Device, the acceleration of real-time detection terminal, judge by acceleration whether terminal is fallen.Whether detection terminal is fallen Following steps can be specifically included:
Obtain the acceleration of terminal;
Judge whether this acceleration magnitude is less than the first default size;
If the default size less than first, testing result is fallen for this terminal.
Specifically, it is integrated with gravity sensor in terminal.The arm of force when terminal remains static, in gravity sensor Deformation is produced due to action of gravity, thus sensing gravity acceleration g, under normal circumstances it is believed that g=9.8m/s2.Work as end When end is fallen, terminal is in free falling body state, and the gravity sensor in terminal is also at free falling body state, thus weight The deformation that the arm of force in force transducer is produced due to action of gravity disappears, and the acceleration that now gravity sensor senses is 0. Therefore, when the acceleration of terminal is 0, that is, show that terminal is fallen and is in free falling body state.By gravity sensor The detailed process of the acceleration of detection terminal is prior art, will not be described here.
First default size is to be stored in advance in one of terminal memory acceleration value.For example, first is default big Little for 1m/s2.After getting the acceleration of terminal, transfer this first default size from the memorizer of terminal.By get Acceleration magnitude is compared with this first default size, to judge whether this acceleration magnitude is less than the first default size.Real In the application of border, when being fallen due to terminal, terminal also suffers from air drag, and air drag can produce shadow to the acceleration detecting Ring.Simultaneously as the detection of sensor can have certain error, therefore, the acceleration magnitude detecting during freely falling body Also differ and be set to 0.For example, the acceleration magnitude getting is 0.2m/s2.Then judged result is less than first for this acceleration magnitude Default size.Testing result now is fallen for this terminal.
In certain embodiments, after judging that acceleration magnitude is less than the first default size, whether detection terminal occurs Fall and can also comprise the following steps:
Obtain the duration that this acceleration magnitude is less than the first default size;
Judge whether this duration is more than the second preset duration;
If being more than the second preset duration, testing result is fallen for this terminal.
In concrete application, terminal is it is possible that free falling body state and situation about not necessarily falling.For example, user For purpose of playing, by terminal to the height being thrown off a very little.Now, the acceleration magnitude meeting that gravity sensor detects Briefly it is changed into 0, subsequently return to gravity acceleration g.
In order to avoid error detection, after the acceleration magnitude judging terminal is less than the first default size, obtaining should Acceleration magnitude is less than the duration of the first default size.The concrete grammar obtaining duration can be to judge to accelerate Degree size starts timing after being less than the first default size, the duration of timing is this acceleration magnitude and is less than the first default size Duration.Then, persistently judge whether the duration of this timing is more than the second preset duration.Second preset duration is to prestore In one of terminal memory duration numerical value.For example, the second preset duration is 0.2s.During timing, deposit from terminal Transfer this second preset duration in reservoir, the duration of timing is compared with this second preset duration, persistently to judge timing Duration whether be more than this second preset duration.If judging, duration is more than this second preset duration, and testing result is Terminal is fallen.Timing now can be terminated.
S102, if this terminal is fallen, persistently carries out falling detection of contacting to earth.
Specifically, when detecting in S101 that terminal is fallen, then persistently carry out falling detection of contacting to earth, with detection terminal Fall the moment contacted to earth.Fall detection of contacting to earth specifically to may comprise steps of:
Judge whether this acceleration magnitude is more than the second default size;
If default size, judges whether this acceleration direction is preset direction more than second;
If preset direction, then judged result is contacted to earth for this terminal.
In concrete application, when terminal is fallen and contacted to earth, terminal is clashed into ground.The active force that ground applies in the face of terminal Terminal can be made to produce a very big backward acceleration so that terminal stops falling.Second default size is to be stored in advance in end One of end memorizer acceleration value.For example, the second default size is twice acceleration of gravity size, and that is, second is default big Little for 19.6m/s2.After terminal is fallen, persistently obtain the acceleration of terminal by gravity sensor, and transfer terminal storage In device second default size.The acceleration magnitude getting is compared with the second default size, big to judge acceleration The little whether default size more than second.For example, the acceleration magnitude getting is 25m/s2, then can determine whether out that acceleration magnitude is big In this second default size.Subsequently determine whether whether acceleration direction is preset direction.Preset direction can be a specifically side To.For example, preset direction is straight up.Tread surface after being fallen due to terminal not necessarily horizontal plane is it is also possible to tiltedly Face.Now in the face of the backward acceleration direction produced by active force that terminal applies not is straight up.Therefore, preset side To can also be a direction scope.For example, preset direction is the scope with 45 ° to 90 ° of horizontal plane angle.Terminal will get Acceleration direction be compared with preset direction, to judge this acceleration direction whether as preset direction.If acceleration direction For preset direction, then judged result is contacted to earth for this terminal.
S103, when this terminal is detected and contacting to earth, by the drop number increase of this terminal once, and starts timing.
Specifically, during the use of terminal, terminal can count to drop number.The numerical value counting is terminal Drop number.The numerical value counting can be stored in the journal file of terminal it is also possible to be stored in other system file.When When detecting that terminal is contacted to earth in S102, the count value that will be stored in terminal journal file or other system file increases by one Secondary, start timing simultaneously.
S104, reaches in the time period of the first preset duration in this timing, when this terminal is detected again and contacting to earth, maintains This drop number is constant.
Specifically, the first preset duration can be to be stored in advance in one of terminal memory duration numerical value.For example, One preset duration is 1s.After starting timing, reach in the time period of this first preset duration in timing, for example, within 1s, when again Secondary when terminal is detected and contacting to earth, maintain this drop number constant.Because terminal is when higher height falls, may after contacting to earth Rebound upwards, thus fall again contacting to earth.Now fall to contact to earth belongs to a part for terminal falling process, rather than once new Falling process.If falling at this moment still carries out counting when contacting to earth, repeat count can be caused, thus producing mistake system Meter.Therefore, reach in the time period of the first preset duration in this timing, when this terminal is detected again and contacting to earth, maintain this to fall The number of times that falls is constant, can avoid the generation of error statistics.
In certain embodiments, the first preset duration can be determined by following steps:
Obtain the interval time between the moment that this terminal contacts to earth and the moment that this terminal is fallen;
Using this interval time as this first preset duration.
In concrete application, when can detect that terminal is fallen in S101, record the moment fallen.In S102 In when detecting that terminal is contacted to earth, record the moment that this contacts to earth.Then, calculate between the moment contacted to earth and the moment fallen Interval time, using this interval time as the first preset duration.As terminal dropped to contact to earth first and was consumed this interval time Time.
Because the height that terminal is fallen every time is different, the height falling again after bounce-back is also different.Therefore, after bounce-back The duration falling again is also different.The consumed time is fallen by terminal and determines the first preset duration, can be directed to Each falling process of terminal arranges the first different preset duration, thus not uniting when falling again after the bounce-back of precise control terminal The time of meter drop number.And after the first preset duration, if terminal is fallen again, this is fallen and unites Meter.
When being embodied as, the present invention is not limited by the execution sequence of each described step, is not producing conflict In the case of, some steps can also be carried out or be carried out simultaneously using other orders.
From the foregoing, it will be observed that provided in an embodiment of the present invention fall statistical method, whether fallen using detection terminal;If should Terminal is fallen, then persistently carry out falling detection of contacting to earth;When this terminal is detected and contacting to earth, the drop number of this terminal is increased Plus once, and start timing;Reach in the time period of the first preset duration in this timing, contact to earth when this terminal is detected again When, maintain this drop number constant.The program being counted when contacting to earth first after terminal is fallen, and in terminal first Do not counted when contacting to earth again in the preset time period after contacting to earth, such that it is able to avoid terminal is fallen falling again after bounce-back Drop into row counting, in terms of existing technologies, it can be avoided that repeat count is carried out to the bounce-back after falling, statistics can be improved The accuracy of drop number.
Embodiment two
Fall statistical method according to described by embodiment one, below citing is described in further detail.
In the present embodiment, specifically will be integrated in smart mobile phone with falling statistical method, with falling in smart mobile phone It is described in detail as a example statistical method.
As shown in Fig. 2 falling statistical method, idiographic flow can be as follows:
S201, obtains the acceleration of smart mobile phone.
Specifically, it is integrated with gravity sensor in smart mobile phone.Adding of smart mobile phone, can be detected by gravity sensor Speed.
S202, judges whether this acceleration magnitude is less than the first default size.
Specifically, the first default size is to be stored in advance in one of smart mobile phone memorizer acceleration value.For example, First default size is 1m/s2.After getting the acceleration of smart mobile phone, transfer from smart mobile phone memorizer this first preset Size.The acceleration magnitude getting is compared with this first default size, to judge whether this acceleration magnitude is less than First default size.For example, the acceleration magnitude getting is 0.2m/s2, now can determine whether out that this acceleration magnitude is less than the One default size.
S203, if the default size less than first, obtains the duration that this acceleration magnitude is less than the first default size.
Specifically, when judging in S202 that acceleration magnitude is less than the first default size, obtain this acceleration magnitude little Duration in the first default size.The concrete grammar obtaining duration can be to judge that acceleration magnitude is less than the Start timing, the duration of timing is the duration that this acceleration magnitude is less than the first default size after one default size.
S204, judges whether this duration is more than the second preset duration.
Specifically, after starting timing, can persistently judge whether the duration of this timing is more than the second preset duration.Second Preset duration is to be stored in advance in one of smart mobile phone memorizer duration numerical value.For example, the second preset duration is 0.2s.? During timing, transfer this second preset duration from smart mobile phone memorizer, by the duration of timing with this second default when Length is compared, and whether is more than this second preset duration with the duration persistently judging timing.
S205, if being more than the second preset duration, testing result is fallen for this smart mobile phone.
Specifically, if judging in S204, duration is more than this second preset duration, and testing result is smart mobile phone Fall.For example, duration is 0.6s, then may determine that duration is more than this second preset duration, testing result Fall for smart mobile phone.
S206, judges whether this acceleration magnitude is more than the second default size.
Specifically, after detecting that smart mobile phone falls, start to detect whether smart mobile phone contacts to earth, and persistence is entered Row detection.In concrete application, the second default size is to be stored in advance in one of smart mobile phone memorizer acceleration value.Example As the second default size is twice acceleration of gravity size, and that is, the second default size is 19.6m/s2.Smart mobile phone is detected to send out After life is fallen, persistently obtain the acceleration of smart mobile phone by gravity sensor, and transfer in smart mobile phone memorizer second Default size.The acceleration magnitude getting is compared with the second default size, to judge whether acceleration magnitude is more than Second default size.For example, the acceleration magnitude getting is 25m/s2, then can determine whether out that acceleration magnitude is more than this second pre- If size.
S207, if the default size more than second, judges whether this acceleration direction is preset direction.
Specifically, preset direction can be a specific direction.For example, preset direction is straight up.Preset direction It can also be a direction scope.For example, preset direction is the scope with 45 ° to 90 ° of horizontal plane angle.Judge that acceleration is big Little be more than the second default size after, acceleration direction and preset direction are compared, to judge that whether this acceleration direction be Preset direction.
S208, if preset direction, then judged result is contacted to earth for this smart mobile phone.
Specifically, if acceleration direction is preset direction, judged result is contacted to earth for this smart mobile phone.For example, acceleration Direction is straight up, then may determine that smart mobile phone contacts to earth.
S209, by the drop number increase of this smart mobile phone once, and starts timing.
Specifically, during the use of smart mobile phone, smart mobile phone can count to drop number.The numerical value counting It is the drop number of smart mobile phone.The numerical value counting can be stored in the journal file of smart mobile phone it is also possible to be stored in In other system file.When judging in S208 that smart mobile phone contacts to earth, will be stored in smart mobile phone journal file or other are Count value increase in system file once, starts timing simultaneously.For example, the falling of protocol in smart mobile phone journal file Number of times is 5 times, then now this drop number is revised as 6 times.
S210, when obtaining the interval between the moment that this smart mobile phone contacts to earth and the moment that this smart mobile phone falls Between.
Specifically, when can detect that smart mobile phone falls in S205, record the moment fallen.In S208 In when detecting that smart mobile phone contacts to earth, record the moment contacted to earth.Then, calculate between the moment contacted to earth and the moment fallen Interval time.This interval time is smart mobile phone and drops to the time being consumed when contacting to earth first.
S211, using this interval time as the first preset duration.
Specifically, when getting the interval between the moment that smart mobile phone contacts to earth and the moment that this smart mobile phone falls Between after, using this interval time as the first preset duration.
S212, reaches in the time period of the first preset duration in this timing, when this smart mobile phone is detected again and contacting to earth, Maintain this drop number constant.
Specifically, in S209 start timing after, reach in the time period of this first preset duration in timing, for example, 1s with Interior, when smart mobile phone is detected again and contacting to earth, maintain amended drop number in S209 constant.For example, change in S209 Drop number afterwards is 6 times, then, within 1s when this smart mobile phone is detected again and contacting to earth, maintain this drop number to be 6 times Constant.
Because smart mobile phone is when higher height falls, may rebound upwards after contacting to earth, thus fall again contacting to earth. Now fall to contact to earth belongs to a part for smart mobile phone falling process, rather than once new falling process.If at this moment Fall and when contacting to earth, still carry out counting, then can cause repeat count, thus producing error statistics.Therefore, reach in this timing In the time period of one preset duration, when this smart mobile phone is detected again and contacting to earth, maintain this drop number constant, can avoid The generation of error statistics.
When being embodied as, the present invention is not limited by the execution sequence of each described step, is not producing conflict In the case of, some steps can also be carried out or be carried out simultaneously using other orders.
From the foregoing, it will be observed that provided in an embodiment of the present invention fall statistical method, big by the size of acceleration and this acceleration It is less than the duration of the first default size to detect whether smart mobile phone falls;If smart mobile phone falls, Detect whether smart mobile phone contacts to earth by acceleration magnitude and direction;When smart mobile phone is detected and contacting to earth, by this intelligent hands The drop number increase of machine once, and starts timing;Reach in the time period of the first preset duration in this timing, when detecting again To this smart mobile phone contact to earth when, maintain this drop number constant.The program after smart mobile phone falls when contacting to earth first Do not counted when being counted, and contacting to earth again in the preset time period after smart mobile phone contacts to earth first, such that it is able to keep away Exempt from smart mobile phone is fallen with falling again after bounce-back and count, in terms of existing technologies, it can be avoided that after to falling Bounce-back carry out repeat count, can improve statistics drop number accuracy.
Embodiment three
In order to preferably implement above method, the embodiment of the present invention also provides one kind to fall statistic device, and this device is permissible Integrated in the terminal, this terminal can be the equipment such as smart mobile phone, panel computer.
As shown in figure 3, fall statistic device can include:Fall detection module 301, the detection module 302 that contacts to earth, statistics mould Block 303, maintenance module 304, are described in detail below:
Whether this falls detection module 301, fall for detection terminal;
This detection module 302 that contacts to earth, for when this terminal is fallen, persistently carrying out falling detection of contacting to earth;
This statistical module 303, for when this terminal is contacted to earth, by the drop number increase of this terminal once, and starting meter When;
This maintenance module 304, for reaching in this timing in the time period of the first preset duration, when detecting this end again When contacting to earth in end, maintain this drop number constant.
Preferably, as shown in figure 4, this falls detection module 301 includes:First acquisition submodule 3011, first judges son Module 3012, specific as follows:
This first acquisition submodule 3011, for obtaining the acceleration of terminal;
This first judging submodule 3012, for judging whether this acceleration magnitude presets size less than first, if be less than First presets size, then testing result is fallen for this terminal.
Preferably, as shown in figure 5, this falls detection module 301 also includes:Second acquisition submodule 3013, second judges Submodule 3014, specific as follows:
This second acquisition submodule 3013, is less than the duration of the first default size for obtaining this acceleration magnitude;
This second judging submodule 3014, for judging that whether this duration be more than the second preset duration, if more than the Two preset duration, then testing result fall for this terminal.
Preferably, as shown in fig. 6, this contacts to earth, detection module 302 includes:3rd judging submodule the 3021, the 4th judges son Module 3022, specific as follows:
3rd judging submodule 3021, for judging whether this acceleration magnitude is more than the second default size;
4th judging submodule 3022, for when this acceleration magnitude is more than the second default size, judging this acceleration Whether degree direction is preset direction, if preset direction, then judged result is contacted to earth for this terminal.
Preferably, as shown in fig. 7, this falls statistic device also includes:Acquisition module 305, determining module 306, specifically such as Under:
This acquisition module 305, between obtaining between the moment that this terminal contacts to earth and the moment that this terminal is fallen Every the time;
This determining module 306, for using this interval time as this first preset duration.
When being embodied as, above modules can be realized as independent entity it is also possible to carry out combination in any, makees To realize for same or several entities.Being embodied as of above modules can be found in embodiment of the method above, and here is not Repeat again.
From the foregoing, it will be observed that provided in an embodiment of the present invention fall statistic device, by falling detection module 301 detection terminal it is No fall;Contact to earth detection module 302 when this terminal is fallen, persistently carries out falling detection of contacting to earth;Statistical module 303 When this terminal is detected and contacting to earth, by the drop number increase of this terminal once, and start timing;Maintenance module 304 is in this meter When reach in the time period of the first preset duration, when this terminal is detected again and contacting to earth, maintain this drop number constant.The party Case being counted when contacting to earth first after terminal is fallen, and touch again in the preset time period after terminal is contacted to earth first Do not counted during ground, counted such that it is able to avoid terminal is fallen with falling again after bounce-back, with respect to prior art For, the accuracy of statistics drop number it can be avoided that repeat count is carried out to the bounce-back after falling, can be improved.
Example IV
The embodiment of the present invention also provides a kind of terminal, and this terminal can be the equipment such as smart mobile phone, panel computer.
As shown in figure 8, terminal 400 can include:Fall detection module 401, contact to earth detection module 402, statistical module 403rd, maintenance module 404, are described in detail below:
Whether this falls detection module 401, fall for detection terminal;
This detection module 402 that contacts to earth, for when this terminal is fallen, persistently carrying out falling detection of contacting to earth;
This statistical module 403, for when this terminal is contacted to earth, by the drop number increase of this terminal once, and starting meter When;
This maintenance module 404, for reaching in this timing in the time period of the first preset duration, when detecting this end again When contacting to earth in end, maintain this drop number constant.
Preferably, this falls detection module 401 and includes:First acquisition submodule, the first judging submodule, specific as follows:
This first acquisition submodule, for obtaining the acceleration of terminal;
This first judging submodule, for judging whether this acceleration magnitude presets size less than first, if be less than first Default size, then testing result fall for this terminal.
Preferably, this falls detection module 401 and also includes:Second acquisition submodule, the second judging submodule, specifically such as Under:
This second acquisition submodule, is less than the duration of the first default size for obtaining this acceleration magnitude;
This second judging submodule, for judging whether this duration is more than the second preset duration, if pre- more than second If duration, then testing result is fallen for this terminal.
Preferably, this detection module 402 that contacts to earth includes:3rd judging submodule, the 4th judging submodule, specific as follows:
3rd judging submodule, for judging whether this acceleration magnitude is more than the second default size;
4th judging submodule, for when this acceleration magnitude is more than the second default size, judging this acceleration side Whether to being preset direction, if preset direction, then judged result is contacted to earth for this terminal.
Preferably, terminal 400 also includes:Acquisition module, determining module, specific as follows:
This acquisition module, during for obtaining the interval between the moment that this terminal contacts to earth and the moment that this terminal is fallen Between;
This determining module, for using this interval time as this first preset duration.
Aforesaid operations specifically can be found in embodiment of the method above, will not be described here.
The embodiment of the present invention also provides another kind of terminal, as shown in figure 9, this terminal 500 can include radio frequency (RF, Radio Frequency) circuit 501, the memorizer 502 including one or more computer-readable recording mediums, input block 503rd, display unit 504, sensor 505, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module 507th, the parts such as processor 508 and the power supply 509 of or more than one processing core are included.People in the art Member, it is appreciated that the restriction of the terminal structure not structure paired terminal shown in Fig. 9, can include more more or less of than illustrating Part, or combine some parts, or different part arrangements.
Radio circuit 501 can be used for receiving and sending messages, or the reception of signal and transmission in communication process, especially, by base station Downlink information receive after, transfer to one or more than one processor 508 processed;In addition, up data is activation will be related to To base station.Generally, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more vibration Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, bonder, low noise amplification Device (LNA, Low Noise Amplifier), duplexer etc..Additionally, radio circuit 501 can also pass through radio communication and network With other equipment communication.This radio communication can use arbitrary communication standard or agreement, including but not limited to global system for mobile telecommunications System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division many Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memorizer 502 can be used for storing software program and module.Processor 508 is stored in memorizer 502 by operation Software program and module, thus executing various function application and data processing.Memorizer 502 can mainly include storing journey Sequence area and storage data field, wherein, storing program area can (compare the application program needed for storage program area, at least one function As sound-playing function, image player function etc.) etc.;Storage data field can store according to terminal using the data being created (such as voice data, phone directory etc.) etc..Additionally, memorizer 502 can include high-speed random access memory, can also include Nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Phase Ying Di, memorizer 502 can also include Memory Controller, to provide processor 508 and input block 503 to memorizer 502 Access.
Input block 503 can be used for numeral or the character information of receives input, and produces and user setup and function Control relevant keyboard, mouse, action bars, optics or trace ball signal input.Specifically, in a specific embodiment In, input block 503 may include Touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touch Control plate, can collect user thereon or neighbouring touch operation (such as user use any suitable object such as finger, stylus or Operation on Touch sensitive surface or near Touch sensitive surface for the adnexa), and corresponding connection dress is driven according to formula set in advance Put.Optionally, Touch sensitive surface may include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus inspection Survey the touch orientation of user, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch controller from Receive touch information on touch detecting apparatus, and be converted into contact coordinate, then give processor 508, and can reception processing Order that device 508 is sent simultaneously is executed.Furthermore, it is possible to it is multiple using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes Touch sensitive surface.Except Touch sensitive surface, input block 503 can also include other input equipments.Specifically, other are defeated Enter equipment and can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, Mus One or more of mark, action bars etc..
Display unit 504 can be used for display and by the information of user input or is supplied to the information of user and the various of terminal Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display Unit 504 may include display floater, optionally, can using liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) are configuring display floater.Further , Touch sensitive surface can cover display floater, when Touch sensitive surface detects thereon or after neighbouring touch operation, sends process to Device 508, to determine the type of touch event, provides accordingly according to the type of touch event on a display panel with preprocessor 508 Visual output.Although in fig .9, Touch sensitive surface and display floater are to realize inputting as two independent parts and to input Function, but in some embodiments it is possible to will be integrated to Touch sensitive surface and display floater and realize input and output function.
Terminal may also include at least one sensor 505, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light The brightness to adjust display floater for the light and shade, proximity transducer can cut out display floater and/or the back of the body when terminal moves in one's ear Light.As one kind of motion sensor, Gravity accelerometer can detect (generally three axles) acceleration in all directions Size, can detect that size and the direction of gravity when static, can be used for identify mobile phone attitude application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Can also configure as terminal Gyroscope, barometer, drimeter, thermometer, the other sensors such as infrared ray sensor, will not be described here.
Voicefrequency circuit 506 can provide the audio interface between user and terminal by speaker, microphone.Voicefrequency circuit The voice data receiving can be converted into the signal of telecommunication by 506, be transferred to speaker, be converted to acoustical signal output by speaker; On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone, is converted to audio frequency number by voicefrequency circuit 506 after being received According to then after processing voice data output processor 508, through radio circuit 501 being sent to such as another terminal, or by sound Frequency data output is to memorizer 502 to process further.Voicefrequency circuit 506 is also possible that earphone jack, to provide peripheral hardware Earphone and the communication of terminal.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and terminal can be helped by wireless fidelity module 507 User sends and receive e-mail, browses webpage and access streaming video etc., and it has provided the user wireless broadband internet and has accessed. Although Fig. 9 shows wireless fidelity module 507, but it is understood that, it is simultaneously not belonging to must be configured into of terminal, completely may be used To omit in the scope of essence not changing invention as needed.
Processor 508 is the control centre of terminal, using the various pieces of various interfaces and the whole terminal of connection, leads to Cross and run or software program and/or module that execution is stored in memorizer 502, and call and be stored in memorizer 502 Data, the various functions of execution terminal and processing data, thus carry out integral monitoring to terminal.Optionally, processor 508 can wrap Include one or more processing cores;Preferably, processor 508 can integrated application processor and modem processor, wherein, should Mainly process operating system, user interface and application program etc. with processor, modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated in processor 508.
Terminal also includes the power supply 509 (such as battery) powered to all parts.Preferably, power supply can pass through power supply pipe Reason system is logically contiguous with processor 508, thus realizing management charging, electric discharge and power managed by power-supply management system Etc. function.Power supply 509 can also include one or more direct current or alternating current power supply, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown in Fig. 9, terminal can also include photographic head, bluetooth module etc., will not be described here.
Specifically in the present embodiment, the processor 508 in terminal can be according to following instruction, will be one or more The corresponding executable file of process of application program is loaded in memorizer 502, and to be run by processor 508 and be stored in storage Application program in device 502, thus realize various functions:
Whether detection terminal is fallen;If this terminal is fallen, persistently carry out falling detection of contacting to earth;When detecting When this terminal is contacted to earth, by the drop number increase of this terminal once, and start timing;Reach the first preset duration in this timing In time period, when this terminal is detected again and contacting to earth, maintain this drop number constant.
Preferably, processor 508 has and falls detection module, the detection module that contacts to earth, statistical module, maintenance module, specifically It is described as follows:
Processor 508 is used for by falling whether detection module detection terminal is fallen;
Processor 508 is used for by contacting to earth detection module when this terminal is fallen, and persistently carries out falling detection of contacting to earth;
Processor 508 is used for, by statistical module when this terminal is detected and contacting to earth, the drop number of this terminal being increased Once, and start timing;
Processor 508 is used for reaching in the time period of the first preset duration in this timing by maintenance module, when examining again When measuring this terminal and contacting to earth, maintain this drop number constant.
Aforesaid operations specifically can be found in embodiment of the method above, will not be described here.
From the foregoing, it will be observed that embodiments providing a kind of terminal, whether fallen by detection terminal;If this terminal Fall, then persistently carry out falling detection of contacting to earth;When this terminal is detected and contacting to earth, the drop number of this terminal is increased by one Secondary, and start timing;Reach in the time period of the first preset duration in this timing, when this terminal is detected again and contacting to earth, dimension Hold this drop number constant.The program being counted when contacting to earth first after terminal is fallen, and contact to earth first in terminal Do not counted when contacting to earth again in preset time period afterwards, such that it is able to avoid terminal is fallen after bounce-back fall again into Row counts, and in terms of existing technologies, it can be avoided that carrying out repeat count to the bounce-back after falling, can improve statistics and falling The accuracy of number of times.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps can be by program to complete come the hardware to instruct correlation, and this program can be stored in computer-readable storage medium In matter, storage medium can include:Read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
The one kind above embodiment of the present invention being provided is fallen statistical method, device and terminal and is described in detail, Specific case used herein is set forth to the principle of the present invention and embodiment, and the explanation of above example is to use Understand the method for the present invention and its core concept in help;Simultaneously for those skilled in the art, according to the think of of the present invention Think, all will change in specific embodiments and applications, in sum, it is right that this specification content should not be construed as The restriction of the present invention.

Claims (10)

1. one kind falls statistical method it is characterised in that including:
Whether detection terminal is fallen;
If described terminal is fallen, persistently carry out falling detection of contacting to earth;
When described terminal is detected and contacting to earth, by the drop number increase of described terminal once, and start timing;
Reach in the time period of the first preset duration in described timing, when described terminal is detected again and contacting to earth, remain described Drop number is constant.
2. according to claim 1 fall statistical method it is characterised in that the step whether fallen of described detection terminal Suddenly specifically include:
Obtain the acceleration of terminal;
Judge whether described acceleration magnitude is less than the first default size;
If the default size less than first, testing result is fallen for described terminal.
3. according to claim 2 fall statistical method it is characterised in that judge described acceleration magnitude be less than first After default size, the step whether described detection terminal is fallen specifically also includes:
Obtain the duration that described acceleration magnitude is less than the first default size;
Judge whether described duration is more than the second preset duration;
If being more than the second preset duration, testing result is fallen for described terminal.
4. according to claim 2 fall statistical method it is characterised in that described fall detection of contacting to earth and specifically include:
Judge whether described acceleration magnitude is more than the second default size;
If default size, judges whether described acceleration direction is preset direction more than second;
If preset direction, then judged result is contacted to earth for described terminal.
5. according to claim 1 fall statistical method it is characterised in that described first preset duration pass through following steps Determine:
Obtain the interval time between the moment that described terminal contacts to earth and the moment that described terminal is fallen;
Using described interval time as described first preset duration.
6. one kind falls statistic device it is characterised in that including:
Fall detection module, whether fall for detection terminal;
Contact to earth detection module, for when described terminal is fallen, persistently carrying out falling detection of contacting to earth;
Statistical module, for when described terminal is contacted to earth, by the drop number increase of described terminal once, and starting timing;
Maintenance module, for reaching in described timing in the time period of the first preset duration, touches when described terminal is detected again During ground, maintain described drop number constant.
7. according to claim 6 fall statistic device it is characterised in that the described detection module that falls specifically includes:
First acquisition submodule, for obtaining the acceleration of terminal;
First judging submodule, for judging whether described acceleration magnitude presets size less than first, if preset less than first Size, then testing result fall for described terminal.
8. according to claim 7 fall statistic device it is characterised in that the described detection module that falls specifically also includes:
Second acquisition submodule, is less than the duration of the first default size for obtaining described acceleration magnitude;
Second judging submodule, for judging whether described duration is more than the second preset duration, if when default more than second Long, then testing result is fallen for described terminal.
9. according to claim 7 fall statistic device it is characterised in that the described detection module that contacts to earth specifically includes:
3rd judging submodule, for judging whether described acceleration magnitude is more than the second default size;
4th judging submodule, for when described acceleration magnitude is more than the second default size, judging described acceleration direction Whether it is preset direction, if preset direction, then judged result is contacted to earth for described terminal.
10. according to claim 6 fall statistic device it is characterised in that the described statistic device that falls also includes:
Acquisition module, during for obtaining the interval between the moment that described terminal contacts to earth and the moment that described terminal is fallen Between;
Determining module, for using described interval time as described first preset duration.
CN201610807809.4A 2016-09-06 2016-09-06 One kind falling statistical method and device Active CN106412250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610807809.4A CN106412250B (en) 2016-09-06 2016-09-06 One kind falling statistical method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610807809.4A CN106412250B (en) 2016-09-06 2016-09-06 One kind falling statistical method and device

Publications (2)

Publication Number Publication Date
CN106412250A true CN106412250A (en) 2017-02-15
CN106412250B CN106412250B (en) 2019-05-21

Family

ID=57998909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610807809.4A Active CN106412250B (en) 2016-09-06 2016-09-06 One kind falling statistical method and device

Country Status (1)

Country Link
CN (1) CN106412250B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600541A (en) * 2018-04-24 2018-09-28 Oppo广东移动通信有限公司 Fall detection method and relevant apparatus
CN110166601A (en) * 2019-05-28 2019-08-23 维沃移动通信有限公司 A kind of terminal and the screen control method applied to terminal
CN111812356A (en) * 2020-06-05 2020-10-23 厦门亿联网络技术股份有限公司 Fall detection method and device based on triaxial accelerometer

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030016627A1 (en) * 2001-07-23 2003-01-23 Melampy Patrick J. System and method for determining flow quality statistics for real-time transport protocol data flows
CN102279285A (en) * 2011-03-11 2011-12-14 华为终端有限公司 Terminal, method and apparatus for detecting drop information thereof
CN103955365A (en) * 2014-04-17 2014-07-30 小米科技有限责任公司 Method and device for controlling terminal when terminal falls off
CN105095644A (en) * 2015-06-19 2015-11-25 厦门市简极科技有限公司 Ball juggling counting error correcting method
CN105635473A (en) * 2016-01-10 2016-06-01 上海与德通讯技术有限公司 Mobile terminal and falling protection method of mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030016627A1 (en) * 2001-07-23 2003-01-23 Melampy Patrick J. System and method for determining flow quality statistics for real-time transport protocol data flows
CN102279285A (en) * 2011-03-11 2011-12-14 华为终端有限公司 Terminal, method and apparatus for detecting drop information thereof
CN103955365A (en) * 2014-04-17 2014-07-30 小米科技有限责任公司 Method and device for controlling terminal when terminal falls off
CN105095644A (en) * 2015-06-19 2015-11-25 厦门市简极科技有限公司 Ball juggling counting error correcting method
CN105635473A (en) * 2016-01-10 2016-06-01 上海与德通讯技术有限公司 Mobile terminal and falling protection method of mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600541A (en) * 2018-04-24 2018-09-28 Oppo广东移动通信有限公司 Fall detection method and relevant apparatus
CN108600541B (en) * 2018-04-24 2020-10-16 Oppo广东移动通信有限公司 Fall detection method and related device
CN110166601A (en) * 2019-05-28 2019-08-23 维沃移动通信有限公司 A kind of terminal and the screen control method applied to terminal
CN110166601B (en) * 2019-05-28 2021-01-22 维沃移动通信有限公司 Terminal and screen control method applied to terminal
CN111812356A (en) * 2020-06-05 2020-10-23 厦门亿联网络技术股份有限公司 Fall detection method and device based on triaxial accelerometer

Also Published As

Publication number Publication date
CN106412250B (en) 2019-05-21

Similar Documents

Publication Publication Date Title
EP3306865A1 (en) Communication message sending method and device
CN106453829A (en) Method and apparatus for detecting fall-off height
CN106549464A (en) A kind of charge control method, device and computer equipment
CN106453830A (en) Falling detection method and device
CN103365419B (en) A kind of method and apparatus triggering alarm clock control command
CN106357897A (en) Fall information acquiring method and device
CN104967896A (en) Method for displaying bulletscreen comment information, and apparatus thereof
CN104869468A (en) Method and apparatus for displaying screen information
CN106412249A (en) Detection method and device of drop information
CN106331359B (en) A kind of speech signal collection method, device and terminal
CN106068020A (en) Hinting abnormal states method and device
CN106646440B (en) A kind of falling height detection method and device
CN106375582A (en) Vibration control method and apparatus
CN106341713A (en) Multimedia synchronous play method, apparatus and system, and terminal
CN106294168A (en) A kind of method and system carrying out Application testing
CN103945241A (en) Streaming data statistical method, system and related device
CN106453597A (en) Data synchronization cycle adjustment method, device and system
CN106303605A (en) A kind of methods, devices and systems sent a notification message
CN106412250A (en) Drop statistical method and device
CN103647868A (en) Method and device for reducing ringtone interferences
CN103546632A (en) Method and device for alarm ringing of mobile terminal and mobile terminal
CN104135396B (en) Show the method for network speed information, device and terminal
CN107577795A (en) A kind of methods, devices and systems for recommending song
CN104918130A (en) Methods for transmitting and playing multimedia information, devices and system
CN106227337A (en) A kind of screen luminance adjustment method, device and terminal

Legal Events

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

Address after: 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