CN109511139A - WIFI control method, device, mobile device, computer readable storage medium - Google Patents
WIFI control method, device, mobile device, computer readable storage medium Download PDFInfo
- Publication number
- CN109511139A CN109511139A CN201811558955.3A CN201811558955A CN109511139A CN 109511139 A CN109511139 A CN 109511139A CN 201811558955 A CN201811558955 A CN 201811558955A CN 109511139 A CN109511139 A CN 109511139A
- Authority
- CN
- China
- Prior art keywords
- application
- wifi
- information
- mobile device
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W80/00—Wireless network protocols or protocol adaptations to wireless operation
- H04W80/08—Upper layer protocols
- H04W80/12—Application layer protocols, e.g. WAP [Wireless Application Protocol]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/18—Negotiating wireless communication parameters
- H04W28/22—Negotiating communication rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/08—Load balancing or load distribution
-
- 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)
- Quality & Reliability (AREA)
- Telephone Function (AREA)
Abstract
This application involves a kind of WIFI control method and device, mobile device, computer readable storage mediums.The described method includes: obtaining the status information of application, the current state of the application is determined according to the state information;When the application type of the application is default application type, and the current state is that application enters state, generates and enable control information;Information control mobile device, which is controlled, according to the enabling enters WIFI initiate mode.The enabling WIFI of intelligence, exits suspend mode, to reduce network delay, meets requirement of the special scenes to network transmission speed.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of WIFI control method, device, mobile device, meter
Calculation machine readable storage medium storing program for executing.
Background technique
With the development of computer technology, more and more mobile devices provide wireless networking business for user.Wireless office
Domain net (Wireless Fidelity, WIFI) technology is that one kind can provide the technology of wireless networking for user.
The WIFI operating mode of mobile device includes suspend mode at present, and traditional WIFI control method is often in data
Measure it is relatively low in the case where control WIFI and enter suspend mode, to reduce power consumption, but bring influence simultaneously is meeting so that net
Network delay increases, transmission rate decline.
Summary of the invention
The embodiment of the present application provides a kind of WIFI control method and device, mobile device, computer readable storage medium, can
To exit suspend mode, to reduce network delay, meet special scenes by the enabling WIFI of the status information intelligence of application
Requirement to network transmission speed.
A kind of WIFI control method, comprising:
The status information for obtaining application, determines the current state of the application according to the state information;
When the application type of the application is default application type, and the current state is that application enters state, generate
Enable control information;
Information control mobile device, which is controlled, according to the enabling enters WIFI initiate mode.
A kind of WIFI control device, comprising:
Application state determining module determines the application for obtaining the status information of application according to the state information
Current state;
First generation module, is default application type for the application type when the application, and the current state is to answer
When with entering state, generating and enabling control information;
WIFI enables module, enters WIFI initiate mode for controlling information control mobile device according to the enabling.
A kind of mobile device, including memory and processor store computer program, the calculating in the memory
When machine program is executed by the processor, so that the processor executes following steps:
The status information for obtaining application, determines the current state of the application according to the state information;
When the application type of the application is default application type, and the current state is that application enters state, generate
Enable control information;
Information control mobile device, which is controlled, according to the enabling enters WIFI initiate mode.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
Following steps are realized when row:
The status information for obtaining application, determines the current state of the application according to the state information;
When the application type of the application is default application type, and the current state is that application enters state, generate
Enable control information;
Information control mobile device, which is controlled, according to the enabling enters WIFI initiate mode.
Above-mentioned WIFI control method, device, electronic equipment, computer readable storage medium, by the state for obtaining application
Information determines the current state of the application according to status information, when the application type of application is default application type, current shape
When state is that application enters state, enabling control information is generated, enters WIFI enabling according to control information control mobile device is enabled
State, can be according to the judgement of the current state of application into particular preset type in application, the enabling WIFI of intelligence, is exited not
Sleep mode meets requirement of the special scenes to network transmission speed to reduce network delay.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the applied environment figure of WIFI control method in one embodiment;
Fig. 2 is the applied environment figure of WIFI control method in another embodiment;
Fig. 3 is the flow chart of WIFI control method in one embodiment;
Fig. 4 is the flow diagram of WIFI control method in a specific embodiment;
Fig. 5 is the structural block diagram of one embodiment WIFI control device;
Fig. 6 is the structural block diagram of another embodiment WIFI control device;
Fig. 7 is the schematic diagram of internal structure of mobile device in one embodiment;
Fig. 8 is the structural schematic diagram of mobile phone in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein,
But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes
It says, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action
Second client is known as the first client.The first client and the second client both client, but it is not same visitor
Family end.
Fig. 1 is the applied environment figure of WIFI control method in one embodiment.As shown in Figure 1, the application environment includes moving
Dynamic equipment 110, mobile device 110 include WIFI chip, and application is equipped in mobile device 110, are set using movement when operation
Standby 110 obtain the status information of application, the current state of application are determined according to the status information of application, when the application type of application
To preset application type, when current state is that application enters state, generation enables control information, controls according to control information is enabled
Mobile device enters WIFI initiate mode, can be judged by the status information of application enter default application type in application,
The enabling WIFI of intelligence, exits suspend mode, to reduce network delay, meets special scenes and want to network transmission speed
It asks.Wherein mobile device 110 can be smart phone, tablet computer, wearable device, personal digital assistant etc..
It is understood that in one embodiment, as shown in Fig. 2, application environment includes mobile device 110 and server
120, the server 120 obtains the status information of the corresponding application of mobile device 110, and server 120 is true according to status information
Surely the current state applied is generated when the application type of application is default application type, and current state is that application enters state
Control information is enabled, then enabling control information is sent to mobile device 110, control mobile device 110 is believed according to control is enabled
Breath enters WIFI initiate mode, can interact the enabling WIFI for completing intelligence with server 120 by mobile device 110, exit
Suspend mode meets requirement of the special scenes to network transmission speed to reduce network delay.Corresponding enabling control will be generated
The logic of information processed is put on the server, and the resource of mobile device can be saved, convenient under complicated scene quickly according to application
Status information and application type generate corresponding WIFI and enable control information.
Fig. 3 is the flow chart of WIFI control method in one embodiment.As shown in figure 3, a kind of WIFI control, to be applied to
It is illustrated, specifically includes for above-mentioned application environment:
Step 202, the status information for obtaining application determines the current state of application according to status information.
Wherein, the status information of application refer to run on mobile device using corresponding status information, may include one
A or corresponding status information of multiple applications.Status information refers to using the current relevant information of operating status, such as enters logical
Know information or OPT-OUT NOTICE information, operation duration information, application type information etc..
Specifically, the status information that application can be acquired by mobile device itself, as mobile device passes through operation system
The corresponding state of each application of program intercepts that the broadcast that system issues obtains the status information of application or mobile device passes through installation
Information.Or using corresponding with the application of mobile device is obtained by server in the interactive process of server in operational process
Status information, as server receive mobile device transmission application enter request, then according to application into request moved
Dynamic equipment is that application enters information using corresponding status information.The current state of application is determined according to status information, currently
State include application enter state, using state, operating status is exited, may further determine that the runing time of application, using pair
Online user's quantity answered etc..
Step 204, it when the application type of application is default application type, and current state is that application enters state, generates
Enable control information.
Wherein, enabling control information is WIFI mode control information, for controlling WIFI into corresponding operating mode, i.e.,
Enabling mode, then mobile device enters WIFI initiate mode under enabling mode.
Specifically, application type can be divided according to different division modes, such as be carried out according to the demand information of application
Classification, demand information include power consumption information, reference time delay information, network transmission speed information etc., such as by the function of application into
Row classification, such as instant messaging class, game class, video class, such as be divided into online game application, network video application difference is answered
With the application of type.Wherein presetting application type can be customized according to demand, is such as defined as online game application or video communication
Using some specific application being also defined as by multiple preset conditions, such as microblogging application.
Current state is that application enters state, indicates that the application of default application type will start operation, indicates mobile device
Into special scenes.In one embodiment, default application type includes multiple application types, then the state letter applied accordingly
It includes multiple for ceasing, and the status information of the application of each default application type is integrated, the status information of only each application
When being all determined as using state is entered, just generates enabling control information and pass through multiple and different preset kinds in this case
The status information of application enables control information to generate, the flexible self-defined application scene of energy, intelligent opening WIFI.
Step 206, WIFI initiate mode is entered according to enabling control information control mobile device.
Specifically, it enables control information and enters WIFI initiate mode for controlling WIFI, such as exit suspend mode entrance
WIFI initiate mode then can guarantee network transmission efficiency into WIFI initiate mode, meets and requires height to network transfer speeds, real
The demanding application scenarios of when property, it is to be appreciated that refer into WIFI initiate mode and WIFI is kept to close suspend mode, directly
To suspend mode control information is received, WIFI suspend mode can be again gone into.It can be by sending instruction control to WIFI chip
The change of WIFI state.In one embodiment, control mobile device is gone to enter by WIFI operating mode control function interface
Different WIFI states provides different WIFI operating mode control function interfaces in different operating system, so as to pass through
WIFI operating mode control function interface sends the change of instruction control WIFI state to WIFI chip.
WIFI control method in the present embodiment is determined according to status information and is applied by obtaining the status information of application
Current state generate when the application type of application is default application type, and current state is that application enters state and enable control
Information processed enters WIFI initiate mode according to control information control mobile device is enabled, can be sentenced according to the current state of application
It is disconnected into particular preset type in application, the enabling WIFI of intelligence, exits suspend mode, to reduce network delay, meet
Requirement of the special scenes to network transmission speed.
In one embodiment, when the application type of application is default application type, current state is that state is exited in application
When, it generates suspend mode and controls information, information control mobile device is controlled according to suspend mode and enters WIFI dormant state.
Wherein, default application type can be customized according to demand, is such as defined as online game application or video communication applications,
Some specific application can be also defined as by multiple preset conditions, such as microblogging application.Here default application type with it is upper
The default application type stated in embodiment is consistent.Suspend mode control information enters WIFI dormant state for controlling WIFI, into
Enter WIFI dormant state, then can reduce the power consumption of WIFI chip.
Current state is that state is exited in application, indicates that the application of default application type i.e. will be out of service, wherein exiting fortune
Row includes exiting and exiting main thread completely to enter running background.Suspend mode control is just generated when exiting the application of default application type
Information processed is arrived since suspend mode control information enters WIFI dormant state for controlling mobile device so as to switching at runtime
WIFI suspend mode reduces the power consumption of WIFI chip, not will cause power consumption for presetting other scenes except application type
Influence.In one embodiment, control mobile device is gone to enter WIFI suspend mode by WIFI operating mode control function interface
State provides different WIFI operating mode control function interfaces in different operating system, so as to pass through WIFI Working mould
Formula control function interface sends the change of instruction control WIFI state to WIFI chip.
In the present embodiment, suspend mode is generated by the status information of application and controls information, can be pre- when the application type applied
If application type, when current state is that state is exited in application, suspend mode control information is automatically generated, so that intelligently control movement is set
It is standby to enter dormant state, the power consumption of WIFI chip is reduced, the electricity of mobile device is saved.
It in one embodiment, is that power consumption is lower than the first preset threshold to power consumption requirements when default application type is operation,
It is application type of the delay duration less than the second preset threshold to delay requirement.
Specifically, application of the power consumption lower than the first preset threshold consumes less power consumption, is delay duration to delay requirement
Less than the second preset threshold illustrate this type apply to requirement of real-time it is higher, by this type application enter when close
WIFI suspend mode, just enters suspend mode when exiting, optimize network delay, not will cause again simultaneously for other scenes
The influence of power consumption.Wherein the first preset threshold, the second preset threshold can customize, and in one embodiment, preset application type
For online game application.
In one embodiment, method further include: the current electric quantity information for obtaining mobile device, when mobile device is currently located
When WIFI initiate mode, if the corresponding current electric quantity of current electric quantity information is lower than default power threshold, suspend mode control is generated
Information processed controls information according to suspend mode, and control mobile device enters WIFI dormant state.
Specifically, if the corresponding current electric quantity of current electric quantity information is lower than default power threshold, illustrate currently mobile
Equipment needs to reduce power consumption, needs to generate suspend mode control information at this time, and control mobile device enters WIFI dormant state.As before
WIFI suspend mode is closed according to the status information of application, it can be automatically into WIFI suspend mode mould in mobile device not enough power supply
Formula can intelligently carry out the adjustment of WIFI operating mode according to the current state of application and mobile device information about power.
In one embodiment, method further include: until the current state of application is that state is exited in application, keep moving
The WIFI initiate mode of dynamic equipment.
Specifically, until current state is that state is exited in application, the WIFI initiate mode of mobile device is kept, is guaranteed
It applies in whole service journey, no matter how low data volume is will not all enter WIFI suspend mode, guarantee message transmission rate, reduce
The delay of the application of default application type in the process of running meets under the scene of the application operation of default application type to real-time
The requirement of property, guarantees the fluency of application interface.
In one embodiment, method further include: the application layer of application will enable in control information write-in mobile device
In the device node of core creation, when the information that the kernel of mobile device listens to device node changes, device node is read
In enabling control information, the kernel of mobile device enters WIFI initiate mode according to control information control mobile device is enabled.
Specifically, application layer generates according to the status information judgement of the application of default application type and enables control information still
Suspend mode controls information, goes to open and close WIFI suspend mode to the kernel of mobile device to send out message.Application layer and movement
The communication means of the kernel of equipment is relatively more, in the present embodiment, by way of read-write equipment node, passes through write-in node
Value enters determining WIFI chip and exits suspend mode.
Device node is equivalent to flag bit, when this flag bit value be 1, enter suspend mode, be worth and just exited not for 0
Sleep mode.The application layer of application will enable in the device node of the kernel creation of control information write-in mobile device, i.e., in equipment
0 is written in node.The kernel of mobile device booting when can system interface function create device node, in one embodiment
In, kernel creates sys/fs/opencloseps device node by the interface function device_creat of system.Application layer will
WIFI mode control information is written in the device node of kernel creation of mobile device, such as enters default application, then enabling is written
Information is controlled, the nodal value in device node can be written 0, exit default application by application layer, then suspend mode control information is written, answers
The nodal value in device node can be written 1 with layer.When the information that the kernel of mobile device listens to device node changes,
The current WIFI mode control information in device node is read, if the nodal value read is 0, the network of kernel will be passed through
Interface function in subsystem, such as by going to exit suspend mode mould by wlan_hdd_set_powersave in android system
Formula.If the nodal value read is 1, it will such as pass through Android system by the interface function in the network subsystem of kernel
Suspend mode is entered by wlan_hdd_Set_powersave in system.This general interface function passes through to be sent out toward WIFI chip
It send instruction message to remove dynamic opening or closes WIFI suspend mode.
In the present embodiment, by way of read-write equipment node, and WIFI core is determined by the value of write device node
Piece enters WIFI initiate mode and enters WIFI dormant state, simple and convenient.
In one embodiment, step 202 includes: that the application layer of mobile device obtains the status information of application, according to shape
State information determines the current state of application.Step 204 includes: when the application type applied is default application type, current state
When entering state for application, application layer, which generates, enables control information.Above-mentioned WIFI control method further include: application layer is set to movement
Standby kernel transmitting enables control information.WIFI is entered according to enabling control information control mobile device in step 206 and enables shape
State includes: that the kernel of mobile device enters WIFI initiate mode according to control information control mobile device is enabled.
Wherein, application layer includes various applications, and the application layer of mobile device obtains the status information of application, and in application layer
The current state that application is determined according to status information, when the application type of application is default application type, current state is application
When into state, application layer, which generates, enables control information, and the generation for enabling control information is placed on to the upper layer of mobile device, is passed through
Application layer will enable the kernel for the mobile device that control information is transferred to, and the kernel of mobile device provides core system service, from
And mobile device described in the interior nuclear control by mobile device enters WIFI initiate mode.Completion is shared out the work and helped one another by different layers
Automatic change of the WIFI from suspend mode to enabling mode works so that entire mode altering process is more efficient orderly in WIFI
When mode altering fails, orientation problem is easier by the test to different layers.Wherein application layer is passed to the kernel of mobile device
When passing WIFI mode control information, different communication modes can be selected as needed, such as netlink communication mode, read-write equipment
Node communicates etc..
In one embodiment, step 202 includes: when the state for the application for detecting mobile device operation changes
When, the system of mobile device generates the status information of application, and status information is broadcasted, and the application layer of mobile device receives
The application state information of the system broadcasts of mobile device.
Specifically, mobile device system, in android system, built-in multiple system broadcasts, as long as being related to moving
The basic operation of equipment, corresponding system broadcasts can be issued by being substantially all.Such as: opening starting, network state changes, takes pictures, and shields
Curtain is closed and is opened, and deficiency is lighted, into application, exit using etc..After system broadcasts issue, it will be connect by corresponding recipient
Receive, system broadcasts internal system when a specific event occurs, issued automatically by system.The application layer of mobile device receives movement
The status information of the application of the system broadcasts of equipment passes through the state for the broadcast reception application that the system of mobile device issues automatically
Information improves the convenience that control mobile device enters different WIFI states.In one embodiment, application layer can pass through
Monitor android system issue broadcast intent.action.GAMESPACE_ENTER and
Intent.action.GAMESPACE_STOP judges that current application is into game mode or exiting game mode.It can be with
Understand, for IOS system or other systems application layer equally can the broadcast that issues of monitoring system, specific listening mode root
It can be different according to the difference of operating system.
In one embodiment, WIFI mode control information is encapsulated in socket data packet and sends by application layer
To the kernel of mobile device.
In the present embodiment, WIFI mode control information includes enabling control information and suspend mode control information, mobile device
The kernel of application layer and mobile device sends out message by socket function, WIFI mode control information can be encapsulated in socket
In socket data packet, it is such as encapsulated in preset field or extended field, the kernel of mobile device passes through parsing socket data packet
Obtain WIFI mode control information.
In a specific embodiment, as shown in figure 4, WIFI control method specific step is as follows:
1) it is switched on, the WIFI chip default of mobile device enters suspend mode.
2) the kernel kernel of mobile device creates device node sys/ by the interface function device_creat of system
fs/opencloseps。
3) application layer of mobile device receives the broadcast into game mode of system sending, and the value of device node is write
This nodal value is listened to for 0, kernel and is changing into 0, will pass through WIFI mode adjustment function wlan_hdd_set_
Powersave control mobile device exits WIFI suspend mode.
4) after game is exited, the application layer of mobile device can receive the broadcast for exiting game of system sending, just
The value of device node can be written as 1, kernel and listen to this nodal value being changing into 1, just call function WIFI mode adjustment letter
Number wlan_hdd_set_powersave control mobile device enters WIFI suspend mode.
In the present embodiment, adjust automatically WIFI operating mode is gone according to the notice for entering or exiting game, can be dropped well
Low game delay, and power consumption can be reduced when game is exited.
It is understood that above-mentioned WIFI control mode also can be applicable to Video Applications in addition to applying in game application
Deng.
It should be understood that although each step in the flow chart of Fig. 3-4 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 3-4
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
Fig. 5 is the structural block diagram of the WIFI control device of one embodiment.As shown in figure 5, a kind of WIFI control device, packet
It includes application state determining module 302, the first generation module 304, WIFI and enables module 306.Wherein:
Application state determining module 302 determines the current of application according to status information for obtaining the status information of application
State.
First generation module 304, for being default application type when the application type applied, current state is that application enters
When state, generates and enable control information.
WIFI enables module 306, for entering WIFI initiate mode according to enabling control information control mobile device.
In one embodiment, as shown in fig. 6, device further include:
Second generation module 308, for being the default application type when the application type applied, current state is application
When exiting state, generates suspend mode and control information.
WIFI sleep block 310 enters WIFI dormant state for controlling information control mobile device according to suspend mode.
It in one embodiment, is that power consumption is lower than the first preset threshold to power consumption requirements when default application type is operation,
It is application type of the delay duration less than the second preset threshold to delay requirement.
In one embodiment, the second generation module 308 is also used to obtain the current electric quantity information of mobile device, works as movement
When equipment is currently at WIFI initiate mode, if the corresponding current electric quantity of current electric quantity information is lower than default power threshold,
It generates suspend mode and controls information, into WIFI sleep block 310.
In one embodiment, as shown in fig. 6, device further include:
Device node control module 312 will enable control information for the application layer by application and mobile device be written
In the device node of kernel creation;When the information that the kernel of mobile device listens to device node changes, equipment section is read
Enabling in point controls information, and the kernel of mobile device enters WIFI enabling shape according to control information control mobile device is enabled
State.
The division of modules is only used for for example, in other embodiments, can incite somebody to action in above-mentioned WIFI control device
WIFI control device is divided into different modules as required, to complete all or part of function of above-mentioned WIFI control device.
Specific about WIFI control device limits the restriction that may refer to above for WIFI control method, herein not
It repeats again.Modules in above-mentioned WIFI control device can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form
In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
Fig. 7 is the schematic diagram of internal structure of mobile device in one embodiment.As shown in fig. 7, the mobile device includes logical
Cross the processor and memory of system bus connection.Wherein, which supports entire electricity for providing calculating and control ability
The operation of sub- equipment.Memory may include non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with behaviour
Make system and computer program.The computer program can be performed by processor, to be mentioned for realizing following each embodiment
A kind of WIFI control method supplied.Built-in storage provides high speed for the operating system computer program in non-volatile memory medium
The running environment of caching.The electronic equipment can be mobile phone, tablet computer or personal digital assistant or wearable device etc..
Realizing for the modules in WIFI control device provided in the embodiment of the present application can be the shape of computer program
Formula.The computer program can be run in terminal or server.The program module that the computer program is constituted is storable in terminal
Or on the memory of server.When the computer program is executed by processor, method described in the embodiment of the present application is realized
Step.
The embodiment of the present application also provides a kind of mobile devices.As shown in figure 8, for ease of description, illustrating only and this
Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The movement is set
It include mobile phone, tablet computer, PDA (PersonalDigital Assistant, personal digital assistant), POS for that can be
Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device, using mobile device as mobile phone
For:
Fig. 8 is the block diagram of the part-structure of mobile phone relevant to mobile device provided by the embodiments of the present application.With reference to Fig. 8,
Mobile phone includes: radio frequency (Radio Frequency, RF) circuit 410, memory 420, input unit 430, display unit 440, passes
Sensor 450, voicefrequency circuit 440, Wireless Fidelity (wireless fidelity, WiFi) module 470, processor 480, Yi Ji electricity
The components such as source 490.It, can be with it will be understood by those skilled in the art that handset structure shown in Fig. 8 does not constitute the restriction to mobile phone
Including perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 410 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station
After downlink information receives, handled to processor 480;The data of uplink can also be sent to base station.In general, RF circuit include but
Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier,
LNA), duplexer etc..In addition, RF circuit 410 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio
Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter
Mobile communication, GSM), general packet radio service (General Packet Radio Service,
GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code
Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email,
Short message service (Short Messaging Service, SMS) etc..
Memory 420 can be used for storing software program and module, and processor 480 is stored in memory 420 by operation
Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 420 can mainly include
Program storage area and data storage area, wherein program storage area can application needed for storage program area, at least one function
(such as application, application of image player function of sound-playing function etc.) etc.;Data storage area can be stored to be made according to mobile phone
With the data (such as audio data, address list etc.) etc. created.In addition, memory 420 may include that high random access is deposited
Reservoir can also include nonvolatile memory, for example, at least a disk memory, flush memory device or other volatibility
Solid-state memory.
Input unit 430 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 400
And the related key signals input of function control.Specifically, input unit 430 may include touch panel 431 and other inputs
Equipment 432.Touch panel 431, alternatively referred to as touch screen collect touch operation (such as the user of user on it or nearby
Use the operation of any suitable object or attachment such as finger, stylus on touch panel 431 or near touch panel 431),
And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 431 may include touching inspection
Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation
Bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will
It is converted into contact coordinate, then gives processor 480, and can receive order that processor 480 is sent and be executed.In addition,
Touch panel 431 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface
Plate 431, input unit 430 can also include other input equipments 432.Specifically, other input equipments 432 may include but not
It is limited to one of physical keyboard, function key (such as volume control button, switch key etc.) etc. or a variety of.
Display unit 440 can be used for showing information input by user or be supplied to user information and mobile phone it is various
Menu.Display unit 440 may include display panel 441.In one embodiment, liquid crystal display (Liquid can be used
Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
To configure display panel 441.In one embodiment, touch panel 431 can cover display panel 441, when touch panel 431 is examined
After measuring touch operation on it or nearby, processor 480 is sent to determine the type of touch event, is followed by subsequent processing device
480 provide corresponding visual output according to the type of touch event on display panel 441.Although in Fig. 4, touch panel
431 and display panel 441 are the input and input function for realizing mobile phone as two independent components, but in certain implementations
In example, can be integrated by touch panel 431 and display panel 441 and that realizes mobile phone output and input function.
Mobile phone 400 may also include at least one sensor 450, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 441, and proximity sensor can close display panel when mobile phone is moved in one's ear
441 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions
The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture
Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity
Other sensors such as meter, thermometer, infrared sensor etc..
Voicefrequency circuit 440, loudspeaker 441 and microphone 442 can provide the audio interface between user and mobile phone.Audio-frequency electric
Electric signal after the audio data received conversion can be transferred to loudspeaker 441, be converted to sound by loudspeaker 441 by road 440
Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 442, is turned after being received by voicefrequency circuit 440
It is changed to audio data, then by after the processing of audio data output processor 480, another mobile phone can be sent to through RF circuit 410, or
Person exports audio data to memory 420 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 470
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 8 is shown
WiFi module 470, but it is understood that, and it is not belonging to must be configured into for mobile phone 400, it can according to need and omit.
Processor 480 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to
It crosses operation or executes the software program and/or module being stored in memory 420, and call and be stored in memory 420
Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles
Device 480 may include one or more processing units.In one embodiment, processor 480 can integrate application processor and modulation
Demodulation processor, wherein the main processing operation system of application processor, user interface and application etc.;Modem processor master
Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 480.
Mobile phone 400 further includes the power supply 490 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 480 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.
In one embodiment, mobile phone 400 can also include camera, bluetooth module etc..
In the embodiment of the present application, processor 480 included by the mobile device executes the calculating of storage on a memory
The step of WIFI control method in above-mentioned each embodiment is realized when machine program.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer
The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors
When, so that the step of processor executes WIFI control method in above-mentioned each embodiment.
A kind of computer program product comprising instruction, when run on a computer, so that computer execution is above-mentioned
The method that WIFI is controlled in each embodiment.
Any reference to memory, storage, database or other media used in this application may include non-volatile
And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled
Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory
(RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM
(SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM
(ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight
Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application
Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of WIFI control method characterized by comprising
The status information for obtaining application, determines the current state of the application according to the state information;
When the application type of the application is default application type, and the current state is that application enters state, generates and enable
Control information;
Information control mobile device, which is controlled, according to the enabling enters WIFI initiate mode.
2. the method according to claim 1, wherein the method also includes:
When the application type of the application is the default application type, and the current state is that state is exited in application, generate
Suspend mode controls information, controls the information control mobile device according to the suspend mode and enters WIFI dormant state.
3. method according to claim 1 or 2, which is characterized in that the default application type wants power consumption when being operation
It asks as power consumption lower than the first preset threshold, is application type of the delay duration less than the second preset threshold to delay requirement.
4. the method according to claim 1, wherein the method also includes:
Obtain the current electric quantity information of the mobile device;
When the mobile device is currently at WIFI initiate mode, if the corresponding current electric quantity of the current electric quantity information is low
In default power threshold, then suspend mode control information is generated;
Information is controlled according to the suspend mode, the mobile device is controlled and enters WIFI dormant state.
5. the method according to claim 1, wherein the method also includes:
Until the current state of the application is that state is exited in application, the WIFI initiate mode of the mobile device is kept.
6. the method according to claim 1, wherein the method also includes:
The control information that enables is written in the device node of kernel creation of the mobile device application layer of the application;
When the information that the kernel of the mobile device listens to the device node changes, read in the device node
The enabling controls information;
The kernel of the mobile device controls the information control mobile device according to the enabling and enters WIFI initiate mode.
7. a kind of WIFI control device characterized by comprising
Application state determining module determines working as the application for obtaining the status information of application according to the state information
Preceding state;
First generation module is default application type for the application type when the application, the current state be application into
When entering state, generates and enable control information;
WIFI enables module, enters WIFI initiate mode for controlling information control mobile device according to the enabling.
8. device according to claim 7, which is characterized in that described device further include:
Second generation module, is the default application type for the application type when the application, and the current state is to answer
When with exiting state, generating suspend mode and controlling information;
WIFI sleep block enters WIFI dormant state for controlling the information control mobile device according to the suspend mode.
9. a kind of mobile device, including memory and processor, computer program, the computer are stored in the memory
When program is executed by the processor, so that the processor executes the step such as method described in any one of claims 1 to 6
Suddenly.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
It realizes when being executed by processor such as the step of method described in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811558955.3A CN109511139B (en) | 2018-12-19 | 2018-12-19 | WIFI control method and device, mobile device and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811558955.3A CN109511139B (en) | 2018-12-19 | 2018-12-19 | WIFI control method and device, mobile device and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109511139A true CN109511139A (en) | 2019-03-22 |
CN109511139B CN109511139B (en) | 2023-01-03 |
Family
ID=65753745
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811558955.3A Active CN109511139B (en) | 2018-12-19 | 2018-12-19 | WIFI control method and device, mobile device and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109511139B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111163510A (en) * | 2019-12-27 | 2020-05-15 | Oppo广东移动通信有限公司 | Network control method, network control device, storage medium and electronic equipment |
WO2021031049A1 (en) | 2019-08-17 | 2021-02-25 | Zte Corporation | Signaling methods for reducing power consumption of wireless devices |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1618208A (en) * | 2001-11-27 | 2005-05-18 | 英特尔公司 | Device and method for intelligent wireless communication selection |
CN102622079A (en) * | 2012-02-25 | 2012-08-01 | 华为终端有限公司 | Sleep method, wakening method and mobile terminal device |
CN104333891A (en) * | 2014-10-30 | 2015-02-04 | 国家电网公司 | Low-power WiFi communication chip based on passive awakening and method thereof |
CN104601701A (en) * | 2015-01-16 | 2015-05-06 | 深圳市中兴物联科技有限公司 | Vehicle-mounted network equipment and method for realizing vehicle-mounted network equipment |
CN104991635A (en) * | 2015-07-27 | 2015-10-21 | 联想(北京)有限公司 | Electronic device and control method thereof |
US20150341724A1 (en) * | 2014-05-20 | 2015-11-26 | Gn Resound A/S | New method of wireless transmission of digital audio |
CN105657797A (en) * | 2015-08-26 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Power consumption control method and system of mobile terminal |
CN105677322A (en) * | 2015-12-29 | 2016-06-15 | 北京金山安全软件有限公司 | Night sleep message display method and device and electronic equipment |
WO2016197456A1 (en) * | 2015-06-09 | 2016-12-15 | 中兴通讯股份有限公司 | Method and device for controlling residential gateway |
CN106412344A (en) * | 2016-08-30 | 2017-02-15 | 上海卓易科技股份有限公司 | Method and device for reducing Bluetooth power consumption of bracelet |
CN106878562A (en) * | 2017-03-02 | 2017-06-20 | 东软集团股份有限公司 | Control the method and device of wifi functional switches |
CN107329559A (en) * | 2017-06-30 | 2017-11-07 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application control method, device, terminal and storage medium |
WO2017206870A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Sensor shutdown method and apparatus, storage medium, and electronic device |
CN107708190A (en) * | 2017-09-29 | 2018-02-16 | 努比亚技术有限公司 | Wi Fi control methods, mobile terminal and computer-readable recording medium |
CN107708191A (en) * | 2017-09-30 | 2018-02-16 | 北京小米移动软件有限公司 | Terminal control method, device and computer-readable recording medium |
CN108012027A (en) * | 2017-11-28 | 2018-05-08 | 北京小米移动软件有限公司 | The method and apparatus for managing application program |
CN108052196A (en) * | 2017-12-29 | 2018-05-18 | 北京元心科技有限公司 | Power consumption control method, device and terminal device |
CN108388414A (en) * | 2018-02-05 | 2018-08-10 | 广东欧珀移动通信有限公司 | Go out screen control method and device, computer readable storage medium, the terminal of terminal |
-
2018
- 2018-12-19 CN CN201811558955.3A patent/CN109511139B/en active Active
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1618208A (en) * | 2001-11-27 | 2005-05-18 | 英特尔公司 | Device and method for intelligent wireless communication selection |
CN102622079A (en) * | 2012-02-25 | 2012-08-01 | 华为终端有限公司 | Sleep method, wakening method and mobile terminal device |
US20150341724A1 (en) * | 2014-05-20 | 2015-11-26 | Gn Resound A/S | New method of wireless transmission of digital audio |
CN104333891A (en) * | 2014-10-30 | 2015-02-04 | 国家电网公司 | Low-power WiFi communication chip based on passive awakening and method thereof |
CN104601701A (en) * | 2015-01-16 | 2015-05-06 | 深圳市中兴物联科技有限公司 | Vehicle-mounted network equipment and method for realizing vehicle-mounted network equipment |
WO2016197456A1 (en) * | 2015-06-09 | 2016-12-15 | 中兴通讯股份有限公司 | Method and device for controlling residential gateway |
CN104991635A (en) * | 2015-07-27 | 2015-10-21 | 联想(北京)有限公司 | Electronic device and control method thereof |
CN105657797A (en) * | 2015-08-26 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Power consumption control method and system of mobile terminal |
CN105677322A (en) * | 2015-12-29 | 2016-06-15 | 北京金山安全软件有限公司 | Night sleep message display method and device and electronic equipment |
WO2017206870A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Sensor shutdown method and apparatus, storage medium, and electronic device |
CN106412344A (en) * | 2016-08-30 | 2017-02-15 | 上海卓易科技股份有限公司 | Method and device for reducing Bluetooth power consumption of bracelet |
CN106878562A (en) * | 2017-03-02 | 2017-06-20 | 东软集团股份有限公司 | Control the method and device of wifi functional switches |
CN107329559A (en) * | 2017-06-30 | 2017-11-07 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application control method, device, terminal and storage medium |
CN107708190A (en) * | 2017-09-29 | 2018-02-16 | 努比亚技术有限公司 | Wi Fi control methods, mobile terminal and computer-readable recording medium |
CN107708191A (en) * | 2017-09-30 | 2018-02-16 | 北京小米移动软件有限公司 | Terminal control method, device and computer-readable recording medium |
CN108012027A (en) * | 2017-11-28 | 2018-05-08 | 北京小米移动软件有限公司 | The method and apparatus for managing application program |
CN108052196A (en) * | 2017-12-29 | 2018-05-18 | 北京元心科技有限公司 | Power consumption control method, device and terminal device |
CN108388414A (en) * | 2018-02-05 | 2018-08-10 | 广东欧珀移动通信有限公司 | Go out screen control method and device, computer readable storage medium, the terminal of terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021031049A1 (en) | 2019-08-17 | 2021-02-25 | Zte Corporation | Signaling methods for reducing power consumption of wireless devices |
CN114258708A (en) * | 2019-08-17 | 2022-03-29 | 中兴通讯股份有限公司 | Signaling method for reducing power consumption of wireless devices |
CN114258708B (en) * | 2019-08-17 | 2023-12-29 | 中兴通讯股份有限公司 | Signaling method for reducing power consumption of wireless device |
CN111163510A (en) * | 2019-12-27 | 2020-05-15 | Oppo广东移动通信有限公司 | Network control method, network control device, storage medium and electronic equipment |
CN111163510B (en) * | 2019-12-27 | 2023-09-22 | Oppo广东移动通信有限公司 | Network control method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109511139B (en) | 2023-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104243671B (en) | Volume adjusting method, device and electronic equipment | |
JP6076501B2 (en) | Method, apparatus, facility, system, program, and recording medium for controlling on / off of wireless network | |
CN103473092B (en) | A kind of download the processing method of application, device and terminal unit | |
CN105005909A (en) | Method and device for predicting lost users | |
CN107277752B (en) | Bluetooth connecting method, device, computer equipment and computer readable storage medium | |
CN103699409B (en) | Awakening state switching-in method, device and system for electronic device | |
CN109144232A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN107391198B (en) | Method for scheduling task and device, computer readable storage medium, mobile terminal | |
CN103544456A (en) | Information processing method, information processing device and mobile terminal | |
CN110032321A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN109445917A (en) | Application processing method and device, electronic equipment, computer readable storage medium | |
CN108334345A (en) | Applied program processing method, device, readable storage medium storing program for executing and mobile terminal | |
CN103631502B (en) | Show content adjustment method, apparatus and electronic equipment | |
CN109669662A (en) | A kind of pronunciation inputting method, device, storage medium and mobile terminal | |
CN105631069B (en) | Smart machine control method and device | |
CN103546632A (en) | Method and device for alarm ringing of mobile terminal and mobile terminal | |
CN103607431A (en) | Mobile terminal resource processing method, apparatus and equipment thereof | |
CN109511139A (en) | WIFI control method, device, mobile device, computer readable storage medium | |
CN105721282B (en) | Message display method and device | |
CN107622234B (en) | Method and device for displaying budding face gift | |
CN106020893A (en) | Application installation method and device | |
CN109992360A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN109992309A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN108810274A (en) | Using startup method, apparatus, storage medium and the terminal of miscellaneous function | |
US20150070360A1 (en) | Method and mobile terminal for drawing sliding trace |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |