CN109661022A - Network control method, system, storage medium and mobile terminal - Google Patents
Network control method, system, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN109661022A CN109661022A CN201811558871.XA CN201811558871A CN109661022A CN 109661022 A CN109661022 A CN 109661022A CN 201811558871 A CN201811558871 A CN 201811558871A CN 109661022 A CN109661022 A CN 109661022A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- comparator
- battery
- processor
- electricity
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0267—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
- H04W52/027—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components by controlling a display operation or backlight unit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0274—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
- H04W52/0277—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof according to available power supply, e.g. switching off when a low battery condition is detected
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/32—Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the present application provides a kind of network control method, system, storage medium and mobile terminal, this method comprises: when the screen for detecting mobile terminal is closed, the first input end of processor setting one electricity threshold value of output to comparator;The pin of processor configuration connection comparator output terminal wakes up mobile terminal when the level for detecting comparator output terminal changes;When waking up mobile terminal, the internal timer of processor starting, every the charge value of preset time triggering processor acquisition battery;When the continuous preset times of the charge value of battery are lower than preset threshold, network is closed in triggering.The embodiment of the present application can grasp the state of charge of mobile terminal when mobile terminal connects network in time, to avoid due in mobile terminal networking process power consumption increase bring accident power down.
Description
Technical field
This application involves technical field of electronic communication, in particular to a kind of network control method, system, storage medium and shifting
Dynamic terminal.
Background technique
Currently, mobile terminal is each equipped with wireless networking capabilities, make mobile terminal user that can pass through wireless network
(Wireless-Fidelity, WiFi) surfs the Internet.
When the WiFi network currently connected can not surf the Internet, mobile terminal can be connected into corresponding other in current location automatically and connect
Access point, mobile terminal are connected to the network by other access points, if then mobile terminal does not operate, but WiFi connection still exists
In holding;In addition, mobile terminal, due to its portability, position may often change, when mobile terminal locations are changed to WiFi
When the bad place of signal, mobile data network will be automatically switched to, especially switching when mobile terminal electricity is not high
It will make mobile terminal accident power down.
Therefore, the prior art is defective, has much room for improvement and develops.
Summary of the invention
The embodiment of the present application provides a kind of network control method, system, storage medium and mobile terminal, is working as mobile terminal
The state of charge of mobile terminal can be grasped when connecting network, in time to avoid due to power consumption increasing in mobile terminal networking process
High bring accident power down.
The embodiment of the present application provides a kind of network control method, which comprises
When the screen for detecting mobile terminal is closed, processor setting one electricity threshold value of output to the of comparator
One input terminal;
The processor configuration connects the pin of the comparator output terminal, when the electricity for detecting the comparator output terminal
It is flat when changing, wake up the mobile terminal;
When waking up the mobile terminal, the internal timer of processor starting, described in preset time wake-up
The charge value of processor acquisition battery;
When the continuous preset times of the charge value of the battery are lower than preset threshold, network is closed in triggering.
In network control method described in the embodiment of the present application, the processor configuration connects the comparator output terminal
Pin wake up the mobile terminal when the level for detecting the comparator output terminal changes, comprising:
When the charge value for detecting the battery is less than the electricity threshold value, so that the electricity of the comparator output terminal
It is flat to change, to wake up the mobile terminal.
It is described when the charge value for detecting the battery is less than institute in network control method described in the embodiment of the present application
When stating electricity threshold value, so that the level of the comparator output terminal changes, to wake up the mobile terminal, comprising:
When the charge value of the battery is greater than or equal to the electricity threshold value, the comparator arrangement is to export low electricity
It is flat, and when the charge value of the battery is less than the electricity threshold value, the comparator arrangement is output high level, then described
Processor configuration connects the pin of the comparator output terminal as rising edge interruption;
When the level for detecting the comparator output terminal is interrupted from low level jump for high level with triggering rising edge,
Wake up the mobile terminal.
It is described when the charge value for detecting the battery is less than institute in network control method described in the embodiment of the present application
When stating electricity threshold value, so that the level of the comparator output terminal changes, to wake up the mobile terminal, comprising:
When the charge value of the battery is greater than or equal to the electricity threshold value, the comparator arrangement is the high electricity of output
It is flat, and when the charge value of the battery is less than the electricity threshold value, the comparator arrangement is output low level, then described
Processor configuration connects the pin of the comparator output terminal as failing edge interruption;
When the level for detecting the comparator output terminal is interrupted from high level jump for low level with triggering failing edge,
Wake up the mobile terminal.
In network control method described in the embodiment of the present application, the method also includes:
When the mobile terminal after the screen closes, when detecting that the screen of the mobile terminal is lighted again, close institute
State comparator.
The embodiment of the present application also provides a kind of network control system, the system comprises:
The system comprises processor, comparator, battery and radio circuit, the processor connects respectively with the battery
The first input end and the second input terminal of the comparator are connect, the output end of the comparator connects the processor, wherein institute
Stating processor includes:
Screen detection module, the screen for detecting mobile terminal being lighted and close;
Electricity setup module, for connecting the first input end of the comparator, when the screen detection module detects
When the screen of mobile terminal is closed, the first input end of setting one electricity threshold value of output to the comparator;
Electricity obtains module, for obtaining the charge value of the battery;
Wake-up module, for configuring the pin for connecting the comparator output terminal, when detecting the comparator output terminal
Level when changing, wake up the mobile terminal;
Timer for being started when the wake-up module wakes up the mobile terminal, and is touched every preset time
It sends out electricity described and obtains the charge value that module obtains battery;
Switch setup module, for described in the triggering when the continuous preset times of the charge value of the battery are lower than preset threshold
Radio circuit closes network.
In network control system described in the embodiment of the present application, the wake-up module detects the battery for working as
Charge value be less than the electricity threshold value when so that the level of the comparator output terminal changes, then according to the ratio
The mobile terminal is waken up compared with the level change of device output end.
In network control system described in the embodiment of the present application, the wake-up module, comprising:
First configuration unit, for when the charge value of the battery be greater than or equal to the electricity threshold value when, the ratio
It is configured as output to low level compared with device, and when the charge value of the battery is less than the electricity threshold value, the comparator arrangement
To export high level, then the processor configuration connects the pin of the comparator output terminal as rising edge interruption;First wakes up
Unit, for being interrupted when the level for detecting the comparator output terminal from low level jump for high level with triggering rising edge
When, wake up the mobile terminal;Or
Second configuration unit, for when the charge value of the battery be greater than or equal to the electricity threshold value when, the ratio
It is configured as output to high level compared with device, and when the charge value of the battery is less than the electricity threshold value, the comparator arrangement
To export low level, then the processor configuration connects the pin of the comparator output terminal as failing edge interruption;Second wakes up
Unit, for being interrupted when the level for detecting the comparator output terminal from high level jump for low level with triggering failing edge
When, wake up the mobile terminal.
In network control system described in the embodiment of the present application, the processor is also used to the screen when the mobile terminal
After curtain is closed, when detecting that the screen of the mobile terminal is lighted again, the comparator is closed.
The embodiment of the present application also provides a kind of storage medium, computer program is stored in the storage medium, when described
When computer program is run on computers, so that the computer executes above-mentioned network control method.
The embodiment of the present application also provides a kind of mobile terminal, including processor and memory, is stored in the memory
Computer program, the processor is by calling the computer program stored in the memory, for executing above-mentioned net
Network control method.
The embodiment of the present application is by the way that when the screen for detecting mobile terminal is closed, processor setting exports an electricity door
Limit value to comparator first input end;Processor configuration connection comparator output terminal pin, when detect comparator export
When the level at end changes, mobile terminal is waken up;When waking up mobile terminal, processor starting inside timer, every
Preset time triggers the charge value that processor obtains battery;It is touched when the continuous preset times of the charge value of battery are lower than preset threshold
Hair closes network.The embodiment of the present application can grasp the state of charge of mobile terminal in time when mobile terminal connection network,
To avoid due in mobile terminal networking process power consumption increase bring accident power down, especially when mobile terminal connect
After WiFi network, mobile terminal locations variation occur causes WiFi disconnecting can when transferring to network by mobile data network
The state of charge of mobile terminal is grasped in time, switches to consumption when mobile data networks from WiFi networking to avoid due to mobile terminal
Electricity increases bring accident power down and brings convenience to promote user experience for user.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described.It should be evident that the drawings in the following description are only some examples of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the flow diagram of network control method provided by the embodiments of the present application.
Fig. 2 is another flow diagram of network control method provided by the embodiments of the present application.
Fig. 3 is the another flow diagram of network control method provided by the embodiments of the present application.
Fig. 4 is the structural schematic diagram of network control system provided by the embodiments of the present application.
Fig. 5 is the structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description.Obviously, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, those skilled in the art's every other implementation obtained under that premise of not paying creative labor
Example, belongs to the protection scope of the application.
Currently, mobile terminal is each equipped with wireless networking capabilities, make mobile terminal user that can pass through wireless network
(Wireless-Fidelity, WiFi) surfs the Internet.WiFi network online can simply be interpreted as wireless networking, nearly all
Smart phone, tablet computer and laptop all support WiFi to surf the Internet, and are to use a kind of most wide wireless network transmissions now
Technology.Cable network signal is actually converted into wireless signal, using wireless router for supporting the correlation of its technology
Computer, mobile phone, plate etc. receive.If mobile phone has WiFi function, operation can not be passed through when there is WiFi wireless signal
The mobile data network of quotient is surfed the Internet, to save flow rate.Wireless network wireless networking is more commonly used, although being passed by WiFi technology
Defeated radio communication quality is not very well that data safety performance BELAND tooth is weaker, and transmission quality also has much room for improvement, but transmits speed
Degree is very fast, can achieve 54Mbps, meets personal and social informatization demand.The most important advantage of WiFi is not needing
Wiring, can not be limited, therefore be very suitable to the needs of mobile office user by wiring condition, and due to emitting signal function
Rate is lower than 100mw, is lower than mobile phone transmission power, so it is also most safe and healthy that WiFi online is opposite.But WiFi signal
Front end is also to be provided by wired network, such as Asymmetrical Digital Subscriber Line (the Asymmetric Digital of family
Subscriber Line, ADSL), partial wideband etc., as long as connecing a wireless router, so that it may which wire signal is converted into
WiFi signal.It is covered with everywhere in the city of many developed countries by the WiFi signal of government or major company's offer so that resident makes
With domestic also there are many places to implement wireless city engineering, so that this radio network technique is promoted.What is currently connected
When WiFi network can not surf the Internet, mobile terminal can be connected into other corresponding access points of current location automatically, and mobile terminal passes through it
He is connected to the network access point, if then mobile terminal does not operate, but WiFi connection is still in holding;In addition, mobile whole
Due to its portability, position may often change at end, when mobile terminal locations are changed to the bad place of WiFi signal,
Mobile data network will be automatically switched to, especially the switching will be such that mobile terminal surprisingly falls when mobile terminal electricity is not high
Electricity.Therefore, the embodiment of the present application provides a kind of network control method, system, storage medium and mobile terminal, works as mobile terminal
The state of charge that mobile terminal can be grasped when connecing net in time is avoided since power consumption increases and brings in mobile terminal networking process
Unexpected power down.
The embodiment of the present application provides a kind of network control method, and the network control method can be applied to mobile terminal
In.The mobile terminal can be the equipment such as smart phone, tablet computer, smartwatch.
Fig. 1 and Fig. 2 is please referred to, Fig. 1 is the flow diagram of network control method provided by the embodiments of the present application, and Fig. 2 is
Another flow diagram of network control method provided by the embodiments of the present application.The network control method is applied to mobile whole
In end, the method may include following steps:
Step 101, when the screen for detecting mobile terminal is closed, processor setting export electricity threshold value to than
Compared with the first input end of device.
Specifically, the electricity threshold value can be set to the 10% of battery specified electric quantity value.
For example, the electricity threshold value can also be set in conjunction with user using the preference of mobile terminal.For example, when using
Family is when surfing the Internet using the most of the time of mobile terminal, and power consumption rate is relatively small, then the electricity threshold value can be set to
The 10% of battery specified electric quantity value.When user is viewing video or is played audio using the most of the time of mobile terminal, consumption
Electric speed is relatively large, then the electricity threshold value can be set to the 15% of battery specified electric quantity value.By setting electricity thresholding
Value can be very good the variation of the charge value of monitoring battery, to prevent mobile terminal accident power down from causing user that cannot charge
In the environment of can not normal use mobile terminal.
For example, the electricity threshold value can also be set in conjunction with the location information of mobile terminal.Under normal circumstances, exist
Family or office, can charge in time when mobile terminal electricity is low, and the power down of mobile terminal influences the use of user
Less.Therefore, when the position for detecting mobile terminal is family or office, the electricity threshold value can be set to low
In the 10% of battery specified electric quantity value, for example, being set as any in 6%, 7%, 8% or the 9% of battery specified electric quantity value
Kind.
Step 102, processor configuration connects the pin of the comparator output terminal, when detecting that the comparator is defeated
When the level of outlet changes, the mobile terminal is waken up.
In some embodiments, the step 102, specifically includes:
When the charge value for detecting the battery is less than the electricity threshold value, so that the electricity of the comparator output terminal
It is flat to change, to wake up the mobile terminal.
Wherein, the first input end of comparator connects processor, to receive the electricity threshold value of processor output;Comparator
The second input terminal connect battery, with receive battery output battery charge value.When the charge value for detecting the battery is small
When the electricity threshold value, so that the level of the comparator output terminal changes, to wake up the mobile terminal.
In some embodiments, as shown in Fig. 2, the step 102 can be realized by step 1021 to step 1022,
Or realized by step 1023 to step 1024, specifically:
Step 1021, when the charge value of the battery is greater than or equal to the electricity threshold value, the comparator arrangement
To export low level, and when the charge value of the battery is less than the electricity threshold value, the comparator arrangement is that output is high
Level, then the processor configuration connects the pin of the comparator output terminal as rising edge interruption;
Step 1022, when the level for detecting the comparator output terminal is risen from low level jump for high level with triggering
Along when interrupting, the mobile terminal is waken up.Or
Step 1023, when the charge value of the battery is greater than or equal to the electricity threshold value, the comparator arrangement
To export high level, and when the charge value of the battery is less than the electricity threshold value, the comparator arrangement is that output is low
Level, then the processor configuration connects the pin of the comparator output terminal as failing edge interruption;
Step 1024, when the level for detecting the comparator output terminal is declined from high level jump for low level with triggering
Along when interrupting, the mobile terminal is waken up.
Step 103, when waking up the mobile terminal, timer inside processor starting, every preset time
Wake up the charge value that the processor obtains battery.
Wherein, when waking up the mobile terminal, what is be waken up is the processor in mobile terminal, especially starting setting
Timer inside processor, and timer is made to wake up the electricity that the processor obtains battery every preset time
Value.At this point, the screen of the mobile terminal is still within closed state, the processor and runs described mobile whole
The backstage at end.
Specifically, the preset time can be set to 20 seconds.For example, waking up the processor every 20 seconds obtains battery
Charge value.
For example, the preset time can also be set in conjunction with the currently running application program on mobile terminal backstage.
For example, when the application that the currently running application program on mobile terminal backstage is low power consumption rank, such as QQ, wechat instant messaging
Using the preset time can be set to the value greater than 20 seconds, for example be set as 25 seconds.When the current fortune on mobile terminal backstage
Capable application program is the application of high power consumption rank, such as music player, the preset time can be set to less than 20 seconds
Value, for example be set as 15 seconds.
For example, the preset time can also be set in conjunction with the location information of mobile terminal.Under normal circumstances, it is in
Or office, it can charge in time when mobile terminal electricity is low, the power down of mobile terminal influences not the use of user
Greatly.Therefore, when the position for detecting mobile terminal is family or office, the preset time can be set to be greater than 20
The value of second, for example be set as 30 seconds.
Step 104, when the continuous preset times of the charge value of the battery are lower than preset threshold, network is closed in triggering.
Specifically, the preset times can be set to 3 times, the preset threshold can be set to battery specified electric quantity value
5%.For example, when the charge value of the battery continuous 3 times be lower than battery specified electric quantity value 5% when triggering close network.
Wherein, if the network currently opened includes WiFi network and mobile data network, can choose closing wherein it
One network can also close the all-network currently opened, the bring accident power down to avoid the switching between heterogeneous networks.
In some embodiments, when the mobile terminal after the screen closes, detect the screen of the mobile terminal again
When curtain is lighted, the comparator is closed.
For example, work as mobile terminal after the screen closes, since user cannot intuitively observe the state of charge of battery, because
This needs to start comparator to monitor whether the charge value of the battery is less than the electricity threshold value in real time, so as in the electricity
When the charge value in pond is less than the electricity threshold value, so that the level of the comparator output terminal changes, described in waking up
Mobile terminal, so monitor battery state of charge and when the continuous preset times of the charge value of the battery be lower than preset threshold when
Triggering close network, to avoid due in mobile terminal networking process power consumption increase bring accident power down.And when mobile whole
When the screen at end is in bright screen state, user can see electricity and little by little lower, without monitoring electricity in real time by from the background
The state of charge in pond, therefore when detecting that the screen of the mobile terminal is lighted again, the comparator can be closed.In screen
Comparator has been closed when lighting, but the processor of mobile terminal uses the growth of time in wake-up states at any time at this time,
The charge value of battery may gradually decrease, and the timer inside the processor can wake up the processor every preset time
The charge value for obtaining battery, when the continuous preset times of the charge value of the battery are lower than preset threshold, network is closed in triggering.
All the above alternatives can form the alternative embodiment of the application, herein no longer using any combination
It repeats one by one.
When it is implemented, the application is not limited by the execution sequence of described each step, conflict is not being generated
In the case of, certain steps can also be carried out using other sequences or be carried out simultaneously.
Referring to Fig. 3, Fig. 3 is the another flow diagram of network control method provided by the embodiments of the present application.The net
Network control method is applied in mobile terminal, and the method may include following steps:
Step 201, whether the screen for detecting mobile terminal closes.If so, thening follow the steps 202.
Wherein, when the screen for detecting mobile terminal for the first time is not turned off, the beginning detected next time, Zhi Dao are continued waiting for
One-time detection enters step 202 until the screen of mobile terminal is closed.When the screen for detecting mobile terminal for the first time is closed
Afterwards, after waiting preset duration, whether the screen for detecting mobile terminal again is still within closed state, if it is not, then illustrating to move
The screen of terminal is lighted again after closing, and executes step 206 at this time.
Step 202, when the screen for detecting mobile terminal is closed, processor setting export electricity threshold value to than
Compared with the first input end of device.
Specifically, the electricity threshold value can be set to the 10% of battery specified electric quantity value.
For example, the electricity threshold value can also be set in conjunction with user using the preference of mobile terminal.For example, when using
Family is when surfing the Internet using the most of the time of mobile terminal, and power consumption rate is relatively small, then the electricity threshold value can be set to
The 10% of battery specified electric quantity value.When user is viewing video or is played audio using the most of the time of mobile terminal, consumption
Electric speed is relatively large, then the electricity threshold value can be set to the 15% of battery specified electric quantity value.By setting electricity thresholding
Value can be very good the variation of the charge value of monitoring battery, to prevent mobile terminal accident power down from causing user that cannot charge
In the environment of can not normal use mobile terminal.
For example, the electricity threshold value can also be set in conjunction with the location information of mobile terminal.Under normal circumstances, exist
Family or office, can charge in time when mobile terminal electricity is low, and the power down of mobile terminal influences the use of user
Less.Therefore, when the position for detecting mobile terminal is family or office, the electricity threshold value can be set to low
In the 10% of battery specified electric quantity value, for example, being set as any in 6%, 7%, 8% or the 9% of battery specified electric quantity value
Kind.
Wherein, when the screen for detecting mobile terminal is closed, processor setting one electricity threshold value of output is to comparing
The first input end of device, continues to execute step 203.And when detecting mobile terminal after the screen closes, return step 201 continues
Whether the screen of detection detection mobile terminal closes, if it is not, thening follow the steps 206.
Step 203, processor configuration connects the pin of the comparator output terminal, when detecting that the comparator is defeated
When the level of outlet changes, the mobile terminal is waken up.
In some embodiments, the step 203, specifically includes:
When the charge value for detecting the battery is less than the electricity threshold value, so that the electricity of the comparator output terminal
It is flat to change, to wake up the mobile terminal.
Wherein, the first input end of comparator connects processor, to receive the electricity threshold value of processor output;Comparator
The second input terminal connect battery, with receive battery output battery charge value.When the charge value for detecting the battery is small
When the electricity threshold value, so that the level of the comparator output terminal changes, to wake up the mobile terminal.
In some embodiments, described when the charge value for detecting the battery is less than the electricity threshold value, so that
The level of the comparator output terminal changes, to wake up the mobile terminal, comprising:
When the charge value of the battery is greater than or equal to the electricity threshold value, the comparator arrangement is to export low electricity
It is flat, and when the charge value of the battery is less than the electricity threshold value, the comparator arrangement is output high level, then described
Processor configuration connects the pin of the comparator output terminal as rising edge interruption;
When the level for detecting the comparator output terminal is interrupted from low level jump for high level with triggering rising edge,
Wake up the mobile terminal.
In some embodiments, described when the charge value for detecting the battery is less than the electricity threshold value, so that
The level of the comparator output terminal changes, to wake up the mobile terminal, comprising:
When the charge value of the battery is greater than or equal to the electricity threshold value, the comparator arrangement is the high electricity of output
It is flat, and when the charge value of the battery is less than the electricity threshold value, the comparator arrangement is output low level, then described
Processor configuration connects the pin of the comparator output terminal as failing edge interruption;
When the level for detecting the comparator output terminal is interrupted from high level jump for low level with triggering failing edge,
Wake up the mobile terminal.
Step 204, the timer inside the processor starting, wakes up the processor every preset time and obtains battery
Charge value.
Wherein, when waking up the mobile terminal, what is be waken up is the processor in mobile terminal, especially starting setting
Timer inside processor, and timer is made to wake up the electricity that the processor obtains battery every preset time
Value.At this point, the screen of the mobile terminal is still within closed state, the processor and runs described mobile whole
The backstage at end.
Specifically, the preset time can be set to 20 seconds.For example, waking up the processor every 20 seconds obtains battery
Charge value.
For example, the preset time can also be set in conjunction with the currently running application program on mobile terminal backstage.
For example, when the application that the currently running application program on mobile terminal backstage is low power consumption rank, such as QQ, wechat instant messaging
Using the preset time can be set to the value greater than 20 seconds, for example be set as 25 seconds.When the current fortune on mobile terminal backstage
Capable application program is the application of high power consumption rank, such as music player, the preset time can be set to less than 20 seconds
Value, for example be set as 15 seconds.
For example, the preset time can also be set in conjunction with the location information of mobile terminal.Under normal circumstances, it is in
Or office, it can charge in time when mobile terminal electricity is low, the power down of mobile terminal influences not the use of user
Greatly.Therefore, when the position for detecting mobile terminal is family or office, the preset time can be set to be greater than 20
The value of second, for example be set as 30 seconds.
Step 205, when the continuous preset times of the charge value of the battery are lower than preset threshold, network is closed in triggering.
Specifically, the preset times can be set to 3 times, the preset threshold can be set to battery specified electric quantity value
5%.For example, when the charge value of the battery continuous 3 times be lower than battery specified electric quantity value 5% when triggering close network, with
Avoid the switching and bring accident power down between heterogeneous networks.
Wherein, if the network currently opened includes WiFi network and mobile data network, can choose closing wherein it
One network can also close the all-network currently opened.
Step 206, when the mobile terminal after the screen closes, detect that the screen of the mobile terminal is lighted again
When, close the comparator.After closing comparator, return step 204.
For example, work as mobile terminal after the screen closes, since user cannot intuitively observe the state of charge of battery, because
This needs to start comparator to monitor whether the charge value of the battery is less than the electricity threshold value in real time, so as in the electricity
When the charge value in pond is less than the electricity threshold value, so that the level of the comparator output terminal changes, described in waking up
Mobile terminal, so monitor battery state of charge and when the continuous preset times of the charge value of the battery be lower than preset threshold when
Triggering close network, to avoid due in mobile terminal networking process power consumption increase bring accident power down.And when mobile whole
When the screen at end is in bright screen state, user can see electricity and little by little lower, without monitoring electricity in real time by from the background
The state of charge in pond.Therefore when the screen for detecting the mobile terminal again is lighted, the comparator can be closed.Shielding
Curtain has closed comparator when lighting, but the processor of mobile terminal uses the increasing of time in wake-up states at any time at this time
Long, the charge value of battery may gradually decrease, at this time, it may be necessary to return step 204, the timer controlled inside the processor is every
The processor is waken up every preset time and obtains the charge value of battery, and executes step 205, when the charge value of the battery is continuous
Network is closed in triggering when preset times are lower than preset threshold.
From the foregoing, it will be observed that network control method provided by the embodiments of the present application, by being closed when the screen for detecting mobile terminal
When closing, the first input end of processor setting one electricity threshold value of output to comparator;Processor configuration connection comparator is defeated
The pin of outlet wakes up mobile terminal when the level for detecting comparator output terminal changes;When wake-up mobile terminal
When, the internal timer of processor starting, every the charge value of preset time triggering processor acquisition battery;When the electricity of battery
Network is closed in triggering when being worth continuous preset times lower than preset threshold.The embodiment of the present application is in the energy when mobile terminal connects network
Enough state of charge for grasping mobile terminal in time, to avoid due in mobile terminal networking process power consumption increase bring accident
Power down, especially after mobile terminal connection WiFi network, mobile terminal locations variation occur causes WiFi disconnecting to turn
And the state of charge of mobile terminal can be grasped when networking by mobile data network in time, to avoid due to mobile terminal from
Power consumption increases bring accident power down when WiFi networking switches to mobile data networking, is user to promote user experience
It brings convenience.
The embodiment of the present application also provides a kind of network control system, and the network control system can integrate in mobile terminal
In, the mobile terminal can be the equipment such as smart phone, tablet computer, smartwatch.
Referring to Fig. 4, Fig. 4 is the structural schematic diagram of network control system provided by the embodiments of the present application.Network-control system
System 30 may include: that the system comprises processor 31, comparator 32, battery 33 and radio circuit 34, the processors 31
The first input end IN1 and the second input terminal IN2 of the comparator 32 are separately connected with the battery 33, the comparator 32
The output end OUT connection processor 31, wherein the processor 31 includes: screen detection module 311, electricity setup module
312, electricity obtains module 313, wake-up module 314, timer 315 and switching setup module 316.
Wherein, the screen detection module 311, the screen for detecting mobile terminal being lighted and closing.
The electricity setup module 312, for connecting the first input end IN1 of the comparator 32, when the screen is examined
When surveying module 311 and detecting that the screen of mobile terminal is closed, setting one electricity threshold value of output to the of the comparator 32
One input terminal IN1.
Specifically, the electricity threshold value can be set to the 10% of the specified electric quantity value of battery 33.
The electricity obtains module 313, for obtaining the charge value of the battery 33.
The wake-up module 314, for configuring the pin for connecting the 32 output end OUT of comparator, and for detecting institute
State the output signal of comparator 32.When the wake-up module 314 detects that the level of the 32 output end OUT of comparator becomes
When change, the mobile terminal is waken up.
In some embodiments, the wake-up module 314, described in being less than when the charge value for detecting the battery 33
When electricity threshold value, so that the level of 32 output end OUT of the comparator changes, then according to 32 output end of comparator
The level change of OUT wakes up the mobile terminal.
In some embodiments, the wake-up module 314, including the first configuration unit 3141 and the first wakeup unit
3142;Or including the second configuration unit 3143 and the second wakeup unit 3144.It in the process of implementation, can be single by the first configuration
Member 3141 is executed with the first wakeup unit 3142, or can by the second configuration unit 3143 and the second wakeup unit 3144
It executes.
Wherein, first configuration unit 3141 is greater than or equal to the electricity for the charge value when the battery 33
When threshold value, the comparator 32 is configured as output to low level, and when the charge value of the battery 33 is less than the electricity thresholding
When value, the comparator 32 is configured as output to high level, then the configuration of processor 31 connects the 32 output end OUT of comparator
Pin be rising edge interrupt;First wakeup unit 3142, for when the electricity for detecting the 32 output end OUT of comparator
It is flat from low level jump be that high level is interrupted with triggering rising edge when, wake up the mobile terminal.Or
Second configuration unit 3143 is greater than or equal to the electricity threshold value for the charge value when the battery 33
When, the comparator 32 is configured as output to high level, and when the charge value of the battery 33 is less than the electricity threshold value, institute
It states comparator 32 and is configured as output to low level, then the configuration of processor 31 connects the pin of the 32 output end OUT of comparator
For failing edge interruption;Second wakeup unit 3144, for when detecting the level of the 32 output end OUT of comparator from height
When level jump is that low level is interrupted to trigger failing edge, the mobile terminal is waken up.
The timer 315, for being started when the wake-up module 314 wakes up the mobile terminal, and every
Preset time triggers the electricity and obtains the charge value that module 313 obtains battery 33.
Wherein, the timer 315 is started after the wake-up module 314 detects interrupt signal.For example, the timing
Device 315 is used to trigger the electricity every 20 seconds and obtains the charge value that module 313 obtains battery 33, and judges and preset threshold
Size.For example, the thresholding can be set to the 5% of the specified electric quantity value of battery 33.
The switching setup module 316, for controlling the closing and starting of network, when the charge value of the battery 33 is continuous
Preset times trigger the radio circuit 34 and close network when being lower than preset threshold.
In some embodiments, the processor 31 is also used to work as the mobile terminal after the screen closes, detects again
When lighting to the screen of the mobile terminal, the comparator 32 is closed.
In order to further illustrate the embodiment of the present application, in detail below for example:
Comparator 32 enters to hold the charge value of IN1 and the second input terminal IN2, wherein first input end for comparing first end
The charge value of IN1 is electricity threshold value, and the charge value of the second input terminal IN2 is the charge value of battery.For example, when the second input terminal
When the charge value of IN2 is greater than or equal to the charge value of first input end IN1, output end OUT output is low level;When second defeated
When entering to hold the charge value of IN2 to be less than the charge value of first input end IN1, output end OUT output is high level.
The execution when screen detection module 311 detects that screen is closed:
(1) setting of electricity setup module 312 exports corresponding electricity threshold value to the end IN1 of comparator 32;
(2) comparator 32 is enabled, and wake-up mould 314 is configured to rising edge and interrupts and enables;
The execution when screen detection module 311 detects that screen is lighted:
(3) forbidden energy comparator and wake-up module;
The execution when wake-up module 324 detects that rising edge interrupts:
(4) wake-up module 314 wakes up mobile terminal;Forbidden energy comparator 32 and wake-up module 314;Variable counter is reset,
Start the timer 315 that time-out time is 20 seconds;
(5) judge whether timer 315 is overtime, if yes then follow the steps (6), otherwise continue waiting for time-out;
(6) charge value of battery 33 is obtained, if the charge value of battery 33 is less than preset threshold, counter=counter
+ 1, otherwise counter=0;
(7) judge whether counter is 3, is if yes thened follow the steps (8), it is no to then follow the steps (5);
(8) switching setup module 316 closes network.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made
It is realized for same or several entities.
From the foregoing, it will be observed that network control system 30 provided by the embodiments of the present application, is detected by screen detection module 311 and is moved
The screen of terminal being lighted and closing;Electricity setup module 312 connects the first input end IN1 of the comparator 32, when described
When screen detection module 311 detects that the screen of mobile terminal is closed, the setting one electricity thresholding of output of electricity setup module 312
It is worth to the first input end IN1 of the comparator 32;The configuration of wake-up module 314 connects drawing for the 32 output end OUT of comparator
Foot wakes up the mobile terminal when the level for detecting the 32 output end OUT of comparator changes;When the wake-up
Module 314 starts timer 315 when waking up the mobile terminal, and triggers the electricity every preset time and obtain module 313
Obtain the charge value of battery 33;When the continuous preset times of charge value of the battery 33 are lower than preset threshold, switching setting mould
Block 316 triggers the radio circuit and closes network.The embodiment of the present application can be grasped in time when mobile terminal connects network
The state of charge of mobile terminal, to avoid due in mobile terminal networking process power consumption increase bring accident power down, especially
It is after mobile terminal connection WiFi network, mobile terminal locations variation occur causes WiFi disconnecting to transfer to pass through movement
Data network can grasp the state of charge of mobile terminal in time when networking, switch to avoid since mobile terminal networks from WiFi
Power consumption increases bring accident power down and brings convenience to promote user experience for user when networking to mobile data.
The embodiment of the present application also provides a kind of mobile terminal, including processor and memory, is stored in the memory
Computer program, the processor is by calling the computer program stored in the memory, for executing above-mentioned net
Network control method.
Referring to Fig. 5, Fig. 5 shows the structural schematic diagram of mobile terminal provided by the embodiments of the present application, the mobile terminal
It can be used for implementing the network control method provided in above-described embodiment.The mobile terminal 1200 can be smart phone, plate
Apparatus such as computer.
As shown in figure 5, mobile terminal 1200 may include comparator 100, RF (Radio Frequency, radio frequency) circuit
110, memory 120, the input for including one or more and (only show one in figure) computer readable storage medium are single
Member 130, sensor 150, voicefrequency circuit 160, transmission module 170, includes one or more than one (figure at display unit 140
In only show one) processor 180 of processing core and the equal components of battery 190.It will be understood by those skilled in the art that Fig. 5
Shown in 1200 structure of mobile terminal do not constitute the restriction to mobile terminal 1200, may include than illustrate it is more or less
Component, perhaps combine certain components or different component layouts.Wherein:
Two input terminals of comparator 100 are separately connected processor 180 and battery 190, and the output end of comparator 100 connects
Connect processor 180.
RF circuit 110 realizes the mutual conversion of electromagnetic wave and electric signal, thus with logical for receiving and transmitting electromagnetic wave
News network or other equipment are communicated.RF circuit 110 may include various existing for executing the circuit elements of these functions
Part, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, storage
Device etc..RF circuit 110 can carry out communicating or by wireless with various networks such as internet, intranet, wireless network
Network is communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).
Various communication standards, agreement and technology, including but not limited to global system for mobile communications can be used in above-mentioned wireless network
(Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data
GSM Environment, EDGE), Wideband CDMA Technology (Wideband Code Division Multiple
Access, WCDMA), Code Division Multiple Access (Code Division Access, CDMA), time division multiple access technology (Time
Division Multiple Access, TDMA), adopting wireless fidelity technology (Wireless Fidelity, Wi-Fi) (such as U.S.'s electricity
Gas and Electronic Engineering Association standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n),
The networking telephone (Voice over Internet Protocol, VoIP), worldwide interoperability for microwave accesses (Worldwide
Interoperability for Microwave Access, Wi-Max), other are for mail, instant messaging and short message
Agreement and any other suitable communications protocol, or even may include the agreement that those are not developed currently yet.
Memory 120 can be used for storing software program and module, such as the mobile management side based on D2D in above-described embodiment
Corresponding program instruction/the module of method, the software program and module that processor 180 is stored in memory 120 by operation, from
And application and data processing are performed various functions, mobile terminal can be being grasped in time when mobile terminal connects network
State of charge, to avoid due in mobile terminal networking process power consumption increase bring accident power down.Memory 120 can wrap
Include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage systems, flash memory or
Other non-volatile solid state memories.In some instances, memory 120 can further comprise long-range relative to processor 180
The memory of setting, these remote memories can pass through network connection to mobile terminal 1200.The example of above-mentioned network includes
But be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching
Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used
Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table
Operation on face 131 or near touch sensitive surface 131), and corresponding connection system is driven according to preset formula.It is optional
, touch sensitive surface 131 may include two parts of touch detecting system and touch controller.Wherein, touch detecting system detection is used
The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection system, and is converted into contact coordinate, then gives processor 180, and can receive processor 180
The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically,
Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and mobile terminal that are supplied to user
1200 various graphical user interface, these graphical user interface can be by figure, text, icon, video and any combination thereof
To constitute.Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal
Display, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) come
Configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 is detected at it
On or near touch operation after, send processor 180 to determine the type of touch event, be followed by subsequent processing device 180 according to touching
The type for touching event provides corresponding visual output on display panel 141.Although in Fig. 5, touch sensitive surface 131 and display surface
Plate 141 is to output and input function as two independent components to realize, but in some embodiments it is possible to by touch-sensitive table
Face 131 and display panel 141 integrate and realize and output and input function.In the embodiment of the present application, display unit 140 is movement
The screen of terminal 1200.
Mobile terminal 1200 may also include at least one sensor 150, for example, optical sensor, motion sensor and other
Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can basis
The light and shade of ambient light adjusts the brightness of display panel 141, proximity sensor can when mobile terminal 1200 is moved in one's ear,
Close display panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect all directions
The size of upper (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static
Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (for example pedometer, strikes
Hit) etc.;Gyroscope, barometer, hygrometer, thermometer, infrared sensor for can also configure as mobile terminal 1200 etc. its
His sensor, details are not described herein.
Voicefrequency circuit 160, loudspeaker 161, the audio that microphone 162 can provide between user and mobile terminal 1200 connect
Mouthful.Electric signal after the audio data received conversion can be transferred to loudspeaker 161, by loudspeaker 161 by voicefrequency circuit 160
Be converted to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, by voicefrequency circuit
160 receive after be converted to audio data, then by after the processing of audio data output processor 180, through RF circuit 110 to be sent to ratio
Such as another terminal, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that
Earphone jack, to provide the communication of peripheral hardware earphone Yu mobile terminal 1200.
Mobile terminal 1200 can help user send and receive e-mail, is clear by transmission module 170 (such as Wi-Fi module)
Look at webpage and access streaming video etc., it provides wireless broadband internet for user and accesses.Although Fig. 5 shows transmission mould
Block 170, but it is understood that, and it is not belonging to must be configured into for mobile terminal 1200, it is can according to need completely not
Change in the range of the essence of invention and omits.
Processor 180 is the control centre of mobile terminal 1200, utilizes each of various interfaces and connection whole mobile phone
A part by running or execute the software program and/or module that are stored in memory 120, and calls and is stored in storage
Data in device 120 execute the various functions and processing data of mobile terminal 1200, to carry out integral monitoring to mobile phone.It can
Choosing, processor 180 may include one or more processing cores;In some embodiments, processor 180 can be integrated using processing
Device and modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation
Demodulation processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processing
In device 180.Wherein, timer 181 is additionally provided with inside processor 180.
Mobile terminal 1200 further includes the battery 190 powered to all parts, and in some embodiments, battery can pass through
Battery management system and processor 180 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by battery management system
The functions such as consumption management.Battery 190 can also include one or more direct current or exchange battery, recharging system, battery
The random components such as fault detection circuit, Battery converter or inverter, Battery Status Indicator.
Although being not shown, mobile terminal 1200 can also include camera (such as front camera, rear camera), bluetooth
Module etc., details are not described herein.Specifically in the present embodiment, the display unit 140 of mobile terminal 1200 is touch-screen display,
Mobile terminal 1200 further includes having the perhaps more than one program one of them or more than one of memory 120 and one
Program is stored in memory 120, and be configured to by one or more than one processor 180 execute one or one with
Upper program includes the instruction for performing the following operation:
When the screen 140 for detecting mobile terminal 1200 is closed, one electricity threshold value of the setting output of processor 180 is extremely
The first input end of comparator 100;The processor 180 configuration connects the pin of 100 output end of comparator, when detecting
When the level of 100 output end of comparator changes, the mobile terminal 1200 is waken up;When the wake-up mobile terminal
When 1200, the processor 180 starts internal timer 181, wakes up the processor 180 every preset time and obtains battery
Charge value;When the continuous preset times of the charge value of the battery are lower than preset threshold, network is closed in triggering.
In some embodiments, the processor 180 works as detection for configuring the pin for connecting the comparator output terminal
When changing to the level of 100 output end of comparator, the mobile terminal 1200 is waken up, comprising: described when detecting
When the charge value of battery is less than the electricity threshold value, so that the level of 100 output end of the comparator changes, to wake up
The mobile terminal 1200.
In some embodiments, the processor 180 is for the charge value for detecting the battery of working as less than described
When electricity threshold value, so that the level of 100 output end of the comparator changes, to wake up the mobile terminal 1200, packet
It includes:
When the charge value of the battery is greater than or equal to the electricity threshold value, the comparator 100 is configured as output to
Low level, and when the charge value of the battery is less than the electricity threshold value, the comparator 100 is configured as output to high electricity
Flat, then the configuration of processor 180 connects the pin of 100 output end of comparator as rising edge interruption;
When the level for detecting 100 output end of comparator is interrupted from low level jump for high level with triggering rising edge
When, wake up the mobile terminal 1200.
In some embodiments, the processor 180 is for the charge value for detecting the battery of working as less than described
When electricity threshold value, so that the level of 100 output end of the comparator changes, to wake up the mobile terminal 1200, packet
It includes:
When the charge value of the battery is greater than or equal to the electricity threshold value, the comparator 100 is configured as output to
High level, and when the charge value of the battery is less than the electricity threshold value, the comparator 100 is configured as output to low electricity
Flat, then the configuration of processor 180 connects the pin of 100 output end of comparator as failing edge interruption;
When the level for detecting 100 output end of comparator is interrupted from high level jump for low level with triggering failing edge
When, wake up the mobile terminal 1200.
In some embodiments, the processor 180 is also used to work as the mobile terminal 1200 after the screen closes, again
When detecting that the screen of the mobile terminal 1200 is lighted, the comparator is closed.
From the foregoing, it will be observed that the embodiment of the present application provides a kind of mobile terminal 1200, the mobile terminal 1200 executes following
Step: when the screen 140 for detecting mobile terminal 1200 is closed, the setting of processor 180 export electricity threshold value to than
Compared with the first input end of device 100;The configuration of processor 180 connects the pin of 100 output end of comparator, when detecting
When stating the level of 100 output end of comparator and changing, the mobile terminal 1200 is waken up;When the wake-up mobile terminal 1200
When, the processor 180 starts internal timer 181, wakes up the electricity that the processor 180 obtains battery every preset time
Magnitude;When the continuous preset times of the charge value of the battery are lower than preset threshold, network is closed in triggering.The embodiment of the present application exists
The state of charge of mobile terminal can be grasped, in time when mobile terminal connects network to avoid due to mobile terminal networking process
Middle power consumption increases bring accident power down, especially after mobile terminal connects WiFi network, mobile terminal locations occurs
Variation can grasp the state of charge of mobile terminal in time when WiFi disconnecting being caused to transfer to network by mobile data network,
Increase bring accident power down to avoid since mobile terminal switches to power consumption when mobile data networks from WiFi networking, thus
User experience is promoted, is brought convenience for user.
The embodiment of the present application also provides a kind of storage medium, computer program is stored in the storage medium, when described
When computer program is run on computers, the computer executes network control method described in any of the above-described embodiment.
It should be noted that this field common test personnel are understood that for herein described network control method
The all or part of the process for realizing application management method described in the embodiment of the present application, is that can control phase by computer program
The hardware of pass is completed, and the computer program can be stored in a computer readable storage medium, be such as stored in mobile terminal
Memory in, and by the mobile terminal at least one processor execute, in the process of implementation may include such as the application
The process of the embodiment of management method.Wherein, the storage medium can be magnetic disk, CD, read-only memory (ROM, Read
Only Memory), random access memory (RAM, Random Access Memory) etc..
For the network control system of the embodiment of the present application, each functional module be can integrate in a processing core
In piece, it is also possible to modules and physically exists alone, can also be integrated in two or more modules in a module.On
It states integrated module both and can take the form of hardware realization, can also be realized in the form of software function module.The collection
If at module realized in the form of software function module and when sold or used as an independent product, also can store
In one computer readable storage medium, the storage medium is for example read-only memory, disk or CD etc..
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In the embodiment of the present application, one of the network control system and foregoing embodiments network control method belong to together
One design can run either offer method in the network control method embodiment on the network control system,
Specific implementation process is detailed in the network control method embodiment, and details are not described herein again.
Network control method, system provided by the embodiment of the present application, storage medium and mobile terminal are carried out above
It is discussed in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, above embodiments
Illustrate to be merely used to help understand the present processes and its core concept;Meanwhile for those skilled in the art, according to this
The thought of application, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered
It is interpreted as the limitation to the application.
Claims (10)
1. a kind of network control method, which is characterized in that the described method includes:
When the screen for detecting mobile terminal is closed, the first of processor setting one electricity threshold value of output to comparator is defeated
Enter end;
The processor configuration connects the pin of the comparator output terminal, when the level for detecting the comparator output terminal is sent out
When changing, the mobile terminal is waken up;
When waking up the mobile terminal, the internal timer of processor starting, every the preset time wake-up processing
The charge value of device acquisition battery;
When the continuous preset times of the charge value of the battery are lower than preset threshold, network is closed in triggering.
2. network control method as described in claim 1, which is characterized in that it is defeated that the processor configuration connects the comparator
The pin of outlet wakes up the mobile terminal when the level for detecting the comparator output terminal changes, comprising:
When the charge value for detecting the battery is less than the electricity threshold value, so that the level of the comparator output terminal is sent out
Changing, to wake up the mobile terminal.
3. network control method as claimed in claim 2, which is characterized in that described to detect that the charge value of the battery is small
When the electricity threshold value, so that the level of the comparator output terminal changes, to wake up the mobile terminal, packet
It includes:
When the charge value of the battery is greater than or equal to the electricity threshold value, the comparator arrangement is output low level,
And when the charge value of the battery is less than the electricity threshold value, the comparator arrangement is output high level, then the place
It manages device configuration and connects the pin of the comparator output terminal as rising edge interruption;
When the level for detecting the comparator output terminal is interrupted from low level jump for high level with triggering rising edge, wake up
The mobile terminal.
4. network control method as claimed in claim 2, which is characterized in that described to detect that the charge value of the battery is small
When the electricity threshold value, so that the level of the comparator output terminal changes, to wake up the mobile terminal, packet
It includes:
When the charge value of the battery is greater than or equal to the electricity threshold value, the comparator arrangement is output high level,
And when the charge value of the battery is less than the electricity threshold value, the comparator arrangement is output low level, then the place
It manages device configuration and connects the pin of the comparator output terminal as failing edge interruption;
When the level for detecting the comparator output terminal is interrupted from high level jump for low level with triggering failing edge, wake up
The mobile terminal.
5. network control method as described in claim 1, which is characterized in that the method also includes:
When the mobile terminal after the screen closes, when detecting that the screen of the mobile terminal is lighted again, close the ratio
Compared with device.
6. a kind of network control system, which is characterized in that the system comprises processor, comparator, battery and radio circuit,
The processor and the battery are separately connected the first input end and the second input terminal of the comparator, the comparator it is defeated
Outlet connects the processor, wherein the processor includes:
Screen detection module, the screen for detecting mobile terminal being lighted and close;
Electricity setup module, for connecting the first input end of the comparator, when the screen detection module detects movement
When the screen of terminal is closed, the first input end of setting one electricity threshold value of output to the comparator;
Electricity obtains module, for obtaining the charge value of the battery;
Wake-up module, for configuring the pin for connecting the comparator output terminal, when the electricity for detecting the comparator output terminal
It is flat when changing, wake up the mobile terminal;
Timer for being started when the wake-up module wakes up the mobile terminal, and triggers institute every preset time
It states electricity and obtains the charge value that module obtains battery;
Switch setup module, for triggering the radio frequency when the continuous preset times of the charge value of the battery are lower than preset threshold
Circuit closes network.
7. network control system as claimed in claim 6, which is characterized in that the wake-up module, for described when detecting
When the charge value of battery is less than the electricity threshold value, so that the level of the comparator output terminal changes, then according to institute
The level change for stating comparator output terminal wakes up the mobile terminal.
8. network control system as claimed in claim 7, which is characterized in that the wake-up module, comprising:
First configuration unit, for when the charge value of the battery be greater than or equal to the electricity threshold value when, the comparator
It is configured as output to low level, and when the charge value of the battery is less than the electricity threshold value, the comparator arrangement is defeated
High level out, then the processor configuration connects the pin of the comparator output terminal as rising edge interruption;First wakeup unit,
For waking up when the level for detecting the comparator output terminal is interrupted from low level jump for high level with triggering rising edge
The mobile terminal;Or
Second configuration unit, for when the charge value of the battery be greater than or equal to the electricity threshold value when, the comparator
It is configured as output to high level, and when the charge value of the battery is less than the electricity threshold value, the comparator arrangement is defeated
Low level out, then the processor configuration connects the pin of the comparator output terminal as failing edge interruption;Second wakeup unit,
For waking up when the level for detecting the comparator output terminal is interrupted from high level jump for low level with triggering failing edge
The mobile terminal.
9. a kind of storage medium, which is characterized in that computer program is stored in the storage medium, when the computer program
When running on computers, so that the computer perform claim requires 1 to 5 described in any item network control methods.
10. a kind of mobile terminal, which is characterized in that the mobile terminal includes processor and memory, is deposited in the memory
Computer program is contained, the processor is used for right of execution by calling the computer program stored in the memory
Benefit requires 1 to 5 described in any item network control methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811558871.XA CN109661022A (en) | 2018-12-19 | 2018-12-19 | Network control method, system, storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811558871.XA CN109661022A (en) | 2018-12-19 | 2018-12-19 | Network control method, system, storage medium and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109661022A true CN109661022A (en) | 2019-04-19 |
Family
ID=66115788
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811558871.XA Pending CN109661022A (en) | 2018-12-19 | 2018-12-19 | Network control method, system, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109661022A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111261827A (en) * | 2020-01-17 | 2020-06-09 | 光悦科技(深圳)有限公司 | Battery anti-theft method and device |
CN114995625A (en) * | 2021-08-11 | 2022-09-02 | 荣耀终端有限公司 | System power consumption control method and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108419281A (en) * | 2015-11-28 | 2018-08-17 | 广东欧珀移动通信有限公司 | A kind of method for switching network, device and communication terminal |
CN108966328A (en) * | 2018-08-27 | 2018-12-07 | Tcl移动通信科技(宁波)有限公司 | Display screen double-clicks wake-up control method, mobile terminal |
-
2018
- 2018-12-19 CN CN201811558871.XA patent/CN109661022A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108419281A (en) * | 2015-11-28 | 2018-08-17 | 广东欧珀移动通信有限公司 | A kind of method for switching network, device and communication terminal |
CN108966328A (en) * | 2018-08-27 | 2018-12-07 | Tcl移动通信科技(宁波)有限公司 | Display screen double-clicks wake-up control method, mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111261827A (en) * | 2020-01-17 | 2020-06-09 | 光悦科技(深圳)有限公司 | Battery anti-theft method and device |
CN114995625A (en) * | 2021-08-11 | 2022-09-02 | 荣耀终端有限公司 | System power consumption control method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105306682B (en) | The method and device of network connection switch is automatically closed | |
CN103389863B (en) | A kind of display control method and device | |
WO2015100569A1 (en) | Sidebar menu display method, device and terminal | |
CN103415824B (en) | Method and apparatus for controlling CPU | |
US20180063130A1 (en) | Terminal control method and device | |
CN105892850B (en) | Open method, device and the mobile terminal of application program for mobile terminal | |
WO2019011335A1 (en) | Mobile terminal and control method therefor, and readable storage medium | |
WO2019047973A1 (en) | Terminal operating method and terminal, and computer readable storage medium | |
CN105357657B (en) | The construction method and device of Mesh network | |
CN105162930B (en) | The way of recording and device of mobile terminal | |
CN110691168B (en) | Screen control method and device of mobile terminal and storage medium | |
CN106385486B (en) | A kind of control method of proximity sensor, device and mobile terminal | |
CN105100361B (en) | The way of recording and device of mobile terminal | |
CN109687922A (en) | Signal monitoring method, device, storage medium and the mobile terminal of wireless network | |
CN109661022A (en) | Network control method, system, storage medium and mobile terminal | |
CN105700620A (en) | Control instruction execution method and apparatus | |
CN109656431A (en) | Information display method, device and storage medium | |
CN106484141B (en) | The setting method and mobile terminal of threshold value | |
CN109413256A (en) | Contact person information processing method, device, storage medium and electronic equipment | |
CN110489177B (en) | Application control method and device, storage medium and terminal equipment | |
CN105282330B (en) | The method and device of automatic connection network | |
CN109547640A (en) | Mobile terminal WIFI control method, device, mobile terminal and storage medium | |
CN110022600A (en) | Adjusting method, device, storage medium and the mobile terminal of driving current | |
CN106445778B (en) | The method and mobile terminal of information processing | |
CN110062412A (en) | Wireless pairing method, system, storage medium and mobile terminal |
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: 20190419 |
|
RJ01 | Rejection of invention patent application after publication |