CN109769288A - The method and device of standby network is set - Google Patents

The method and device of standby network is set Download PDF

Info

Publication number
CN109769288A
CN109769288A CN201811642918.0A CN201811642918A CN109769288A CN 109769288 A CN109769288 A CN 109769288A CN 201811642918 A CN201811642918 A CN 201811642918A CN 109769288 A CN109769288 A CN 109769288A
Authority
CN
China
Prior art keywords
network
electronic equipment
standby
network system
electronic device
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.)
Pending
Application number
CN201811642918.0A
Other languages
Chinese (zh)
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.)
Chumen Wenwen Information Technology Co Ltd
Original Assignee
Chumen Wenwen Information 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 Chumen Wenwen Information Technology Co Ltd filed Critical Chumen Wenwen Information Technology Co Ltd
Priority to CN201811642918.0A priority Critical patent/CN109769288A/en
Publication of CN109769288A publication Critical patent/CN109769288A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

  • Power Sources (AREA)

Abstract

The embodiment of the invention discloses a kind of method and devices that standby network is arranged, and are related to technical field of electronic equipment, effectively extend the stand-by time of electronic equipment.Main technical schemes of the embodiment of the present invention are as follows: when determining that electronic equipment is in standby, successively by the network switching of the electronic equipment to each network formats;The detection consumption electricity of the electronic equipment in the first preset duration under each network formats;The standby network of the electronic equipment is set using the corresponding network formats of minimal consumption electricity in multiple consumption electricity.During the embodiment of the present invention is mainly used for being arranged when electronic equipment is in standby the standby network of electronic equipment.

Description

Method and device for setting standby network
Technical Field
The embodiment of the invention relates to the technical field of electronic equipment, in particular to a method and a device for setting a standby network.
Background
With the continuous development of scientific technology, electronic devices such as smartwatches, smartbands, smartphones and the like have become an indispensable part of people's daily life. Because, in order to guarantee the thickness of the body of the electronic equipment, the battery capacity of the electronic equipment cannot be excessively improved; in order to improve the use experience of the user, the screen size of the electronic device is larger and larger, and the like, so that the standby time of the electronic device cannot meet the daily use requirement of the user. Therefore, how to prolong the standby time of the electronic device is an urgent problem for manufacturers of electronic devices to solve.
At present, when the electronic device is connected to a network through different network systems, the power consumed in a unit time is different, wherein the power consumed is the largest when the electronic device is connected to the network through a 4G network system, and the power consumed is the smallest when the electronic device is connected to the network through a 2G network system.
The inventor finds that, in the prior art, because coverage effects of networks of different systems in different areas are different, when a coverage effect of a 2G network in an area where an electronic device is located is very poor, if the electronic device is set to be connected to the network through the 2G network, the electronic device may need to send the same information to a base station for ensuring successful data interaction with the base station, and in this process, more electric power of the electronic device is consumed, so that, when the electronic device is in a standby state, setting the electronic device to be connected to the network through the 2G network by default is not an optimal choice, and thus, the standby time of the electronic device cannot be effectively prolonged.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method and an apparatus for setting a standby network, which mainly aim to prolong a standby time of an electronic device.
In order to achieve the above purpose, the embodiments of the present invention mainly provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for setting a standby network, where the method includes:
when the electronic equipment is determined to be in a standby state, sequentially switching the network of the electronic equipment to each network system;
detecting the power consumption of the electronic equipment in each network system within a first preset time;
and setting a standby network of the electronic equipment by using a network system corresponding to the minimum consumed electric quantity in the plurality of consumed electric quantities.
Optionally, before the determining that the electronic device is in the standby state and sequentially switching the network of the electronic device to each network standard, the method further includes:
acquiring state information of the electronic equipment;
judging whether the electronic equipment is in a standing state or not according to the state information;
and when the duration of the electronic equipment in the standing state is longer than a second preset duration, determining that the electronic equipment is in the standby state.
Optionally, the detecting the power consumption of the electronic device in the first preset time period under each network type includes:
detecting the working current of the electronic equipment in each network system within the first preset time;
and calculating the consumed electric quantity of the electronic equipment in the first preset time length under each network system according to the working current corresponding to each network system.
Optionally, the sequentially switching the network of the electronic device to each network type includes:
and sequentially switching the network of the electronic equipment to each network system according to the priorities corresponding to the plurality of network systems.
Optionally, after the standby network of the electronic device is set using the network standard corresponding to the minimum power consumption of the plurality of power consumptions, the method further includes:
and when the electronic equipment is determined to be recovered to the use state, setting a working network of the electronic equipment by using the network system with the highest priority in the plurality of network systems.
Optionally, the plurality of network systems include: 2G network standard, 3G network standard and 4G network standard.
In a second aspect, an embodiment of the present invention further provides an apparatus for setting a standby network, where the apparatus includes:
the switching unit is used for sequentially switching the network of the electronic equipment to each network system when the electronic equipment is determined to be in a standby state;
the detection unit is used for detecting the consumed electric quantity of the electronic equipment in a first preset time length under each network system;
the first setting unit is used for setting the standby network of the electronic equipment by using the network system corresponding to the minimum consumed electric quantity in the plurality of consumed electric quantities detected by the detection unit.
Optionally, the apparatus further comprises:
the switching unit is used for switching the network of the electronic equipment to each network system in sequence when the electronic equipment is determined to be in the standby state, and acquiring the state information of the electronic equipment;
the judging unit is used for judging whether the electronic equipment is in a standing state or not according to the state information acquired by the acquiring unit;
the determining unit is used for determining that the electronic equipment is in a standby state when the duration of the electronic equipment in the standing state is longer than a second preset duration.
Optionally, the detecting unit includes:
the detection module is used for detecting the working current of the electronic equipment in the first preset time length under each network system;
and the calculating module is used for calculating the consumed electric quantity of the electronic equipment in each network system within the first preset time according to the working current corresponding to each network system detected by the detecting module.
Optionally, the switching unit includes:
and the switching module is used for sequentially switching the network of the electronic equipment to each network system according to the priorities corresponding to the plurality of network systems.
Optionally, the apparatus further comprises:
and a second setting unit, configured to set, after the first setting unit sets a standby network of the electronic device using a network standard corresponding to a minimum consumed power amount of the plurality of consumed power amounts, when it is determined that the electronic device is recovered to a use state, a working network of the electronic device using a network standard with a highest priority among the plurality of network standards.
Optionally, the plurality of network systems include: 2G network standard, 3G network standard and 4G network standard.
In a third aspect, an embodiment of the present invention further provides an electronic device, at least one processor;
and at least one memory, bus connected with the processor; wherein,
the processor and the memory complete mutual communication through the bus;
the processor is configured to call program instructions in the memory to perform the method of setting a standby network of any one of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the method for setting a standby network according to any one of the first aspect.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
compared with the prior art that when the electronic equipment is in the standby state, the electronic equipment is set to be connected with the network in a 2G network mode by default, the method and the device for setting the standby network can switch the network of the electronic equipment to each network mode in sequence when the electronic equipment is determined to be in the standby state, detect the consumed electric quantity of the electronic equipment in each network mode within a first preset time length, and set the standby network of the electronic equipment by using the network mode corresponding to the minimum consumed electric quantity in the detected multiple consumed electric quantities, namely, when the electronic equipment is in the standby state, set the electronic equipment to be connected with the network in the network mode corresponding to the minimum consumed electric quantity. Because the standby network of the electronic equipment is set according to the power consumption of the electronic equipment in unit time under each network system, the network system used by the electronic equipment for connecting the network is the network system with the lowest power consumption when the electronic equipment is in the standby state, and the standby time of the electronic equipment can be effectively prolonged.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the embodiments of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the embodiments of the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for setting a standby network according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another method for setting a standby network according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating an apparatus for setting a standby network according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating another apparatus for setting a standby network according to an embodiment of the present invention;
fig. 5 shows a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
An embodiment of the present invention provides a method for setting a standby network, and as shown in fig. 1, the method includes:
101. and when the electronic equipment is determined to be in the standby state, sequentially switching the network of the electronic equipment to each network system.
The electronic device may be, but is not limited to: smart watches, smart bracelets, smart phones, and the like; the plurality of network formats includes: 2G network standard, 3G network standard and 4G network standard.
In the embodiment of the present invention, when it is determined that the electronic device is in the standby state, the power consumption of the electronic device in each network system within the first preset time period needs to be determined, for example, when the first preset time period is 1 minute, the power consumption of the electronic device in the 2G network system within 1 minute, the power consumption of the electronic device in the 3G network system within 1 minute, and the power consumption of the electronic device in the 4G network system within 1 minute need to be determined, so as to determine, according to the power consumption of the electronic device in the first preset time period in different network systems, which network system the electronic device should be connected to when the electronic device is in the standby state through. In order to determine the power consumption of the electronic device in each network system within the first preset time period, the network of the electronic device needs to be sequentially switched to each network system.
102. And detecting the consumed electric quantity of the electronic equipment in each network system within a first preset time.
The first preset time period may be, but is not limited to: 1 minute, 3 minutes, 5 minutes, etc.
In the embodiment of the invention, after the network of the electronic equipment is sequentially switched to each network system, the consumed electric quantity of the electronic equipment in each network system within a first preset time length can be detected, namely, after the network of the electronic equipment is switched to a 2G network system (the electronic equipment is set to be connected with the network through the 2G network system), the consumed electric quantity of the electronic equipment in the 2G network system within the first preset time length is detected; after a network of the electronic equipment is switched to a 3G network system (the electronic equipment is set to be connected with the network through the 3G network system), detecting the electric quantity consumed by the electronic equipment in the 3G network system within a first preset time length; after the network of the electronic equipment is switched to the 4G network system (the electronic equipment is set to be connected with the network through the 4G network system), the consumed electric quantity of the electronic equipment in the 4G network system within the first preset time length is detected.
103. And setting a standby network of the electronic equipment by using a network system corresponding to the minimum consumed electric quantity in the plurality of consumed electric quantities.
In the embodiment of the present invention, after determining the power consumption of the electronic device in each network system within the first preset time period through step 101, the standby network of the electronic device is set using the network system corresponding to the minimum power consumption in the determined multiple power consumptions, that is, when the electronic device is in the standby state, the electronic device is set to connect to the network through the network system corresponding to the minimum power consumption.
For the embodiment of the present invention, specific application scenarios may be as follows, but are not limited to these scenarios:
presetting a first preset time as 3 minutes, and when the electronic equipment is determined to be in a standby state, respectively determining the power consumption of the electronic equipment in 3 minutes under a 2G network system as follows: the consumed electric quantity of the electronic equipment within 3 minutes under the 3G network system is 0.5 mAh: 0.6mAh, and the power consumption of the electronic equipment in the 4G network system within 3 minutes is as follows: 0.4mAh, because the electric quantity consumed by the electronic equipment in 3 minutes is minimum under the 4G network system, the standby network of the electronic equipment is set by using the 4G network system, namely, the electronic equipment is set to be connected with the network through the 4G network system when the electronic equipment is in a standby state.
Compared with the prior art that when the electronic equipment is in the standby state, the electronic equipment is set to be connected with the network in a 2G network system by default, the method provided by the embodiment of the invention can switch the network of the electronic equipment to each network system in sequence when the electronic equipment is determined to be in the standby state, detect the consumed electric quantity of the electronic equipment in each network system within a first preset time period, and set the standby network of the electronic equipment by using the network system corresponding to the minimum consumed electric quantity in the detected plurality of consumed electric quantities, namely, when the electronic equipment is in the standby state, set the electronic equipment to be connected with the network by using the network system corresponding to the minimum consumed electric quantity. Because the standby network of the electronic equipment is set according to the power consumption of the electronic equipment in unit time under each network system, the network system used by the electronic equipment for connecting the network is the network system with the lowest power consumption when the electronic equipment is in the standby state, and the standby time of the electronic equipment can be effectively prolonged.
To be described in more detail below, another method for setting a standby network, in particular, a specific method for determining that an electronic device is in a standby state and a specific method for determining a power consumption of the electronic device in each network system within a second preset time period are provided in the embodiments of the present invention, as shown in fig. 2 specifically, the method includes:
201. it is determined whether the electronic device is in a standby state.
In the embodiment of the present invention, before performing the operation of determining the power consumption of the electronic device in each network system within the first preset time period, it is required to determine whether the electronic device is in a standby state. How to determine whether the electronic device is in the standby state will be described in detail below.
(1) Status information of the electronic device is acquired.
In the embodiment of the present invention, in order to determine whether the electronic device is in a standby state, the state information of the electronic device needs to be acquired in real time. Specifically, in this step, the state information of the electronic device may be obtained through a preset sensor in the electronic device, where the preset sensor may be a gyroscope sensor and/or an acceleration sensor, and when the preset sensor is a gyroscope sensor, the obtained state information is angular velocity information of the electronic device; when the preset sensor is an acceleration sensor, the acquired state information is acceleration information of the electronic device, but is not limited thereto.
(2) And judging whether the electronic equipment is in a standing state or not according to the state information.
In the embodiment of the present invention, after the status information of the electronic device is obtained in step (1), whether the electronic device is in the static state can be determined according to the status information of the electronic device. Specifically, in this step, when the acquired state information is angular velocity information measured by the gyro sensor, if the acquired angular velocity information is zero, the acquired angular velocity information is zeroThe electronic equipment can be determined to be in a standing state, and if the obtained angular velocity information is a nonzero value, the electronic equipment can be determined to be in a use state; when the obtained state information is the acceleration information measured by the acceleration sensor, if the obtained acceleration information is the gravity acceleration g (i.e. 9.8 m/s)2) If the obtained acceleration information is other values, the electronic device may be determined to be in a use state, but the present invention is not limited thereto.
(3) And when the duration of the electronic equipment in the standing state is longer than a second preset duration, determining that the electronic equipment is in the standby state.
Wherein, the second preset duration may be, but is not limited to: 3 minutes, 5 minutes, 10 minutes, etc.
In the embodiment of the invention, when the electronic equipment is determined to be in the standing state according to the state information of the electronic equipment, and the duration of the electronic equipment in the standing state is longer than the second preset duration, the electronic equipment can be determined to be in the standby state.
202. And when the electronic equipment is determined to be in the standby state, sequentially switching the network of the electronic equipment to each network system according to the priorities corresponding to the plurality of network systems.
In the embodiment of the present invention, when it is determined that the electronic device is in a standby state, it is required to determine the power consumption of the electronic device in each network system within a first preset time period, and in order to determine the power consumption of the electronic device in each network system within the first preset time period, it is required to sequentially switch the network of the electronic device to each network system according to priorities corresponding to a plurality of network systems, where, under a default setting, a priority of a 4G network system is higher than a priority of a 3G network system, and a priority of a 3G network system is higher than a priority of a 2G network system, which is not specifically limited in the embodiment of the present invention.
203. And detecting the consumed electric quantity of the electronic equipment in each network system within a first preset time.
In the embodiment of the invention, after the network of the electronic equipment is sequentially switched to each network system, the consumed electric quantity of the electronic equipment in each network system within the first preset time can be detected. The following describes how to detect the power consumption of the electronic device in each network system within a first preset time period in detail.
(1) And detecting the working current of the electronic equipment in each network system within a first preset time.
In the embodiment of the invention, after the network of the electronic device is sequentially switched to each network system, the working current of the electronic device in each network system within the first preset time can be detected, so that the power consumption of the electronic device in each network system within the first preset time can be calculated subsequently according to the working current corresponding to each network system.
(2) And calculating the power consumption of the electronic equipment in each network system within a first preset time according to the working current corresponding to each network system.
In the embodiment of the invention, after the working current of the electronic equipment in each network system within the first preset time is detected, the electric quantity consumed by the electronic equipment in each network system within the first preset time can be calculated according to the working current corresponding to each network system, namely after the working current of the electronic equipment in the 2G network system within the first preset time is detected, the electric quantity consumed by the electronic equipment in the 2G network system within the first preset time is calculated according to the working current corresponding to the 2G network system; after the working current of the electronic equipment in the 3G network system within the first preset time is detected, calculating the power consumption of the electronic equipment in the 3G network system within the first preset time according to the working current corresponding to the 3G network system; after the working current of the electronic equipment in the 4G network system within the first preset time is detected, calculating the power consumption of the electronic equipment in the 4G network system within the first preset time according to the working current corresponding to the 4G network system.
204. And setting a standby network of the electronic equipment by using a network system corresponding to the minimum consumed electric quantity in the plurality of consumed electric quantities.
In step 204, regarding setting the standby network of the electronic device using the network standard corresponding to the minimum power consumption of the plurality of power consumptions, reference may be made to the description of the corresponding portion in fig. 1, and details of the embodiment of the present invention will not be repeated here.
Further, in an actual application process, because coverage effects of networks of different systems in the same area may change with time, in order to enable the electronic device to be in a standby state, where a network system used by the electronic device to connect to the network is a network system with the lowest power consumption, after the operation of setting the standby network of the electronic device is completed, and after a third preset time period, the power consumption of the electronic device in each network system within the first preset time period may be determined again, and the standby network of the electronic device is reset using a network system corresponding to the minimum power consumption of the multiple power consumptions, where the third preset time period may be, but is not limited to: 30 minutes, 60 minutes, 90 minutes, etc.
205. And when the electronic equipment is determined to be recovered to the use state, setting the working network of the electronic equipment by using the network system with the highest priority in the plurality of network systems.
In the embodiment of the present invention, after a standby network of an electronic device is set using a network type corresponding to a minimum consumed electricity amount of a plurality of determined consumed electricity amounts, when it is determined that the electronic device is restored to a use state according to the obtained state information of the electronic device again, a working network of the electronic device may be set using a network type with a highest priority among the plurality of network types, that is, when the electronic device is restored to the use state, the electronic device is set to connect to a network through the network type with the highest priority, where, under a default setting, a priority of a 4G network type is higher than a priority of a 3G network type, and a priority of the 3G network type is higher than a priority of a 2G network type, which is not specifically limited in the embodiment of the present invention.
Specifically, in this step, when the state information obtained again is angular velocity information obtained through measurement by the gyro sensor, if the obtained angular velocity information is a nonzero value, it may be determined that the electronic device is restored to the use state; when the state information obtained again is the acceleration information measured by the acceleration sensor, if the obtained acceleration information is the acceleration g except the gravity (i.e. 9.8 m/s)2) Other values than the above, it may be determined that the electronic device is restored to the use state, but not limited thereto.
Further, as an implementation of the methods shown in fig. 1 and fig. 2, an embodiment of the present invention provides an apparatus for setting a standby network. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. The device is applied to prolong the standby time of the electronic equipment, and particularly as shown in fig. 3, the device comprises:
the switching unit 31 is configured to sequentially switch a network of the electronic device to each network system when it is determined that the electronic device is in a standby state;
the detection unit 32 is configured to detect power consumption of the electronic device in each network system within a first preset time period;
a first setting unit 33, configured to set a standby network of the electronic device using a network system corresponding to a minimum power consumption amount of the plurality of power consumption amounts detected by the detecting unit 32.
Further, as shown in fig. 4, the apparatus further includes:
an obtaining unit 34, configured to obtain status information of an electronic device before a switching unit 31 sequentially switches a network of the electronic device to each network system when it is determined that the electronic device is in a standby state;
a determining unit 35, configured to determine whether the electronic device is in a stationary state according to the state information acquired by the acquiring unit 34;
the determining unit 36 is configured to determine that the electronic device is in the standby state when a duration of the electronic device in the standing state is longer than a second preset duration.
Further, as shown in fig. 4, the detection unit 32 includes:
a detecting module 321, configured to detect a working current of the electronic device in each network system within the first preset time period;
the calculating module 322 is configured to calculate, according to the working current corresponding to each network system detected by the detecting module 321, the power consumption of the electronic device in each network system within the first preset time period.
Further, as shown in fig. 4, the switching unit 31 includes:
the switching module 311 is configured to sequentially switch the network of the electronic device to each of the network systems according to priorities corresponding to the plurality of network systems.
Further, as shown in fig. 4, the apparatus further includes:
a second setting unit 37, configured to set, after the first setting unit 33 sets the standby network of the electronic device using the network standard corresponding to the minimum consumed power of the plurality of consumed power, when it is determined that the electronic device is recovered to the use state, a working network of the electronic device using a network standard with a highest priority among the plurality of network standards.
Further, as shown in fig. 4, the plurality of network systems include: 2G network standard, 3G network standard and 4G network standard.
Since the apparatus for setting a standby network described in this embodiment is an apparatus that can execute the method for setting a standby network in this embodiment of the present invention, based on the method for setting a standby network described in this embodiment of the present invention, a person skilled in the art can understand a specific implementation manner of the apparatus for setting a standby network in this embodiment and various variations thereof, and therefore, a detailed description of how the apparatus for setting a standby network implements the method for setting a standby network in this embodiment of the present invention is not given here. The device used by those skilled in the art to implement the method for setting the standby network in the embodiment of the present invention is within the scope of the present application.
Compared with the prior art that when the electronic equipment is in the standby state, the electronic equipment is set to be connected with the network in a 2G network mode by default, the method and the device for setting the standby network can switch the network of the electronic equipment to each network mode in sequence when the electronic equipment is determined to be in the standby state, detect the consumed electric quantity of the electronic equipment in each network mode within a first preset time length, and set the standby network of the electronic equipment by using the network mode corresponding to the minimum consumed electric quantity in the detected multiple consumed electric quantities, namely, when the electronic equipment is in the standby state, set the electronic equipment to be connected with the network in the network mode corresponding to the minimum consumed electric quantity. Because the standby network of the electronic equipment is set according to the power consumption of the electronic equipment in unit time under each network system, the network system used by the electronic equipment for connecting the network is the network system with the lowest power consumption when the electronic equipment is in the standby state, so that the standby time of the electronic equipment can be effectively prolonged; in addition, the embodiment of the invention can also set the working network of the electronic equipment by using the network system with the highest priority in the plurality of network systems when the electronic equipment is determined to be recovered from the standby state to the use state, namely, the electronic equipment is set to be connected with the network by the network system with the highest priority, so that the standby time of the electronic equipment can be prolonged on the basis of ensuring that the normal use of the electronic equipment by a user is not influenced.
The device for setting the standby network comprises a processor and a memory, wherein the switching unit, the detection unit, the first setting unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the standby time of the electronic equipment is prolonged by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
Embodiments of the present invention provide a non-transitory computer-readable storage medium storing computer instructions, which cause a computer to execute the method for setting a standby network according to the above embodiments.
An embodiment of the present invention provides an electronic device, as shown in fig. 5, including:
at least one processor 41;
and at least one memory 42, a bus 43 connected to said processor 41; wherein,
the processor 41 and the memory 42 complete mutual communication through the bus 43;
the processor 41 is configured to call program instructions in the memory 42 to perform the following steps:
when the electronic equipment is determined to be in a standby state, sequentially switching the network of the electronic equipment to each network system;
detecting the power consumption of the electronic equipment in each network system within a first preset time;
and setting a standby network of the electronic equipment by using a network system corresponding to the minimum consumed electric quantity in the plurality of consumed electric quantities.
Further, before the step of sequentially switching the network of the electronic device to each network standard when the electronic device is determined to be in the standby state, the method further includes:
acquiring state information of the electronic equipment;
judging whether the electronic equipment is in a standing state or not according to the state information;
and when the duration of the electronic equipment in the standing state is longer than a second preset duration, determining that the electronic equipment is in the standby state.
Further, the detecting the power consumption of the electronic device in each network system within a first preset time period includes:
detecting the working current of the electronic equipment in each network system within the first preset time;
and calculating the consumed electric quantity of the electronic equipment in the first preset time length under each network system according to the working current corresponding to each network system.
Further, the sequentially switching the network of the electronic device to each network standard includes:
and sequentially switching the network of the electronic equipment to each network system according to the priorities corresponding to the plurality of network systems.
Further, after the setting of the standby network of the electronic device using the network standard corresponding to the minimum power consumption of the plurality of power consumptions, the method further includes:
and when the electronic equipment is determined to be recovered to the use state, setting a working network of the electronic equipment by using the network system with the highest priority in the plurality of network systems.
Further, the plurality of network standards includes: 2G network standard, 3G network standard and 4G network standard.
The electronic equipment in the embodiment of the invention can be a smart watch, a smart bracelet, a smart phone and the like.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: when the electronic equipment is determined to be in a standby state, sequentially switching the network of the electronic equipment to each network system; detecting the power consumption of the electronic equipment in each network system within a first preset time; and setting a standby network of the electronic equipment by using a network system corresponding to the minimum consumed electric quantity in the plurality of consumed electric quantities.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of setting up a standby network, the method comprising:
when the electronic equipment is determined to be in a standby state, sequentially switching the network of the electronic equipment to each network system;
detecting the power consumption of the electronic equipment in each network system within a first preset time;
and setting a standby network of the electronic equipment by using a network system corresponding to the minimum consumed electric quantity in the plurality of consumed electric quantities.
2. The method according to claim 1, wherein before the switching the network of the electronic device to each network standard in turn when the electronic device is determined to be in the standby state, the method further comprises:
acquiring state information of the electronic equipment;
judging whether the electronic equipment is in a standing state or not according to the state information;
and when the duration of the electronic equipment in the standing state is longer than a second preset duration, determining that the electronic equipment is in the standby state.
3. The method according to claim 1, wherein the detecting the power consumption of the electronic device in each of the network systems within a first preset time period comprises:
detecting the working current of the electronic equipment in each network system within the first preset time;
and calculating the consumed electric quantity of the electronic equipment in the first preset time length under each network system according to the working current corresponding to each network system.
4. The method of claim 1, wherein the sequentially switching the network of the electronic device to each network standard comprises:
and sequentially switching the network of the electronic equipment to each network system according to the priorities corresponding to the plurality of network systems.
5. The method of claim 1, wherein after the setting of the standby network of the electronic device using the network standard corresponding to the minimum power consumption of the plurality of power consumptions, the method further comprises:
and when the electronic equipment is determined to be recovered to the use state, setting a working network of the electronic equipment by using the network system with the highest priority in the plurality of network systems.
6. The method according to any of claims 1-5, wherein the plurality of network formats comprises: 2G network standard, 3G network standard and 4G network standard.
7. An apparatus for setting a standby network, the apparatus comprising:
the switching unit is used for sequentially switching the network of the electronic equipment to each network system when the electronic equipment is determined to be in a standby state;
the detection unit is used for detecting the consumed electric quantity of the electronic equipment in a first preset time length under each network system;
the first setting unit is used for setting the standby network of the electronic equipment by using the network system corresponding to the minimum consumed electric quantity in the plurality of consumed electric quantities detected by the detection unit.
8. The apparatus of claim 7, further comprising:
the switching unit is used for switching the network of the electronic equipment to each network system in sequence when the electronic equipment is determined to be in the standby state, and acquiring the state information of the electronic equipment;
the judging unit is used for judging whether the electronic equipment is in a standing state or not according to the state information acquired by the acquiring unit;
the determining unit is used for determining that the electronic equipment is in a standby state when the duration of the electronic equipment in the standing state is longer than a second preset duration.
9. An electronic device, comprising:
at least one processor;
and at least one memory, bus connected with the processor; wherein,
the processor and the memory complete mutual communication through the bus;
the processor is configured to call program instructions in the memory to perform the method of setting a standby network of any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method of setting a standby network according to any one of claims 1 to 6.
CN201811642918.0A 2018-12-29 2018-12-29 The method and device of standby network is set Pending CN109769288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811642918.0A CN109769288A (en) 2018-12-29 2018-12-29 The method and device of standby network is set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811642918.0A CN109769288A (en) 2018-12-29 2018-12-29 The method and device of standby network is set

Publications (1)

Publication Number Publication Date
CN109769288A true CN109769288A (en) 2019-05-17

Family

ID=66453237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811642918.0A Pending CN109769288A (en) 2018-12-29 2018-12-29 The method and device of standby network is set

Country Status (1)

Country Link
CN (1) CN109769288A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111465088A (en) * 2020-04-01 2020-07-28 北京紫光展锐通信技术有限公司 Power consumption suppression method, system, medium and electronic device for mobile terminal
CN114828172A (en) * 2021-01-29 2022-07-29 深圳市万普拉斯科技有限公司 Method and device for reducing standby power consumption, communication terminal and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853422A (en) * 2015-06-09 2015-08-19 魅族科技(中国)有限公司 Power-saving method and device for mobile terminal
CN105357404A (en) * 2015-11-28 2016-02-24 广东欧珀移动通信有限公司 Network switching method, device and communication terminal
CN105406889A (en) * 2015-11-28 2016-03-16 广东欧珀移动通信有限公司 Method and device for determining network type and mobile terminal
CN105517084A (en) * 2015-11-28 2016-04-20 广东欧珀移动通信有限公司 Service processing method, service processing apparatus and mobile terminal in hybrid network types
CN106341849A (en) * 2015-07-07 2017-01-18 中兴通讯股份有限公司 Network system switching method and device
US20170086136A1 (en) * 2015-09-23 2017-03-23 Htc Corporation Wireless communication device and control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853422A (en) * 2015-06-09 2015-08-19 魅族科技(中国)有限公司 Power-saving method and device for mobile terminal
CN106341849A (en) * 2015-07-07 2017-01-18 中兴通讯股份有限公司 Network system switching method and device
US20170086136A1 (en) * 2015-09-23 2017-03-23 Htc Corporation Wireless communication device and control method thereof
CN105357404A (en) * 2015-11-28 2016-02-24 广东欧珀移动通信有限公司 Network switching method, device and communication terminal
CN105406889A (en) * 2015-11-28 2016-03-16 广东欧珀移动通信有限公司 Method and device for determining network type and mobile terminal
CN105517084A (en) * 2015-11-28 2016-04-20 广东欧珀移动通信有限公司 Service processing method, service processing apparatus and mobile terminal in hybrid network types

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111465088A (en) * 2020-04-01 2020-07-28 北京紫光展锐通信技术有限公司 Power consumption suppression method, system, medium and electronic device for mobile terminal
CN114828172A (en) * 2021-01-29 2022-07-29 深圳市万普拉斯科技有限公司 Method and device for reducing standby power consumption, communication terminal and readable storage medium

Similar Documents

Publication Publication Date Title
US20220043067A1 (en) Charging method and device, charging system, electronic equipment and storage medium
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN108650692B (en) Network system switching method and device and intelligent wearable device
CN109391680B (en) Timed task data processing method, device and system
CN103686663A (en) Network flow monitoring method and device
CN109214632A (en) A kind of risk control method and equipment
CN108536588A (en) A kind of method and system of test APP programs
CN112650643B (en) Electric quantity calibration method and device and electronic equipment
CN109922298A (en) Meeting room monitoring method and device
CN109769288A (en) The method and device of standby network is set
CN109656349A (en) Electricity saving method, terminal and the computer readable storage medium of terminal
CN112858938B (en) Electric quantity calculation method and device, storage medium and electronic equipment
CN108806679B (en) Voice wake-up method and device
CN111866275A (en) Screen adjustment method and device, storage medium and processor
CN113706851A (en) Remote controller infrared signal decoding method and device and remote controller
CN107529213B (en) Resource control method and device
CN104317611A (en) Application rousing setting device and method and mobile terminal
CN113777398A (en) Electric energy meter electric quantity recording method, electric energy meter and readable storage medium
CN110876182A (en) Position measuring method and device
CN111954247A (en) Information processing method, terminal and storage medium
CN105992278B (en) A kind of flow control methods and mobile terminal
CN110049537A (en) Power saving method, device, equipment and storage medium for intelligent wearable equipment
CN110519781A (en) RRC time limit method of adjustment and device, mobile terminal and readable storage medium storing program for executing
CN110581920A (en) Equipment operation mode control method and device
CN111049219B (en) Charging method and charging equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190517

RJ01 Rejection of invention patent application after publication