[go: up one dir, main page]

CN105279039B - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN105279039B
CN105279039B CN201510862687.4A CN201510862687A CN105279039B CN 105279039 B CN105279039 B CN 105279039B CN 201510862687 A CN201510862687 A CN 201510862687A CN 105279039 B CN105279039 B CN 105279039B
Authority
CN
China
Prior art keywords
historical
electronic equipment
duration
electronic device
time
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.)
Active
Application number
CN201510862687.4A
Other languages
Chinese (zh)
Other versions
CN105279039A (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 CN201510862687.4A priority Critical patent/CN105279039B/en
Publication of CN105279039A publication Critical patent/CN105279039A/en
Application granted granted Critical
Publication of CN105279039B publication Critical patent/CN105279039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of information processing method and device, history cruise duration of first electronic equipment in default history duration is determined;Calculate the sequence of history cruise duration of the first electronic equipment in all history cruise duration with the first electronic equipment with model electronic equipment history cruise duration based on the first electronic equipment.In the embodiment of the present invention, it is not the cruise duration for calculating the remaining capacity of electronic equipment, but history cruise duration of the electronic equipment in default history duration, and history cruise duration is associated with electronic equipment actual use, therefore, the ranking that history cruise duration is calculated based on history cruise duration, is able to reflect the actual use situation of user, the ranking in cruise duration that cruise duration based on the embodiment of the present invention, calculation method was calculated can provide effective suggestion for user.

Description

Information processing method and device
Technical Field
The present invention relates to the field of information technologies, and in particular, to an information processing method and apparatus.
Background
Along with the popularization of electronic equipment, the electronic equipment becomes an indispensable part of people's life more and more, the duration of the electronic equipment is one of its performance indexes, can provide the use or the setting suggestion of electronic equipment for the user through the duration of the electronic equipment rank.
In the conventional endurance calculation methods, the endurance of the remaining power of the electronic device is calculated according to the remaining power of the electronic device, that is, how long the remaining power of the electronic device can be used. However, since the remaining power of the electronic device is associated with the usage process of the user and the usage of the electronic device by the user is random, the endurance calculated by the conventional endurance calculation method is inaccurate, and the endurance ranking calculated based on the conventional endurance calculation method cannot provide an effective suggestion for the user.
Disclosure of Invention
The invention aims to provide an information processing method and an information processing device, and provides an effective endurance time calculation method to provide effective setting suggestions for users.
In order to achieve the purpose, the invention provides the following technical scheme:
an information processing method comprising:
determining the historical endurance time of the first electronic equipment within a preset historical duration;
and calculating the sequence of the historical duration of the first electronic equipment in the historical durations of all electronic equipment of the same type as the first electronic equipment based on the historical duration of the first electronic equipment.
The method preferably, the calculating, based on the historical duration of the first electronic device, a ranking of the historical duration of the first electronic device among the historical durations of all electronic devices of the same model includes:
based on the historical endurance time of the first electronic equipment and a preset value range of the endurance time of the electronic equipment with the same model as the first electronic equipment, acquiring a set of endurance times meeting a preset ordering relation with the historical endurance time of the first electronic equipment in the value range;
for each endurance time in the endurance time set, determining a first parameter corresponding to the endurance time, wherein the first parameter represents the number of electronic devices with the same model as the first electronic device and having the endurance time in the preset historical duration;
and calculating the sequence of the historical duration of the first electronic equipment in the historical durations of all electronic equipment of the same model based on all first parameters corresponding to the duration in the set of the durations.
In the method, preferably, the determining the historical duration of the first electronic device within the preset historical duration includes:
calculating the power consumption of the first electronic device in unit time within the time period from power-off to next charging within the preset historical time;
and calculating the historical endurance time of the first electronic device in the preset historical time length based on the total capacity of the power supply of the first electronic device and the power consumption of the first electronic device in the unit time from power-off to next charging in the preset historical time length.
In the above method, preferably, the calculating the historical duration of the first electronic device in the preset historical duration based on the total capacity of the power supply of the first electronic device and the power consumption of the first electronic device per unit time in the time period from power-off to next charging in the preset historical duration includes:
if the first electronic device is in the preset historical time length, the first electronic device only has a process from power-off to next charging, and the endurance time of the first electronic device in the preset historical time length is as follows: dividing the total capacity of the power supply of the first electronic equipment by the power consumption of the first electronic equipment in unit time in a time period from power-off to next charging to obtain a quotient value;
if the first electronic device has at least two processes from power-off to next charging within the preset historical time, the calculating the historical duration of the first electronic device within the preset historical time includes: screening out an effective process from power-off to next charging; calculating a quotient value of the total capacity of the power supply of the first electronic equipment and the power consumption amount per unit time in a time period from power-off to next charging for each effective process from power-off to next charging; and determining the average value of all quotient values corresponding to the effective charging process from power-off to the next charging process as the historical duration of the first electronic equipment in the preset historical duration.
The above method, preferably, further comprises:
counting the power consumption of the first electronic equipment set by the system in the preset historical time and the power consumption of each application run by the first electronic equipment;
after calculating the ranking of the historical duration of the first electronic device in the historical durations of all electronic devices of the same model, the method further comprises the following steps:
and displaying the sequence of the historical duration of the first electronic equipment in the historical duration of all electronic equipment of the same model through a display unit of the first electronic equipment, and displaying the power consumption of the first electronic equipment in the system setting within the preset historical duration and the power consumption of each application operated by the first electronic equipment.
In the method, preferably, the set of endurance times satisfying a preset ordering relationship with the historical endurance time of the first electronic device includes:
within the preset value range of the endurance time of the electronic equipment with the same model as the first electronic equipment, the endurance time is less than the set of the endurance time of the first electronic equipment;
correspondingly, the calculating the sequence of the historical duration of the first electronic device in the historical durations of all electronic devices of the same model based on all the first parameters corresponding to the durations in the set of the durations comprises:
calculating a second parameter based on all first parameters corresponding to the duration in the duration set, wherein the second parameter represents the number of electronic devices with the duration less than the duration of the first electronic device in the preset historical duration;
the historical duration of the first electronic device is ranked before the historical duration of the quantity of electronic devices characterized by the second parameter.
An information processing apparatus comprising:
the determining module is used for determining the historical endurance time of the first electronic equipment within the preset historical duration;
and the calculating module is used for calculating the sequence of the historical duration of the first electronic equipment in the historical duration of all electronic equipment with the same model as the first electronic equipment based on the historical duration of the first electronic equipment.
The above apparatus, preferably, the calculating module includes:
the obtaining submodule is used for obtaining a endurance set meeting a preset sequencing relation with the historical endurance of the first electronic equipment in a value range based on the historical endurance of the first electronic equipment and the preset value range of the endurance of the electronic equipment with the same model as the first electronic equipment;
the determining submodule is used for determining a first parameter corresponding to each endurance time in the endurance time set, and the first parameter represents the number of electronic devices with the same model as the first electronic device and having the endurance time in the preset historical duration;
and the first calculating submodule is used for calculating the sequence of the historical duration of the first electronic equipment in the historical durations of all electronic equipment of the same model based on all first parameters corresponding to the duration in the duration set.
The above apparatus, preferably, the determining module includes:
the second calculating submodule is used for calculating the power consumption of the first electronic equipment in unit time within the time period from power-off to next charging within the preset historical time;
and the third calculation submodule is used for calculating the historical endurance time of the first electronic device in the preset historical time length based on the total capacity of the power supply of the first electronic device and the power consumption of the first electronic device in unit time in the time period from power-off to next charging in the preset historical time length.
Preferably, in the above apparatus, the third computation submodule is specifically configured to:
if the first electronic device is in the preset historical time length, the first electronic device only has a process from power-off to next charging, and the endurance time of the first electronic device in the preset historical time length is as follows: dividing the total capacity of the power supply of the first electronic equipment by the power consumption of the first electronic equipment in unit time in a time period from power-off to next charging to obtain a quotient value;
if the first electronic equipment is in the preset historical duration, the first electronic equipment has at least two processes from power-off to next charging, and an effective process from power-off to next charging is screened out; calculating a quotient value of the total capacity of the power supply of the first electronic equipment and the power consumption amount per unit time in a time period from power-off to next charging for each effective process from power-off to next charging; and determining the average value of all quotient values corresponding to the effective charging process from power-off to the next charging process as the historical duration of the first electronic equipment in the preset historical duration.
The above apparatus, preferably, further comprises:
the counting module is used for counting the power consumption of the first electronic equipment in the preset historical time and the power consumption of each application operated by the first electronic equipment;
and the display module is used for displaying the sequence of the historical duration of the first electronic equipment in the historical duration of all the electronic equipment of the same model through the display unit of the first electronic equipment after the calculation module calculates the sequence of the historical duration of the first electronic equipment in the historical duration of all the electronic equipment of the same model, and displaying the power consumption of the first electronic equipment in the system setting within the preset historical duration and the power consumption of each application operated by the first electronic equipment.
The above apparatus, preferably, the set of endurance times satisfying a preset ordering relationship with the historical endurance time of the first electronic device includes:
within the preset value range of the endurance time of the electronic equipment with the same model as the first electronic equipment, the endurance time is less than the set of the endurance time of the first electronic equipment;
correspondingly, the first computation submodule includes:
the calculating unit is used for calculating a second parameter based on all first parameters corresponding to the endurance time in the endurance time set, wherein the second parameter represents the number of the electronic equipment with the endurance time smaller than that of the first electronic equipment in the preset historical duration;
a determining unit, configured to determine that the historical duration of the first electronic device is ranked before the historical duration of the quantity of electronic devices characterized by the second parameter.
According to the scheme, the information processing method and the information processing device provided by the application determine the historical endurance time of the first electronic equipment in the preset historical duration; and calculating the sequence of the historical duration of the first electronic equipment in the historical durations of all electronic equipment of the same type as the first electronic equipment based on the historical duration of the first electronic equipment. In the embodiment of the invention, the endurance time of the residual electric quantity of the electronic equipment is not calculated, but the historical endurance time of the electronic equipment in the preset historical duration is correlated with the actual use of the electronic equipment, so that the ranking of the historical endurance time is calculated based on the historical endurance time, the actual use condition of a user can be reflected, and the ranking of the endurance time calculated based on the endurance time calculating method provided by the embodiment of the invention can provide effective suggestions for the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of an information processing method according to an embodiment of the present application;
fig. 2 is a flowchart of an implementation of calculating a ranking of historical duration of a first electronic device among historical durations of all electronic devices of the same model as the first electronic device based on the historical duration of the first electronic device according to the embodiment of the present disclosure;
fig. 3 is a flowchart of an implementation of determining a historical duration of a first electronic device within a preset historical duration according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a computing module according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a determining module provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a first computation submodule provided in an embodiment of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be practiced otherwise than as specifically illustrated.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of an implementation of an information processing method according to an embodiment of the present application, where the implementation of the information processing method includes:
step S11: determining the historical endurance time of the first electronic equipment within a preset historical duration;
in the embodiment of the present invention, the historical duration of the first electronic device refers to a duration that the power supply of the first electronic device can be continuously used by the first electronic device when the power supply of the first electronic device is fully charged within the preset historical duration.
Step S12: and calculating the sequence of the historical duration of the first electronic equipment in the historical durations of all electronic equipment of the same type as the first electronic equipment based on the historical duration of the first electronic equipment.
In the embodiment of the invention, the historical duration of all the electronic devices (including the first electronic device) with the same model as the first electronic device in the preset historical duration is sorted.
Optionally, the sorting result of the first electronic device may be displayed through a display unit (e.g., a display screen) of the first electronic device.
According to the information processing method provided by the embodiment of the invention, the endurance time of the residual electric quantity of the electronic equipment is not calculated, but the historical endurance time of the electronic equipment in the preset historical duration is calculated, and the historical endurance time is associated with the actual use of the electronic equipment, so that the ranking of the historical endurance time is calculated based on the historical endurance time, the actual use condition of a user can be reflected, and the endurance ranking calculated based on the endurance time calculating method provided by the embodiment of the invention can provide effective suggestions for the user.
Optionally, an implementation flowchart for calculating the order of the historical duration of the first electronic device in the historical durations of all electronic devices of the same model as the first electronic device based on the historical duration of the first electronic device according to the embodiment of the present invention is shown in fig. 2, and may include:
step S21: based on the historical endurance time of the first electronic equipment and a preset value range of the endurance time of the electronic equipment with the same model as the first electronic equipment, acquiring a set of endurance times meeting a preset ordering relation with the historical endurance time of the first electronic equipment in the value range;
the preset value range of the endurance time of the electronic equipment with the same model as the first electronic equipment can be determined according to the maximum value and the minimum value of the endurance time of the electronic equipment with the same model as the first electronic equipment. Specifically, the value range can be obtained by sampling at equal intervals within the range of the minimum value and the maximum value. For example, assuming that the maximum value and the minimum value of the cruising time of the electronic apparatus of the same model as the first electronic apparatus are 49 hours and 0 hour, respectively (it is not necessarily absolute 0 hour, and the cruising time can be regarded as 0 hour when the cruising time is less than a certain value), sampling may be performed at a sampling interval of 1 hour between 0 hour and 49 hours, that is, 50 values are taken in a range of 0 hour, 1 hour, 2 hours, and 3 hours … … 49 hours. Of course, in the embodiment of the present invention, the sampling interval is not limited to 1 hour, but may also be 0.5 hour, and when the sampling interval is 0.5 hour, the total number of values is 100 in the value range.
After the historical duration of the first electronic device is obtained, a duration value with a value smaller than the historical duration of the first electronic device can be obtained from the value range to form a duration set, and a duration value with a value larger than the historical duration of the first electronic device can also be obtained from the value range to form a duration set.
Taking 50 preset values of the endurance time of the electronic device with the same model as the first electronic device as an example, the range is 0 hour, 1 hour, 2 hours, and 3 hours … … 49 hours. Assuming that the endurance time of the first electronic device is 7 hours, if a endurance time value with a value smaller than the historical endurance time of the first electronic device is obtained from the value range to form a endurance time set, the endurance time set includes: 6 hours, 5 hours, 4 hours, 3 hours, 2 hours, 1 hour, and 0 hour, for a total of 7 values; if the endurance time value with the value larger than the historical endurance time of the first electronic equipment is obtained from the value-taking range to form an endurance time set, the endurance time set comprises: 8 hours, 9 hours, 10 hours, … … hours, 48 hours and 49 hours, total 42 values.
Step S22: for each endurance time in the endurance time set, determining a first parameter corresponding to the endurance time, wherein the first parameter represents the number of electronic devices with the same model as the first electronic device and having the endurance time in a preset historical duration;
the first parameter corresponding to the duration may be determined from a duration to first parameter mapping table. The mapping table can be obtained by a network side server through big data statistics.
Taking a first duration in the first duration set as an example, a first parameter corresponding to the first duration is determined, and the first parameter represents the number of electronic devices with the same model as the first electronic device and the first duration in a preset historical duration. The first endurance time is any one of the first endurance time sets.
The first parameter may be a specific number value of electronic devices of the same type as the first electronic device having the first endurance, that is, the number of electronic devices of the same type as the first electronic device having the first endurance; the percentage of the electronic devices of the same model as the first electronic device having the first endurance time to all the electronic devices of the same model may also be the percentage of the number of the electronic devices of the same model as the first electronic device having the first endurance time to the total number of the electronic devices of the same model.
Step S23: and calculating the sequence of the historical duration of the first electronic equipment in the historical durations of all electronic equipment of the same model based on all first parameters corresponding to the duration in the duration set.
Based on all the first parameters corresponding to the duration in the duration set, the total number or percentage of the electronic devices with the historical duration less than or greater than the historical duration of the first electronic device can be calculated, and then the sorting relation between the historical duration of the first electronic device and the electronic devices with the historical duration less than or greater than the historical duration of the first electronic device, that is, the sorting of the historical duration of the first electronic device in the historical durations of all the electronic devices of the same model, can be determined.
Optionally, the endurance sets meeting the preset ordering relationship with the historical endurance of the first electronic device may include:
within the preset value range of the endurance time of the electronic equipment with the same model as the first electronic equipment, the endurance time is less than the set of the endurance time of the first electronic equipment;
correspondingly, calculating the sequence of the historical duration of the first electronic device in the historical durations of all electronic devices of the same model based on all the first parameters corresponding to the durations in the duration set comprises:
calculating a second parameter based on all first parameters corresponding to the endurance time in the endurance time set, wherein the second parameter represents the number of the electronic devices with the endurance time smaller than that of the first electronic device in the preset historical duration;
the second parameter is the sum of all the first parameters corresponding to the duration in the set of durations.
The historical duration of the first electronic device is ranked ahead of the historical duration of the quantity of electronic devices characterized by the second parameter.
If the first parameter is the specific number of the electronic devices with the duration less than the duration of the first electronic device, assuming that the number is N, the historical duration of the first electronic device is greater than the duration of the N electronic devices of the same type.
If the first parameter is the percentage of the electronic devices with the duration less than the duration of the first electronic device in the number of all the electronic devices of the same model, assuming that the percentage is a%, the duration of a% of the electronic devices of the same model as the first electronic device is less than the duration of the first electronic device.
Optionally, an implementation flowchart for determining the historical duration of the first electronic device within the preset historical duration provided in the embodiment of the present invention is shown in fig. 3, and may include:
step S31: calculating the power consumption of the first electronic equipment in unit time within the time period from power-off to next charging within the preset historical time;
when the power is removed, the first electronic equipment stops charging, and when the electronic equipment is plugged into the charger, the charging is started.
The first electronic device records the time of each power-off and charging and records the power consumption of the first electronic device in the period of time, and the power consumption in the period of time divided by the time length of the period of time is the power consumption of the first electronic device in unit time in the time end of the power-off and charging.
For example, assuming that the time period from power-off to next charging of the first electronic device is 1.5 hours, and the power consumption in the time period is 1000mAh, the power consumption of the first electronic device per unit time during the power-off to next charging process is: 1000/1.5.
Step S32: and calculating the historical endurance time of the first electronic device in the preset historical time length based on the total capacity of the power supply of the first electronic device and the power consumption of the first electronic device in the unit time from power-off to next charging in the preset historical time length.
Optionally, if the first electronic device only has a process from power-off to next charging within the preset historical time, the endurance time of the first electronic device within the preset historical time is as follows: dividing the total capacity of the power supply of the first electronic equipment by the power consumption of the first electronic equipment in unit time in a time period from power-off to next charging to obtain a quotient value;
that is, if the total capacity of the power supply of the first electronic device is C and the power consumption amount of the first electronic device per unit time is b, the historical duration of the first electronic device in the preset historical duration is: c/b.
If the first electronic device has at least two processes from power-off to next charging within the preset historical time, calculating the historical duration of the first electronic device within the preset historical time comprises:
screening out an effective process from power-off to next charging;
in the embodiment of the invention, the effective process from power-off to next charging can be as follows: and the time length from power-off to next charging is greater than the preset time length. The preset time period may be half an hour. That is, a process in which the duration of time from power-off to next charging is less than a preset threshold is regarded as an ineffective process from power-off to next charging.
Calculating the quotient of the total capacity of the power supply of the first electronic equipment and the power consumption per unit time in the time period from power-off to next charging for each effective process from power-off to next charging;
and calculating the historical endurance time of the first electronic equipment in each effective process from power-off to next charging.
And determining the average value of all quotient values corresponding to the effective charging process from power-off to next charging as the historical duration of the first electronic device in the preset historical duration.
Assuming that M times are available from power-off to next charging, in the embodiment of the present invention, M historical duration times are calculated, and an average value of the M historical duration times is a historical duration time of the first electronic device within a preset historical duration time.
Optionally, if the duration of the M pieces of historical duration is greater than the first threshold or less than the second threshold, the historical duration greater than the first threshold or less than the second threshold is considered as the invalid duration, and the average value is calculated after the invalid duration is removed, so as to obtain the historical duration of the first electronic device within the preset historical duration.
Optionally, the information processing method provided in the embodiment of the present invention may further include:
counting the power consumption of the first electronic equipment in the system setting within the preset historical time and the power consumption of each application operated by the first electronic equipment;
in the embodiment of the invention, the power consumption condition of the first electronic equipment in the preset historical time is counted.
After calculating the ranking of the historical duration of the first electronic device in the historical durations of all electronic devices of the same model, the method may further include:
the method comprises the steps of displaying the sequence of the historical duration of the first electronic equipment in the historical duration of all electronic equipment of the same model through a display unit (namely a display screen) of the first electronic equipment, and displaying the power consumption of the first electronic equipment in the system setting within the preset historical duration and the power consumption of each application operated by the first electronic equipment.
In the embodiment of the invention, in addition to displaying the sequence of the historical duration of the first electronic device in the historical durations of all electronic devices of the same model, the power consumption condition of the first electronic device in the preset historical duration is also displayed.
Furthermore, the power consumption condition of the electronic device with the longest historical duration within the preset historical duration, such as the system setting condition of the electronic device with the longest historical duration, may also be displayed by the display unit of the first electronic device. Thereby giving the user a system setup recommendation for extending endurance.
Optionally, in the information processing method provided in the embodiment of the present invention, the process of calculating the rank of the first electronic device may be completed on the first electronic device side. Correspondingly, the information processing method provided by the embodiment of the invention specifically can be as follows:
the method comprises the steps that the first electronic equipment determines the historical endurance time of the first electronic equipment within a preset historical duration;
the first electronic device calculates the sequence of the historical duration of the first electronic device in the historical durations of all electronic devices of the same model as the first electronic device based on the historical duration of the first electronic device.
The mapping table of the endurance time and the first parameter required by the calculation sorting can be sent to the first electronic device by the server after big data statistics.
Optionally, the process of calculating the rank of the first electronic device may be performed by a network-side server. Correspondingly, the information processing method provided by the embodiment of the invention specifically includes:
the method comprises the steps that the first electronic equipment determines the historical endurance time of the first electronic equipment within a preset historical duration;
the method comprises the steps that a first electronic device sends historical endurance time of the first electronic device within a preset historical duration to a network side server;
the network side server calculates the sequence of the historical duration of the first electronic equipment in the historical durations of all electronic equipment with the same model as the first electronic equipment based on the historical duration of the first electronic equipment.
The mapping table of the endurance time and the first parameter required by the calculation sorting can be sent to the first electronic device by the server after big data statistics.
Optionally, when the process of calculating the rank of the first electronic device is completed by the network side server, the information processing method provided in the embodiment of the present invention may specifically include:
the method comprises the steps that first electronic equipment sends parameters required for calculating historical endurance time of the first electronic equipment in preset historical duration to a network side server;
the network side server determines the historical endurance time of the first electronic equipment within the preset historical duration according to the received parameters;
the network side server calculates the sequence of the historical duration of the first electronic equipment in the historical durations of all electronic equipment with the same model as the first electronic equipment based on the historical duration of the first electronic equipment.
The mapping table of the endurance time and the first parameter required by the calculation sorting can be sent to the first electronic device by the server after big data statistics.
Corresponding to the method embodiment, an embodiment of the present invention further provides an information processing apparatus, and a schematic structural diagram of the information processing apparatus provided in the embodiment of the present invention is shown in fig. 4, and the information processing apparatus may include:
a determination module 41 and a calculation module 42; wherein,
the determining module 41 is configured to determine a historical duration of the first electronic device within a preset historical duration;
in the embodiment of the present invention, the historical duration of the first electronic device refers to a duration that the power supply of the first electronic device can be continuously used by the first electronic device when the power supply of the first electronic device is fully charged within the preset historical duration.
The calculating module 42 is configured to calculate, based on the historical duration of the first electronic device, an order of the historical duration of the first electronic device among the historical durations of all electronic devices of the same model as the first electronic device.
In the embodiment of the invention, the historical duration of all the electronic devices (including the first electronic device) with the same model as the first electronic device in the preset historical duration is sorted.
Optionally, the sorting result of the first electronic device may be displayed through a display unit (e.g., a display screen) of the first electronic device.
The information processing device provided by the embodiment of the invention does not calculate the endurance time of the residual electric quantity of the electronic equipment, but calculates the historical endurance time of the electronic equipment in the preset historical duration, and the historical endurance time is associated with the actual use of the electronic equipment, so that the ranking of the historical endurance time is calculated based on the historical endurance time, the actual use condition of a user can be reflected, and the endurance time ranking calculated based on the endurance time calculating method provided by the embodiment of the invention can provide effective suggestions for the user.
Optionally, a schematic structural diagram of the calculating module 42 is shown in fig. 5, and may include:
an acquisition submodule 51, a determination submodule 52 and a first calculation submodule 53; wherein,
the obtaining sub-module 51 is configured to obtain a cruising time set meeting a preset ordering relationship with the historical cruising time of the first electronic device in a value range based on the historical cruising time of the first electronic device and the preset value range of the cruising time of the electronic device of the same model as the first electronic device;
the preset value range of the endurance time of the electronic equipment with the same model as the first electronic equipment can be determined according to the maximum value and the minimum value of the endurance time of the electronic equipment with the same model as the first electronic equipment. Specifically, the value range can be obtained by sampling at equal intervals within the range of the minimum value and the maximum value. For example, assuming that the maximum value and the minimum value of the cruising time of the electronic apparatus of the same model as the first electronic apparatus are 49 hours and 0 hour, respectively (it is not necessarily absolute 0 hour, and the cruising time can be regarded as 0 hour when the cruising time is less than a certain value), sampling may be performed at a sampling interval of 1 hour between 0 hour and 49 hours, that is, 50 values are taken in a range of 0 hour, 1 hour, 2 hours, and 3 hours … … 49 hours. Of course, in the embodiment of the present invention, the sampling interval is not limited to 1 hour, but may also be 0.5 hour, and when the sampling interval is 0.5 hour, the total number of values is 100 in the value range.
After the historical duration of the first electronic device is obtained, a duration value with a value smaller than the historical duration of the first electronic device can be obtained from the value range to form a duration set, and a duration value with a value larger than the historical duration of the first electronic device can also be obtained from the value range to form a duration set.
Taking 50 preset values of the endurance time of the electronic device with the same model as the first electronic device as an example, the range is 0 hour, 1 hour, 2 hours, and 3 hours … … 49 hours. Assuming that the endurance time of the first electronic device is 7 hours, if a endurance time value with a value smaller than the historical endurance time of the first electronic device is obtained from the value range to form a endurance time set, the endurance time set includes: 6 hours, 5 hours, 4 hours, 3 hours, 2 hours, 1 hour, and 0 hour, for a total of 7 values; if the endurance time value with the value larger than the historical endurance time of the first electronic equipment is obtained from the value-taking range to form an endurance time set, the endurance time set comprises: 8 hours, 9 hours, 10 hours, … … hours, 48 hours and 49 hours, total 42 values.
The determining submodule 52 is configured to determine, for each duration in the set of durations, a first parameter corresponding to the duration, where the first parameter represents the number of electronic devices having the duration and the same model as the first electronic device within a preset historical duration;
the first parameter corresponding to the duration may be determined from a duration to first parameter mapping table. The mapping table can be obtained by a network side server through big data statistics.
Taking a first duration in the first duration set as an example, a first parameter corresponding to the first duration is determined, and the first parameter represents the number of electronic devices with the same model as the first electronic device and the first duration in a preset historical duration. The first endurance time is any one of the first endurance time sets.
The first parameter may be a specific number value of electronic devices of the same type as the first electronic device having the first endurance, that is, the number of electronic devices of the same type as the first electronic device having the first endurance; the percentage of the electronic devices of the same model as the first electronic device having the first endurance time to all the electronic devices of the same model may also be, that is, the percentage of the number of the electronic devices of the same model as the first electronic device having the first endurance time to the total number of the electronic devices of the same model.
The first calculating submodule 53 is configured to calculate an order of the historical duration of the first electronic device among the historical durations of all electronic devices of the same model based on all the first parameters corresponding to the durations in the set of durations.
Based on all the first parameters corresponding to the duration in the duration set, the total number or percentage of the electronic devices with the historical duration less than or greater than the historical duration of the first electronic device can be calculated, and then the sorting relation between the historical duration of the first electronic device and the electronic devices with the historical duration less than or greater than the historical duration of the first electronic device, that is, the sorting of the historical duration of the first electronic device in the historical durations of all the electronic devices of the same model, can be determined.
Optionally, a schematic structural diagram of the determining module 41 provided in the embodiment of the present invention is shown in fig. 6, and may include:
the second calculating submodule 61 is used for calculating the power consumption of the first electronic device in unit time within the time period from power-off to next charging within the preset historical time length;
when the power is removed, the first electronic equipment stops charging, and when the electronic equipment is plugged into the charger, the charging is started.
The first electronic device records the time of each power-off and charging and records the power consumption of the first electronic device in the period of time, and the power consumption in the period of time divided by the time length of the period of time is the power consumption of the first electronic device in unit time in the time end of the power-off and charging.
For example, assuming that the time period from power-off to next charging of the first electronic device is 1.5 hours, and the power consumption in the time period is 1000mAh, the power consumption of the first electronic device per unit time during the power-off to next charging process is: 1000/1.5.
And the third calculating submodule 62 is configured to calculate a historical duration of the first electronic device in the preset historical duration based on the total capacity of the power supply of the first electronic device and the power consumption of the first electronic device per unit time in a time period from power-off to next charging in the preset historical duration.
Optionally, the third calculation submodule 62 may be specifically adapted to,
if the first electronic device is in the preset historical time length, the first electronic device only has the process from power-off to next charging, and the endurance time of the first electronic device in the preset historical time length is as follows: dividing the total capacity of the power supply of the first electronic equipment by the power consumption of the first electronic equipment in unit time in a time period from power-off to next charging to obtain a quotient value;
if the first electronic equipment has at least two processes from power-off to next charging within the preset historical time, screening out an effective process from power-off to next charging; calculating the quotient of the total capacity of the power supply of the first electronic equipment and the power consumption per unit time in the time period from power-off to next charging for each effective process from power-off to next charging; and determining the average value of all quotient values corresponding to the effective charging process from power-off to the next charging process as the historical duration of the first electronic equipment in the preset historical duration.
Optionally, the information processing apparatus provided in the embodiment of the present invention may further include:
the counting module is used for counting the power consumption of the first electronic equipment set by the system in the preset historical time and the power consumption of each application operated by the first electronic equipment;
and a display module, configured to display, by a display unit of the first electronic device, the sequence of the historical duration of the first electronic device in the historical durations of all the electronic devices of the same model after the calculation module 42 calculates the sequence of the historical duration of the first electronic device in the historical durations of all the electronic devices of the same model, and display the power consumption amount of the first electronic device in the system setting within the preset historical duration and the power consumption amount of each application run by the first electronic device.
Optionally, the endurance sets meeting the preset ordering relationship with the historical endurance of the first electronic device may include:
within the preset value range of the endurance time of the electronic equipment with the same model as the first electronic equipment, the endurance time is less than the set of the endurance time of the first electronic equipment;
accordingly, a schematic structural diagram of the first calculating submodule 53 provided in the embodiment of the present invention is shown in fig. 7, and may include:
a calculating unit 71, configured to calculate a second parameter based on all first parameters corresponding to the duration in the duration set, where the second parameter represents the number of electronic devices having a duration smaller than the duration of the first electronic device within a preset historical duration;
the second parameter is the sum of all the first parameters corresponding to the duration in the set of durations.
A determining unit 72 for determining that the historical duration of the first electronic device is ranked before the historical duration of the number of electronic devices characterized by the second parameter.
If the first parameter is the specific number of the electronic devices with the duration less than the duration of the first electronic device, assuming that the number is N, the historical duration of the first electronic device is greater than the duration of the N electronic devices of the same type.
If the first parameter is the percentage of the electronic devices with the duration less than the duration of the first electronic device in the number of all the electronic devices of the same model, assuming that the percentage is a%, the duration of a% of the electronic devices of the same model as the first electronic device is less than the duration of the first electronic device.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems (if any), apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system (if present), apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. An information processing method characterized by comprising:
determining the historical duration of the first electronic device within a preset historical duration, wherein the historical duration is as follows: within the preset historical time, the duration that the power supply of the first electronic device can be continuously used by the first electronic device under the condition of full electric quantity;
calculating the sequence of the historical duration of the first electronic equipment in the historical durations of all electronic equipment with the same model as the first electronic equipment based on the historical duration of the first electronic equipment;
and displaying the sequence and the power consumption condition of the electronic equipment with the longest historical duration in the preset historical duration.
2. The method of claim 1, wherein calculating an ordering of the historical duration of the first electronic device among the historical durations of all model-like electronic devices based on the historical duration of the first electronic device comprises:
based on the historical endurance time of the first electronic equipment and a preset value range of the endurance time of the electronic equipment with the same model as the first electronic equipment, acquiring a set of endurance times meeting a preset ordering relation with the historical endurance time of the first electronic equipment in the value range;
for each endurance time in the endurance time set, determining a first parameter corresponding to the endurance time, wherein the first parameter represents the number of electronic devices with the same model as the first electronic device and having the endurance time in the preset historical duration;
and calculating the sequence of the historical duration of the first electronic equipment in the historical durations of all electronic equipment of the same model based on all first parameters corresponding to the duration in the set of the durations.
3. The method of claim 1, wherein determining the historical duration of the first electronic device within the preset historical duration comprises:
calculating the power consumption of the first electronic device in unit time within the time period from power-off to next charging within the preset historical time;
and calculating the historical endurance time of the first electronic device in the preset historical time length based on the total capacity of the power supply of the first electronic device and the power consumption of the first electronic device in the unit time from power-off to next charging in the preset historical time length.
4. The method of claim 3, wherein calculating the historical duration of the first electronic device for the preset historical duration based on the total capacity of the power source of the first electronic device and the power consumption of the first electronic device per unit time in the period from power-off to next charging for the preset historical duration comprises:
if the first electronic device is in the preset historical time length, the first electronic device only has a process from power-off to next charging, and the endurance time of the first electronic device in the preset historical time length is as follows: dividing the total capacity of the power supply of the first electronic equipment by the power consumption of the first electronic equipment in unit time in a time period from power-off to next charging to obtain a quotient value;
if the first electronic device has at least two processes from power-off to next charging within the preset historical time, the calculating the historical duration of the first electronic device within the preset historical time includes: screening out an effective process from power-off to next charging; calculating a quotient value of the total capacity of the power supply of the first electronic equipment and the power consumption amount per unit time in a time period from power-off to next charging for each effective process from power-off to next charging; and determining the average value of all quotient values corresponding to the effective charging process from power-off to the next charging process as the historical duration of the first electronic equipment in the preset historical duration.
5. The method of claim 1, further comprising:
counting the power consumption of the first electronic equipment set by the system in the preset historical time and the power consumption of each application run by the first electronic equipment;
after calculating the ranking of the historical duration of the first electronic device in the historical durations of all electronic devices of the same model, the method further comprises the following steps:
and displaying the sequence of the historical duration of the first electronic equipment in the historical duration of all electronic equipment of the same model through a display unit of the first electronic equipment, and displaying the power consumption of the first electronic equipment in the system setting within the preset historical duration and the power consumption of each application operated by the first electronic equipment.
6. The method of claim 2, wherein the set of durations meeting a preset ordering relationship with the historical durations of the first electronic device comprises:
within the preset value range of the endurance time of the electronic equipment with the same model as the first electronic equipment, the endurance time is less than the set of the endurance time of the first electronic equipment;
correspondingly, the calculating the sequence of the historical duration of the first electronic device in the historical durations of all electronic devices of the same model based on all the first parameters corresponding to the durations in the set of the durations comprises:
calculating a second parameter based on all first parameters corresponding to the duration in the duration set, wherein the second parameter represents the number of electronic devices with the duration less than the duration of the first electronic device in the preset historical duration;
the historical duration of the first electronic device is ranked before the historical duration of the quantity of electronic devices characterized by the second parameter.
7. An information processing apparatus characterized by comprising:
the determining module is used for determining the historical duration of the first electronic device within a preset historical duration, and the historical duration is as follows: within the preset historical time, the duration that the power supply of the first electronic device can be continuously used by the first electronic device under the condition of full electric quantity;
the calculation module is used for calculating the sequence of the historical duration of the first electronic equipment in the historical duration of all electronic equipment with the same model as the first electronic equipment based on the historical duration of the first electronic equipment;
and the display module is used for displaying the sequence and the power consumption condition of the electronic equipment with the longest historical endurance time in the preset historical duration.
8. The apparatus of claim 7, wherein the computing module comprises:
the obtaining submodule is used for obtaining a endurance set meeting a preset sequencing relation with the historical endurance of the first electronic equipment in a value range based on the historical endurance of the first electronic equipment and the preset value range of the endurance of the electronic equipment with the same model as the first electronic equipment;
the determining submodule is used for determining a first parameter corresponding to each endurance time in the endurance time set, and the first parameter represents the number of electronic devices with the same model as the first electronic device and having the endurance time in the preset historical duration;
and the first calculating submodule is used for calculating the sequence of the historical duration of the first electronic equipment in the historical durations of all electronic equipment of the same model based on all first parameters corresponding to the duration in the duration set.
9. The apparatus of claim 7, wherein the determining module comprises:
the second calculating submodule is used for calculating the power consumption of the first electronic equipment in unit time within the time period from power-off to next charging within the preset historical time;
and the third calculation submodule is used for calculating the historical endurance time of the first electronic device in the preset historical time length based on the total capacity of the power supply of the first electronic device and the power consumption of the first electronic device in unit time in the time period from power-off to next charging in the preset historical time length.
10. The apparatus of claim 9, wherein the third computing sub-module is specifically configured to:
if the first electronic device is in the preset historical time length, the first electronic device only has a process from power-off to next charging, and the endurance time of the first electronic device in the preset historical time length is as follows: dividing the total capacity of the power supply of the first electronic equipment by the power consumption of the first electronic equipment in unit time in a time period from power-off to next charging to obtain a quotient value;
if the first electronic equipment is in the preset historical duration, the first electronic equipment has at least two processes from power-off to next charging, and an effective process from power-off to next charging is screened out; calculating a quotient value of the total capacity of the power supply of the first electronic equipment and the power consumption amount per unit time in a time period from power-off to next charging for each effective process from power-off to next charging; and determining the average value of all quotient values corresponding to the effective charging process from power-off to the next charging process as the historical duration of the first electronic equipment in the preset historical duration.
11. The apparatus of claim 7, further comprising:
the counting module is used for counting the power consumption of the first electronic equipment in the preset historical time and the power consumption of each application operated by the first electronic equipment;
and the display module is used for displaying the sequence of the historical duration of the first electronic equipment in the historical duration of all the electronic equipment of the same model through the display unit of the first electronic equipment after the calculation module calculates the sequence of the historical duration of the first electronic equipment in the historical duration of all the electronic equipment of the same model, and displaying the power consumption of the first electronic equipment in the system setting within the preset historical duration and the power consumption of each application operated by the first electronic equipment.
12. The apparatus of claim 8, wherein the set of durations meeting a preset ordering relationship with the historical durations of the first electronic device comprises:
within the preset value range of the endurance time of the electronic equipment with the same model as the first electronic equipment, the endurance time is less than the set of the endurance time of the first electronic equipment;
correspondingly, the first computation submodule includes:
the calculating unit is used for calculating a second parameter based on all first parameters corresponding to the endurance time in the endurance time set, wherein the second parameter represents the number of the electronic equipment with the endurance time smaller than that of the first electronic equipment in the preset historical duration;
a determining unit, configured to determine that the historical duration of the first electronic device is ranked before the historical duration of the quantity of electronic devices characterized by the second parameter.
CN201510862687.4A 2015-11-30 2015-11-30 Information processing method and device Active CN105279039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510862687.4A CN105279039B (en) 2015-11-30 2015-11-30 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510862687.4A CN105279039B (en) 2015-11-30 2015-11-30 Information processing method and device

Publications (2)

Publication Number Publication Date
CN105279039A CN105279039A (en) 2016-01-27
CN105279039B true CN105279039B (en) 2019-04-23

Family

ID=55148088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510862687.4A Active CN105279039B (en) 2015-11-30 2015-11-30 Information processing method and device

Country Status (1)

Country Link
CN (1) CN105279039B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647443A (en) * 2019-09-25 2020-01-03 深圳传音控股股份有限公司 Method, terminal and computer-readable storage medium for detecting abnormal power consumption
CN113268131B (en) * 2020-02-14 2024-01-09 北京小米移动软件有限公司 Method, device and medium for predicting endurance information
CN114928166B (en) * 2022-05-20 2023-02-24 广州市水电设备安装有限公司 Medical equipment power distribution monitoring management system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375624A (en) * 2014-12-11 2015-02-25 北京奇虎科技有限公司 Mobile Terminal and Its Power Saving Suggestion Method
CN104484265A (en) * 2014-10-14 2015-04-01 北京金山安全软件有限公司 Method, device and system for improving terminal performance
CN104866058A (en) * 2015-05-22 2015-08-26 北京天宇朗通通信设备股份有限公司 Method and apparatus for determining battery endurance of electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7158536B2 (en) * 2004-01-28 2007-01-02 Rambus Inc. Adaptive-allocation of I/O bandwidth using a configurable interconnect topology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484265A (en) * 2014-10-14 2015-04-01 北京金山安全软件有限公司 Method, device and system for improving terminal performance
CN104375624A (en) * 2014-12-11 2015-02-25 北京奇虎科技有限公司 Mobile Terminal and Its Power Saving Suggestion Method
CN104866058A (en) * 2015-05-22 2015-08-26 北京天宇朗通通信设备股份有限公司 Method and apparatus for determining battery endurance of electronic device

Also Published As

Publication number Publication date
CN105279039A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
CN106897284B (en) Recommendation method and device for electronic books
CN105183731B (en) Recommendation information generation method, device and system
RU2636133C2 (en) Method and device for displaying application software
CN105279039B (en) Information processing method and device
CN109274987B (en) Video set ordering method, server and readable storage medium
CN112735563A (en) Recommendation information generation method and device and processor
CN105335873A (en) Method and device for acquiring quality of advertisement space and electronic equipment
CN104320266A (en) Charging method and device under cloud computing operation system
CN112948460A (en) Method and device for screening network flow data and computer readable storage medium
CN117048343A (en) Vehicle charging prompt method and device, storage medium and electronic device
CN117554842A (en) Method for determining health degree of power battery, storage medium and vehicle
CN105260393A (en) Information pushing method and device and electronic equipment
CN105630474B (en) Reminding method and device
CN110309417A (en) The Weight Determination and device of evaluation points
CN114610476A (en) Method, device, equipment and storage medium for optimizing cloud service cost
CN107169786B (en) Data resource processing method and device
CN108830636A (en) A kind of inquiry amount method and apparatus of any active ues
CN111190938B (en) Data analysis method, device, storage medium and processor
CN118294838A (en) Battery state of health estimation method, system, vehicle and storage medium
CN113973273A (en) Charging method and device for network slicing service
CN113127724A (en) Method, system and device for recommending functions of cleaning robot
CN114237064B (en) Control method, device, storage medium and electronic device of smart home appliance
CN111399746B (en) Split-screen display method, device, mobile terminal, and computer-readable storage medium
CN109660877A (en) Direct broadcasting room promotion method, storage medium, electronic equipment and system
CN114185683A (en) Method and device for determining idle degree of server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant