CN107040955A - Power consumption state identification method, device and the electronic equipment of terminal - Google Patents

Power consumption state identification method, device and the electronic equipment of terminal Download PDF

Info

Publication number
CN107040955A
CN107040955A CN201710170248.6A CN201710170248A CN107040955A CN 107040955 A CN107040955 A CN 107040955A CN 201710170248 A CN201710170248 A CN 201710170248A CN 107040955 A CN107040955 A CN 107040955A
Authority
CN
China
Prior art keywords
state
duration
network
terminal
power consumption
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
CN201710170248.6A
Other languages
Chinese (zh)
Other versions
CN107040955B (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.)
Cheetah Mobile Inc
Beijing Cheetah Mobile Technology Co Ltd
Original Assignee
Beijing Cheetah Mobile Technology Co 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 Beijing Cheetah Mobile Technology Co Ltd filed Critical Beijing Cheetah Mobile Technology Co Ltd
Priority to CN201710170248.6A priority Critical patent/CN107040955B/en
Publication of CN107040955A publication Critical patent/CN107040955A/en
Application granted granted Critical
Publication of CN107040955B publication Critical patent/CN107040955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0235Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a power saving command
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention proposes a kind of power consumption state identification method, device and the electronic equipment of terminal, wherein, method includes:Obtain the signal intensity of network signal, if signal intensity is less than preset strength, it is determined that go out network state for weak net state, first duration of the monitoring in the weak net state, if the first duration is more than or equal to default first duration, identification terminal is in power consumption state.In the present invention, after determining that current network is in weak net state, it can continue to monitor whether terminal is constantly in weak net state in preset duration, if being constantly in weak net state, illustrate the network stabilization of terminal in weak net state, now the power consumption rate of terminal is very fast, it may be determined that goes out terminal and is in power consumption state.Because the present invention is continued to monitor to network signal, so as to improve the accuracy of power consumption state recognition.

Description

Power consumption state identification method, device and the electronic equipment of terminal
Technical field
The present invention relates to power consumption state identification method, device and the electronics of field of terminal technology, more particularly to a kind of terminal Equipment.
Background technology
At present,, can be by the detection skill of network signal when network signal is fluctuated during terminal use Art obtains current instantaneous network signal, is then based on the instantaneous network signal to recognize network state, generally, network State includes weak net state and strong net state.
In practical application, terminal is during using network, as the mobile network of terminal is it is possible that of short duration Fluctuation.Therefore, in the prior art by the instantaneous network signal during fluctuation that detects, to recognize the accuracy of network state not Height, so as to cause to provide a user based on inaccurate recognition result during service, it is impossible to get the trust of user.For example, When going out current network in weak net state based on instantaneous network signal identification, the current network state of user can be pointed out poor, Terminal power consumption speed etc. services pop-up.And because the not accurate enough user of recognition result may directly ignore or close the clothes Business pop-up, does not carry out power-save operation to terminal.
The content of the invention
It is contemplated that at least solving one of technical problem in correlation technique to a certain extent.
Therefore, first purpose of the present invention is the power consumption state identification method for proposing a kind of terminal, it is existing for solving Have based on the instantaneous network signal to recognize that the accuracy of network state is not high, thus cause based on inaccurate recognition result come When providing a user service, it is impossible to the problem of getting the trust of user.
Second object of the present invention is the power consumption status identification means for proposing a kind of terminal.
Third object of the present invention is the power consumption status identification means for proposing another terminal.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
The 5th purpose of the present invention is to propose a kind of computer program product.
For up to above-mentioned purpose, first aspect present invention embodiment proposes a kind of power consumption state identification method of terminal, bag Include:
Obtain the signal intensity of network signal;
If the signal intensity is less than preset strength, it is determined that go out network state for weak net state;
First duration of the monitoring in the weak net state;
If first duration is more than or equal to preset duration, recognize that the terminal is in power consumption state.
As another optional implementation of first aspect present invention embodiment, in addition to:
If the signal intensity is more than or equal to the preset strength, it is determined that it is strong netted to go out the network state State;
If first duration of the weak net state is less than default first duration, it is determined that the network state The strong net state is switched to from the weak net state;
Second duration of the strong net state after monitoring switching;
If second duration be less than the preset duration, obtain predetermined period in the network state in institute State the switching times between weak net state and the strong net state;
If the switching times exceed preset times, recognize that the terminal is in power consumption state.
As another optional implementation of first aspect present invention embodiment, in addition to:
If the 3rd duration of the strong net state is less than default 3rd duration, it is determined that the network state is from institute State strong net state and be switched to the weak net state;
4th duration of the weak net state after monitoring switching;
If the 4th duration, which is less than, presets the 4th duration, the network state is in institute in acquisition predetermined period State the switching times between weak net state and the strong net state;
If the switching times exceed preset times, recognize that the terminal is in power consumption state.
As another optional implementation of first aspect present invention embodiment, the identification terminal is in consumption Electricity condition, including:
Obtain the power consumption rate of the terminal in predetermined period;
If the power consumption rate exceeds default power consumption rate, it is determined that the terminal is in power consumption state.
As another optional implementation of first aspect present invention embodiment, the determination terminal is in consumption After electricity condition, including:
The residual time length according to workable for the power consumption rate calculates the terminal;
If the residual time length is less than default residual time length, power saving reminder message is sent.
As another optional implementation of first aspect present invention embodiment, the network according to residing for terminal Before network signal, the network state for determining the residing network, including:
Determine the network type of the residing network.
The power consumption state identification method of the terminal of the embodiment of the present invention, by determining current network in weak net state Afterwards, it can continue to monitor whether terminal is constantly in weak net state in preset duration, if being constantly in weak net state, illustrate eventually The network stabilization at end is in weak net state, and now the power consumption rate of terminal is very fast, it may be determined that goes out terminal and is in power consumption state.Due to It is that network signal is continued to monitor in certain time length, so as to improving the accuracy of power consumption state recognition.
For up to above-mentioned purpose, second aspect of the present invention embodiment proposes a kind of power consumption status identification means of terminal, bag Include:
Signal acquisition module, the signal intensity for obtaining network signal;
State determining module, if being less than preset strength for the signal intensity, it is determined that go out network state for weak net State;
Duration monitoring modular, for monitoring the first duration in the weak net state;
Identification module, if being more than or equal to default first duration for first duration, identification is described Terminal is in power consumption state.
As another optional implementation of second aspect of the present invention embodiment, the state determining module also has If body is used for the signal intensity and is more than or equal to the preset strength, it is determined that go out the network state for strong net state, And if first duration of the weak net state is less than default first duration, it is determined that the network state is from institute State weak net state and be switched to the strong net state;
The duration monitoring modular, the second duration of the strong net state being additionally operable to after monitoring switching;
The identification module, if being less than default second duration specifically for second duration, is obtained Switching times of the network state between the weak net state and the strong net state in predetermined period, if the switching Number of times exceeds preset times, then recognizes that the terminal is in power consumption state.
As another optional implementation of second aspect of the present invention embodiment, the state determining module is also used If the 3rd duration in the strong net state is less than default 3rd duration, it is determined that the network state is from the strong net State is switched to the weak net state;
The duration monitoring modular, the 4th duration of the weak net state being additionally operable to after monitoring switching;
The identification module, if specific 4th duration is less than default 4th duration, obtains predetermined period Switching times of the interior network state between the weak net state and the strong net state, if the switching times exceed Preset times, then recognize that the terminal is in power consumption state.
As another optional implementation of second aspect of the present invention embodiment, the identification module, specifically for The power consumption rate of the terminal in predetermined period is obtained, if the power consumption rate exceeds default power consumption rate, it is determined that described Terminal is in power consumption state.
As another optional implementation of second aspect of the present invention embodiment, in addition to:
Computing module, residual time length workable for for calculating the terminal according to the power consumption rate;
Prompting module, if being less than default residual time length for the residual time length, sends power saving reminder message.
As another optional implementation of second aspect of the present invention embodiment, the state determining module is also used In it is determined that the network type of the residing network.
The power consumption status identification means of the terminal of the embodiment of the present invention, by determining current network in weak net state Afterwards, it can continue to monitor whether terminal is constantly in weak net state in preset duration, if being constantly in weak net state, illustrate eventually The network stabilization at end is in weak net state, and now the power consumption rate of terminal is very fast, it may be determined that goes out terminal and is in power consumption state.Due to It is that network signal is continued to monitor in certain time length, so as to improving the accuracy of power consumption state recognition.
For up to above-mentioned purpose, third aspect present invention embodiment proposes the power consumption status identification means of another terminal, Including:Processor;Memory for storing the processor-executable instruction;Wherein, the processor is configured as:
Obtain the signal intensity of network signal;
If the signal intensity is less than preset strength, it is determined that go out network state for weak net state;
First duration of the monitoring in the weak net state;
If first duration is more than or equal to default first duration, recognize that the terminal is in power consumption shape State.
To achieve these goals, fourth aspect present invention embodiment proposes a kind of computer-readable storage of non-transitory Medium, when the instruction in the storage medium is performed by the processor of server end so that server end is able to carry out one The power consumption state identification method of terminal is planted, methods described includes:
Obtain the signal intensity of network signal;
If the signal intensity is less than preset strength, it is determined that go out network state for weak net state;
First duration of the monitoring in the weak net state;
If first duration is more than or equal to default first duration, recognize that the terminal is in power consumption shape State.
To achieve these goals, fifth aspect present invention embodiment proposes a kind of computer program product, when described When instruction processing unit in computer program product is performed, a kind of power consumption state identification method of terminal, methods described bag are performed Include:
Obtain the signal intensity of network signal;
If the signal intensity is less than preset strength, it is determined that go out network state for weak net state;
First duration of the monitoring in the weak net state;
If first duration is more than or equal to default first duration, recognize that the terminal is in power consumption shape State.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and be readily appreciated that, wherein:
Fig. 1 is a kind of schematic flow sheet of the power consumption state identification method of terminal provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the power consumption state identification method of another terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of application schematic diagram of the power consumption state identification method of terminal provided in an embodiment of the present invention;
A kind of structural representation of the power consumption status identification means for terminal that Fig. 4 is provided by the embodiment of the present invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and be not considered as limiting the invention.
Below with reference to the accompanying drawings power consumption state identification method, device and the electronic equipment of the terminal of the embodiment of the present invention described.
Fig. 1 is a kind of schematic flow sheet of the power consumption state identification method of terminal provided in an embodiment of the present invention.Such as Fig. 1 institutes Show, the power consumption state identification method of the terminal comprises the following steps:
S101, the signal intensity for obtaining network signal.
Specifically, application programming interface (the Application Programming in terminal can be passed through Interface, abbreviation API) obtain terminal network signal, according to the network signal can with identification terminal residing for network network State.Preferably, in terminal be stored with network signal in connection manager (ConnectivityManager), should ConnectivityManagerkey can be used as the API, Ke Yicong for obtaining terminal network signal The network signal of terminal is collected in ConnectivityManagerkey.
If S102, signal intensity are less than preset strength, it is determined that go out network state for weak net state.
It is strong based on the signal after the network signal of terminal is got, it may be determined that go out the signal intensity of the network signal Spend the network state of network residing for identification terminal.Specifically, the signal intensity of network signal and preset strength are compared, when When signal intensity is less than preset strength, illustrates that the network signal is poor, can identify that network residing for terminal is currently at weak net State.When signal intensity is more than or equal to preset strength, illustrate that the network signal preferably, can identify net residing for terminal Network is currently at strong net state.
For example, the intensity of network signal can be divided into 5 grades at present, it is 0,1,2,3,4 respectively.Wherein, 0 and 1 represent Network signal is poor, and 3 and 4 to represent network signal preferable.Preset strength is set to 2, when the signal intensity of network signal is less than 2 When, illustrate that network is currently at weak net state.When the signal intensity of network signal is more than or equal to 2, illustrate that network is current In strong net state.
The first duration of S103, monitoring in weak net state.
In practical application, of short duration fluctuation may occur for the network signal of network residing for terminal, and brief fluctuations may Network signal is caused the situation appearance that temporarily dies down occur, in order to avoid missing determining network state in the case of temporarily dying down In weak net state, the present embodiment, after weak net state can be in determining network state, continue monitoring terminal in real time and be in First duration of weak net state, to determine that terminal is presently in whether network is stablized in weak net state.
If S104, the first duration are more than or equal to default first duration, identification terminal is in power consumption state.
In the present embodiment, the first duration of the weak net state monitored can be compared with default first duration Compared with when the first duration of weak net state is more than or equal to default first duration, illustrating that terminal steady, in weak net state, is said The residing network environment of bright terminal is poor.In practical application, when terminal is in poor network environment, if user continues Network is being used, the power consumption rate that may result in terminal is very fast, may thereby determine that out that terminal is currently at power consumption state.
The power consumption state identification method for the terminal that the present embodiment is provided, by the network signal of the network according to residing for terminal, It is determined that the network state of residing network, if it is determined that go out network state for weak net state, monitoring in the weak net state the One duration, if the first duration is more than or equal to preset duration, identification terminal is in power consumption state.This implementation Example in, determining current network be in weak net state after, can continue to monitor terminal whether be constantly in preset duration it is weak Net state, if being constantly in weak net state, illustrates the network stabilization of terminal in weak net state, now the power consumption rate of terminal compared with It hurry up, it may be determined that go out terminal and be in power consumption state.Due to being that network signal is continued to monitor in certain time length, so as to improving The accuracy of power consumption state recognition.
Fig. 2 provides the schematic flow sheet of the power consumption state identification method of another terminal for the embodiment of the present invention.Such as Fig. 2 institutes Show, the power consumption state identification method of the terminal comprises the following steps:
S201, the signal intensity for obtaining terminal network signal.
S202, judge signal intensity whether be less than preset strength.
The signal intensity of network signal is compared with preset strength, preset by force if the signal intensity of network signal is less than Degree, then perform S203;If the signal intensity of network signal is more than or equal to preset strength, S214 is performed.
S203, determine network state be weak net state.
The first duration of S204, monitoring in weak net state.
S205, judge whether the first duration is less than default first duration.
If the first duration is more than or equal to default first duration, S206 is performed.If the first duration Less than default first duration, then S209 is performed.
S206, the power consumption rate for obtaining terminal in predetermined period.
Specifically, the power consumption of terminal in predetermined period can be obtained, the power consumption and predetermined period are then made into ratio, The ratio is the power consumption rate of terminal in predetermined period.
If S207, power consumption rate exceed default power consumption rate, identification terminal is in power consumption state.
The power consumption rate of terminal is compared with default power consumption rate, if power consumption rate exceeds default power consumption rate, Illustrate that the current power consumption of terminal is very fast, then can identify that terminal is in power consumption state.
S208, send power saving reminder message.
Further, in order to avoid power consumption it is faster in the case of, terminal power, which exhausts, causes user can not be continuing with end End, then can issue the user with power consumption reminder message.Preferably, a power saving prompting can be issued the user with by pop-up mode Message.
, can be with for example, when terminal is in wireless network, illustrate that user may be in or the public arena such as office Charged at any time for terminal, it may not be necessary to calculate residual time length workable for terminal, directly issue the user with a province Electric reminder message.
Alternatively, the current dump energy of terminal can also be obtained after power consumption rate is got, by current residue electricity Amount makees ratio with power consumption rate, obtains residual time length workable for terminal, if the residual time length calculated is less than default residue Duration, then can issue the user with power saving reminder message.
For example, when terminal be in mobile network in when, illustrate that user may wait place out of doors, be not easy to for terminal it is real-time Charging, influences the use of the functions such as the normal talking of user after now being exhausted in order to avoid terminal power, can be by counting in real time Residual time length workable for terminal is calculated, when the residual time length is less than default residual time length, then power saving reminder message is issued the user with.
S209, determine that network state is switched to strong net state from weak net state.
The first duration is preset when network state is less than for the first duration of weak net state, illustrates that network signal becomes strong, So that network state is switched to strong net state from weak net state.
Second duration of the strong net state after S210, monitoring switching.
In practical application, there may be the brief fluctuations of network signal and network signal occurs one and temporarily becomes strong show As being mistakenly identified as strong net state in order to avoid will temporarily become strong phenomenon, the of the strong net state after monitoring switching can be continued Two durations.
S211, judge whether the second duration is less than default second duration.
If the second duration for being switched to strong net state is less than default second duration, illustrate that terminal current network is Occur in that of short duration network signal becomes strong situation, the network signal of network residing for terminal is not still actual to become strong, then performs S211.If being switched to the second duration of strong net state or equal to default second duration, illustrate terminal current network Network signal becomes strong, then performs S220.
Switching times of the network state between weak net state and strong net state in S212, acquisition predetermined period.
Recorded it is possible to further the switch instances in real time to network, when judging that it is pre- that the second duration is less than If during the second duration, then the predetermined period can be got according to the duration length of predetermined period since current time forward Switching times of the interior network state between weak net state and strong net state, when network signal from weak becomes strong again from dying down as one by force The handoff procedure of secondary network state, or become the strong handoff procedure into primary network state from weak again from dying down by force.Preferably, may be used To set a monitor in terminal, monitored by the monitor come the switching times to network state.
S213, judge switching times whether exceed preset times.
If it is judged that switching times exceed preset times, illustrate that terminal continually carries out network state in preset duration Switching, now the network state of current network is highly unstable, may result in terminal power consumption speed, then return perform S206.If switching times are without departing from preset times, S220 is performed.
S214, determine network state be strong net state.
The 3rd duration of S215, monitoring in strong net state.
S216, judge whether the 3rd duration is less than default 3rd duration.
If the 3rd duration is less than default 3rd duration, S217 is performed;If the 3rd duration be more than or Equal to default 3rd duration, then S220 is performed.
S217, determine that network state is switched to weak net state from strong net state.
The 3rd duration is preset when network state is less than for the 3rd duration of strong net state, illustrates that network signal dies down, So that network state is switched to weak net state from strong net state.
4th duration of the weak net state after S218, monitoring switching.
In practical application, may exist network signal brief fluctuations and network signal occur one temporarily die down show As in order to avoid the phenomenon temporarily died down is mistakenly identified as into weak net state, the of the weak net state after monitoring switching can be continued Four durations.
S219, judge whether the 4th duration is less than default 4th duration.
If the 4th duration for being switched to weak net state is less than default 4th duration, illustrate that terminal current network is The situation that of short duration network signal dies down is occurred in that, the network signal of network does not die down actually residing for terminal.
If the 4th duration is less than default 4th duration, returns and perform S212;If the 4th duration is more than Or equal to default 4th duration, illustrate that the network signal of network residing for terminal actually dies down, and stably weak netted Under state, then return and perform S206.
In the present embodiment, presetting the first duration, default second duration, default 3rd duration and default 4th duration value can , can also be different with identical.
In the present embodiment, after determining that current network is in weak net state, terminal can be continued to monitor whether when default Weak net state is constantly in long, if being constantly in weak net state, illustrates the network stabilization of terminal in weak net state, now end The power consumption rate at end is very fast, it may be determined that goes out terminal and is in power consumption state.And if network state is frequently cut in preset duration Change, illustrate that network signal is unstable, can identify that terminal is in power consumption state.Due to adding a certain network in the present embodiment The statistics of state lower duration, and network state it is unstable when strong and weak switching times statistics, when recognizing power consumption state All data are merged so that recognition result is more accurate, overcome and rely on instantaneous network signal in the prior art There is the problem of accuracy is poor in identification network state.
Further, power saving reminder message can be issued the user with after power consumption state is identified, to avoid terminal power Influence user to use the normal of terminal after exhausting, Consumer's Experience can be improved.
Fig. 3 is a kind of application schematic diagram of the power consumption state identification method of terminal provided in an embodiment of the present invention.This implementation In example, by taking the terminal of Android operation system as an example, the power consumption state identification method of the terminal provided above-described embodiment is solved Release explanation.
S301, the network for obtaining from the Connectivity Manager in the Android operation system of terminal terminal are related Data.
Wherein, the related data of network can include network type parameters and the network signal of current network, the network class Shape parameter can indicate that the parameter of the network type of the current institute's access network of terminal.
Connectivity Manager in Android operation system are dedicated for record terminal present access network phase Close the manager of data.By the API of Connectivity Manager in terminal, obtained from Connectivity Manager Take the network-related data of terminal.
S302, the monitor waken up in terminal.
In the present embodiment, the switch instances of network state are monitored by a monitor.
S303, the network type currently accessed to terminal are identified.
Generally, terminal can be accessed in wireless network, can also be linked into mobile network.In the present embodiment, The net that terminal is currently accessed can be identified according to the network type parameters got from Connectivity Manager Network type.
S304, the network type of identification terminal are wireless network.
When the network type for identifying terminal is wireless network, then S306 is continued executing with.
S305, the network type of identification terminal are mobile network.
If the network type for identifying terminal is mobile network, S306 is continued executing with.
S306, judge network signal signal intensity whether be less than 2.
The signal intensity of current network connection is divided into 5 grades, is 0,1,2,3,4 respectively.Wherein, 0 and 1 representation signal compared with Difference, 3 and 4 representation signals are preferable.In the present embodiment, preset strength is used as using 2.
If signal intensity is less than 2, S307 is performed, if signal intensity is more than or equal to 2, S318 is performed.
S307, determine network state be weak net state.
Whether S308, the first duration of the weak net state of monitoring are less than 2min.
It is in the present embodiment, default first duration, default second duration, default 3rd duration and default 4th duration is equal It is set to 2 minutes (min).When determining in weak net state, the first duration to weak net state is monitored, if The first duration under weak net state is more than or equal to 2min, illustrate terminal steady under weak net state, now terminal Power consumption rate is very fast, then performs S309.
If the first duration under weak net state is less than in 2min, illustrate that the network signal of terminal becomes strong, it is network-like State is switched to strong net state from weak net state, then performs S314.
The power consumption rate of S309, acquisition terminal in 2min.
In the present embodiment, predetermined period is set to 2min, power consumption rate of the terminal in 2min can be got.
S310, judge power consumption rate whether exceed 4%/2min.
In the present embodiment, it is 4%/2min to preset power consumption rate, represents that power consumption is 4% in 2min.If the consumption of terminal Electric speed then performs 311 more than 4%/2min.If the power consumption rate of terminal performs S322 without departing from 4%/2min.
Residual time length workable for S311, computing terminal.
Specifically, the current residual electricity of terminal is obtained, current residual electricity and power consumption rate are made into ratio, the ratio is Residual time length workable for terminal.
S312, judge residual time length whether be less than 10min.
In the present embodiment, default residual time length is set in 10min.The residual time length workable for the terminal calculated During less than 10min, then S313 can be performed.
S313, ejection pop-up prompting user " power consumption is too fast, please charges as early as possible ".
Alternatively, due to that when terminal uses mobile network, terminal may be represented and be in open air, user may not be with When be terminal charge, now in order to avoid electricity exhausts, cause user can not use the function such as make a phone call, pop-up can be ejected and carried Show user " current network dtr signal, power consumption is serious, it is contemplated that use T minutes, idle closing mobile network ".Wherein T is calculating The residual time length gone out.After user sees the pop-up, terminal telephone can be timely used or short message contacts other people.
S314, determine that network state is switched to strong net state from weak net state.
When the first duration that weak net state is monitored in S308 is less than 2min, illustrate that network signal becomes strong, network State is switched to strong net state from weak net state.
Whether the second duration of the strong net state that S315, monitoring are switched to is less than 2min.
In order to avoid being caused due to network brief fluctuations in the case that network signal temporarily becomes strong, mistake recognizes network state Into strong network state, then whether the second duration for monitoring the strong net state being switched to is less than 2min.If second continue when It is long to be less than 2min, then perform S316.If the second duration is more than or equal to 2min, S322 is performed.
S316, the switching times for obtaining network state in 2min.
Specifically, the switching times of network state in 2min can be got from monitor.
S317, judge switching times whether exceed 40 times/2min.
In the present embodiment, the switching times that preset times are set into network state in 40 times/2min, i.e. 2min are 40 It is secondary.If the switching times of network state exceed 40 times in 2min, illustrate that network state is unstable, power consumption rate can compare It hurry up, then perform S309.If the switching times of network state perform S322 without departing from 40 times in 2min.
S318, determine network state be strong net state.
Whether S319, the 3rd duration of the strong net state of monitoring are less than 2min.
If the 3rd duration is less than 2min, S320 is performed.If the 3rd duration is more than or equal to 2min, Then perform S322.
S320, determine that network state is switched to weak net state from strong net state.
Whether the 4th duration of the weak net state after S321, monitoring switching is less than 2min.
If the 4th duration is less than 2min, S316 is performed, if the 4th duration is more than or equal to 2min, Then perform S309.
S322, do not eject pop-up.
In the present embodiment, after determining that current network is in weak net state, terminal can be continued to monitor whether when default Weak net state is constantly in long, if being constantly in weak net state, illustrates the network stabilization of terminal in weak net state, now end The power consumption rate at end is very fast, it may be determined that goes out terminal and is in power consumption state.And if network state is frequently cut in preset duration Change, illustrate that network signal is unstable, can identify that terminal is in power consumption state.Due to adding a certain network in the present embodiment The statistics of state lower duration, and network state it is unstable when strong and weak switching times statistics, when recognizing power consumption state All data are merged so that recognition result is more accurate, overcome and rely on instantaneous network signal in the prior art There is the problem of accuracy is poor in identification network state.
Further, power saving reminder message can be issued the user with after power consumption state is identified, to avoid terminal power Influence user to use the normal of terminal after exhausting, Consumer's Experience can be improved.
Fig. 4 is a kind of structural representation of the power consumption status identification means of terminal provided in an embodiment of the present invention.The terminal Power consumption status identification means include:Signal acquisition module 11, state determining module 12, duration monitoring modular 13 and identification module 13。
Wherein, signal acquisition module 11, the signal intensity for obtaining network signal.
State determining module 12, if being less than preset strength for the signal intensity, it is determined that it is weak to go out network state Net state.
Duration monitoring modular 13, for monitoring the first duration in the weak net state.
Identification module 14, if being more than or equal to default first duration for first duration, recognizes institute State terminal and be in power consumption state.
Further, state determining module 12, if be more than or equal to also particularly useful for the signal intensity described default Intensity, it is determined that go out the network state for strong net state, and if first duration of the weak net state is small In default first duration, it is determined that the network state is switched to the strong net state from the weak net state.
Duration monitoring modular 13, the second duration of the strong net state being additionally operable to after monitoring switching;
Identification module 14, if being less than default second duration specifically for second duration, obtains pre- If switching times of the network state between the weak net state and the strong net state in the cycle, if the switching time Number exceeds preset times, then recognizes that the terminal is in power consumption state.
Further, state determining module 12, preset if the 3rd duration for being additionally operable to the strong net state is less than 3rd duration, it is determined that the network state is switched to the weak net state from the strong net state.
Duration monitoring modular 13, the 4th duration of the weak net state being additionally operable to after monitoring switching;
Identification module 14, if specific 4th duration is less than default 4th duration, is obtained in predetermined period Switching times of the network state between the weak net state and the strong net state, if the switching times are beyond pre- If number of times, then recognize that the terminal is in power consumption state.
Further, identification module 14, the power consumption rate specifically for obtaining the terminal in predetermined period, if described Power consumption rate exceeds default power consumption rate, it is determined that the terminal is in power consumption state.
Further, the power consumption status identification means of the terminal, in addition to:Computing module 15 and prompting module 16.
Computing module 15, residual time length workable for for calculating the terminal according to the power consumption rate.
Prompting module 16, if being less than default residual time length for the residual time length, sends power saving reminder message.
Further, state determining module 12, are additionally operable to determine the network type of the residing network.
In the present embodiment, after determining that current network is in weak net state, terminal can be continued to monitor whether when default Weak net state is constantly in long, if being constantly in weak net state, illustrates the network stabilization of terminal in weak net state, now end The power consumption rate at end is very fast, it may be determined that goes out terminal and is in power consumption state.And if network state is frequently cut in preset duration Change, illustrate that network signal is unstable, can identify that terminal is in power consumption state.Due to adding a certain network in the present embodiment The statistics of state lower duration, and network state it is unstable when strong and weak switching times statistics, when recognizing power consumption state All data are merged so that recognition result is more accurate, overcome and rely on instantaneous network signal in the prior art There is the problem of accuracy is poor in identification network state.
Further, power saving reminder message can be issued the user with after power consumption state is identified, to avoid terminal power Influence user to use the normal of terminal after exhausting, Consumer's Experience can be improved.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means to combine specific features, structure, material or the spy that the embodiment or example are described Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the not be the same as Example or the feature of example and non-be the same as Example or example described in this specification Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or implying relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, fragment or the portion of the code of one or more executable instructions for the step of realizing custom logic function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by shown or discussion suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Represent in flow charts or logic and/or step described otherwise above herein, for example, being considered use In the order list for the executable instruction for realizing logic function, it may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress for combining these instruction execution systems, device or equipment and using Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wirings Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, can even is that can be in the paper of printing described program thereon or other are suitable for computer-readable medium Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, the software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from Scattered logic circuit, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can be compiled Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried Rapid to can be by program to instruct the hardware of correlation to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as Fruit is realized using in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having been shown and retouching above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of power consumption state identification method of terminal, it is characterised in that including:
Obtain the signal intensity of network signal;
If the signal intensity is less than preset strength, it is determined that go out network state for weak net state;
First duration of the monitoring in the weak net state;
If first duration is more than or equal to default first duration, recognize that the terminal is in power consumption state.
2. according to the method described in claim 1, it is characterised in that also include:
If the signal intensity is more than or equal to the preset strength, it is determined that go out the network state for strong net state;
If first duration of the weak net state is less than default first duration, it is determined that the network state is from institute State weak net state and be switched to the strong net state;
Second duration of the strong net state after monitoring switching;
If second duration, which is less than, presets the second duration, the network state is described weak in acquisition predetermined period Switching times between net state and the strong net state;
If the switching times exceed preset times, recognize that the terminal is in power consumption state.
3. method according to claim 2, it is characterised in that also include:
If it is determined that the 3rd duration of the strong net state be less than default 3rd duration, it is determined that the network state The weak net state is switched to from the strong net state;
4th duration of the weak net state after monitoring switching;
If the 4th duration, which is less than, presets the 4th duration, the network state is described weak in acquisition predetermined period Switching times between net state and the strong net state;
If the switching times exceed preset times, recognize that the terminal is in power consumption state.
4. the method according to claim any one of 1-3, it is characterised in that the identification terminal is in power consumption shape State, including:
Obtain the power consumption rate of the terminal in predetermined period;
If the power consumption rate exceeds default power consumption rate, it is determined that the terminal is in power consumption state.
5. the method according to claim any one of 1-3, it is characterised in that the determination terminal is in power consumption state Afterwards, including:
The residual time length according to workable for the power consumption rate calculates the terminal;
If the residual time length is less than default residual time length, power saving reminder message is sent.
6. the method according to claim any one of 1-3, it is characterised in that the network letter of the network according to residing for terminal Number, before the network state for determining the residing network, including:
Determine the network type of the residing network.
7. a kind of power consumption status identification means of terminal, it is characterised in that including:
Signal acquisition module, the signal intensity for obtaining network signal;
State determining module, if being less than preset strength for the signal intensity, it is determined that go out network state for weak net state;
Duration monitoring modular, for monitoring the first duration in the weak net state;
Identification module, if being more than or equal to default first duration for first duration, recognizes the terminal In power consumption state.
8. device according to claim 7, it is characterised in that the state determining module, if also particularly useful for described Signal intensity is more than or equal to the preset strength, it is determined that go out the network state for strong net state, and if described weak First duration of net state is less than default first duration, it is determined that the network state switches from the weak net state To the strong net state;
The duration monitoring modular, the second duration of the strong net state being additionally operable to after monitoring switching;
The identification module, if being less than default second duration specifically for second duration, obtains predetermined period Switching times of the interior network state between the weak net state and the strong net state, if the switching times exceed Preset times, then recognize that the terminal is in power consumption state.
9. device according to claim 8, it is characterised in that the state determining module, if being additionally operable to the strong net 3rd duration of state is less than default 3rd duration, it is determined that the network state is switched to described from the strong net state Weak net state;
The duration monitoring modular, the 4th duration of the weak net state being additionally operable to after monitoring switching;
The identification module, if specific 4th duration is less than default 4th duration, obtains institute in predetermined period Switching times of the network state between the weak net state and the strong net state are stated, if the switching times are beyond default Number of times, then recognize that the terminal is in power consumption state.
10. a kind of electronic equipment, it is characterised in that including:Housing, processor, memory, circuit board and power circuit, wherein, Circuit board is placed in the interior volume that housing is surrounded, and processor and memory are set on circuit boards;Power circuit, for for Each circuit or device for stating electronic equipment are powered;Memory is used to store executable program code;Processor is deposited by reading The executable program code stored in reservoir runs program corresponding with executable program code, and 1- is required for perform claim The power consumption state identification method of terminal described in 6 any one.
CN201710170248.6A 2017-03-21 2017-03-21 Power consumption state identification method, device and the electronic equipment of terminal Active CN107040955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710170248.6A CN107040955B (en) 2017-03-21 2017-03-21 Power consumption state identification method, device and the electronic equipment of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710170248.6A CN107040955B (en) 2017-03-21 2017-03-21 Power consumption state identification method, device and the electronic equipment of terminal

Publications (2)

Publication Number Publication Date
CN107040955A true CN107040955A (en) 2017-08-11
CN107040955B CN107040955B (en) 2019-09-27

Family

ID=59533709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710170248.6A Active CN107040955B (en) 2017-03-21 2017-03-21 Power consumption state identification method, device and the electronic equipment of terminal

Country Status (1)

Country Link
CN (1) CN107040955B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108387776A (en) * 2018-01-02 2018-08-10 山东浪潮通软信息科技有限公司 A kind of method for early warning and device of intelligent electric meter
CN110636595A (en) * 2019-09-27 2019-12-31 Tcl移动通信科技(宁波)有限公司 Method and device for reducing power consumption, storage medium and electronic equipment
CN111221736A (en) * 2020-01-08 2020-06-02 北京金山安全软件有限公司 Equipment power consumption method and device and electronic equipment
CN115412884A (en) * 2021-05-26 2022-11-29 博泰车联网科技(上海)股份有限公司 Vehicle-mounted terminal control method, vehicle-mounted terminal and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546257A (en) * 2012-01-17 2012-07-04 杭州康庭科技有限公司 Automatic alarming method and system for electric quantity of wireless router on basis of mobile data network
US8433934B1 (en) * 2012-06-28 2013-04-30 Google Inc. Saving battery on wireless connections on mobile devices using internal motion detection
CN104394564A (en) * 2014-11-12 2015-03-04 广东欧珀移动通信有限公司 A method and device for reducing ping-pong switching of a terminal
CN104486822A (en) * 2014-12-08 2015-04-01 上海斐讯数据通信技术有限公司 Electronic equipment and electricity saving method of electronic equipment
CN104731301A (en) * 2013-12-20 2015-06-24 贝壳网际(北京)安全技术有限公司 Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal
CN105100429A (en) * 2015-06-08 2015-11-25 北京金山安全软件有限公司 Method and device for determining use time of residual electric quantity of mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546257A (en) * 2012-01-17 2012-07-04 杭州康庭科技有限公司 Automatic alarming method and system for electric quantity of wireless router on basis of mobile data network
US8433934B1 (en) * 2012-06-28 2013-04-30 Google Inc. Saving battery on wireless connections on mobile devices using internal motion detection
CN104731301A (en) * 2013-12-20 2015-06-24 贝壳网际(北京)安全技术有限公司 Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal
CN104394564A (en) * 2014-11-12 2015-03-04 广东欧珀移动通信有限公司 A method and device for reducing ping-pong switching of a terminal
CN104486822A (en) * 2014-12-08 2015-04-01 上海斐讯数据通信技术有限公司 Electronic equipment and electricity saving method of electronic equipment
CN105100429A (en) * 2015-06-08 2015-11-25 北京金山安全软件有限公司 Method and device for determining use time of residual electric quantity of mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108387776A (en) * 2018-01-02 2018-08-10 山东浪潮通软信息科技有限公司 A kind of method for early warning and device of intelligent electric meter
CN110636595A (en) * 2019-09-27 2019-12-31 Tcl移动通信科技(宁波)有限公司 Method and device for reducing power consumption, storage medium and electronic equipment
CN110636595B (en) * 2019-09-27 2022-07-08 Tcl移动通信科技(宁波)有限公司 Method and device for reducing power consumption, storage medium and electronic equipment
CN111221736A (en) * 2020-01-08 2020-06-02 北京金山安全软件有限公司 Equipment power consumption method and device and electronic equipment
CN115412884A (en) * 2021-05-26 2022-11-29 博泰车联网科技(上海)股份有限公司 Vehicle-mounted terminal control method, vehicle-mounted terminal and computer-readable storage medium

Also Published As

Publication number Publication date
CN107040955B (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN107040955A (en) Power consumption state identification method, device and the electronic equipment of terminal
CN104902101B (en) A kind of internet access method and device of double-card mobile phone
CN103885588B (en) Automatic switching method and device
CN203946484U (en) Platform of internet of things and intelligent garbage categorizing system
CN107545569A (en) Method for recognizing impurities and device
CN104899029A (en) Screen control method and apparatus
CN109947497A (en) Application program preloads method, apparatus, storage medium and mobile terminal
CN106155557B (en) A kind of virtual key display methods and mobile terminal
CN107315468B (en) Electricity based reminding method, device, storage medium and terminal
CN105653006A (en) Method and device for saving electric quantity and electronic equipment
CN107608778B (en) Application program control method and device, storage medium and electronic equipment
CN104866226A (en) Terminal device and method for controlling same
CN105404863A (en) Figure feature recognition method and system
CN109767786A (en) Online voice real-time detection method and device
CN110096249A (en) Methods, devices and systems for prompting fast to wake up word
CN108964789A (en) Radio frequency interference processing method, device, storage medium and electronic equipment
CN107562356B (en) Fingerprint identification positioning method and device, storage medium and electronic equipment
CN109376062A (en) Network state reminding method and relevant apparatus
CN107734121A (en) Method for controlling volume, device, storage medium and electronic equipment
CN110445210A (en) Charging method, device, electronic equipment and the storage medium of electronic equipment
CN103971271A (en) Control method and control device for automatic feedback of intelligent terminal
CN107451037A (en) Remaining operation time prompting method and device for mobile terminal
CN105354491B (en) Intelligent terminal standby state detection method and device
CN106775782A (en) Application icon moving method and device
CN106527863A (en) Interface display method and device based on protective sleeve

Legal Events

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

Address after: 100041 A-0071 2, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Beijing cheetah Mobile Technology Co., Ltd.

Address before: 100041 A-0071 2, 3 building, 30 industrial Street, Shijingshan District, Beijing.

Applicant before: Beijing cheetah Mobile Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant