CN113596967A - WIFI dormancy control method and device for MIFI equipment, computer equipment and storage medium - Google Patents

WIFI dormancy control method and device for MIFI equipment, computer equipment and storage medium Download PDF

Info

Publication number
CN113596967A
CN113596967A CN202110819671.0A CN202110819671A CN113596967A CN 113596967 A CN113596967 A CN 113596967A CN 202110819671 A CN202110819671 A CN 202110819671A CN 113596967 A CN113596967 A CN 113596967A
Authority
CN
China
Prior art keywords
wifi module
mifi
wifi
equipment
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110819671.0A
Other languages
Chinese (zh)
Inventor
陈学凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wingtech Information Technology Co Ltd
Shanghai Wentai Information Technology Co Ltd
Original Assignee
Shanghai Wingtech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wingtech Information Technology Co Ltd filed Critical Shanghai Wingtech Information Technology Co Ltd
Priority to CN202110819671.0A priority Critical patent/CN113596967A/en
Publication of CN113596967A publication Critical patent/CN113596967A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application relates to the technical field of networks, and provides a WIFI dormancy control method and device for MIFI equipment, computer equipment and a storage medium. The method comprises the following steps: detecting whether a WIFI module of the MIFI equipment is connected with the terminal equipment; if not, counting down according to the first timing duration; if the connection request for connecting the WIFI module is not received before the first timed duration countdown is finished, controlling the WIFI module to enter a dormant state when the first timed duration countdown is finished; if a connection request for connecting the WIFI module is received before the first timed duration countdown is finished, the countdown is stopped, and the step of detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment is returned; when the WIFI module of the MIFI equipment is not needed, the WIFI module is automatically controlled to enter a dormant state, energy consumption can be reduced, and energy is saved.

Description

WIFI dormancy control method and device for MIFI equipment, computer equipment and storage medium
Technical Field
The present application relates to the field of network technologies, and in particular, to a WIFI sleep control method and apparatus for an MIFI device, a computer device, and a storage medium.
Background
WIFI (Wireless Fidelity) is a short-distance Wireless network transmission technology, and based on the WIFI technology, terminal devices such as mobile phones, tablets and computers can be connected with each other in a Wireless mode.
The MIFI (Mobile WIFI, Mobile hotspot) device is a portable wireless network extension device, and can access a wireless signal through an inserted SIM (Subscriber Identity Module) card and share the signal among a plurality of terminal devices.
After the existing MIFI device is powered on, a WIFI module on an AP (Access Point) side of the existing MIFI device is always in a working state (i.e., a high power consumption state), and the state of the WIFI module cannot be automatically switched according to actual needs. When the MIFI device is not connected to the external power supply, the electric quantity of the battery carried by the MIFI device is wasted under the condition that the WIFI module does not need to work.
Disclosure of Invention
In view of the above problems, embodiments of the present application are proposed to provide a WIFI sleep control method, apparatus, computer device and storage medium for an MIFI device that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present application discloses a WIFI sleep control method for an MIFI device, the method including:
detecting whether a WIFI module of the MIFI equipment is connected with terminal equipment;
if not, counting down according to the first timing duration;
if a connection request for connecting the WIFI module is not received before the first timed duration countdown is finished, controlling the WIFI module to enter a dormant state when the first timed duration countdown is finished;
and if the connection request for connecting the WIFI module is received before the first timed duration countdown is finished, stopping the countdown and returning to the step of detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment.
Optionally, after the detecting whether the WIFI module of the MIFI device is connected with the terminal device, the method further includes:
if the WIFI module is connected with the terminal equipment, detecting whether an effective data frame exists between the WIFI module and the terminal equipment;
if not, counting down according to a second timing duration;
if no valid data frame between the WIFI module and the terminal equipment is detected before the second timing duration countdown is finished, controlling the WIFI module to enter a dormant state when the second timing duration countdown is finished;
if the effective data frame between the WIFI module and the terminal equipment is detected before the countdown of the second timing duration is finished, the countdown is stopped, and the step of detecting whether the effective data frame exists between the WIFI module and the terminal equipment or not if the WIFI module is connected with the terminal equipment is returned.
Optionally, before the counting down according to the first timing length, the method further includes:
receiving a setting operation for a hibernation mechanism of the WIFI module;
and determining the first timing duration and the second timing duration according to the setting operation.
Optionally, after the controlling the WIFI module to enter the sleep state, the method further includes:
and displaying reminding information of the WIFI module entering the dormant state in a display screen associated with the MIFI equipment.
Optionally, after the controlling the WIFI module to enter the sleep state, the method further includes:
and when the starting condition meeting the WIFI module is met, controlling the WIFI module to be switched from the dormant state to the working state.
Optionally, the detecting whether the WIFI module of the MIFI device is connected to the terminal device includes:
determining preset terminal equipment;
and detecting whether the WIFI module of the MIFI equipment is connected with the preset terminal equipment.
Optionally, the detecting whether the WIFI module of the MIFI device is connected to the terminal device includes:
determining a power supply of the MIFI equipment;
and when the power supply supplies power to the battery, detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment.
The embodiment of the application provides a WIFI dormancy controlling means of MIFI equipment, the device includes:
the connection detection module is used for detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment or not;
the first timing module is used for counting down according to the first timing duration if the first timing module does not count down;
the first dormancy module is used for controlling the WIFI module to enter a dormant state when the first timed duration countdown is finished if a connection request for connecting the WIFI module is not received before the first timed duration countdown is finished;
and the first returning module is used for terminating countdown and returning to the connection detection module if a connection request for connecting the WIFI module is received before the countdown of the first timing duration is finished.
Optionally, the apparatus further comprises:
the data detection module is used for detecting whether an effective data frame exists between the WIFI module and the terminal equipment or not if the WIFI module is connected with the terminal equipment;
the second timing module is used for counting down according to the second timing duration if the first timing module does not exist;
the second dormancy module is used for controlling the WIFI module to enter a dormant state when the countdown of the second timing duration is finished if no valid data frame between the WIFI module and the terminal equipment is detected before the countdown of the second timing duration is finished;
and the second returning module is used for stopping countdown and returning to the data detection module if the effective data frame between the WIFI module and the terminal equipment is detected before the countdown of the second timing duration is finished.
Optionally, the apparatus further comprises:
the dormancy setting receiving module is used for receiving setting operation of a dormancy mechanism aiming at the WIFI module;
and the timing duration determining module is used for determining the first timing duration and the second duration according to the setting operation.
Optionally, the apparatus further comprises:
and the dormancy reminding module is used for displaying reminding information of the WIFI module entering the dormant state in a display screen associated with the MIFI equipment.
Optionally, the apparatus further comprises:
and the restarting module is used for controlling the WIFI module to switch from the dormant state to the working state when the starting condition of the WIFI module is met.
Optionally, the connection detection module includes:
the preset terminal determining module is used for determining preset terminal equipment;
and the preset terminal detection module is used for detecting whether the WIFI module of the MIFI equipment is connected with the preset terminal equipment.
Optionally, the connection detection module includes:
the power supply determining module is used for determining a power supply of the MIFI equipment;
and the detection module is used for detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment or not when the power supply supplies power to the battery.
The embodiment of the application provides computer equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize the steps of the WIFI dormancy control method of the MIFI equipment provided by any embodiment of the application.
The embodiment of the application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the WIFI sleep control method for an MIFI device provided in any embodiment of the application.
Compared with the background art, the embodiment of the application has the following advantages:
in the embodiment of the application, whether a WIFI module of the MIFI device is connected with a terminal device is detected; if not, counting down according to the first timing duration; if a connection request for connecting the WIFI module is not received before the first timed duration countdown is finished, controlling the WIFI module to enter a dormant state when the first timed duration countdown is finished; if a connection request for connecting the WIFI module is received before the first timed duration countdown is finished, stopping the countdown and returning to the step of detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment; when the WIFI module of the MIFI equipment is not needed, the WIFI module is automatically controlled to enter a dormant state, energy consumption can be reduced, and energy is saved.
Drawings
Fig. 1 is a schematic flowchart illustrating a procedure of a WIFI sleep control method of an MIFI device in an embodiment;
fig. 2 is a schematic flowchart illustrating a procedure of a WIFI sleep control method of an MIFI device in another embodiment;
fig. 3 is a schematic flowchart illustrating a procedure of a WIFI sleep control method of an MIFI device in a specific example;
fig. 4 is a block diagram illustrating a WIFI sleep control apparatus of an MIFI device in an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In one embodiment, as shown in fig. 1, a WIFI sleep control method for an MIFI device is provided. The method can be executed by a WIFI dormancy control device of the MIFI equipment, the device can be realized in a software and/or hardware mode, and the device can be integrated in the MIFI equipment to realize control over the state of a WIFI module of the MIFI equipment.
The MIFI equipment is a portable wireless network expansion device and integrates functions of a modem, a router and hot spot access. Specifically, when the MIFI device is inserted into the SIM card, the wireless signal from the mobile communication base station can be accessed through the built-in modem, and a wireless network hotspot is provided in a power-free scene, so that a plurality of terminal devices can share network connection. The terminal device may include, but is not limited to, a mobile phone, a tablet, a computer, a multimedia player, and the like, which support the WIFI function. In some cases, the terminal device may also include a device that does not support the WIFI function, for example, a computer without the WIFI function, and in this case, the MIFI device may be connected to the terminal device in a wired connection manner, so that the terminal device can access the internet through the MIFI device.
In this embodiment, the method may specifically include the following steps:
step 101, detecting whether a WIFI module of the MIFI device is connected with a terminal device.
In this embodiment, whether a user needs to use a WIFI module of an MIFI device is preliminarily determined by detecting whether the WIFI module of the MIFI device is connected with a terminal device; and controlling the state of the WIFI module of the MIFI equipment according to the detection result.
Specifically, the MIFI device in this embodiment may have different working mechanisms. Illustratively, the MIFI device may have a normally open mechanism and a sleep mechanism, and under the normally open mechanism, the WIFI module of the MIFI device is always in a working state; under the dormancy mechanism, when reaching the dormancy condition of WIFI module, the WIFI module can switch to the dormant state from operating condition. The power consumption of the WIFI module in the working state is higher than that of the WIFI module in the dormant state. It can be understood that when the WIFI module is in a working state, all modules related to providing the AP function in the MIFI device are kept on; when the WIFI module is in a dormant state, part or all of modules related to providing the AP function in the MIFI device are kept closed.
In an optional embodiment of the present application, an operating mechanism of the MIFI device is related to a power supply of the MIFI device, and therefore, detecting whether the WIFI module of the MIFI device is connected to the terminal device includes:
determining a power supply of the MIFI equipment;
when the power supply supplies power for the battery, whether the WIFI module of the MIFI device is connected with the terminal device is detected.
By determining the power supply of the MIFI equipment, when the power supply supplies power to the battery, the endurance problem of the MIFI equipment needs to be considered, so that a hibernation mechanism can be started, and the WIFI module is switched from a working state to a hibernation state when a hibernation condition meeting the WIFI module is detected subsequently. Correspondingly, when the power supply is external power supply, the endurance problem of the MIFI equipment does not need to be considered, so that a normally open mechanism can be started, and the WIFI service can be provided for the terminal equipment at any time.
According to the embodiment, different working mechanisms of the MIFI equipment can be set according to the characteristics of different power supplies of the MIFI equipment, so that the working mechanisms of the MIFI equipment are more suitable for user requirements, and the user use experience is improved.
In an optional embodiment of the application, the preset terminal device may be set for a hibernation mechanism, so that in the hibernation mechanism, only a case that the preset terminal device uses a WIFI module of an MIFI device is considered, and a case that other non-preset terminals use WIFI is ignored. Therefore, whether the WIFI module of the above-mentioned detection MIFI equipment is connected with terminal equipment can include:
determining preset terminal equipment;
whether the WIFI module of the MIFI equipment is connected with the preset terminal equipment is detected.
Specifically, preset target identification information of preset terminal equipment can be acquired to determine the preset terminal equipment, then identification information of terminal equipment connected with the WIFI module is acquired, and whether the preset terminal equipment exists in the terminal equipment connected with the WIFI module is determined so as to preliminarily judge whether the user needs to use the WIFI module of the MIFI equipment. And controlling the state of the WIFI module of the MIFI equipment according to the detection result.
And step 102, if not, counting down according to the first timing duration.
Step 103, if the connection request for connecting the WIFI module is not received before the first timed duration countdown is finished, controlling the WIFI module to enter a dormant state when the first timed duration countdown is finished.
When the WIFI module is not connected with the terminal equipment (or the preset terminal equipment), the WIFI module does not have a use requirement at the moment, and counting down is carried out according to the first time length. Before the first timing duration countdown is finished, a connection request for connecting the WIFI module by the terminal equipment (or the preset terminal equipment sends) is not received, and the WIFI module is controlled to enter a dormant state when the first timing duration countdown is finished; therefore, the energy consumption of the MIFI equipment is reduced, and the cruising ability is improved.
The first time duration can be considered as the transition time of the WIFI module entering the sleep state, so that the WIFI module is prevented from entering the sleep state when the terminal device and the WIFI module are disconnected transiently, and the use experience of a user is influenced.
In an optional embodiment of the present application, before counting down according to the first timing length, the counting may include:
receiving a setting operation aiming at a dormancy mechanism of a WIFI module;
and determining the first timing duration according to the setting operation.
In this embodiment, a setting operation of a user for a hibernation mechanism of a WIFI module may be received, and then a first timing duration may be determined according to a setting content corresponding to the setting operation.
Illustratively, when the MIFI device is started, a setting page of the hibernation mechanism may be displayed in a display screen associated with the MIFI device, so that a user may set parameters related to the hibernation mechanism of the MIFI device, including setting the first timing duration. The display screen associated with the MIFI device may be a display screen of the MIFI device itself. When the MIFI device is connected to a device such as a computer through a wired connection, the display screen associated with the MIFI device may be a display screen of the device such as the computer connected to the MIFI device through a wired connection.
And 104, if a connection request for connecting the WIFI module is received before the countdown of the first timing duration is finished, stopping the countdown, and returning to the step of detecting whether the WIFI module of the MIFI device is connected with the terminal device or not under the condition that the dormancy mechanism is started.
In this embodiment, before the first timed duration countdown is finished, a connection request for connecting the WIFI module to the terminal device (or sent by the preset terminal device) is received, which indicates that the WIFI module has a use requirement at this time, so that the countdown is terminated, the WIFI module does not enter the sleep state, and the step 101 is returned to continue the detection.
The embodiment of the application detects whether a WIFI module of the MIFI device is connected with the terminal device; if not, counting down according to the first timing duration; if the connection request for connecting the WIFI module is not received before the first timed duration countdown is finished, controlling the WIFI module to enter a dormant state when the first timed duration countdown is finished; if a connection request for connecting the WIFI module is received before the first timed duration countdown is finished, the countdown is stopped, and the step of detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment is returned; when the WIFI module of the MIFI equipment is not needed, the WIFI module is automatically controlled to enter a dormant state, energy consumption can be reduced, and energy is saved.
In another embodiment, as shown in fig. 2, a WIFI sleep control method for an MIFI device is provided. The method can be executed by a WIFI dormancy control device of the MIFI equipment, the device can be realized in a software and/or hardware mode, and the device can be integrated in the MIFI equipment to realize control over the state of a WIFI module of the MIFI equipment.
In this embodiment, the method may specifically include the following steps:
step 201, detecting whether a WIFI module of the MIFI device is connected with the terminal device.
The step 201 may specifically refer to the description of the step 101 above, and is not described herein again.
Step 202, if the WIFI module is connected with the terminal device, detecting whether an effective data frame exists between the WIFI module and the terminal device.
When the WIFI module is connected with the terminal equipment (or the preset terminal equipment), whether an effective data frame exists between the WIFI module and the terminal equipment (or the preset terminal equipment) can be detected. The valid data frame may be considered as a data frame sent by the terminal device to another terminal device (for example, a server) through the WIFI module after receiving the user operation, or a data frame returned by another terminal device (for example, the server) to the terminal device through the WIFI module for a received request sent by the terminal device.
Illustratively, when a user wants to watch a certain video online, the video can be selected in the terminal device, the terminal device sends a data frame of a playing request to the server after receiving a selection operation of the user for the video, the data frame is sent to the server through the WIFI module, and the data frame is an effective data frame.
And step 203, if the time does not exist, counting down according to the second timing duration.
If no effective data frame exists between the WIFI module and the terminal device (or the preset terminal device), it can be considered that the WIFI module does not have a use requirement at the moment, and countdown is performed according to the second timing duration. The second timing duration may be considered as the transition time of the WIFI module entering the sleep state.
In an optional embodiment of the present application, before counting down according to the first timing length, the counting may include:
receiving a setting operation aiming at a dormancy mechanism of a WIFI module;
and determining the second timing duration according to the setting operation.
In this embodiment, a setting operation of a user for a hibernation mechanism of the WIFI module may be received, and then the second timing duration may be determined according to a setting content corresponding to the setting operation.
It should be noted that, the user may set the first timing duration and the second timing duration at one time, that is, receive a setting operation for the hibernation mechanism of the WIFI module, and determine the first timing duration and the second timing duration according to the setting operation. The first timing duration and the second timing duration may be equal or unequal. Alternatively, when the first timing duration and the second timing duration are equal, the user may set only one timing duration.
It should be noted that, if the user does not set the hibernation mechanism of the WIFI module, the first timing duration and the second timing duration may be factory default values.
And 204, if no valid data frame between the WIFI module and the terminal equipment is detected before the second timed duration countdown is finished, controlling the WIFI module to enter a sleep state when the second timed duration countdown is finished.
In this embodiment, before the second timing duration countdown is finished, if no valid data frame between the WIFI module and the terminal device (or the preset terminal device) is detected, the WIFI module is controlled to enter the sleep state when the second timing duration countdown is finished; therefore, the energy consumption of the MIFI equipment is reduced, and the cruising ability is improved.
Step 205, if the valid data frame between the WIFI module and the terminal device is detected before the countdown of the second timing length is finished, the countdown is terminated, and if the WIFI module is connected with the terminal device, the step of detecting whether the valid data frame exists between the WIFI module and the terminal device is returned.
In this embodiment, before the countdown of the second timing length is finished, an effective data frame between the WIFI module and the terminal device (or the preset terminal device) is detected, which indicates that the WIFI module has a use requirement at this time, so that the countdown is terminated, the WIFI module does not enter the sleep state, and the step 103 is returned to continue the detection.
And step 206, if the WIFI module is not connected with the terminal equipment, counting down according to the first timing duration.
The step 206 may specifically refer to the description of the step 102, and is not described herein again.
Step 207, if the connection request for connecting the WIFI module is not received before the first timed duration countdown is finished, controlling the WIFI module to enter a sleep state when the first timed duration countdown is finished.
The step 207 may specifically refer to the description of the step 103 above, and is not described here again.
And 208, if the connection request for connecting the WIFI module is received before the first timed duration countdown is finished, stopping the countdown, and returning to the step of detecting whether the WIFI module of the MIFI device is connected with the terminal device.
The step 208 may specifically refer to the description of the step 104 above, and is not described here again.
The embodiment of the application detects whether a WIFI module of the MIFI device is connected with the terminal device; if the WIFI module is connected with the terminal equipment, detecting whether an effective data frame exists between the WIFI module and the terminal equipment; if not, counting down according to a second timing duration; if the effective data frame between the WIFI module and the terminal equipment is not detected before the second timing duration countdown is finished, controlling the WIFI module to enter a dormant state when the second timing duration countdown is finished; if the effective data frame between the WIFI module and the terminal equipment is detected before the countdown of the second timing duration is finished, the countdown is stopped, and if the WIFI module is connected with the terminal equipment, the step of detecting whether the effective data frame exists between the WIFI module and the terminal equipment is returned; if the WIFI module is not connected with the terminal equipment, counting down according to the first timing duration; if the connection request for connecting the WIFI module is not received before the first timed duration countdown is finished, controlling the WIFI module to enter a dormant state when the first timed duration countdown is finished; if a connection request for connecting the WIFI module is received before the first timed duration countdown is finished, the countdown is stopped, and the step of detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment is returned; when the WIFI module of the MIFI equipment is not needed, the WIFI module is automatically controlled to enter a dormant state, energy consumption can be reduced, and energy is saved.
Further, in an optional embodiment of the present application, after controlling the WIFI module to enter the sleep state, the method further includes:
and displaying the reminding information of the WIFI module entering the dormant state in a display screen associated with the MIFI equipment.
In this embodiment, when the WIFI module enters the hibernation state, the reminding information that the WIFI module enters the hibernation state can be displayed in the display screen associated with the MIFI device, so as to remind the user.
Further, in an optional embodiment of the present application, after controlling the WIFI module to enter the sleep state, the method further includes:
and when the starting condition meeting the WIFI module is met, controlling the WIFI module to be switched from the dormant state to the working state.
In this embodiment, a trigger operation for switching the WIFI module from the sleep state to the working state may be preset. After the WIFI module enters the dormant state, when the starting condition meeting the WIFI module is met, the WIFI module is controlled to be switched from the dormant state to the working state. Wherein, the start condition who accords with the WIFI module can have the multiple.
In an example, when a WIFI module starting key triggered by a user is received, the starting condition of the WIFI module is considered to be met, and the WIFI module is controlled to be switched from a sleep state to a working state.
In another example, when preset voice information triggering the WIFI module to start is received, the starting condition of the WIFI module is considered to be met, and the WIFI module is controlled to be switched from the sleep state to the working state.
In still another example, when a tapping operation for the MIFI device is received (e.g., double-tapping the back panel of the MIFI device), the start condition of the WIFI module is considered to be met, and the WIFI module is controlled to switch from the sleep state to the working state.
For convenience of understanding by those skilled in the art, the WIFI sleep control method of the MIFI device provided in the embodiment of the present application will be described in detail below with reference to the specific example shown in fig. 3.
As shown in fig. 3, after the MIFI device is powered on, the configuration of the sleep time of the WIFI module is received through an interactive interface UI related to the MIFI device, and the timing duration corresponding to the WIFI module is determined; the method comprises the steps that application layer software starts a WIFI dormancy timer, then a hardware detection line layer is started, a daemon thread starts to detect whether MIFI equipment is in a charging state or is connected to external equipment through a USB (universal serial bus) under the WIFI default starting state, namely whether the MIFI equipment is powered by an external power supply is judged, if yes, the WIFI dormancy timer is destroyed, and a WIFI module is continuously in a working state and does not conduct dormancy; if not, the AP of the MIFI device continuously scans external STA (Station) devices, and judges whether the STA devices are accessed to the MIFI device through the WIFI module within the time that the WIFI dormancy timer is not overtime. The AP of the MIFI device judges that no STA device accesses the AP through WIFI within the overtime time of the WIFI dormancy timer, the AP informs a WLAN (Wireless Local Area Network) driving layer to uninstall a drive of the WLAN through a message, the drive of the WLAN sends a netlink event to an API (Application Programming Interface) of the netlink, then the netlink sends a view message of the WLAN to a user side, so that QCMAP (data access point of Linux-based mobile phone of American high-pass (Qualcomm) company) can disable WLAN, the QCMAP closes the drive of the WLAN to send the message, and the WLAN finishes uninstalling, so that an uninstall is finished, and the WIFI module enters a dormancy state.
The AP of the MIFI equipment judges that STA equipment is accessed to the AP through WIFI equipment before the overtime moment of the timer, then the WIFI dormancy timer before the AP is destroyed, then whether the STA equipment loses the association or whether the WIFI is disconnected is judged in a callback function of WIFI dormancy, if so, the WIFI dormancy timer is started again, and if new equipment is accessed or the accessed equipment sends an effective data frame in the time that the WIFI dormancy timer is not overtime, the timer is destroyed again, and the WIFI dormancy callback function of the AP continues to judge; if no new device is accessed or no accessed device sends an effective data frame, the AP enters WIFI sleep countdown and judges whether the WIFI sleep timer of the AP of the MIFI device is overtime or not, the WLAN driver layer is notified through a Message that the drive of the WLAN can be unloaded, the drive of the WLAN sends a netlink EVENT to an API of the netlink, then the netlink Interface sends a service Message of the WLAN to the user side, so that the QCMAP can disable the WLAN, the QCMAP closes the WLAN and then sends a Message to the WLAN driver, the drive of the WLAN is unloaded, then the load of wlan.ko is completed, meanwhile, the EVENT (EVENT) is sent to a Modem (MODEM) through a QMI (Qualcommand Intersurface), and the MODEM is notified to enter an offline mode, so that the WIFI enters a sleep state.
It should be understood that although the steps in the flowcharts of fig. 1 and 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1 and 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In an embodiment, as shown in fig. 4, a WIFI sleep control apparatus for an MIFI device is provided, which may specifically include the following modules:
the connection detection module 401 is configured to detect whether a WIFI module of the MIFI device is connected with the terminal device;
a first timing module 402, configured to count down according to a first timing duration if the first timing duration is not the same as the first timing duration;
the first sleep module 403 is configured to, if a connection request for connecting the WIFI module is not received before the first timing duration countdown is finished, control the WIFI module to enter a sleep state when the first timing duration countdown is finished;
a first returning module 404, configured to terminate the countdown and return to the connection detecting module 401 if the connection request for connecting the WIFI module is received before the long countdown of the first timing is finished.
In one embodiment, the apparatus further comprises:
the data detection module is used for detecting whether an effective data frame exists between the WIFI module and the terminal equipment or not if the WIFI module is connected with the terminal equipment;
the second timing module is used for counting down according to the second timing duration if the first timing module does not exist;
the second dormancy module is used for controlling the WIFI module to enter a dormant state when the countdown of the second timing duration is finished if no effective data frame between the WIFI module and the terminal equipment is detected before the countdown of the second timing duration is finished;
and the second returning module is used for stopping countdown and returning to the data detection module if the effective data frame between the WIFI module and the terminal equipment is detected before the countdown of the second timing duration is finished.
In one embodiment, the apparatus further comprises:
the sleep setting receiving module is used for receiving setting operation of a sleep mechanism aiming at the WIFI module;
and the timing duration determining module is used for determining the first timing duration and the second duration according to the setting operation.
In one embodiment, the apparatus further comprises:
and the dormancy reminding module is used for displaying reminding information of entering the dormant state of the WIFI module in a display screen associated with the MIFI equipment.
In one embodiment, the apparatus further comprises:
and the restarting module is used for controlling the WIFI module to switch from the dormant state to the working state when the starting condition meeting the WIFI module is met.
In one embodiment, the connection detection module 401 includes:
the preset terminal determining module is used for determining preset terminal equipment;
and the preset terminal detection module is used for detecting whether the WIFI module of the MIFI equipment is connected with the preset terminal equipment.
In one embodiment, the connection detection module 401 includes:
the power supply determining module is used for determining a power supply of the MIFI equipment;
and the detection module is used for detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment or not when the power supply is used for supplying power to the battery.
For specific limitations of the WIFI sleep control apparatus of the MIFI device, reference may be made to the above limitations of the WIFI sleep control method of the MIFI device, which is not described herein again. All modules in the WIFI dormancy control device of the MIFI equipment can be completely or partially realized through software, hardware and a combination of the software and the hardware. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, Near Field Communication (NFC) or other technologies. The computer program is executed by a processor to realize a WIFI sleep control method of the MIFI device. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the WIFI sleep control apparatus of an MIFI device provided by the present application may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in fig. 5. The memory of the computer device may store various program modules constituting the WIFI sleep control apparatus of the MIFI device, such as a connection detection module 401, a first timing module 402, a first sleep module 403, and a first return module 404 shown in fig. 4. The computer program formed by the program modules enables the processor to execute the steps of the WIFI dormancy control method of the MIFI device of the embodiments of the present application described in the present specification.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor, the computer device being connected to an auxiliary device, the processor implementing the following steps when executing the computer program:
detecting whether a WIFI module of the MIFI equipment is connected with the terminal equipment;
if not, counting down according to the first timing duration;
if the connection request for connecting the WIFI module is not received before the first timed duration countdown is finished, controlling the WIFI module to enter a dormant state when the first timed duration countdown is finished;
and if the first timed duration countdown is finished, receiving a connection request for connecting the WIFI module, terminating the countdown, and returning to the step of detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment.
In one embodiment, after detecting whether the WIFI module of the MIFI device is connected with the terminal device, the method further includes:
if the WIFI module is connected with the terminal equipment, detecting whether an effective data frame exists between the WIFI module and the terminal equipment;
if not, counting down according to a second timing duration;
if the effective data frame between the WIFI module and the terminal equipment is not detected before the second timing duration countdown is finished, controlling the WIFI module to enter a dormant state when the second timing duration countdown is finished;
and if the effective data frame between the WIFI module and the terminal equipment is detected before the countdown of the second timing duration is finished, stopping the countdown, and returning to the step of detecting whether the effective data frame exists between the WIFI module and the terminal equipment if the WIFI module is connected with the terminal equipment.
In one embodiment, before counting down according to the first timing duration, the method further comprises:
receiving a setting operation aiming at a dormancy mechanism of a WIFI module;
and determining the first timing duration and the second timing duration according to the setting operation.
In one embodiment, after controlling the WIFI module to enter the sleep state, the method further includes:
and displaying the reminding information of the WIFI module entering the dormant state in a display screen associated with the MIFI equipment.
In one embodiment, after controlling the WIFI module to enter the sleep state, the method further includes:
and when the starting condition meeting the WIFI module is met, controlling the WIFI module to be switched from the dormant state to the working state.
In one embodiment, detecting whether the WIFI module of the MIFI device is connected with the terminal device includes:
determining preset terminal equipment;
whether the WIFI module of the MIFI equipment is connected with the preset terminal equipment is detected.
In one embodiment, detecting whether the WIFI module of the MIFI device is connected with the terminal device includes:
determining a power supply of the MIFI equipment;
when the power supply supplies power for the battery, whether the WIFI module of the MIFI device is connected with the terminal device is detected.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, the computer-readable storage medium being connected to an auxiliary device, the computer program, when executed by a processor, performing the steps of:
detecting whether a WIFI module of the MIFI equipment is connected with the terminal equipment;
if not, counting down according to the first timing duration;
if the connection request for connecting the WIFI module is not received before the first timed duration countdown is finished, controlling the WIFI module to enter a dormant state when the first timed duration countdown is finished;
and if the first timed duration countdown is finished, receiving a connection request for connecting the WIFI module, terminating the countdown, and returning to the step of detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment.
In one embodiment, after detecting whether the WIFI module of the MIFI device is connected with the terminal device, the method further includes:
if the WIFI module is connected with the terminal equipment, detecting whether an effective data frame exists between the WIFI module and the terminal equipment;
if not, counting down according to a second timing duration;
if the effective data frame between the WIFI module and the terminal equipment is not detected before the second timing duration countdown is finished, controlling the WIFI module to enter a dormant state when the second timing duration countdown is finished;
and if the effective data frame between the WIFI module and the terminal equipment is detected before the countdown of the second timing duration is finished, stopping the countdown, and returning to the step of detecting whether the effective data frame exists between the WIFI module and the terminal equipment if the WIFI module is connected with the terminal equipment.
In one embodiment, before counting down according to the first timing duration, the method further comprises:
receiving a setting operation aiming at a dormancy mechanism of a WIFI module;
and determining the first timing duration and the second timing duration according to the setting operation.
In one embodiment, after controlling the WIFI module to enter the sleep state, the method further includes:
and displaying the reminding information of the WIFI module entering the dormant state in a display screen associated with the MIFI equipment.
In one embodiment, after controlling the WIFI module to enter the sleep state, the method further includes:
and when the starting condition meeting the WIFI module is met, controlling the WIFI module to be switched from the dormant state to the working state.
In one embodiment, detecting whether the WIFI module of the MIFI device is connected with the terminal device includes:
determining preset terminal equipment;
whether the WIFI module of the MIFI equipment is connected with the preset terminal equipment is detected.
In one embodiment, detecting whether the WIFI module of the MIFI device is connected with the terminal device includes:
determining a power supply of the MIFI equipment;
when the power supply supplies power for the battery, whether the WIFI module of the MIFI device is connected with the terminal device is detected.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM is available in many forms, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), and the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A WIFI dormancy control method of an MIFI device is characterized by comprising the following steps:
detecting whether a WIFI module of the MIFI equipment is connected with terminal equipment;
if not, counting down according to the first timing duration;
if a connection request for connecting the WIFI module is not received before the first timed duration countdown is finished, controlling the WIFI module to enter a dormant state when the first timed duration countdown is finished;
and if the connection request for connecting the WIFI module is received before the first timed duration countdown is finished, stopping the countdown and returning to the step of detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment.
2. The method for controlling WIFI sleep of an MIFI device according to claim 1, wherein after the detecting whether the WIFI module of the MIFI device is connected with a terminal device, the method further comprises:
if the WIFI module is connected with the terminal equipment, detecting whether an effective data frame exists between the WIFI module and the terminal equipment;
if not, counting down according to a second timing duration;
if no valid data frame between the WIFI module and the terminal equipment is detected before the second timing duration countdown is finished, controlling the WIFI module to enter a dormant state when the second timing duration countdown is finished;
if the effective data frame between the WIFI module and the terminal equipment is detected before the countdown of the second timing duration is finished, the countdown is stopped, and the step of detecting whether the effective data frame exists between the WIFI module and the terminal equipment or not if the WIFI module is connected with the terminal equipment is returned.
3. The WIFI sleep control method of an MIFI device according to claim 2, wherein before the counting down according to the first timing duration, the method further comprises:
receiving a setting operation for a hibernation mechanism of the WIFI module;
and determining the first timing duration and the second timing duration according to the setting operation.
4. The WIFI sleep control method of the MIFI device according to claim 1 or 2, wherein after the controlling the WIFI module to enter a sleep state, the method further comprises:
and displaying reminding information of the WIFI module entering the dormant state in a display screen associated with the MIFI equipment.
5. The WIFI sleep control method of the MIFI device according to claim 1 or 2, wherein after the controlling the WIFI module to enter a sleep state, the method further comprises:
and when the starting condition meeting the WIFI module is met, controlling the WIFI module to be switched from the dormant state to the working state.
6. The method for controlling WIFI sleep of an MIFI device according to claim 1, wherein the detecting whether the WIFI module of the MIFI device is connected to a terminal device comprises:
determining preset terminal equipment;
and detecting whether the WIFI module of the MIFI equipment is connected with the preset terminal equipment.
7. The method for controlling WIFI sleep of an MIFI device according to claim 1, wherein the detecting whether the WIFI module of the MIFI device is connected to a terminal device comprises:
determining a power supply of the MIFI equipment;
and when the power supply supplies power to the battery, detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment.
8. A WIFI dormancy control apparatus of an MIFI device, the apparatus comprising:
the connection detection module is used for detecting whether the WIFI module of the MIFI equipment is connected with the terminal equipment or not;
the first timing module is used for counting down according to the first timing duration if the first timing module does not count down;
the first dormancy module is used for controlling the WIFI module to enter a dormant state when the first timed duration countdown is finished if a connection request for connecting the WIFI module is not received before the first timed duration countdown is finished;
and a first returning module, configured to terminate the countdown and return to the connection detection module 401 if a connection request for connecting the WIFI module is received before the countdown of the first timing duration is finished.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the WIFI sleep control method of an MIFI device of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the WIFI sleep control method of an MIFI device according to any of claims 1-7.
CN202110819671.0A 2021-07-20 2021-07-20 WIFI dormancy control method and device for MIFI equipment, computer equipment and storage medium Pending CN113596967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110819671.0A CN113596967A (en) 2021-07-20 2021-07-20 WIFI dormancy control method and device for MIFI equipment, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110819671.0A CN113596967A (en) 2021-07-20 2021-07-20 WIFI dormancy control method and device for MIFI equipment, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113596967A true CN113596967A (en) 2021-11-02

Family

ID=78248386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110819671.0A Pending CN113596967A (en) 2021-07-20 2021-07-20 WIFI dormancy control method and device for MIFI equipment, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113596967A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665840A (en) * 2022-12-28 2023-01-31 深圳市江元科技(集团)有限公司 WIFI connection method and device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015131361A1 (en) * 2014-03-05 2015-09-11 华为终端有限公司 Method for reducing power consumption of wifi access point, and wifi access point
WO2016180114A1 (en) * 2015-10-14 2016-11-17 中兴通讯股份有限公司 Method and apparatus for making hotspot of terminal sleep
CN106604375A (en) * 2016-12-14 2017-04-26 努比亚技术有限公司 Dormancy device and method
WO2021082577A1 (en) * 2019-10-28 2021-05-06 华为技术有限公司 Sleep control method for wireless access device, apparatus, medium, and system, and wireless access device
WO2021135413A1 (en) * 2019-12-30 2021-07-08 华为技术有限公司 Energy saving control method and related device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015131361A1 (en) * 2014-03-05 2015-09-11 华为终端有限公司 Method for reducing power consumption of wifi access point, and wifi access point
WO2016180114A1 (en) * 2015-10-14 2016-11-17 中兴通讯股份有限公司 Method and apparatus for making hotspot of terminal sleep
CN106604375A (en) * 2016-12-14 2017-04-26 努比亚技术有限公司 Dormancy device and method
WO2021082577A1 (en) * 2019-10-28 2021-05-06 华为技术有限公司 Sleep control method for wireless access device, apparatus, medium, and system, and wireless access device
WO2021135413A1 (en) * 2019-12-30 2021-07-08 华为技术有限公司 Energy saving control method and related device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665840A (en) * 2022-12-28 2023-01-31 深圳市江元科技(集团)有限公司 WIFI connection method and device and readable storage medium
CN115665840B (en) * 2022-12-28 2023-06-09 深圳市江元科技(集团)有限公司 WIFI connection method and device and readable storage medium

Similar Documents

Publication Publication Date Title
US11416061B2 (en) Terminal control method and apparatus, and terminal
US20170371678A1 (en) Method and apparatus for running game client
US11895364B2 (en) Bluetooth connection method and television
CN108595919B (en) Software activation method, device, system and storage medium
EP3663925B1 (en) Method for processing refreshing display abnormality, and terminal
CN112887927B (en) Voice fallback method and device and user equipment
CN110636598B (en) Terminal power saving control method and device, mobile terminal and storage medium
CN107844342A (en) Management-control method, device and the storage medium and mobile terminal of application program keep-alive
US9350852B1 (en) Intelligent auto screen lock
CN111866976B (en) Network switching method and device
CN115567901A (en) Method, device, equipment and storage medium for operating user identity identification card
CN113596967A (en) WIFI dormancy control method and device for MIFI equipment, computer equipment and storage medium
CN107710211A (en) Intelligent terminal system starts method, apparatus and intelligent terminal
CN107766218A (en) system optimization method, device, storage medium and terminal device
CN110602772A (en) WiFi module control method, control device, electronic device and storage medium
US20230371088A1 (en) Communication establishment method and apparatus and storage medium
JP2003008738A (en) Mobile terminal
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
US8761833B2 (en) Apparatus and method for power saving using predictive polling in a portable terminal
JP2004094577A (en) Information terminal equipment
CN113490284A (en) Scheduling request method and device, electronic equipment and storage medium
CN107943533B (en) Image acquisition method and device, storage medium and electronic equipment
TWI442805B (en) Method for controlling network connection of wireless network device and associated wireless network device
CN112543514A (en) Method and device for link recovery processing under narrowband Internet of things
CN112654031A (en) Method, device, medium and computer equipment for intelligent watch network management

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