CN103973885A - Data reporting method and mobile terminal - Google Patents

Data reporting method and mobile terminal Download PDF

Info

Publication number
CN103973885A
CN103973885A CN201410132472.2A CN201410132472A CN103973885A CN 103973885 A CN103973885 A CN 103973885A CN 201410132472 A CN201410132472 A CN 201410132472A CN 103973885 A CN103973885 A CN 103973885A
Authority
CN
China
Prior art keywords
mobile terminal
sensor data
gravity sensor
time interval
obtaining
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
CN201410132472.2A
Other languages
Chinese (zh)
Other versions
CN103973885B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410132472.2A priority Critical patent/CN103973885B/en
Publication of CN103973885A publication Critical patent/CN103973885A/en
Application granted granted Critical
Publication of CN103973885B publication Critical patent/CN103973885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • Y02B60/50

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a data reporting method and a mobile terminal, and belongs to the field of mobile communication. The data reporting method is applied to the mobile terminal. A gravity sensor which is used for showing the current state of the mobile terminal is arranged in the mobile terminal. The data reporting method comprises the following steps of acquiring time intervals by using a bottom drive in the mobile terminal; acquiring current gravity sensor data every time interval; comparing the acquired current gravity sensor data to the previously acquired gravity sensor data; and reporting the current acquired gravity sensor data if the variable quantity of the current acquired gravity sensor data and the previously acquired gravity sensor data is greater than or equal to a reporting threshold value. A device comprises an acquiring module, a comparing module and a reporting module. By using the data reporting method, only the current gravity sensor data of which the variable quantity is greater than the reporting threshold value is reported, an upper procedure only needs to compute and judge the current gravity sensor data of which the variable quantity is greater than the reporting threshold value, system resources are saved, and the power consumption of the mobile terminal is reduced.

Description

A kind of method of reported data and mobile terminal
Technical field
The present invention relates to moving communicating field, particularly a kind of method of reported data and mobile terminal.
Background technology
Along with the development of mobile communication technology, for example mobile phone of mobile terminal has become that people produce and the necessity of life, perfect along with mobile terminal function, and the most mobile terminal of determining all possesses roller blind function.Taking mobile phone as example, when mobile phone in be longitudinally the minor face of mobile phone be positioned at long limit above time, the content showing in mobile phone display screen be parallel to mobile phone minor face show, i.e. common vertical demonstration; When mobile phone in be laterally the long limit of mobile phone be positioned at minor face above time, mobile phone there will be roller blind, the content showing in mobile phone display screen is parallel to the long limit of mobile phone and shows, i.e. common horizontal demonstration.
In prior art, there is a kind of method of reported data, can be: the good time interval of mobile phone bottom layer driving configured in advance, and every this time interval, for example 80ms, obtain the current gravity sensor G-sensor data of terminal one time, collected G-sensor data are reported to mobile phone upper procedure; Whether upper procedure carries out the judgement of roller blind operation according to the G-sensor data that receive, and carries out respective handling according to judged result.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
In the time there is minor alteration in the current position of for example mobile phone of mobile terminal, this minor alteration is not enough to cause roller blind operation, and mobile phone bottom layer driving reports gathered G-sensor data, and the judgement whether upper procedure carries out roller blind operation to the G-sensor data that receive is very complicated process, can consume a large amount of system resource, like this, not only consume the systematic function of mobile terminal, and increase power consumption.And the time interval is changeless, this time interval can not meet the current demand of each mobile terminal.
Summary of the invention
In order to solve the problem of prior art, the invention provides a kind of method and mobile terminal of reported data.Described technical scheme is as follows:
On the one hand, the invention provides a kind of method of reported data, be applied to mobile terminal, in described mobile terminal, there is the gravity sensor for representing mobile terminal current state; Described method comprises:
Bottom layer driving acquisition time interval in described mobile terminal, and obtain once current gravity sensor data every the described time interval;
The described current gravity sensor data of obtaining and the front gravity sensor data of once obtaining are compared;
If described current gravity sensor data and described before the variable quantity of the gravity sensor data once obtained be more than or equal to and report threshold value, report the described current gravity sensor data of obtaining.
Preferably, described method also comprises:
If described current gravity sensor data and described before the variable quantity of the gravity sensor data once obtained report threshold value described in being less than, the described current gravity sensor data of obtaining are not processed.
Preferably, described in report the described current gravity sensor data of obtaining, comprising:
Described in being more than or equal to described variable quantity, described bottom layer driving report the described current gravity sensor data of threshold value to report upper procedure, to make described upper procedure judge whether to carry out roller blind operation according to the described current gravity sensor data that receive.
Preferably, described upper procedure judges whether to carry out roller blind operation according to the described current gravity sensor data that receive, and comprising:
Described upper procedure is obtained respectively long limit that described mobile terminal comprises and the angle of angle, minor face and gravity direction and the angle of flash and gravity direction of gravity direction according to described current gravity sensor data;
Judge whether to carry out roller blind operation according to the angle of the angle of angle, minor face and the gravity direction of described long limit and gravity direction and flash and gravity direction.
Preferably, the bottom layer driving acquisition time interval in described mobile terminal, comprising:
Bottom layer driving in described mobile terminal receives the notification message that application program sends, and described notification message carries the mark of described application program;
From the mark of application program and the corresponding relation in the time interval, obtain the time interval of the mark correspondence of described application program according to the mark of described application program.
Preferably, the bottom layer driving acquisition time interval in described mobile terminal, comprising:
Bottom layer driving in described mobile terminal is obtained the residual electric quantity of described mobile terminal;
From the corresponding relation at dump energy scope and time interval, obtain the time interval corresponding to described residual electric quantity according to the residual electric quantity of described mobile terminal.
Preferably, the bottom layer driving acquisition time interval in described mobile terminal, comprising:
Bottom layer driving in described mobile terminal is obtained the current use power mode of described mobile terminal;
Obtain from the corresponding relation with power mode and the time interval with power mode the described time interval corresponding to power mode of using according to described.
Preferably, the bottom layer driving acquisition time interval in described mobile terminal, comprising:
Bottom layer driving in described mobile terminal is obtained the time interval that user selects.
On the other hand, the invention provides a kind of mobile terminal, in described mobile terminal, there is the gravity sensor for representing terminal current state; Described mobile terminal comprises:
Acquisition module, for acquisition time interval, and obtains once current gravity sensor data every the described time interval;
Comparison module, for comparing the described current gravity sensor data of obtaining and the front gravity sensor data of once obtaining;
Reporting module, if for described current gravity sensor data and described before the variable quantity of the gravity sensor data once obtained be more than or equal to and report threshold value, report the described current gravity sensor data of obtaining.
Preferably, described mobile terminal also comprises:
Processing module, if for described current gravity sensor data and described before the variable quantity of the gravity sensor data once obtained report threshold value described in being less than, the described current gravity sensor data of obtaining are not processed.
Preferably, described reporting module, described in being more than or equal to, described variable quantity report the described current gravity sensor data of threshold value to report upper procedure, to make described upper procedure judge whether to carry out roller blind operation according to the described current gravity sensor data that receive.
Preferably, described mobile terminal also comprises:
Judge module, for obtaining respectively long limit that described mobile terminal comprises and the angle of angle, minor face and gravity direction and the angle of flash and gravity direction of gravity direction according to described current gravity sensor data; According to judging whether to carry out roller blind operation according to the angle of the angle of angle, minor face and the gravity direction of described long limit and gravity direction and flash and gravity direction.
Preferably, described acquisition module, comprising:
Receiving element, the notification message sending for receiving application program, described notification message carries the mark of described application program;
The first acquiring unit, for obtaining the time interval of the mark correspondence of described application program from the mark of application program and the corresponding relation in the time interval according to the mark of described application program.
Preferably, described acquisition module, comprising:
Second acquisition unit, for obtaining the residual electric quantity of described mobile terminal;
The 3rd acquiring unit, for obtaining the time interval corresponding to described residual electric quantity according to the residual electric quantity of described mobile terminal from the corresponding relation at dump energy scope and time interval.
Preferably, described acquisition module, comprising:
The 4th acquiring unit, for obtaining the current use power mode of described mobile terminal;
The 5th acquiring unit, for according to described described with the time interval corresponding to power mode from obtaining with the corresponding relation in power mode and the time interval with power mode.
Preferably, described acquisition module, the time interval of selecting for obtaining user.
In embodiments of the present invention, the bottom layer driving in mobile terminal compares the current gravity sensor data of obtaining and the front gravity sensor data of once obtaining; Report threshold value if the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is more than or equal to, report the current gravity sensor data of obtaining.Thereby upper procedure is only greater than and reports the current gravity sensor data of threshold value to calculate judgement the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining, and has saved the power consumption of system resource and mobile terminal.And the bottom layer driving in mobile terminal is according to the Requirement Acquisition time interval of mobile terminal, and obtain once current gravity sensor data every the time interval that this obtains, thereby can meet the current demand of mobile terminal.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow diagram of the reported data that provides of the embodiment of the present invention 1;
Fig. 2 is the method flow diagram of the reported data that provides of the embodiment of the present invention 2;
Fig. 3 is the apparatus structure schematic diagram of the mobile terminal that provides of the embodiment of the present invention 3.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
The embodiment of the present invention provides a kind of method of reported data, is applied to mobile terminal, has the gravity sensor for representing mobile terminal current state in this mobile terminal.Referring to Fig. 1, wherein, the method comprises:
Step 101: the bottom layer driving acquisition time interval in mobile terminal, and obtain once current gravity sensor data every this time interval;
Step 102: the current gravity sensor data of obtaining and the front gravity sensor data of once obtaining are compared;
Step 103: report threshold value if the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is more than or equal to, report the current gravity sensor data of obtaining.
Preferably, the method also comprises:
Report threshold value if the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is less than, the current gravity sensor data of obtaining are not processed.
Preferably, report the current gravity sensor data of obtaining, comprising:
Bottom layer driving is more than or equal to variable quantity to report the current gravity sensor data of threshold value to report upper procedure, to make upper procedure judge whether to carry out roller blind operation according to the current gravity sensor data that receive.
Preferably, upper procedure judges whether to carry out roller blind operation according to the current gravity sensor data that receive, and comprising:
Upper procedure is obtained respectively long limit that mobile terminal comprises and the angle of angle, minor face and gravity direction and the angle of flash and gravity direction of gravity direction according to current gravity sensor data;
Judge whether to carry out roller blind operation according to the angle of angle, minor face and gravity direction and the angle of flash and gravity direction of long limit and gravity direction.
Preferably, the bottom layer driving acquisition time interval in mobile terminal, comprising:
Bottom layer driving in mobile terminal receives the notification message that application program sends, and notification message carries the mark of application program;
From the mark of application program and the corresponding relation in the time interval, obtain the time interval of the mark correspondence of application program according to the mark of application program.
Preferably, the bottom layer driving acquisition time interval in mobile terminal, comprising:
Bottom layer driving in mobile terminal is obtained the residual electric quantity of mobile terminal;
From the corresponding relation at dump energy scope and time interval, obtain the time interval corresponding to residual electric quantity according to the residual electric quantity of mobile terminal.
Preferably, the bottom layer driving acquisition time interval in mobile terminal, comprising:
Bottom layer driving in mobile terminal is obtained the current use power mode of mobile terminal;
According to obtaining from the corresponding relation with power mode and the time interval with power mode with the time interval corresponding to power mode.
Preferably, the bottom layer driving acquisition time interval in mobile terminal, comprising:
Bottom layer driving in mobile terminal is obtained the time interval that user selects.
In embodiments of the present invention, the bottom layer driving in mobile terminal compares the current gravity sensor data of obtaining and the front gravity sensor data of once obtaining; Report threshold value if the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is more than or equal to, report the current gravity sensor data of obtaining.Thereby upper procedure is only greater than and reports the current gravity sensor data of threshold value to calculate judgement the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining, and has saved the power consumption of system resource and mobile terminal.And the bottom layer driving in mobile terminal is according to the Requirement Acquisition time interval of mobile terminal, and obtain once current gravity sensor data every the time interval that this obtains, thereby can meet the current demand of mobile terminal.
Embodiment 2
The embodiment of the present invention provides a kind of method of reported data, is applied to mobile terminal, has the gravity sensor for representing mobile terminal current state in this mobile terminal.Referring to Fig. 2, wherein, the method comprises:
Step 201: the bottom layer driving acquisition time interval in mobile terminal, and obtain once current gravity sensor data every this time interval;
Wherein, the bottom layer driving acquisition time interval in mobile terminal can be realized by first kind of way, the second way, the third mode or the 4th kind of mode, for first kind of way, can comprise the following steps (1) to (2):
(1), application program sends a notification message to the bottom layer driving in mobile terminal, this notification message carries the mark of application program;
Wherein, in the time that user opens certain application program, application program sends a notification message to the bottom layer driving in mobile terminal by the interface of system in loading procedure, and this notification message carries the mark of application program.
Wherein, application program be designated arbitrary mark that can identify this application program, as title that is designated application program of application program etc.Mobile terminal can be arbitrary mobile terminal, and for example, mobile terminal is mobile phone terminal or PC(personal computer, personal computer) terminal etc.Gravity sensor data comprise each summit that mobile terminal comprises coordinate in preset coordinate system.
Wherein, preset coordinate system can set up as required and change, and in embodiments of the present invention, to preset coordinate, system is not specifically limited, for example, and taking a summit of mobile terminal as the origin of coordinates is set up coordinate system.
Wherein, when the position of mobile terminal in space changes, the coordinate figure of mobile terminal in preset coordinate system will change, and the bottom layer driving in mobile terminal is obtained once current gravity sensor data every this time interval.
(2) bottom layer driving, in mobile terminal receives the notification message that application program sends, and obtains the time interval corresponding to this application program from the mark of application program and the corresponding relation in the time interval according to the mark of this application program.
Bottom layer driving in mobile terminal is obtained the mark of the application program of carrying in this notification message, and obtains from the mark of the application program of prior storage and the corresponding relation in the time interval according to the mark of this application program the time interval of the mark correspondence of this application program.
And at this application program run duration, the bottom layer driving in mobile terminal is obtained current gravity sensor data according to the time interval of the mark correspondence of this application program; In the time that the bottom layer driving in mobile terminal detects that this application program is out of service, the time interval of acquisition for mobile terminal acquiescence, and obtain current gravity sensor data according to the time interval of acquiescence.
The time interval of this acquiescence can arrange as required and change, as, the time interval of acquiescence is 80ms etc.In embodiments of the present invention the time interval of acquiescence is not done to concrete restriction.
Wherein, the time interval difference that each application program is required, as high in game counterweight force sensor data sensitivity requirement, need to shorten the time interval; And some application program may not need roller blind processing, the sensitivity of counterweight force sensor data requires low, need to increase the time interval; Therefore, in embodiments of the present invention, the bottom layer driving in mobile terminal is obtained current gravity sensor data according to the time interval corresponding to the application program of current operation, can meet the demand of application program.
For the second way, can comprise the following steps (A) to (B):
(A), the bottom layer driving in mobile terminal is obtained the residual electric quantity of mobile terminal;
(B), the bottom layer driving in mobile terminal is obtained the time interval corresponding to this residual electric quantity according to the residual electric quantity of mobile terminal from the corresponding relation at dump energy scope and time interval.
Particularly, the bottom layer driving in mobile terminal is determined the dump energy scope at this residual electric quantity place according to the residual electric quantity of mobile terminal; And from the corresponding relation at the dump energy scope and time interval of prior storage, obtain the time interval corresponding to this residual electric quantity according to the dump energy scope at this residual electric quantity place.
Wherein, the bottom layer driving in mobile terminal is obtained current gravity sensor data and not only can be consumed the systematic function of mobile terminal, and can increase the power consumption of mobile terminal; When the residual electric quantity of mobile terminal hour, the bottom layer driving in mobile terminal is also obtained gravity sensor data and may accelerate the electric quantity consumption of mobile terminal according to the time interval of acquiescence.Therefore, in embodiments of the present invention, the bottom layer driving in mobile terminal is obtained current gravity sensor data according to the time interval corresponding to the residual electric quantity of mobile terminal, can meet the demand of mobile terminal.
For the third mode, can comprise the following steps (a) to (b):
(a), the bottom layer driving in mobile terminal is obtained the current use power mode of mobile terminal;
(b), the bottom layer driving in mobile terminal is obtained the time interval that this use power mode is corresponding from the corresponding relation with power mode and the time interval according to this use power mode.
Wherein, the bottom layer driving in mobile terminal is stored in advance with power mode and the corresponding relation in the time interval, according to current can the obtaining the time interval that this use power mode is corresponding from the corresponding relation with power mode and the time interval with power mode of mobile terminal.
Wherein, the bottom layer driving in mobile terminal is obtained current gravity sensor data and not only can be consumed the systematic function of mobile terminal, and can increase the power consumption of mobile terminal; When mobile terminal current be battery saving mode with power mode time, the bottom layer driving in mobile terminal is also obtained gravity sensor data and may accelerate the power consumption of mobile terminal according to the time interval of acquiescence.Therefore, in embodiments of the present invention, the bottom layer driving in mobile terminal, according to obtaining current gravity sensor data with the time interval corresponding to power mode, can meet the demand of mobile terminal.
For the 4th kind of mode, Ke Yiwei:
Bottom layer driving in mobile terminal is obtained the time interval that user selects.
Wherein, user can be according to individual demand select time interval, and the bottom layer driving in mobile terminal is obtained the time interval that user selects, and the time interval of selecting according to user is obtained current gravity sensor data.
In embodiments of the present invention, the time interval that the bottom layer driving in mobile terminal is selected according to user is obtained current gravity sensor data, can meet consumers' demand.
Wherein, it should be noted that, mobile terminal also can be combined with first kind of way, the second way, the third mode and/or the 4th kind of mode.
Step 202: the bottom layer driving in mobile terminal is obtained previous gravity sensor data;
Wherein, bottom layer driving in mobile terminal is obtained the gravity sensor data of mobile terminal every Preset Time, bottom layer driving in mobile terminal is obtained after current gravity sensor data, for the current gravity sensor data of obtaining and the front gravity sensor data of once obtaining are compared, the bottom layer driving in mobile terminal need to be obtained previous gravity sensor data.
Wherein, in mobile terminal, store previous gravity sensor data.
Step 203: the bottom layer driving in mobile terminal compares the current gravity sensor data of obtaining and the front gravity sensor data of once obtaining, if the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is more than or equal to while reporting threshold value, execution step 204; If the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is less than while reporting threshold value, execution step 207;
Particularly, the bottom layer driving in mobile terminal compares the current gravity sensor data of obtaining and the front gravity sensor data of once obtaining, and obtains the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining; Whether the variable quantity that judges current gravity sensor data and the front gravity sensor data of once obtaining is more than or equal to reports threshold value; If the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is more than or equal to while reporting threshold value, execution step 204; If the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is less than while reporting threshold value, execution step 207.
Wherein, report threshold value to arrange as required and to change, in embodiments of the present invention, to reporting threshold value to be not specifically limited.
Step 204: the bottom layer driving in mobile terminal reports the current gravity sensor data of obtaining to upper procedure;
Wherein, when the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is more than or equal to while reporting threshold value, the bottom layer driving in mobile terminal reports the current gravity sensor data of obtaining to upper procedure.
Step 205: the current gravity sensor data of obtaining that the bottom layer driving in upper procedure mobile terminal receive reports;
Wherein, the current gravity sensor data of obtaining that the bottom layer driving in upper procedure mobile terminal receive reports, start to perform step 206.
Step 206: upper procedure judges whether to carry out roller blind operation according to the current gravity sensor data that receive; If so, mobile terminal is carried out to roller blind operation; If not, finish;
Wherein, upper procedure judges whether to carry out the operation of roller blind operation according to the current gravity sensor data that receive, Ke Yiwei:
The coordinate of each summit that upper procedure comprises according to current gravity sensor data acquisition mobile terminal in preset coordinate system, the coordinate according to mobile terminal in preset coordinate system obtains respectively long limit that mobile terminal comprises and the angle of angle, minor face and gravity direction and the angle of flash and gravity direction of gravity direction; Upper procedure judges whether to carry out roller blind operation according to the angle of angle, minor face and gravity direction and the angle of flash and gravity direction of long limit and gravity direction.
Wherein, upper procedure is according to growing limit and the angle of angle, minor face and gravity direction of gravity direction and the step that the angle of flash and gravity direction judges whether to carry out roller blind operation, Ke Yiwei:
Whether the angle that upper procedure judges long limit and gravity direction is in the first preset range, if the angle of growing limit and gravity direction in the first preset range, judges that the angle of minor face and gravity direction is whether in the second preset range; If whether the angle that the angle of minor face and gravity direction in the second preset range, judges flash and gravity direction is in the 3rd preset range, if so, upper procedure is determined and is carried out roller blind operation.
Further, if the angle of long limit and gravity direction not in the first preset range, or, the angle of minor face and gravity direction is not in the second preset range, or the angle of flash and gravity direction is not in the 3rd preset range, upper procedure is determined and is not carried out roller blind operation.
Wherein, roller blind is operating as mobile terminal is converted to horizontal demonstration by vertical demonstration; Or, mobile terminal is converted to longitudinal demonstration by horizontal demonstration.
Wherein, when mobile terminal in be longitudinally the minor face of mobile terminal be positioned at long limit above time, the content showing in mobile terminal display screen be parallel to mobile terminal minor face show, i.e. common vertical demonstration; When mobile terminal in be laterally the long limit of mobile terminal be positioned at minor face above time, mobile terminal there will be roller blind, the content showing in mobile terminal display screen is parallel to the long limit of mobile terminal and shows, i.e. common horizontal demonstration.
Wherein, the first preset range, the second preset range and the 3rd preset range can arrange and change according to the shape of mobile terminal, in embodiments of the present invention the value of the first preset range, the second preset range and the 3rd preset range are not done to concrete restriction.
Step 207: the bottom layer driving in mobile terminal does not process the current gravity sensor data of obtaining.
Wherein, when the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is less than while reporting threshold value, the bottom layer driving in mobile terminal does not process the current gravity sensor data of obtaining.
In embodiments of the present invention, the bottom layer driving in mobile terminal compares the current gravity sensor data of obtaining and the front gravity sensor data of once obtaining; Report threshold value if the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is more than or equal to, report the current gravity sensor data of obtaining.Thereby upper procedure is only greater than and reports the current gravity sensor data of threshold value to calculate judgement the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining, and has saved the power consumption of system resource and mobile terminal.And the bottom layer driving in mobile terminal is according to the Requirement Acquisition time interval of mobile terminal, and obtain once current gravity sensor data every the time interval that this obtains, thereby can meet the current demand of mobile terminal.
Embodiment 3
The embodiment of the present invention provides a kind of mobile terminal, has the gravity sensor for representing terminal current state in this mobile terminal, and referring to Fig. 3, this mobile terminal comprises:
Acquisition module 301, for acquisition time interval, and obtains once current gravity sensor data every this time interval;
Comparison module 302, for comparing the current gravity sensor data of obtaining and the front gravity sensor data of once obtaining;
Reporting module 303, if be more than or equal to and report threshold value for the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining, reports the current gravity sensor data of obtaining.
Preferably, this mobile terminal also comprises:
Processing module, if be less than and report threshold value for the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining, does not process the current gravity sensor data of obtaining.
Preferably, reporting module, reports the current gravity sensor data of threshold value to report upper procedure for variable quantity is more than or equal to, to make upper procedure judge whether to carry out roller blind operation according to the current gravity sensor data that receive.
Preferably, mobile terminal also comprises:
Judge module, for obtaining respectively long limit that mobile terminal comprises and the angle of angle, minor face and gravity direction and the angle of flash and gravity direction of gravity direction according to current gravity sensor data; Judge whether to carry out roller blind operation according to the angle of angle, minor face and gravity direction and the angle of flash and gravity direction of long limit and gravity direction.
Preferably, acquisition module 301, comprising:
Receiving element, the notification message sending for receiving application program, notification message carries the mark of application program;
The first acquiring unit, for obtaining the time interval of the mark correspondence of application program from the mark of application program and the corresponding relation in the time interval according to the mark of application program.
Preferably, acquisition module 301, comprising:
Second acquisition unit, for obtaining the residual electric quantity of mobile terminal;
The 3rd acquiring unit, for obtaining the time interval corresponding to residual electric quantity according to the residual electric quantity of mobile terminal from the corresponding relation at dump energy scope and time interval.
Preferably, acquisition module 301, comprising:
The 4th acquiring unit, for obtaining the current use power mode of mobile terminal;
The 5th acquiring unit, for according to power mode from obtaining with the corresponding relation in power mode and the time interval with the time interval corresponding to power mode.
Preferably, acquisition module 301, the time interval of selecting for obtaining user.
In embodiments of the present invention, the bottom layer driving in mobile terminal compares the current gravity sensor data of obtaining and the front gravity sensor data of once obtaining; Report threshold value if the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining is more than or equal to, report the current gravity sensor data of obtaining.Thereby upper procedure is only greater than and reports the current gravity sensor data of threshold value to calculate judgement the variable quantity of current gravity sensor data and the front gravity sensor data of once obtaining, and has saved the power consumption of system resource and mobile terminal.And the bottom layer driving in mobile terminal is according to the Requirement Acquisition time interval of mobile terminal, and obtain once current gravity sensor data every the time interval that this obtains, thereby can meet the current demand of mobile terminal.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (16)

1. a method for reported data, is characterized in that, is applied to mobile terminal, has the gravity sensor for representing described mobile terminal current state in described mobile terminal; Described method comprises:
Bottom layer driving acquisition time interval in described mobile terminal, and obtain once current gravity sensor data every the described time interval;
The described current gravity sensor data of obtaining and the front gravity sensor data of once obtaining are compared;
If described current gravity sensor data and described before the variable quantity of the gravity sensor data once obtained be more than or equal to and report threshold value, report the described current gravity sensor data of obtaining.
2. the method for claim 1, is characterized in that, described method also comprises:
If described current gravity sensor data and described before the variable quantity of the gravity sensor data once obtained report threshold value described in being less than, the described current gravity sensor data of obtaining are not processed.
3. method as claimed in claim 1 or 2, is characterized in that, described in report the described current gravity sensor data of obtaining, comprising:
Described in being more than or equal to described variable quantity, described bottom layer driving report the described current gravity sensor data of threshold value to report upper procedure, to make described upper procedure judge whether to carry out roller blind operation according to the described current gravity sensor data that receive.
4. method as claimed in claim 3, is characterized in that, described upper procedure judges whether to carry out roller blind operation according to the described current gravity sensor data that receive, and comprising:
Described upper procedure is obtained respectively long limit that described mobile terminal comprises and the angle of angle, minor face and gravity direction and the angle of flash and gravity direction of gravity direction according to described current gravity sensor data;
Judge whether to carry out roller blind operation according to the angle of the angle of angle, minor face and the gravity direction of described long limit and gravity direction and flash and gravity direction.
5. the method for claim 1, is characterized in that, the bottom layer driving acquisition time interval in described mobile terminal, comprising:
Bottom layer driving in described mobile terminal receives the notification message that application program sends, and described notification message carries the mark of described application program;
From the mark of application program and the corresponding relation in the time interval, obtain the time interval of the mark correspondence of described application program according to the mark of described application program.
6. the method for claim 1, is characterized in that, the bottom layer driving acquisition time interval in described mobile terminal, comprising:
Bottom layer driving in described mobile terminal is obtained the residual electric quantity of described mobile terminal;
From the corresponding relation at dump energy scope and time interval, obtain the time interval corresponding to described residual electric quantity according to the residual electric quantity of described mobile terminal.
7. the method for claim 1, is characterized in that, the bottom layer driving acquisition time interval in described mobile terminal, comprising:
Bottom layer driving in described mobile terminal is obtained the current use power mode of described mobile terminal;
Obtain from the corresponding relation with power mode and the time interval with power mode the described time interval corresponding to power mode of using according to described.
8. the method for claim 1, is characterized in that, the bottom layer driving acquisition time interval in described mobile terminal, comprising:
Bottom layer driving in described mobile terminal is obtained the time interval that user selects.
9. a mobile terminal, is characterized in that, has the gravity sensor for representing described mobile terminal current state in described mobile terminal; Described mobile terminal comprises:
Acquisition module, for acquisition time interval, and obtains once current gravity sensor data every the described time interval;
Comparison module, for comparing the described current gravity sensor data of obtaining and the front gravity sensor data of once obtaining;
Reporting module, if for described current gravity sensor data and described before the variable quantity of the gravity sensor data once obtained be more than or equal to and report threshold value, report the described current gravity sensor data of obtaining.
10. mobile terminal as claimed in claim 9, is characterized in that, described mobile terminal also comprises:
Processing module, if for described current gravity sensor data and described before the variable quantity of the gravity sensor data once obtained report threshold value described in being less than, the described current gravity sensor data of obtaining are not processed.
11. mobile terminals as described in claim 9 or 10, is characterized in that,
Described reporting module, described in being more than or equal to, described variable quantity report the described current gravity sensor data of threshold value to report upper procedure, to make described upper procedure judge whether to carry out roller blind operation according to the described current gravity sensor data that receive.
12. mobile terminals as claimed in claim 11, is characterized in that, described mobile terminal also comprises:
Judge module, for obtaining respectively long limit that described mobile terminal comprises and the angle of angle, minor face and gravity direction and the angle of flash and gravity direction of gravity direction according to described current gravity sensor data; Judge whether to carry out roller blind operation according to the angle of the angle of angle, minor face and the gravity direction of described long limit and gravity direction and flash and gravity direction.
13. mobile terminals as claimed in claim 9, is characterized in that, described acquisition module, comprising:
Receiving element, the notification message sending for receiving application program, described notification message carries the mark of described application program;
The first acquiring unit, for obtaining the time interval of the mark correspondence of described application program from the mark of application program and the corresponding relation in the time interval according to the mark of described application program.
14. mobile terminals as claimed in claim 9, is characterized in that, described acquisition module, comprising:
Second acquisition unit, for obtaining the residual electric quantity of described mobile terminal;
The 3rd acquiring unit, for obtaining the time interval corresponding to described residual electric quantity according to the residual electric quantity of described mobile terminal from the corresponding relation at dump energy scope and time interval.
15. mobile terminals as claimed in claim 9, is characterized in that, described acquisition module, comprising:
The 4th acquiring unit, for obtaining the current use power mode of described mobile terminal;
The 5th acquiring unit, for according to described described with the time interval corresponding to power mode from obtaining with the corresponding relation in power mode and the time interval with power mode.
16. mobile terminals as claimed in claim 9, is characterized in that,
Described acquisition module, the time interval of selecting for obtaining user.
CN201410132472.2A 2014-04-02 2014-04-02 A kind of method of reported data and mobile terminal Active CN103973885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410132472.2A CN103973885B (en) 2014-04-02 2014-04-02 A kind of method of reported data and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410132472.2A CN103973885B (en) 2014-04-02 2014-04-02 A kind of method of reported data and mobile terminal

Publications (2)

Publication Number Publication Date
CN103973885A true CN103973885A (en) 2014-08-06
CN103973885B CN103973885B (en) 2016-08-17

Family

ID=51242911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410132472.2A Active CN103973885B (en) 2014-04-02 2014-04-02 A kind of method of reported data and mobile terminal

Country Status (1)

Country Link
CN (1) CN103973885B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302751A (en) * 2015-10-15 2016-02-03 珠海格力电器股份有限公司 Data processing method and device and electronic equipment
CN105357026A (en) * 2015-09-24 2016-02-24 华为技术有限公司 Resource information collection method and computing node
CN106713572A (en) * 2016-12-27 2017-05-24 广东欧珀移动通信有限公司 Data reporting control method, device and terminal
CN107430805A (en) * 2015-12-29 2017-12-01 华为技术有限公司 The information transmission system, method and apparatus
CN109272728A (en) * 2018-09-05 2019-01-25 云丁智能科技(北京)有限公司 A kind of electric quantity managing method and device
CN109523772A (en) * 2018-12-29 2019-03-26 东莞钜威动力技术有限公司 A kind of voltage data transmission method, device, terminal and storage medium
US11423721B2 (en) 2018-07-25 2022-08-23 Yunding Network Technology (Beijing) Co., Ltd. Methods and systems for controlling an intelligent device
US11989989B2 (en) 2018-07-25 2024-05-21 Yunding Network Technology (Beijing) Co., Ltd. Methods and systems for controlling an intelligent device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1448860A (en) * 2002-03-29 2003-10-15 欧姆龙株式会社 Information processing device and method
CN103034416A (en) * 2012-12-25 2013-04-10 珠海金山办公软件有限公司 Method for turning screen display of equipment to gravity direction through shaking
CN103472993A (en) * 2013-09-02 2013-12-25 小米科技有限责任公司 Rotation displaying method, device and terminal equipment
CN103513754A (en) * 2012-06-21 2014-01-15 上海乐梦起源动漫科技有限公司 Method for achieving application program control through inertial induction
CN103576830A (en) * 2012-08-08 2014-02-12 联想(北京)有限公司 Terminal equipment and power consumption control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1448860A (en) * 2002-03-29 2003-10-15 欧姆龙株式会社 Information processing device and method
CN103513754A (en) * 2012-06-21 2014-01-15 上海乐梦起源动漫科技有限公司 Method for achieving application program control through inertial induction
CN103576830A (en) * 2012-08-08 2014-02-12 联想(北京)有限公司 Terminal equipment and power consumption control method thereof
CN103034416A (en) * 2012-12-25 2013-04-10 珠海金山办公软件有限公司 Method for turning screen display of equipment to gravity direction through shaking
CN103472993A (en) * 2013-09-02 2013-12-25 小米科技有限责任公司 Rotation displaying method, device and terminal equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357026A (en) * 2015-09-24 2016-02-24 华为技术有限公司 Resource information collection method and computing node
CN105357026B (en) * 2015-09-24 2019-07-23 华为技术有限公司 A kind of resource information collection method and calculate node
CN105302751A (en) * 2015-10-15 2016-02-03 珠海格力电器股份有限公司 Data processing method and device and electronic equipment
CN107430805A (en) * 2015-12-29 2017-12-01 华为技术有限公司 The information transmission system, method and apparatus
CN106713572A (en) * 2016-12-27 2017-05-24 广东欧珀移动通信有限公司 Data reporting control method, device and terminal
CN106713572B (en) * 2016-12-27 2019-12-06 Oppo广东移动通信有限公司 Data reporting control method, device and terminal
US11423721B2 (en) 2018-07-25 2022-08-23 Yunding Network Technology (Beijing) Co., Ltd. Methods and systems for controlling an intelligent device
US11989989B2 (en) 2018-07-25 2024-05-21 Yunding Network Technology (Beijing) Co., Ltd. Methods and systems for controlling an intelligent device
CN109272728A (en) * 2018-09-05 2019-01-25 云丁智能科技(北京)有限公司 A kind of electric quantity managing method and device
CN109523772A (en) * 2018-12-29 2019-03-26 东莞钜威动力技术有限公司 A kind of voltage data transmission method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN103973885B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN103973885A (en) Data reporting method and mobile terminal
CN103401991B (en) A kind of method and apparatus that the communication event of terminal unit is pointed out
CN105979103B (en) Battery power guarantee method and device for portable electronic product and mobile terminal
KR101477179B1 (en) Method And Mobile Terminal For Determining and Displaying Power Efficiency of Application
EP2390756A1 (en) Method and apparatus for managing an application being executed in a portable terminal
CN105259974A (en) Method for displaying non-text-based battery status information and a computing device
US20160357616A1 (en) Application management method and application management apparatus
CN109064996B (en) Display adjustment method and device, storage medium and electronic equipment
CN104618588A (en) Method for regulating terminal screen brightness
CN103299687A (en) Extending battery life of a portable electronic device
CN110716631B (en) Power supply management method, device, equipment and readable storage medium
CN104007806A (en) Method and device for controlling CPU frequency in Android system and equipment
CN103501390A (en) Mobile terminal with reminding function and reminding realization method thereof
CN104849664A (en) Method for determining residual use duration of terminal, and terminal
CN106786961A (en) Charging process method, device and terminal
CN105896657A (en) Method of charging mobile terminal and mobile terminal
CN105677141A (en) Application program management method and terminal
CN105930248A (en) Application performance prompting method and system
CN107908271A (en) Prophylactic applications influence the method, apparatus and intelligent terminal of intelligent terminal power consumption
CN109217409B (en) Charging method and device and electronic equipment
CN101695084A (en) Method and device for prompting
CN103870319B (en) Information processing method, device and electronic equipment
CN106598448A (en) Input method management method and terminal
CN103837835A (en) Method and device for detecting capacity decreasing degree of mobile device battery
CN103309429A (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant