WO2016037356A1 - 一种Wi-Fi模块控制方法及相关装置 - Google Patents

一种Wi-Fi模块控制方法及相关装置 Download PDF

Info

Publication number
WO2016037356A1
WO2016037356A1 PCT/CN2014/086413 CN2014086413W WO2016037356A1 WO 2016037356 A1 WO2016037356 A1 WO 2016037356A1 CN 2014086413 W CN2014086413 W CN 2014086413W WO 2016037356 A1 WO2016037356 A1 WO 2016037356A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
preset
module
target
time
Prior art date
Application number
PCT/CN2014/086413
Other languages
English (en)
French (fr)
Inventor
张钦亮
朱萸
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480056143.2A priority Critical patent/CN105637973A/zh
Priority to PCT/CN2014/086413 priority patent/WO2016037356A1/zh
Publication of WO2016037356A1 publication Critical patent/WO2016037356A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a Wi-Fi module control method and related apparatus.
  • Wi-Fi Wireless Fidelity
  • Wi-Fi module is a module that can provide a Wi-Fi signal to the terminal device.
  • the Wi-Fi device when the current time is automatically turning off the Wi-Fi time, regardless of whether the terminal device uses Wi-Fi to access the network at this time, the Wi-Fi device will turn off the Wi-Fi module, resulting in the terminal that is using Wi-Fi.
  • the device cannot use Wi-Fi; when the Wi-Fi device turns off the Wi-Fi module, and the current time has not reached the auto-start Wi-Fi time, if the user wants to connect to the Wi-Fi network through the terminal device, the user needs to manually turn on the Wi-Fi.
  • - Wi-Fi module for Fi devices Therefore, the above approach reduces the flexibility of Wi-Fi applications.
  • the embodiment of the invention discloses a Wi-Fi module control method and related device for improving the flexibility of the Wi-Fi application.
  • a first aspect of the embodiments of the present invention discloses a Wi-Fi module control method, including:
  • the Wi-Fi device determines whether the detected current condition is a preset condition
  • the Wi-Fi device turns off the Wi-Fi module
  • the preset condition includes any one of the following conditions:
  • the method further includes:
  • the Wi-Fi device receives a Wi-Fi module startup command sent by the terminal device through a non-Wi-Fi network;
  • the Wi-Fi device starts the Wi-Fi module according to the Wi-Fi module startup command.
  • a second aspect of the embodiments of the present invention discloses a Wi-Fi module control method, including:
  • the terminal device When the detected current event is a preset event, the terminal device sends a Wi-Fi module shutdown command to the target Wi-Fi device to trigger the target Wi-Fi device to close the Wi-Fi module;
  • the preset events include:
  • the terminal device is outside a preset range
  • the terminal device is in a preset range, and the current condition of the terminal device is a preset condition.
  • the preset condition includes at least one of the following conditions:
  • Wi-Fi module shutdown command for the terminal device input by the user
  • the screen closing time of the terminal device is greater than or equal to a second preset time
  • the user transitions from the awake state to the sleep state.
  • the method further includes:
  • the terminal device determines whether the detected current radio base station identifier is the same as the stored radio base station identifier. If the same, the terminal device is in a preset range. If not, the terminal device is outside the preset range.
  • the stored wireless base station identifier is a base station identifier detected when the terminal device is within a preset range; or
  • the terminal device determines whether the distance between the current satellite positioning location and the preset location of the terminal device is less than or equal to a first preset distance, and if the terminal device is less than or equal to the terminal device, the terminal device is in a preset range. If the terminal device is larger than the preset range, the preset position is a satellite positioning position when the terminal device is within a preset range; or
  • a third aspect of the embodiments of the present invention discloses a Wi-Fi module control method, including:
  • the terminal device When the detected current event is a preset event, and the Wi-Fi signal of the target Wi-Fi device is not detected, the terminal device sends the Wi-Fi module to the target Wi-Fi device through the non-Wi-Fi network. Initiating an instruction to trigger the target Wi-Fi device to start the Wi-Fi module;
  • the preset events include:
  • the terminal device is within a preset range
  • the terminal device is in a preset range, and the current condition of the terminal device meets a preset condition.
  • the preset condition includes at least one of the following conditions:
  • Wi-Fi module startup instruction input by the user for the terminal device
  • the screen opening time of the terminal device is greater than or equal to a fourth preset time
  • the target application of the terminal device is in an operating state
  • the user transitions from a sleep state to an awake state
  • the traffic of the non-Wi-Fi network used by the terminal device in the fifth preset time is greater than or equal to the second preset traffic.
  • the method further includes:
  • the terminal device determines whether the detected current radio base station identifier is the same as the stored radio base station identifier, and if the same, the terminal device is in a preset range, and the stored radio base station identifier is that the terminal device is in the preset The identity of the base station detected within the range; or
  • the terminal device determines whether the distance between the current satellite positioning location and the preset location of the terminal device is less than or equal to a first preset distance, and if the terminal device is less than or equal to the terminal device, the terminal device is in a preset range.
  • the preset position is a satellite positioning position when the terminal device is within a preset range; or
  • the terminal device determines whether the moving distance of the terminal device is less than or equal to a second preset distance in a sixth preset time, and if the terminal device is less than or equal to the terminal device, the terminal device is in a preset range, and the sixth pre-
  • the set time is a time interval at which the terminal device disconnects from the target Wi-Fi device to the current time.
  • a third possible implementation manner of the third aspect of the embodiment of the present invention, in combination with the third aspect of the embodiment of the present invention and any one of the first and the second possible implementation manners of the third aspect of the embodiment of the present invention sends a Wi-Fi module startup command to the target Wi-Fi device through a non-Wi-Fi network, to trigger the target Wi-Fi device to start the Wi-Fi module, including:
  • the terminal device directly sends a Wi-Fi module startup instruction to the target Wi-Fi device through a non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the terminal device sends a Wi-Fi module startup command to the target Wi-Fi device through a non-Wi-Fi network, to trigger the target Wi-Fi device to start the Wi-Fi module, including:
  • the terminal device sends a Wi-Fi module startup instruction to the server through the non-Wi-Fi network, and the Wi-Fi module startup instruction is sent by the server to the target Wi-Fi device to trigger the target Wi-Fi The device starts the Wi-Fi module.
  • a fourth aspect of the embodiments of the present invention discloses a Wi-Fi device, including:
  • a determining unit configured to determine whether the detected current condition is a preset condition when the current time is automatically turning off the Wi-Fi time, or when receiving the Wi-Fi module closing instruction sent by the terminal device;
  • a closing unit configured to: when the determination result of the determining unit is YES, turn off the Wi-Fi module of the Wi-Fi device;
  • the preset condition includes any one of the following conditions:
  • the Wi-Fi device further includes:
  • a receiving unit configured to receive a Wi-Fi module startup command sent by the terminal device through a non-Wi-Fi network
  • an activation unit configured to start a Wi-Fi module of the Wi-Fi device according to a Wi-Fi module startup instruction received by the receiving unit.
  • a fifth aspect of the embodiments of the present invention discloses a Wi-Fi device, including a memory and a processor, where the memory stores a set of program codes, and the processor is configured to invoke the program code stored in the memory to perform the following operations:
  • the preset condition includes any one of the following conditions:
  • the Wi-Fi device further includes:
  • the input device is configured to: after the processor turns off the Wi-Fi module of the Wi-Fi device, receive a Wi-Fi module startup command sent by the terminal device through the non-Wi-Fi network, and send the instruction to the processor;
  • the processor is further configured to invoke program code stored in the memory to perform the following operations:
  • the Wi-Fi module of the Wi-Fi device is activated according to the Wi-Fi module startup command.
  • a sixth aspect of the embodiments of the present invention discloses a terminal device, including:
  • a sending unit configured to send a Wi-Fi module shutdown command to the target Wi-Fi device when the detected current event is a preset event, to trigger the target Wi-Fi device to close the Wi-Fi module;
  • the preset events include:
  • the terminal device is outside a preset range
  • the terminal device is in a preset range, and the current condition of the terminal device is a preset condition.
  • the preset condition includes at least one of the following conditions:
  • Wi-Fi module shutdown command for the terminal device input by the user
  • the screen closing time of the terminal device is greater than or equal to a second preset time
  • the user transitions from the awake state to the sleep state.
  • the terminal device further includes:
  • a first determining unit configured to determine whether the detected current wireless base station identifier is the same as the stored wireless base station identifier, and when the determining result of the first determining unit is yes, the terminal device is in a preset range, When the determination result of the first determining unit is negative, the terminal device is outside the preset range, and the stored wireless base station identifier is the detected base station identifier when the terminal device is in the preset range; or
  • a second determining unit configured to determine whether a distance between the current satellite positioning location and the preset location of the terminal device is less than or equal to a first preset distance, and when the determining result of the second determining unit is yes, the terminal The device is in a preset range.
  • the determination result of the second determining unit is YES
  • the terminal device is out of a preset range, and the preset position is that the terminal device is within a preset range, and the satellite is located. Location; or
  • a third determining unit configured to determine whether the moving distance of the terminal device is less than or equal to a second preset distance in a third preset time, and when the determining result of the third determining unit is yes, the terminal device
  • the determination result of the third determining unit is YES
  • the terminal device is outside the preset range
  • the third preset time is the terminal device and the target Wi- The time interval during which the Fi device disconnects to the current time.
  • a seventh aspect of the embodiments of the present invention provides a terminal device, including:
  • the output device is configured to: when the detected current event is a preset event, send a Wi-Fi module shutdown command to the target Wi-Fi device to trigger the target Wi-Fi device to close the Wi-Fi module;
  • the preset events include:
  • the terminal device is outside a preset range
  • the terminal device is in a preset range, and the current condition of the terminal device is a preset condition.
  • the preset condition includes at least one of the following conditions:
  • Wi-Fi module shutdown command for the terminal device input by the user
  • the screen closing time of the terminal device is greater than or equal to a second preset time
  • the user transitions from the awake state to the sleep state.
  • the terminal device further includes processing And a memory, wherein the memory stores a set of program codes, and the processor is configured to call the program code stored in the memory to perform the following operations:
  • the wireless base station identifier is a base station identifier detected when the terminal device is within a preset range; or
  • the preset position is a satellite positioning position when the terminal device is within a preset range;
  • the third preset time is a time interval at which the terminal device disconnects from the target Wi-Fi device to the current time.
  • An eighth aspect of the embodiments of the present invention provides a terminal device, including:
  • a sending unit configured to send Wi-Fi to the target Wi-Fi device through a non-Wi-Fi network when the detected current event is a preset event and the Wi-Fi signal of the target Wi-Fi device is not detected a module startup instruction to trigger the target Wi-Fi device to start the Wi-Fi module;
  • the preset events include:
  • the terminal device is within a preset range
  • the terminal device is in a preset range, and the current condition of the terminal device meets a preset condition.
  • the preset condition includes at least one of the following conditions:
  • Wi-Fi module startup instruction input by the user for the terminal device
  • the screen opening time of the terminal device is greater than or equal to a fourth preset time
  • the target application of the terminal device is in an operating state
  • the user transitions from a sleep state to an awake state
  • the traffic of the non-Wi-Fi network used by the terminal device in the fifth preset time is greater than or equal to the second preset traffic.
  • the terminal device further includes:
  • a first determining unit configured to determine whether the detected current wireless base station identifier is the same as the stored wireless base station identifier, and when the determination result of the first determining unit is yes, the terminal device is in a preset range,
  • the stored wireless base station identifier is a base station identifier detected when the terminal device is within a preset range;
  • a second determining unit configured to determine whether a distance between the current satellite positioning location and the preset location of the terminal device is less than or equal to a first preset distance, and when the determining result of the second determining unit is yes, the terminal The device is in a preset range, where the preset position is a satellite positioning position when the terminal device is within a preset range; or
  • a third determining unit configured to determine whether a moving distance of the terminal device is less than or equal to a second preset distance in a sixth preset time, and when the determining result of the third determining unit is yes, the terminal device
  • the sixth preset time is a time interval in which the terminal device disconnects from the target Wi-Fi device to the current time.
  • the sending unit is specifically configured to send a Wi-Fi module startup instruction directly to the target Wi-Fi device through a non-Wi-Fi network, to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the sending unit is specifically configured to send a Wi-Fi module startup instruction to the server through the non-Wi-Fi network, and send, by the server, the Wi-Fi module startup instruction to the target Wi-Fi device, Triggering the target Wi-Fi device to launch the Wi-Fi module.
  • a ninth aspect of the embodiment of the present invention discloses a terminal device, including:
  • an output device configured to send the Wi-Fi to the target Wi-Fi device through the non-Wi-Fi network when the detected current event is a preset event and the Wi-Fi signal of the target Wi-Fi device is not detected a module startup instruction to trigger the target Wi-Fi device to start the Wi-Fi module;
  • the preset events include:
  • the terminal device is within a preset range
  • the terminal device is in a preset range, and the current condition of the terminal device meets a preset condition.
  • the preset condition includes at least one of the following conditions:
  • Wi-Fi module startup instruction input by the user for the terminal device
  • the screen opening time of the terminal device is greater than or equal to a fourth preset time
  • the target application of the terminal device is in an operating state
  • the user transitions from a sleep state to an awake state
  • the traffic of the non-Wi-Fi network used by the terminal device in the fifth preset time is greater than or equal to the second preset traffic.
  • the terminal device further includes a processor and a memory, where A set of program code is stored in the memory, and the processor is configured to call the program code stored in the processor to perform the following operations:
  • the Wi-Fi module startup command is directly transmitted to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • Wi-Fi module startup instruction Sending a Wi-Fi module startup instruction to the server through the non-Wi-Fi network, and the Wi-Fi module startup instruction is sent by the server to the target Wi-Fi device to trigger the target Wi-Fi device to start Wi- Fi module.
  • the Wi-Fi module when the Wi-Fi device arrives at the auto-shutdown time or receives the Wi-Fi module shutdown command sent by the terminal device, the Wi-Fi module does not immediately turn off the Wi-Fi module, but first determines the current detected. Whether the condition is a preset condition, the Wi-Fi module will not be turned off when the detected current condition is not the preset condition, and the Wi-Fi module is turned off until the detected current condition is a preset condition, thereby avoiding interruption of the terminal device. Access to the network via Wi-Fi increases the flexibility of Wi-Fi applications, the control capabilities of Wi-Fi devices, and the user experience.
  • FIG. 1 is a flowchart of a method for controlling a Wi-Fi module according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another Wi-Fi module control method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of still another Wi-Fi module control method according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of still another method for controlling a Wi-Fi module according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of still another Wi-Fi module control method according to an embodiment of the present invention.
  • FIG. 7 is a structural diagram of a Wi-Fi device according to an embodiment of the present invention.
  • FIG. 8 is a structural diagram of another Wi-Fi device according to an embodiment of the present invention.
  • FIG. 9 is a structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 10 is a structural diagram of another terminal device according to an embodiment of the present invention.
  • FIG. 11 is a structural diagram of still another terminal device according to an embodiment of the present invention.
  • FIG. 12 is a structural diagram of still another terminal device according to an embodiment of the present invention.
  • the embodiment of the invention discloses a Wi-Fi module control method and related device for improving the flexibility of the Wi-Fi application. The details are described below separately.
  • FIG. 1 is a flowchart of a method for controlling a Wi-Fi module according to an embodiment of the present invention.
  • the Wi-Fi module control method shown in FIG. 1 is applicable to a Wi-Fi device having a Wi-Fi module such as a home gateway or a router.
  • the Wi-Fi module control method shown in FIG. 1 is described from the perspective of a Wi-Fi device.
  • the Wi-Fi module control method may include the following steps.
  • the Wi-Fi device determines whether the detected current condition is a preset condition.
  • the user sets the Wi-Fi time to automatically turn off the Wi-Fi time and automatically starts the Wi-Fi time on the Wi-Fi device in advance, when the current time is automatically turning off the Wi-Fi time or receiving the Wi-Fi module sent by the terminal device.
  • the Wi-Fi device determines whether the detected current condition is a preset condition. among them, Preset conditions include any of the following conditions:
  • the preset condition is a pre-set condition for the non-terminal device to access the Wi-Fi device through the Wi-Fi signal of the Wi-Fi device; or the terminal device is connected to the Wi-Fi signal through the Wi-Fi device.
  • the device enters the Wi-Fi device, but the traffic used by the terminal device in the first preset time is less than the first preset traffic.
  • the method of automatically turning off the Wi-Fi time and automatically starting the Wi-Fi time on the Wi-Fi device may be: setting the login to the Wi-Fi device through the web, or performing the Wi-Fi device through the APP.
  • Settings For example, the content of the setting may be: setting 22:30-7:00 to turn off the Wi-Fi module time, that is, the sleep time turns off the Wi-Fi mode, wherein 22:30 is to automatically turn off the Wi-Fi time, 7:00 is The Wi-Fi time is automatically started; and/or 8:30-18:00 is the time to turn off the Wi-Fi module, that is, the Wi-Fi mode is turned off during the working hours, wherein 8:30 is automatically turned off the Wi-Fi time, 16:00 To automatically start Wi-Fi time.
  • the Wi-Fi device turns off the Wi-Fi module.
  • the Wi-Fi device if no terminal device accesses the Wi-Fi device through the Wi-Fi signal of the Wi-Fi device, it indicates that no user uses the Wi-Fi network, and the Wi-Fi device turns off the Wi-Fi module. If the terminal device accesses the Wi-Fi device through the Wi-Fi signal of the Wi-Fi device, but the traffic used by the terminal device in the first preset time is less than the first preset traffic, the user only opens the Wi device of the terminal device. The -Fi module does not access the network via Wi-Fi signals, such as browsing the web, downloading files, etc., so the Wi-Fi device turns off the Wi-Fi module.
  • the terminal device uses Wi-Fi of the Wi-Fi device and the traffic used in the first preset time is greater than or equal to the first preset traffic, the user is accessing the network through Wi-Fi, therefore, Wi The -Fi device does not turn off the Wi-Fi module until the terminal device uses less than the first preset traffic for the first preset time or when no terminal device accesses the Wi-Fi device through the Wi-Fi signal of the Wi-Fi device. Turn off the Wi-Fi module.
  • the first preset flow rate is a preset flow rate value, and the specific value is set as needed, which is not limited in this embodiment.
  • the first preset time is a preset time value, which may be 5 minutes or 10 minutes, and the specific value is set as needed, which is not limited in this embodiment.
  • the Wi-Fi device does not immediately turn off the Wi-Fi module when the Wi-Fi time is automatically turned off or when the Wi-Fi module shutdown command sent by the terminal device is received. Instead, it is first determined whether the detected current condition is a preset condition. When the detected current condition is not the preset condition, the Wi-Fi module will not be turned off, and the Wi-Fi module is turned off until the detected current condition is a preset condition.
  • the Fi module which avoids interrupting the access of the terminal device to the network via Wi-Fi, improves the flexibility of the Wi-Fi application, the control capability of the Wi-Fi device, and the user experience.
  • FIG. 2 is a flowchart of another Wi-Fi module control method according to an embodiment of the present invention.
  • the Wi-Fi module control method shown in FIG. 2 is applicable to a Wi-Fi device having a Wi-Fi module such as a home gateway or a router.
  • the Wi-Fi module control method shown in FIG. 2 is described from the perspective of a Wi-Fi device.
  • the Wi-Fi module control method may include the following steps.
  • the Wi-Fi device determines whether the detected current condition is a preset condition.
  • the user sets the Wi-Fi time to automatically turn off the Wi-Fi time and automatically starts the Wi-Fi time on the Wi-Fi device in advance, when the current time is automatically turning off the Wi-Fi time or receiving the Wi-Fi module sent by the terminal device.
  • the Wi-Fi device determines whether the detected current condition is a preset condition.
  • the preset condition includes any one of the following conditions:
  • the preset condition is a pre-set condition for the non-terminal device to access the Wi-Fi device through the Wi-Fi signal of the Wi-Fi device; or the terminal device is connected to the Wi-Fi signal through the Wi-Fi device.
  • the device enters the Wi-Fi device, but the traffic used by the terminal device in the first preset time is less than the first preset traffic.
  • the method of automatically turning off the Wi-Fi time and automatically starting the Wi-Fi time on the Wi-Fi device may be: setting the login to the Wi-Fi device through the web, or performing the Wi-Fi device through the APP.
  • Settings For example, the content of the setting may be: setting 22:30-7:00 to turn off the Wi-Fi module time, that is, the sleep time turns off the Wi-Fi mode, wherein 22:30 is to automatically turn off the Wi-Fi time, 7:00 is The Wi-Fi time is automatically started; and/or 8:30-18:00 is the time to turn off the Wi-Fi module, that is, the Wi-Fi mode is turned off during the working hours, wherein 8:30 is automatically turned off the Wi-Fi time, 16:00 To automatically start Wi-Fi time.
  • the Wi-Fi device turns off the Wi-Fi module.
  • the Wi-Fi device if no terminal device accesses the Wi-Fi device through the Wi-Fi signal of the Wi-Fi device, Indicates that no user uses the Wi-Fi network and the Wi-Fi device turns off the Wi-Fi module. If the terminal device accesses the Wi-Fi device through the Wi-Fi signal of the Wi-Fi device, but the traffic used by the terminal device in the first preset time is less than the first preset traffic, the user only opens the Wi device of the terminal device. -Fi module, but does not access the network via Wi-Fi, such as playing video, downloading files, etc., so the Wi-Fi device turns off the Wi-Fi module.
  • the terminal device uses Wi-Fi of the Wi-Fi device and the traffic used in the first preset time is greater than or equal to the first preset traffic, the user is accessing the network through Wi-Fi, therefore, Wi The -Fi device does not turn off the Wi-Fi module until the terminal device uses less than the first preset traffic for the first preset time or when no terminal device accesses the Wi-Fi device through the Wi-Fi signal of the Wi-Fi device. Turn off the Wi-Fi module.
  • the first preset flow rate is a preset flow rate value, and the specific value is set as needed, which is not limited in this embodiment.
  • the first preset time is a preset time value, which may be 5 minutes or 10 minutes, and the specific value is set as needed, which is not limited in this embodiment.
  • the Wi-Fi device receives a Wi-Fi module startup command sent by the terminal device through the non-Wi-Fi network.
  • non-Wi-Fi networks are networks other than Wi-Fi networks, including mobile communication networks, such as China Unicom's network used by China Unicom's mobile phones, China Mobile's mobile phone used by China Mobile's mobile phones, and China's telecom network used by China Telecom's mobile phones. .
  • the Wi-Fi device starts the Wi-Fi module according to the Wi-Fi module startup command.
  • the Wi-Fi device determines the terminal device by using the identifier of the terminal device carried by the Wi-Fi module startup command and/or by using the user account and password. Whether it is a legal terminal device. If the terminal device is a legal terminal device, the Wi-Fi module is started. If the terminal device is an illegal terminal device, the Wi-Fi module is not started.
  • the Wi-Fi module startup command is received when the Wi-Fi device is in the working time, the Wi-Fi module startup command is received, and after the Wi-Fi module is started, the Wi-Fi task is cancelled; if Wi-Fi is in the Wi-Fi module; When the Fi device is in the sleep time to turn off the Wi-Fi mode, the Wi-Fi module startup command is received, and after the Wi-Fi module is started, steps S101-S102 are repeated.
  • the Wi-Fi device automatically turns off the Wi-Fi time to When the Wi-Fi module shutdown command sent by the terminal device is received or received, the Wi-Fi module is not immediately turned off, but the current condition detected is determined as a preset condition, and the current condition detected is not a preset.
  • the Wi-Fi module will not be turned off when the condition is met, and the Wi-Fi module will be turned off until the current condition is detected as a preset condition, thereby avoiding interruption of the terminal device accessing the network via Wi-Fi; in addition, after the Wi-Fi module is turned off, Before the auto-start Wi-Fi time is reached, when a terminal device sends a Wi-Fi module startup command to the Wi-Fi device, and the terminal device is a legitimate terminal device, the Wi-Fi module is activated, so that the terminal device passes the Wi-Fi Fi access to the network. Therefore, the flexibility of the Wi-Fi application, the control capability of the Wi-Fi device, and the user experience are improved.
  • FIG. 3 is a flowchart of still another method for controlling a Wi-Fi module according to an embodiment of the present invention.
  • the Wi-Fi module control method shown in FIG. 3 is applicable to a terminal device having a Wi-Fi module such as a mobile phone, a tablet computer, or a notebook computer.
  • the Wi-Fi module control method shown in FIG. 3 is described from the perspective of a terminal device. As shown in FIG. 3, the Wi-Fi module control method may include the following steps.
  • the terminal device sends a Wi-Fi module shutdown command to the target Wi-Fi device to trigger the target Wi-Fi device to shut down the Wi-Fi module.
  • the terminal device when the current event detected by the terminal device is a preset event, the terminal device generates a Wi-Fi module shutdown command for the target Wi-Fi device, and sends a Wi-Fi module shutdown command to the target Wi-
  • the Fi device saves power by triggering the target Wi-Fi device to turn off the Wi-Fi module.
  • the preset events include:
  • the terminal device is outside the preset range; or
  • the terminal device is in a preset range, and the current condition of the terminal device is a preset condition.
  • the preset condition is that the terminal device does not need to use the Wi-Fi network, and may include at least one of the following conditions:
  • Wi-Fi module shutdown command for the terminal device input by the user
  • the screen closing time of the terminal device is greater than or equal to the second preset time
  • the user transitions from the awake state to the sleep state.
  • Wi-Fi for Wi-Fi devices will generate a Wi-Fi module shutdown command for the target Wi-Fi device and send the Wi-Fi module shutdown command to the target Wi-Fi device over the non-Wi-Fi network to trigger the target
  • the Wi-Fi device turns off the Wi-Fi module.
  • Non-Wi-Fi networks are networks other than Wi-Fi networks, including mobile communication networks, such as China Unicom's network used by China Unicom's mobile phones, China Mobile's mobile phone used by China Mobile's mobile phones, and China's telecom network used by China Telecom's mobile phones.
  • the terminal device when it is detected that the terminal device is in the preset range, and the user inputs a Wi-Fi module shutdown command for the terminal device, it indicates that the user does not need to use the Wi-Fi network, and the terminal device generates the target Wi- The Fi device's Wi-Fi module turns off the command and sends the Wi-Fi module off command to the target Wi-Fi device over the Wi-Fi network to trigger the target Wi-Fi device to turn off the Wi-Fi module.
  • the terminal device may generate the target Wi-Fi device.
  • the Wi-Fi module closes the command and sends a Wi-Fi module shutdown command to the target Wi-Fi device over the Wi-Fi network to trigger the target Wi-Fi device to turn off the Wi-Fi module.
  • the terminal device when it is detected that the terminal device is in the preset range, and the user transitions from the awake state to the sleep state, it indicates that the user may not use the terminal device, and the terminal device may generate a Wi-Fi module for the target Wi-Fi device.
  • the instruction is turned off, and the Wi-Fi module shutdown command is sent to the target Wi-Fi device through the Wi-Fi network to trigger the target Wi-Fi device to turn off the Wi-Fi module.
  • the device can be detected by the wearable device, and the message can be sent to the terminal device.
  • the wearable device can be an electronic device in a user's common product such as a wristband or a glasses.
  • the Wi-Fi module when the current event detected by the terminal device is a preset event, a Wi-Fi module shutdown command is sent to the target Wi-Fi device to trigger the target Wi-Fi device to be turned off.
  • the Wi-Fi module therefore, can improve the control capabilities of the terminal device and save power.
  • FIG. 4 is a flowchart of still another method for controlling a Wi-Fi module according to an embodiment of the present invention.
  • the Wi-Fi module control method shown in FIG. 4 is applicable to a terminal device having a Wi-Fi module such as a mobile phone, a tablet computer, or a notebook computer.
  • the Wi-Fi module control method shown in FIG. 4 is described from the perspective of the terminal device.
  • the Wi-Fi module control method may include the following steps.
  • the terminal device determines whether the terminal device is detected to be within a preset range.
  • determining whether the terminal device is in the preset range is specifically determined as follows:
  • the terminal device determines whether the detected current radio base station identifier is the same as the stored radio base station identifier. If the same, the terminal device is in the preset range. If not, the terminal device is outside the preset range, and the stored radio base station identifier is The base station identity detected when the terminal device is within the preset range; or
  • the terminal device determines whether the distance between the current satellite positioning location and the preset location of the terminal device is less than or equal to the first preset distance. If the terminal device is less than or equal to, the terminal device is in the preset range. If the terminal device is greater than, the terminal device is in the preset range. In addition, the preset position is the satellite positioning position when the terminal device is within the preset range; or
  • the terminal device determines whether the moving distance of the terminal device is less than or equal to the second preset distance in the third preset time. If the terminal device is less than or equal to, the terminal device is in the preset range. If the terminal device is greater than, the terminal device is in the preset range.
  • the third preset time is a time interval at which the terminal device disconnects from the target Wi-Fi device to the current time.
  • the wireless base station is a device capable of transmitting a wireless signal
  • the wireless base station may be a base station in a mobile communication network, or a device capable of transmitting a Bluetooth signal, or an iBeacon base station transmitting a Bluetooth iBeacon signal, or capable of transmitting a Wi -Fi device, or RFID (Radio Frequency Identification) tag.
  • the moving distance of the terminal device may be calculated by using a gyroscope on the terminal device, and the terminal device disconnecting from the target Wi-Fi device may disconnect the terminal device actively from the target Wi-Fi device, such as the user is turned off.
  • the Wi-Fi module on the terminal device can also disconnect the Wi-Fi signal of the Wi-Fi device if the terminal device cannot detect it.
  • the preset range is the coverage of the target Wi-Fi device, that is, within the range, when the Wi-Fi module of the target Wi-Fi device is running, the terminal device can detect the target of the target Wi-Fi device. Wi-Fi signal.
  • the terminal device If the terminal device is outside the preset range, or the terminal device is in the preset range, and the current condition of the terminal device is a preset condition, the terminal device sends a Wi-Fi module shutdown command to the target Wi-Fi device to trigger The target Wi-Fi device turns off the Wi-Fi module.
  • the terminal device when the terminal device is outside the preset range, or the terminal device is in the preset range and the current condition of the terminal device is a preset condition, the terminal device generates a Wi-Fi module for the target Wi-Fi device.
  • the instruction is turned off and a Wi-Fi module shutdown command is sent to the target Wi-Fi device to trigger the target Wi-Fi device to turn off the Wi-Fi module, thereby conserving power.
  • the preset condition includes at least one of the following conditions:
  • Wi-Fi module shutdown command for the terminal device input by the user
  • the screen closing time of the terminal device is greater than or equal to the second preset time
  • the user transitions from the awake state to the sleep state.
  • the terminal device in the process that the distance between the terminal device and the target Wi-Fi device is shortened and long, that is, the terminal device is away from the preset range, when the terminal device moves from being within the preset range to being outside the preset range.
  • the terminal device will not be in the coverage of the target Wi-Fi device, the terminal device will be unable to use the Wi-Fi of the target Wi-Fi device, and the Wi-Fi module shutdown command for the target Wi-Fi device will be generated, and the Wi-Fi will be generated.
  • the Fi module shutdown command is sent to the target Wi-Fi device over a non-Wi-Fi network to trigger the target Wi-Fi device to turn off the Wi-Fi module.
  • non-Wi-Fi networks are networks other than Wi-Fi networks, including mobile communication networks, such as China Unicom's network used by China Unicom's mobile phones, China Mobile's mobile phone used by China Mobile's mobile phones, and China's telecom network used by China Telecom's mobile phones. .
  • the terminal device when it is detected that the terminal device is in the preset range, and the user inputs a Wi-Fi module shutdown command for the terminal device, it indicates that the user does not need to use the Wi-Fi network, and the terminal device generates the target Wi- The Fi device's Wi-Fi module turns off the command and sends the Wi-Fi module off command to the target Wi-Fi device over the Wi-Fi network to trigger the target Wi-Fi device to turn off the Wi-Fi module.
  • the terminal device may generate the target Wi-Fi device.
  • the Wi-Fi module closes the command and sends a Wi-Fi module shutdown command to the target Wi-Fi device over the Wi-Fi network to trigger the target Wi-Fi device to turn off the Wi-Fi module.
  • the terminal device when it is detected that the terminal device is in the preset range, and the user transitions from the awake state to the sleep state, it indicates that the user may not use the terminal device, and the terminal device may generate a Wi-Fi module for the target Wi-Fi device.
  • the instruction is turned off, and the Wi-Fi module shutdown command is sent to the target Wi-Fi device through the Wi-Fi network to trigger the target Wi-Fi device to turn off the Wi-Fi module.
  • the wearable device can detect whether the user is in an awake state, and send the message to the terminal device, where the wearable device
  • the device can be an electronic device in a user's usual supplies such as a wristband or glasses.
  • a Wi-Fi module shutdown command is sent to the target Wi-Fi device to trigger the target Wi-Fi device to be turned off.
  • the Wi-Fi module therefore, can improve the control capabilities of the terminal device and save power.
  • FIG. 5 is a flowchart of still another method for controlling a Wi-Fi module according to an embodiment of the present invention.
  • the Wi-Fi module control method shown in FIG. 5 is applicable to a terminal device having a Wi-Fi module such as a mobile phone, a tablet computer, or a notebook computer.
  • the Wi-Fi module control method shown in FIG. 5 is described from the perspective of the terminal device.
  • the Wi-Fi module control method may include the following steps.
  • the terminal device sends a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network. To trigger the target Wi-Fi device to start the Wi-Fi module.
  • the method for detecting a Wi-Fi signal of a target Wi-Fi device includes: pre-configuring a Wi-Fi device as a target Wi-Fi device on the terminal device, if the target device has configured the target Wi-Fi device The access password, or the terminal device has established a Wi-Fi connection with the target Wi-Fi device, and when the Wi-Fi module of the terminal device is activated, detecting whether the Wi-Fi signal of the target Wi-Fi device can be received If it is not received, it is considered that the Wi-Fi signal of the target Wi-Fi device is not detected, and if it can be received, it is considered that the Wi-Fi signal of the target Wi-Fi device can be detected.
  • the Wi-Fi is sent to the target Wi-Fi device through the non-Wi-Fi network.
  • the module initiates an instruction to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the preset events include:
  • the terminal device is within a preset range
  • the terminal device is in the preset range, and the current condition of the terminal device satisfies the preset condition.
  • the preset condition is a condition that the terminal device needs to use the Wi-Fi network, and may include at least one of the following conditions:
  • Wi-Fi module startup instruction for the terminal device input by the user
  • the screen opening time of the terminal device is greater than or equal to the fourth preset time
  • the target application of the terminal device is in the running state
  • the user transitions from a sleep state to an awake state
  • the traffic of the non-Wi-Fi network used by the terminal device in the fifth preset time is greater than or equal to the second preset traffic.
  • the account when the user uses the target Wi-Fi device for the first time through the terminal device, the account, the domain name, the URI, the URL, the IP address, the name, and the like of the target Wi-Fi device are first set on the terminal device, so as to target the target. Wi-Fi devices are identified.
  • the non-Wi-Fi network is a network other than the Wi-Fi network, including a mobile communication network, such as the China Unicom network used by the China Unicom mobile phone, the China Mobile network used by the China Mobile phone, and the China Telecom mobile phone used in China. Telecommunications network, etc.
  • the terminal device when the terminal device is in the preset range, it indicates that the network needs to be accessed through Wi-Fi, and therefore, a Wi-Fi module startup command for the target Wi-Fi device is generated and sent to the target Wi through the non-Wi-Fi network. -Fi device to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the preset range is the coverage of the target Wi-Fi device, that is, within the range, when the Wi-Fi module of the target Wi-Fi device is running, the terminal device can detect the target Wi-Fi of the target Wi-Fi device. signal.
  • the terminal device when the terminal device is in the preset range, and detecting a Wi-Fi module startup instruction input by the user for the terminal device, indicating that the user wants to access the network through Wi-Fi, therefore, generating a target Wi-Fi device
  • the Wi-Fi module initiates the command and sends it to the target Wi-Fi device over a non-Wi-Fi network to trigger the target Wi-Fi device to boot the Wi-Fi module.
  • the terminal device when the terminal device is in the preset range, and the screen opening time of the terminal device is greater than or equal to the fourth preset time, indicating that the network needs to be accessed through Wi-Fi, therefore, generating Wi for the target Wi-Fi device
  • the -Fi module initiates the command and sends it to the target Wi-Fi device over a non-Wi-Fi network to trigger the target Wi-Fi device to boot the Wi-Fi module.
  • the target application when the terminal device is in the preset range, and the target application of the terminal device is in the running state, indicating that the network needs to be accessed through Wi-Fi, therefore, generating a Wi-Fi module startup instruction for the target Wi-Fi device And sending to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the target application can be a relatively expensive application, such as a video playback application.
  • the terminal device when the terminal device is in the preset range, and the user transitions from the sleep state to the awake state, it indicates that the network needs to be accessed through Wi-Fi, and therefore, a Wi-Fi module startup command for the target Wi-Fi device is generated and Send to the target Wi-Fi device over a non-Wi-Fi network to trigger the target Wi-Fi device to boot Wi-Fi module.
  • the device can be detected by the wearable device, and the message can be sent to the terminal device.
  • the wearable device can be an electronic device in a user's common product such as a wristband or a glasses.
  • a Wi-Fi module startup command for the target Wi-Fi device is generated and transmitted to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the terminal device sends a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module, specifically:
  • the terminal device directly transmits a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the terminal device may directly send a Wi-Fi module startup instruction to the target Wi-Fi device through the data channel of the mobile communication network, to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the terminal device sends a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module, specifically:
  • the terminal device sends a Wi-Fi module startup command to the server through the non-Wi-Fi network, and the server sends a Wi-Fi module startup command to the target Wi-Fi device to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the terminal device may send a Wi-Fi module startup instruction to the server through the data channel of the mobile communication network, and the server sends a Wi-Fi module startup instruction to the target Wi-Fi device to trigger the target Wi-Fi device to start the Wi. -Fi module; or send a text message to the server, the message carries the Wi-Fi module startup command of the target Wi-Fi device, and the server sends a Wi-Fi module startup command to the target Wi-Fi device to trigger the target Wi-Fi device to start Wi-Fi module.
  • the terminal device after the terminal device sends the Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network, the terminal device receives a response message that the Wi-Fi module is started by the target Wi-Fi device, indicating that The terminal device can access the network using the Wi-Fi transmission of the target Wi-Fi device.
  • the terminal device sends a Wi-Fi module startup command to the target Wi-Fi device, and the terminal device may directly send the Wi-Fi module startup command to the target Wi-Fi device, or may first send the Wi-Fi module startup command to the cloud.
  • the server sends the Wi-Fi module startup command to the target Wi-Fi device by the cloud server, which is not limited in this embodiment.
  • the terminal device When the terminal device sends the Wi-Fi module startup command directly to the target Wi-Fi device, the terminal Whether the device is a legitimate terminal device is authenticated by the target Wi-Fi device; when the terminal device sends the Wi-Fi module startup command to the cloud server first, the cloud server sends the Wi-Fi module startup command to the target Wi-Fi.
  • the terminal device When the device is a device, the terminal device is a legitimate terminal device that is authenticated by the cloud server.
  • the Wi-Fi device turns off the Wi-Fi module, and the automatic start Wi-Fi time does not arrive, when the detected current event is a preset event, and is not detected.
  • the terminal device sends a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module, therefore, Improved control of terminal devices, flexibility of Wi-Fi applications, and user experience.
  • FIG. 6 is a flowchart of still another method for controlling a Wi-Fi module according to an embodiment of the present invention.
  • the Wi-Fi module control method shown in FIG. 6 is applicable to a terminal device having a Wi-Fi module such as a mobile phone, a tablet computer, or a notebook computer.
  • the Wi-Fi module control method shown in Fig. 6 is described from the perspective of the terminal device. As shown in FIG. 6, the Wi-Fi module control method may include the following steps.
  • the terminal device determines whether the terminal device is detected to be within a preset range.
  • the manner in which the terminal device determines whether the terminal device is in the preset range is specifically:
  • the terminal device determines whether the detected current radio base station identifier is the same as the stored radio base station identifier. If the same, the terminal device is in the preset range. If not, the terminal device is outside the preset range, and the stored radio base station identifier is The base station identity detected when the terminal device is within the preset range; or
  • the terminal device determines whether the distance between the current satellite positioning location and the preset location of the terminal device is less than or equal to the first preset distance. If the terminal device is less than or equal to, the terminal device is in the preset range. If the terminal device is greater than, the terminal device is in the preset range. In addition, the preset position is the satellite positioning position when the terminal device is within the preset range; or
  • the terminal device determines whether the moving distance of the terminal device is less than or equal to the second preset distance in the sixth preset time. If the terminal device is less than or equal to, the terminal device is in the preset range, and if it is greater than, the terminal device is in the preset range.
  • the sixth preset time is a time interval at which the terminal device disconnects from the target Wi-Fi device to the current time.
  • the wireless base station is a device capable of transmitting a wireless signal
  • the wireless base station may be a base station in a mobile communication network, or a device capable of transmitting a Bluetooth signal, or an iBeacon base station transmitting a Bluetooth iBeacon signal, or capable of transmitting a Wi -Fi device, or RFID (Radio Frequency Identification) tag.
  • the moving distance of the terminal device may be calculated by using a gyroscope on the terminal device, and the terminal device disconnecting from the target Wi-Fi device may disconnect the terminal device actively from the target Wi-Fi device, such as the user is turned off.
  • the Wi-Fi module on the terminal device can also disconnect the Wi-Fi device of the Wi-Fi device if the terminal device cannot detect it.
  • the terminal device If the terminal device is in the preset range but the Wi-Fi signal of the target Wi-Fi device is not detected, or the terminal device is in the preset range, the current condition of the terminal device meets the preset condition but the target Wi- is not detected.
  • the terminal device transmits a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the terminal device when the terminal device is in the preset range but the Wi-Fi signal of the target Wi-Fi device is not detected, or the terminal device is in the preset range, the current condition of the terminal device meets the preset condition but is not detected.
  • the Wi-Fi signal of the target Wi-Fi device is transmitted, a Wi-Fi module startup command is transmitted to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the preset condition includes at least one of the following conditions:
  • Wi-Fi module startup instruction for the terminal device input by the user
  • the screen opening time of the terminal device is greater than or equal to the fourth preset time
  • the target application of the terminal device is in the running state
  • the user transitions from a sleep state to an awake state
  • the traffic of the non-Wi-Fi network used by the terminal device in the fifth preset time is greater than or equal to the second preset traffic.
  • the account when the user uses the target Wi-Fi device for the first time through the terminal device, the account, the domain name, the URI, the URL, the IP address, the name, and the like of the target Wi-Fi device are first set on the terminal device, so as to target the target. Wi-Fi devices are identified.
  • the non-Wi-Fi network is a network other than the Wi-Fi network, including a mobile communication network, such as the China Unicom network used by the China Unicom mobile phone, the China Mobile network used by the China Mobile phone, and the China Telecom mobile phone used in China. Telecommunications network, etc.
  • the terminal device when the terminal device is in the preset range, it indicates that the network needs to be accessed through Wi-Fi, and therefore, a Wi-Fi module startup command for the target Wi-Fi device is generated and sent to the target Wi through the non-Wi-Fi network. -Fi device to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the preset range is the coverage of the target Wi-Fi device, that is, within the range, when the Wi-Fi module of the target Wi-Fi device is running, the terminal device can detect the target Wi-Fi of the target Wi-Fi device. signal.
  • the terminal device when the terminal device is in the preset range, and detecting a Wi-Fi module startup instruction input by the user for the terminal device, indicating that the user wants to access the network through Wi-Fi, therefore, generating a target Wi-Fi device
  • the Wi-Fi module initiates the command and sends it to the target Wi-Fi device over a non-Wi-Fi network to trigger the target Wi-Fi device to boot the Wi-Fi module.
  • the terminal device when the terminal device is in the preset range, and the screen opening time of the terminal device is greater than or equal to the fourth preset time, indicating that the network needs to be accessed through Wi-Fi, therefore, generating Wi for the target Wi-Fi device
  • the -Fi module initiates the command and sends it to the target Wi-Fi device over a non-Wi-Fi network to trigger the target Wi-Fi device to boot the Wi-Fi module.
  • the target application when the terminal device is in the preset range, and the target application of the terminal device is in the running state, indicating that the network needs to be accessed through Wi-Fi, therefore, generating a Wi-Fi module startup instruction for the target Wi-Fi device And sending to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the target application can be a relatively expensive application, such as a video playback application.
  • the terminal device when the terminal device is in the preset range, and the user transitions from the sleep state to the awake state, indicating that the network needs to be accessed through Wi-Fi, therefore, generating Wi-Fi for the target Wi-Fi device
  • the module initiates an instruction and sends it to the target Wi-Fi device over a non-Wi-Fi network to trigger the target Wi-Fi device to launch the Wi-Fi module.
  • the device can be detected by the wearable device, and the message can be sent to the terminal device.
  • the wearable device can be an electronic device in a user's common product such as a wristband or a glasses.
  • a Wi-Fi module startup command for the target Wi-Fi device is generated and transmitted to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the terminal device sends the target Wi-Fi device to the target Wi-Fi device through the non-Wi-Fi network.
  • Sending a Wi-Fi module startup command to trigger the target Wi-Fi device to start the Wi-Fi module is specifically as follows:
  • the terminal device directly transmits a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the terminal device may directly send a Wi-Fi module startup instruction to the target Wi-Fi device through the data channel of the mobile communication network, to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the terminal device sends a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module, specifically:
  • the terminal device sends a Wi-Fi module startup command to the server through the non-Wi-Fi network, and the server sends a Wi-Fi module startup command to the target Wi-Fi device to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the terminal device may send a Wi-Fi module startup instruction to the server through the data channel of the mobile communication network, and the server sends a Wi-Fi module startup instruction to the target Wi-Fi device to trigger the target Wi-Fi device to start the Wi. -Fi module; or send a text message to the server, the message carries the Wi-Fi module startup command of the target Wi-Fi device, and the server sends a Wi-Fi module startup command to the target Wi-Fi device to trigger the target Wi-Fi device to start Wi-Fi module.
  • the terminal device after the terminal device sends the Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network, the terminal device receives a response message that the Wi-Fi module is started by the target Wi-Fi device, indicating that The terminal device can access the network using the Wi-Fi transmission of the target Wi-Fi device.
  • the terminal device sends a Wi-Fi module startup command to the target Wi-Fi device, and the terminal device may directly send the Wi-Fi module startup command to the target Wi-Fi device, or may first send the Wi-Fi module startup command to the cloud.
  • the server sends the Wi-Fi module startup command to the target Wi-Fi device by the cloud server, which is not limited in this embodiment.
  • the terminal device When the terminal device directly sends the Wi-Fi module startup command to the target Wi-Fi device, whether the terminal device is a legitimate terminal device is authenticated by the target Wi-Fi device; when the terminal device sends the Wi-Fi module startup command first
  • the cloud server sends the Wi-Fi module startup command to the target Wi-Fi device by the cloud server, whether the terminal device is a legitimate terminal device is authenticated by the cloud server.
  • the Wi-Fi device turns off the Wi-Fi module, and the automatic start Wi-Fi time does not arrive, when the detected current event is a preset event, and is not detected.
  • the terminal device sends a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module, therefore, Improved terminal Control capabilities of the device, flexibility of the Wi-Fi application, and user experience.
  • FIG. 7 is a structural diagram of a Wi-Fi device according to an embodiment of the present invention.
  • the Wi-Fi device shown in FIG. 7 may be a Wi-Fi device with a Wi-Fi module such as a wireless router or a home gateway.
  • the Wi-Fi device 700 can include:
  • the determining unit 701 is configured to determine whether the detected current condition is a preset condition when the current time is the automatic closing of the Wi-Fi time or the receiving of the Wi-Fi module closing instruction sent by the terminal device;
  • the closing unit 702 is configured to: when the determination result of the determining unit 701 is YES, turn off the Wi-Fi module of the Wi-Fi device;
  • the preset condition can include any of the following conditions:
  • the user sets the auto-shutdown Wi-Fi time and the auto-start Wi-Fi time on the Wi-Fi device in advance, when the current time is automatically turning off the Wi-Fi time or receiving the Wi-Fi sent by the terminal device.
  • the determining unit 701 determines whether the detected current condition is a preset condition.
  • the closing unit 702 does not turn off the Wi-Fi module until the terminal device uses less traffic than the first preset traffic or the non-terminal device accesses the Wi-Fi signal through the Wi-Fi device.
  • the Wi-Fi device turns off the Wi-Fi module when the unit 702 is turned off.
  • the first preset flow rate is a preset flow rate value, and the specific value is set as needed, which is not limited in this embodiment.
  • the first preset time is a preset time value, which may be 5 minutes or 10 minutes, and the specific value is set as needed, which is not limited in this embodiment.
  • the closing unit 702 turns off the Wi-Fi module. If the terminal device accesses the Wi-Fi device through the Wi-Fi signal of the Wi-Fi device, but the traffic used by the terminal device in the first preset time is less than the first preset traffic, the user only opens the Wi device of the terminal device. -Fi module, but not connected The Wi-Fi accesses the network, such as playing a video, downloading a file, etc., and therefore, the closing unit 702 turns off the Wi-Fi module.
  • the preset condition is a pre-set condition for the non-terminal device to access the Wi-Fi device through the Wi-Fi signal of the Wi-Fi device; or the terminal device is connected to the Wi-Fi signal through the Wi-Fi device.
  • the device enters the Wi-Fi device, but the traffic used by the terminal device in the first preset time is less than the first preset traffic.
  • the method of automatically turning off the Wi-Fi time and automatically starting the Wi-Fi time on the Wi-Fi device may be: setting the login to the Wi-Fi device through the web, or performing the Wi-Fi device through the APP.
  • Settings For example, the content of the setting may be: setting 22:30-7:00 to turn off the Wi-Fi module time, that is, the sleep time turns off the Wi-Fi mode, wherein 22:30 is to automatically turn off the Wi-Fi time, 7:00 is The Wi-Fi time is automatically started; and/or 8:30-18:00 is the time to turn off the Wi-Fi module, that is, the Wi-Fi mode is turned off during the working hours, wherein 8:30 is automatically turned off the Wi-Fi time, 16:00 To automatically start Wi-Fi time.
  • the Wi-Fi device 700 may further include:
  • the receiving unit 703 is configured to receive a Wi-Fi module startup command sent by the terminal device through the non-Wi-Fi network;
  • the startup unit 704 is configured to start a Wi-Fi module of the Wi-Fi device according to the Wi-Fi module startup instruction received by the receiving unit 703.
  • non-Wi-Fi networks are networks other than Wi-Fi networks, including mobile communication networks, such as China Unicom's network used by China Unicom's mobile phones, China Mobile's mobile phone used by China Mobile's mobile phones, and China's telecom network used by China Telecom's mobile phones. .
  • the receiving unit 703 determines whether the terminal device is identified by the identifier of the terminal device carried by the Wi-Fi module startup command and/or by using the user account and password. It is a legal terminal device. If the terminal device is a legal terminal device, the startup unit 704 starts the Wi-Fi module. If the terminal device is an illegal terminal device, the Wi-Fi module is not started.
  • the Wi-Fi module startup command is received when the Wi-Fi device is in the working time, the Wi-Fi module startup command is received, and after the Wi-Fi module is started, the Wi-Fi task is cancelled; if Wi-Fi is in the Wi-Fi module; When the Fi device is in sleep time, when Wi-Fi mode is turned off, the Wi-Fi module startup command is received and started. After the Wi-Fi module, steps S101-S102 will be repeated.
  • the Wi-Fi device does not immediately turn off the Wi-Fi module when the auto-shutdown Wi-Fi time arrives, but first determines whether there is a terminal device transmitting using the Wi-Fi device.
  • Wi-Fi signal access network when a terminal device accesses the network using Wi-Fi signals transmitted by the Wi-Fi device, the Wi-Fi module will not be turned off, and when no terminal device uses the Wi-Fi signal transmitted by the Wi-Fi device to access the network
  • the Wi-Fi module will be turned off to avoid interrupting the terminal device from accessing the network via Wi-Fi; in addition, when the Wi-Fi module is turned off and the Wi-Fi time is not automatically reached before, when a terminal device sends to the Wi-Fi device
  • the Wi-Fi module starts the command and the terminal device is a legitimate terminal device, the Wi-Fi module is started, so that the terminal device accesses the network through Wi-Fi. Therefore, the flexibility of the Wi-Fi application, the control capability of the Wi-Fi device, and the user experience are improved
  • FIG. 8 is a structural diagram of another Wi-Fi device according to an embodiment of the present invention.
  • the Wi-Fi device shown in FIG. 8 may be a Wi-Fi device with a Wi-Fi module such as a wireless router or a home gateway.
  • the Wi-Fi device 800 can include a memory 801, a processor 802, and an input device 803.
  • the memory 801 stores a set of program codes
  • the processor 802 is configured to call the program code stored in the memory 801 to execute the following. operating:
  • the Wi-Fi module of the Wi-Fi device is turned off
  • Preset conditions include any of the following conditions:
  • the input device 803 is configured to: after the processor 802 turns off the Wi-Fi module of the Wi-Fi device, receive the Wi-Fi module startup command sent by the terminal device through the non-Wi-Fi network, and send the Processor 802;
  • the processor 802 is further configured to call the program code stored in the memory 801 to perform the following operations:
  • the non-Wi-Fi network is a network other than the Wi-Fi network, including a mobile communication network.
  • a mobile communication network For example, China Unicom's network used by China Unicom's mobile phones, China Mobile's network used by China Mobile's mobile phones, and China's telecom network used by China Telecom's mobile phones.
  • the processor is a control center of the Wi-Fi device, and connects various parts of the entire Wi-Fi device by using various interfaces and lines, by running or executing software programs and/or modules stored in the memory, and calling Data stored in the memory to perform various functions of the Wi-Fi device and/or process data.
  • the processor may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs that have the same function or different functions.
  • the processor may include only a central processing unit (CPU), or may be a GPU, a digital signal processor (DSP), and a control chip in the communication unit (for example, a baseband chip). )The combination.
  • the CPU may be a single operation core, and may also include multiple operation cores.
  • the Wi-Fi device when the Wi-Fi time is automatically turned off, the Wi-Fi device does not immediately turn off the Wi-Fi module, but first determines whether or not the terminal device transmits using the Wi-Fi device.
  • Wi-Fi signal access network when a terminal device accesses the network using Wi-Fi signals transmitted by the Wi-Fi device, the Wi-Fi module will not be turned off, and when no terminal device uses the Wi-Fi signal transmitted by the Wi-Fi device to access the network
  • the Wi-Fi module will be turned off to avoid interrupting the terminal device from accessing the network via Wi-Fi; in addition, when the Wi-Fi module is turned off and the Wi-Fi time is not automatically reached before, when a terminal device sends to the Wi-Fi device When the Wi-Fi module starts the command and the terminal device is a legitimate terminal device, the Wi-Fi module is started, so that the terminal device accesses the network through Wi-Fi. Therefore, the flexibility of the Wi-Fi application, the control capability of the Wi-Fi device, and the user experience are improved.
  • FIG. 9 is a structural diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device shown in FIG. 9 may be a terminal device such as a mobile phone, a tablet computer, or a notebook computer.
  • the terminal device 900 may include:
  • the sending unit 901 is configured to: when the detected current event is a preset event, send a Wi-Fi module shutdown command to the target Wi-Fi device to trigger the target Wi-Fi device to close the Wi-Fi module;
  • Preset events can include:
  • the terminal device is outside the preset range; or
  • the terminal device is in a preset range, and the current condition of the terminal device is a preset condition.
  • the preset condition may include at least one of the following conditions:
  • Wi-Fi module shutdown command for the terminal device input by the user
  • the screen closing time of the terminal device is greater than or equal to the second preset time
  • the user transitions from the awake state to the sleep state.
  • the preset range is the coverage of the target Wi-Fi device, that is, within the range, when the Wi-Fi module of the target Wi-Fi device is running, the terminal device can detect the target of the target Wi-Fi device. Wi-Fi signal.
  • the terminal device 900 may further include:
  • the determining unit 902 is configured to determine whether the terminal device is detected to be within a preset range.
  • the sending unit 901 is configured to: when the determination result of the determining unit 902 is negative, or the determination result of the determining unit 902 is YES and the current condition of the terminal device is detected as a preset condition, send the Wi to the target Wi-Fi device.
  • the -Fi module closes the command to trigger the target Wi-Fi device to turn off the Wi-Fi module.
  • the determining unit 902 is specifically configured to:
  • the terminal device Determining whether the detected current radio base station identifier is the same as the stored radio base station identifier.
  • the terminal device is in a preset range, and when the judgment result of the first judging unit is no, the terminal The device is outside the preset range, and the stored wireless base station identifier is the base station identifier detected when the terminal device is within the preset range; or
  • the determination result of the second determining unit is no, the terminal device is in the preset range, when the second determining unit is When the determination result is yes, the terminal device is outside the preset range, and the preset position is the satellite positioning position when the terminal device is within the preset range; or
  • the terminal device Determining whether the moving distance of the terminal device is less than or equal to the second preset distance in the third preset time.
  • the determining result of the third determining unit is no, the terminal device is in the preset range, when the third determining unit determines When the result is YES, the terminal device is outside the preset range, and the third preset time is a time interval at which the terminal device disconnects from the target Wi-Fi device to the current time.
  • a Wi-Fi module shutdown command is sent to the target Wi-Fi device to trigger the target Wi-Fi device to turn off the Wi-Fi module. Therefore, it is possible to improve the control capability of the terminal device and save power.
  • FIG. 10 is a structural diagram of still another Wi-Fi device according to an embodiment of the present invention.
  • the terminal device shown in FIG. 10 may be a terminal device such as a mobile phone, a tablet computer, or a notebook computer.
  • the terminal device 1000 may include:
  • the output device 1001 is configured to: when the detected current event is a preset event, send a Wi-Fi module shutdown command to the target Wi-Fi device to trigger the target Wi-Fi device to turn off the Wi-Fi module;
  • Preset events can include:
  • the terminal device is outside the preset range; or
  • the terminal device is in a preset range, and the current condition of the terminal device is a preset condition.
  • the preset condition may include at least one of the following conditions:
  • Wi-Fi module shutdown command for the terminal device input by the user
  • the screen closing time of the terminal device is greater than or equal to the second preset time
  • the user transitions from the awake state to the sleep state.
  • the terminal device 1000 may further include a processor 1002 and a memory 1003.
  • the memory 1003 stores a set of program codes, and the processor 1002 is configured to call the program code stored in the memory 1003 to perform the following operations:
  • the preset position is a satellite positioning position when the terminal device is within a preset range; or
  • the third preset time is a time interval at which the terminal device disconnects from the target Wi-Fi device to the current time.
  • the processor is a control center of the terminal device, and connects various parts of the entire terminal device by using various interfaces and lines, by running or executing software programs and/or modules stored in the memory, and calling and storing in the memory. Data to perform various functions and/or processing of the terminal device data.
  • the processor may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs that have the same function or different functions.
  • the processor may include only a central processing unit (CPU), or may be a GPU, a digital signal processor (DSP), and a control chip in the communication unit (for example, a baseband chip). )The combination.
  • the CPU may be a single operation core, and may also include multiple operation cores.
  • a Wi-Fi module shutdown command is sent to the target Wi-Fi device to trigger the target Wi-Fi device to turn off the Wi-Fi module. Therefore, it is possible to improve the control capability of the terminal device and save power.
  • FIG. 11 is a structural diagram of still another terminal device according to an embodiment of the present invention.
  • the terminal device shown in FIG. 11 may be a terminal device such as a mobile phone, a tablet computer, or a notebook computer.
  • the terminal device 1100 may include:
  • the sending unit 1101 is configured to: when the detected current event is a preset event, and the Wi-Fi signal of the target Wi-Fi device is not detected, send the Wi-Fi module to the target Wi-Fi device through the non-Wi-Fi network to start Directing to trigger the target Wi-Fi device to boot the Wi-Fi module;
  • Preset events can include:
  • the terminal device is within a preset range
  • the terminal device is in the preset range, and the current condition of the terminal device satisfies the preset condition.
  • Non-Wi-Fi networks are networks other than Wi-Fi networks, including mobile communication networks, such as China Unicom's network used by China Unicom's mobile phones, China Mobile's mobile phone used by China Mobile's mobile phones, and China's telecom network used by China Telecom's mobile phones.
  • the preset condition may include at least one of the following conditions:
  • Wi-Fi module startup instruction for the terminal device input by the user
  • the screen opening time of the terminal device is greater than or equal to the fourth preset time
  • the target application of the terminal device is in the running state
  • the user transitions from a sleep state to an awake state
  • the traffic of the non-Wi-Fi network used by the terminal device in the fifth preset time is greater than or equal to the second preset traffic.
  • the terminal device may further include:
  • the determining unit 1102 is configured to determine whether the terminal device is detected to be within a preset range.
  • the sending unit 1101 is configured to: when the determination result of the determining unit 1102 is YES but the Wi-Fi signal of the target Wi-Fi device is not detected, or when the determining result of the determining unit 1102 is YES, the detected terminal device When the current condition satisfies the preset condition but the Wi-Fi signal of the target Wi-Fi device is not detected, the Wi-Fi module startup command is sent to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start. Wi-Fi module.
  • the determining unit 1102 is specifically configured to:
  • the determination result of the first determining unit is yes, the terminal device is in a preset range, and the stored wireless base station identifier is that the terminal device is in a preset range.
  • Determining whether the moving distance of the terminal device is less than or equal to the second preset distance in the sixth preset time When the determining result of the third determining unit is negative, the terminal device is less than or equal to the preset range, and when the second determining unit is When the judgment result is yes, the terminal device is outside the preset range, and the sixth preset time is a time interval at which the terminal device disconnects from the target Wi-Fi device to the current time.
  • the sending unit 1101 is specifically configured to send a Wi-Fi module startup instruction directly to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the sending unit 1101 is specifically configured to send a Wi-Fi module startup instruction to the server through the non-Wi-Fi network, and the server sends a Wi-Fi module startup instruction to the target Wi-Fi device to trigger the target.
  • the Wi-Fi device starts the Wi-Fi module.
  • the sending unit 1101 after the sending unit 1101 sends the Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network, the sending unit 1101 receives the response message that the Wi-Fi module is completed and sent by the target Wi-Fi device. Indicates that the terminal device can access the network using the Wi-Fi of the target Wi-Fi device.
  • the sending unit 1101 sends a Wi-Fi module startup command to the target Wi-Fi device, and the sending unit 1101 may directly send the Wi-Fi module startup instruction to the target Wi-Fi device, or may first send the Wi-Fi module startup command.
  • the cloud server sends the Wi-Fi module startup command to the target Wi-Fi device, which is not limited in this embodiment.
  • the sending unit 1101 When the sending unit 1101 directly transmits the Wi-Fi module startup instruction to the target Wi-Fi device, whether the terminal device is a legitimate terminal device is authenticated by the target Wi-Fi device; when the transmitting unit 1101 starts the Wi-Fi module
  • the command is first sent to the cloud server, and when the cloud server sends the Wi-Fi module startup command to the target Wi-Fi device, whether the terminal device is a legitimate terminal device is authenticated by the cloud server.
  • the terminal device shown in FIG. 11 when the Wi-Fi device turns off the Wi-Fi module, and the automatic start Wi-Fi time does not arrive, when the detected current event is a preset event, and the target Wi is not detected.
  • the terminal device transmits a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module, thereby improving the terminal. Control capabilities of the device, flexibility of the Wi-Fi application, and user experience.
  • FIG. 12 is a structural diagram of another Wi-Fi device according to an embodiment of the present invention.
  • the terminal device shown in FIG. 12 may be a terminal device such as a mobile phone, a tablet computer, or a notebook computer.
  • the Wi-Fi device may include:
  • the output device 1201 is configured to: when the detected current event is a preset event, and the Wi-Fi signal of the target Wi-Fi device is not detected, send the Wi-Fi module to the target Wi-Fi device through the non-Wi-Fi network to start Directing to trigger the target Wi-Fi device to boot the Wi-Fi module;
  • Preset events can include:
  • the terminal device is within a preset range
  • the terminal device is in the preset range, and the current condition of the terminal device satisfies the preset condition.
  • the preset condition may include at least one of the following conditions:
  • Wi-Fi module startup instruction for the terminal device input by the user
  • the screen opening time of the terminal device is greater than or equal to the fourth preset time
  • the target application of the terminal device is in the running state
  • the user transitions from a sleep state to an awake state
  • the traffic of the non-Wi-Fi network used by the terminal device in the fifth preset time is greater than or equal to the second preset traffic.
  • the terminal device 1200 may further include a processor 1202 and a memory 1203, wherein the memory 1203 stores a set of program codes, and the processor 1202 is configured to invoke the program code stored in the processor 1203 to perform the following operations. :
  • the preset position is a satellite positioning position when the terminal device is within a preset range; or
  • the sixth preset time is a time interval at which the terminal device disconnects from the target Wi-Fi device to the current time.
  • the output device 1201 sends a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the Wi-Fi module startup command is directly transmitted to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the output device 1201 sends a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the Wi-Fi module startup command is sent to the server through the non-Wi-Fi network, and the server sends a Wi-Fi module startup command to the target Wi-Fi device to trigger the target Wi-Fi device to start the Wi-Fi module.
  • the processor is a control center of the terminal device, and is connected by using various interfaces and lines.
  • the various portions of the terminal device perform various functions and/or process data of the terminal device by running or executing software programs and/or modules stored in the memory, and recalling data stored in the memory.
  • the processor may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs that have the same function or different functions.
  • the processor may include only a central processing unit (CPU), or may be a GPU, a digital signal processor (DSP), and a control chip in the communication unit (for example, a baseband chip). )The combination.
  • the CPU may be a single operation core, and may also include multiple operation cores.
  • the terminal device shown in FIG. 12 when the Wi-Fi device turns off the Wi-Fi module, and the auto-start Wi-Fi time does not arrive, when the detected current event is a preset event, and the target Wi is not detected.
  • the terminal device transmits a Wi-Fi module startup command to the target Wi-Fi device through the non-Wi-Fi network to trigger the target Wi-Fi device to start the Wi-Fi module, thereby improving the terminal. Control capabilities of the device, flexibility of the Wi-Fi application, and user experience.
  • an embodiment of the present invention further discloses a computer storage medium storing a computer program.
  • the computer program in the computer storage medium is read into a computer, the computer can cause the computer to complete the disclosure of the embodiment of the present invention. All steps of the Wi-Fi control method.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Flash disk, Read-Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.
  • Wi-Fi control method and related devices provided by the embodiments of the present invention are described in detail above.
  • the principles and implementation manners of the present invention are described in the following.
  • the description of the above embodiments is only used to help understand the present invention.
  • Invented method and its core idea; at the same time, for the field The present invention is not limited by the scope of the present invention.

Landscapes

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

Abstract

一种Wi-Fi模块控制方法及相关装置,该方法包括:在当前时间为自动关闭Wi-Fi时间,或接收到终端设备发送的Wi-Fi模块关闭指令时,Wi-Fi设备判断检测到的当前条件是否为预设条件;若检测到的当前条件为预设条件,该Wi-Fi设备关闭Wi-Fi模块。本发明可以提高Wi-Fi应用的灵活性

Description

一种Wi-Fi模块控制方法及相关装置 技术领域
本发明涉及通信技术领域,尤其涉及一种Wi-Fi模块控制方法及相关装置。
背景技术
随着电子技术的不断发展,用户使用终端设备的种类越来越多,如手机、平板电脑等,由于传统的有线路由器只能通过网线为有网线端口的终端设备提供网络,如台式电脑、笔记本电脑等,但却无法为无网线接口的手机、平板电脑等终端设备提供网络,因此,为了为这些终端设备提供网络,采用无线保真(Wireless Fidelity,Wi-Fi)设备代替传统的有线路由器。由于用户使用Wi-Fi设备的时间有限,因此,为了节约电能为Wi-Fi设备设置自动关闭Wi-Fi时间和自动启动Wi-Fi时间,当当前时间为自动关闭Wi-Fi时间时,Wi-Fi设备将关闭Wi-Fi模块,当当前时间为自动启动Wi-Fi时间时,Wi-Fi设备将启动Wi-Fi模块。其中,Wi-Fi模块为可以为终端设备提供Wi-Fi信号的模块。
上述方式中,当当前时间为自动关闭Wi-Fi时间时,不论此时是否有终端设备使用Wi-Fi访问网络,Wi-Fi设备都将关闭Wi-Fi模块,导致正在使用Wi-Fi的终端设备无法使用Wi-Fi;当Wi-Fi设备关闭Wi-Fi模块后,且当前时间还未到达自动启动Wi-Fi时间时,如果用户想通过终端设备连接Wi-Fi网络,需要用户手动打开Wi-Fi设备的Wi-Fi模块。因此,上述方式降低了Wi-Fi应用的灵活性。
发明内容
本发明实施例公开了一种Wi-Fi模块控制方法及相关装置,用于提高Wi-Fi应用的灵活性。
本发明实施例第一方面公开一种Wi-Fi模块控制方法,包括:
在当前时间为自动关闭Wi-Fi时间,或接收到终端设备发送的Wi-Fi模块关闭指令时,Wi-Fi设备判断检测到的当前条件是否为预设条件;
若检测到的当前条件为预设条件,所述Wi-Fi设备关闭Wi-Fi模块;
所述预设条件包括以下条件中的任意一种:
不存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备;和
存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备,且所述终端设备在第一预设时间内所用流量小于第一预设流量。
结合本发明实施例第一方面,在本发明实施例第一方面的第一种可能的实现方式中,所述Wi-Fi设备关闭Wi-Fi模块之后,所述方法还包括:
所述Wi-Fi设备接收终端设备通过非Wi-Fi网络发送的Wi-Fi模块启动指令;
所述Wi-Fi设备根据所述Wi-Fi模块启动指令,启动Wi-Fi模块。
本发明实施例第二方面公开一种Wi-Fi模块控制方法,包括:
当检测到的当前事件为预设事件时,终端设备向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发所述目标Wi-Fi设备关闭Wi-Fi模块;
所述预设事件包括:
所述终端设备处于预设范围之外;或
所述终端设备处于预设范围内,且所述终端设备的当前条件为预设条件。
结合本发明实施例第二方面,在本发明实施例第二方面的第一种可能的实现方式中,所述预设条件包括以下条件中的至少一种:
存在用户输入的针对所述终端设备的Wi-Fi模块关闭指令;
所述终端设备的屏幕关闭时间大于或等于第二预设时间;和
用户由苏醒状态转换为睡眠状态。
结合本发明实施例第二方面或本发明实施例第二方面的第一种可能的实现方式,在本发明实施例第二方面的第二种可能的实现方式中,所述方法还包括:
所述终端设备判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则所述终端设备处于预设范围内,若不相同,则所述终端设备处于预设范围之外,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
所述终端设备判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则所述终端设备处于预设范围 内,若大于,则所述终端设备处于预设范围之外,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
所述终端设备判断在第三预设时间内所述终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则所述终端设备处于预设范围内,若大于,则所述终端设备处于预设范围之外,所述第三预设时间为所述终端设备与所述目标Wi-Fi设备断开连接到当前时间的时间间隔。
本发明实施例第三方面公开一种Wi-Fi模块控制方法,包括:
当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,所述终端设备通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块;
所述预设事件包括:
所述终端设备处于预设范围内;或
所述终端设备处于预设范围内,所述终端设备的当前条件满足预设条件。
结合本发明实施例第三方面,在本发明实施例第三方面的第一种可能的实现方式中,所述预设条件包括以下条件中的至少一种:
存在用户输入的针对所述终端设备的Wi-Fi模块启动指令;
所述终端设备的屏幕开启时间大于或等于第四预设时间;
所述终端设备的目标应用程序处于运行状态;
用户由睡眠状态转换为苏醒状态;和
所述终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量。
结合本发明实施例第三方面的第一种可能的实现方式,在本发明实施例第三方面的第二种可能的实现方式中,所述方法还包括:
所述终端设备判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则所述终端设备处于预设范围内,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
所述终端设备判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则所述终端设备处于预设范围 内,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
所述终端设备判断在第六预设时间内所述终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则所述终端设备处于预设范围内,所述第六预设时间内为所述终端设备与所述目标Wi-Fi设备断开连接到当前时间的时间间隔。
结合本发明实施例第三方面以及本发明实施例第三方面的第一种和第二种中的任一种可能的实现方式,在本发明实施例第三方面的第三种可能的实现方式中,所述终端设备通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块包括:
所述终端设备通过非Wi-Fi网络直接向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
结合本发明实施例第三方面以及本发明实施例第三方面的第一种和第二种中的任一种可能的实现方式,在本发明实施例第三方面的第四种可能的实现方式中,所述终端设备通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块包括:
所述终端设备通过非Wi-Fi网络向服务器发送Wi-Fi模块启动指令,由所述服务器向所述目标Wi-Fi设备发送所述Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
本发明实施例第四方面公开一种Wi-Fi设备,包括:
判断单元,用于在当前时间为自动关闭Wi-Fi时间,或接收到终端设备发送的Wi-Fi模块关闭指令时,判断检测到的当前条件是否为预设条件;
关闭单元,用于当所述判断单元的判断结果为是时,关闭所述Wi-Fi设备的Wi-Fi模块;
所述预设条件包括以下条件中的任意一种:
不存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备;和
存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备,且所述终端设备在第一预设时间内所用流量小于第一预设流量。
结合本发明实施例第四方面,在本发明实施例第四方面的第一种可能的实 现方式中,所述Wi-Fi设备还包括:
接收单元,用于接收终端设备通过非Wi-Fi网络发送的Wi-Fi模块启动指令;
启动单元,用于根据所述接收单元接收的Wi-Fi模块启动指令,启动所述Wi-Fi设备的Wi-Fi模块。
本发明实施例第五方面公开一种Wi-Fi设备,包括存储器和处理器,所述存储器中存储有一组程序代码,所述处理器用于调用所述存储器中存储的程序代码执行以下操作:
在当前时间为自动关闭Wi-Fi时间,或接收到终端设备发送的Wi-Fi模块关闭指令时,判断检测到的当前条件是否为预设条件;
若检测到的当前条件为预设条件,关闭所述Wi-Fi设备的Wi-Fi模块;
所述预设条件包括以下条件中的任意一种:
不存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备;和
存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备,且所述终端设备在第一预设时间内所用流量小于第一预设流量。
结合本发明实施例第五方面,在本发明实施例第五方面的第一种可能的实现方式中,所述Wi-Fi设备还包括:
输入装置,用于在处理器关闭所述Wi-Fi设备的Wi-Fi模块之后,接收终端设备通过非Wi-Fi网络发送的Wi-Fi模块启动指令并发送给所述处理器;
所述处理器还用于调用所述存储器中存储的程序代码执行以下操作:
根据所述Wi-Fi模块启动指令,启动所述Wi-Fi设备的Wi-Fi模块。
本发明实施例第六方面公开一种终端设备,包括:
发送单元,用于当检测到的当前事件为预设事件时,向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发所述目标Wi-Fi设备关闭Wi-Fi模块;
所述预设事件包括:
所述终端设备处于预设范围之外;或
所述终端设备处于预设范围内,且所述终端设备的当前条件为预设条件。
结合本发明实施例第六方面,在本发明实施例第六方面的第一种可能的实现方式中,所述预设条件包括以下条件中的至少一种:
存在用户输入的针对所述终端设备的Wi-Fi模块关闭指令;
所述终端设备的屏幕关闭时间大于或等于第二预设时间;和
用户由苏醒状态转换为睡眠状态。
结合本发明实施例第六方面或本发明实施例第六方面的第一种可能的实现方式,在本发明实施例第六方面的第二种可能的实现方式中,所述终端设备还包括:
第一判断单元,用于判断检测到的当前无线基站标识是否与存储的无线基站标识相同,当所述第一判断单元的判断结果为是时,所述终端设备处于预设范围内,当所述第一判断单元的判断结果为否时,所述终端设备处于预设范围之外,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
第二判断单元,用于判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,当所述第二判断单元的判断结果为是时,所述终端设备处于预设范围内,当所述第二判断单元的判断结果为是时,所述终端设备处于预设范围之外,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
第三判断单元,用于判断在第三预设时间内所述终端设备的运动距离是否小于或等于第二预设距离,当所述第三判断单元的判断结果为是时,所述终端设备处于预设范围内,当所述第三判断单元的判断结果为是时,所述终端设备处于预设范围之外,所述第三预设时间内为所述终端设备与所述目标Wi-Fi设备断开连接到当前时间的时间间隔。
本发明实施例第七方面公开一种终端设备,其特征在于,包括:
输出装置,用于当检测到的当前事件为预设事件时,向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发所述目标Wi-Fi设备关闭Wi-Fi模块;
所述预设事件包括:
所述终端设备处于预设范围之外;或
所述终端设备处于预设范围内,且所述终端设备的当前条件为预设条件。
结合本发明实施例第七方面,在本发明实施例第七方面的第一种可能的实现方式中,所述预设条件包括以下条件中的至少一种:
存在用户输入的针对所述终端设备的Wi-Fi模块关闭指令;
所述终端设备的屏幕关闭时间大于或等于第二预设时间;和
用户由苏醒状态转换为睡眠状态。
结合本发明实施例第七方面或本发明实施例第七方面的第一种可能的实现方式,在本发明实施例第七方面的第二种可能的实现方式中,所述终端设备还包括处理器和存储器,所述存储器中存储有一组程序代码,所述处理器用于调用所述存储器中存储的程序代码执行以下操作:
判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则所述终端设备处于预设范围内,若不相同,则所述终端设备处于预设范围之外,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则所述终端设备处于预设范围内,若大于,则所述终端设备处于预设范围之外,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
判断在第三预设时间内所述终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则所述终端设备处于预设范围内,若大于,则所述终端设备处于预设范围之外,所述第三预设时间内为所述终端设备与所述目标Wi-Fi设备断开连接到当前时间的时间间隔。
本发明实施例第八方面公开一种终端设备,包括:
发送单元,用于当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块;
所述预设事件包括:
所述终端设备处于预设范围内;或
所述终端设备处于预设范围内,所述终端设备的当前条件满足预设条件。
结合本发明实施例第八方面,在本发明实施例第八方面的第一种可能的实现方式中,所述预设条件包括以下条件中的至少一种:
存在用户输入的针对所述终端设备的Wi-Fi模块启动指令;
所述终端设备的屏幕开启时间大于或等于第四预设时间;
所述终端设备的目标应用程序处于运行状态;
用户由睡眠状态转换为苏醒状态;和
所述终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量。
结合本发明实施例第八方面的第一种可能的实现方式,在本发明实施例第八方面的第二种可能的实现方式中,所述终端设备还包括:
第一判断单元,用于判断检测到的当前无线基站标识是否与存储的无线基站标识相同,当所述第一判断单元的判断结果为是时,所述终端设备处于预设范围内,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
第二判断单元,用于判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,当所述第二判断单元的判断结果为是时,所述终端设备处于预设范围内,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
第三判断单元,用于判断在第六预设时间内所述终端设备的运动距离是否小于或等于第二预设距离,当所述第三判断单元的判断结果为是时,所述终端设备处于预设范围内,所述第六预设时间内为所述终端设备与所述目标Wi-Fi设备断开连接到当前时间的时间间隔。
结合本发明实施例第八方面以及本发明实施例第八方面的第一种和第二种中任一种可能的实现方式,在本发明实施例第八方面的第三种可能的实现方式中,所述发送单元,具体用于通过非Wi-Fi网络直接向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
结合本发明实施例第八方面以及本发明实施例第八方面的第一种和第二种中任一种可能的实现方式,在本发明实施例第八方面的第四种可能的实现方 式中,所述发送单元,具体用于通过非Wi-Fi网络向服务器发送Wi-Fi模块启动指令,由所述服务器向所述目标Wi-Fi设备发送所述Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
本发明实施例第九方面公开一种终端设备,包括:
输出装置,用于当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块;
所述预设事件包括:
所述终端设备处于预设范围内;或
所述终端设备处于预设范围内,所述终端设备的当前条件满足预设条件。
结合本发明实施例第九方面,在本发明实施例第九方面的第一种可能的实现方式中,所述预设条件包括以下条件中的至少一种:
存在用户输入的针对所述终端设备的Wi-Fi模块启动指令;
所述终端设备的屏幕开启时间大于或等于第四预设时间;
所述终端设备的目标应用程序处于运行状态;
用户由睡眠状态转换为苏醒状态;和
所述终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量。
结合本发明实施例第九方面的第一种可能的实现方式,在本发明实施例第九方面的第二种可能的实现方式中,所述终端设备还包括处理器和存储器,其中,所述存储器中存储有一组程序代码,所述处理器用于调用所述处理器中存储的程序代码执行以下操作:
判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则所述终端设备处于预设范围内,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则所述终端设备处于预设范围内,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
判断在第六预设时间内所述终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则所述终端设备处于预设范围内,所述第六预设时间内为所述终端设备与所述目标Wi-Fi设备断开连接到当前时间的时间间隔。
结合本发明实施例第九方面以及本发明实施例第九方面的第一种和第二种中任一种可能的实现方式,在本发明实施例第九方面的第三种可能的实现方式中,所述输出装置通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块的方式具体为:
通过非Wi-Fi网络直接向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
结合本发明实施例第九方面以及本发明实施例第九方面的第一种和第二种中任一种可能的实现方式,在本发明实施例第九方面的第四种可能的实现方式中,所述输出装置通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块的方式具体为:
通过非Wi-Fi网络向服务器发送Wi-Fi模块启动指令,由所述服务器向所述目标Wi-Fi设备发送所述Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
本发明实施例中,Wi-Fi设备在自动关闭Wi-Fi时间到达或接收到终端设备发送的Wi-Fi模块关闭指令时,并未立即关闭Wi-Fi模块,而是先判断检测到的当前条件是否为预设条件,当检测到的当前条件不为预设条件时将不关闭Wi-Fi模块,直到检测到的当前条件为预设条件时才关闭Wi-Fi模块,从而避免中断终端设备通过Wi-Fi访问网络,提高了Wi-Fi应用的灵活性、Wi-Fi设备的控制能力和用户体验。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例公开的一种Wi-Fi模块控制方法的流程图;
图2是本发明实施例公开的另一种Wi-Fi模块控制方法的流程图;
图3是本发明实施例公开的又一种Wi-Fi模块控制方法的流程图;
图4是本发明实施例公开的又一种Wi-Fi模块控制方法的流程图;
图5是本发明实施例公开的又一种Wi-Fi模块控制方法的流程图;
图6是本发明实施例公开的又一种Wi-Fi模块控制方法的流程图;
图7是本发明实施例公开的一种Wi-Fi设备的结构图;
图8是本发明实施例公开的另一种Wi-Fi设备的结构图;
图9是本发明实施例公开的一种终端设备的结构图;
图10是本发明实施例公开的另一种终端设备的结构图;
图11是本发明实施例公开的又一种终端设备的结构图;
图12是本发明实施例公开的又一种终端设备的结构图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例公开了一种Wi-Fi模块控制方法及相关装置,用于提高Wi-Fi应用的灵活性。以下分别进行详细说明。
请参阅图1,图1是本发明实施例公开的一种Wi-Fi模块控制方法的流程图。其中,图1所示的Wi-Fi模块控制方法适用于家庭网关、路由器等有Wi-Fi模块的Wi-Fi设备。图1所示的Wi-Fi模块控制方法是从Wi-Fi设备的角度来描述的。如图1所示,该Wi-Fi模块控制方法可以包括以下步骤。
S101、在当前时间为自动关闭Wi-Fi时间,或接收到终端设备发送的Wi-Fi模块关闭指令时,Wi-Fi设备判断检测到的当前条件是否为预设条件。
本实施例中,用户提前在Wi-Fi设备上设置有自动关闭Wi-Fi时间和自动启动Wi-Fi时间,当当前时间为自动关闭Wi-Fi时间或接收到终端设备发送的Wi-Fi模块关闭指令时,Wi-Fi设备判断检测到的当前条件是否为预设条件。其中, 预设条件包括以下条件中的任意一种:
不存在通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备的终端设备;和
存在通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备的终端设备,且终端设备在第一预设时间内所用流量小于第一预设流量。
本实施例中,预设条件是预先设置的条件,为无终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备;或有终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备,但终端设备在第一预设时间内所用流量小于第一预设流量。
本实施例中,在Wi-Fi设备上设置自动关闭Wi-Fi时间和自动启动Wi-Fi时间的方式可以为:通过web登陆到Wi-Fi设备上设置,或通过APP对Wi-Fi设备进行设置。例如,设置的内容可以为:设置22:30-7:00为关闭Wi-Fi模块时间,即睡眠时间关闭Wi-Fi模式,其中,22:30为自动关闭Wi-Fi时间,7:00为自动启动Wi-Fi时间;和/或8:30-18:00为关闭Wi-Fi模块时间,即上班时间关闭Wi-Fi模式,其中,8:30为自动关闭Wi-Fi时间,16:00为自动启动Wi-Fi时间。
S102、若检测到的当前条件为预设条件,Wi-Fi设备关闭Wi-Fi模块。
本实施例中,若无终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备,则表明无用户使用Wi-Fi网络,Wi-Fi设备关闭Wi-Fi模块。若有终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备,但终端设备在第一预设时间内所用流量小于第一预设流量,则表明用户只是打开了终端设备的Wi-Fi模块,但并未通过Wi-Fi信号访问网络,如浏览网页、下载文件等,因此,Wi-Fi设备关闭Wi-Fi模块。
相应地,若有终端设备使用Wi-Fi设备的Wi-Fi,且在第一预设时间内所用流量大于或等于第一预设流量,则表明用户正在通过Wi-Fi访问网络,因此,Wi-Fi设备不关闭Wi-Fi模块,直到终端设备在第一预设时间内所用流量小于第一预设流量或无终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备时才关闭Wi-Fi模块。其中,第一预设流量是预先设置的流量值,具体值根据需要设置,本实施例不作限定。另外,第一预设时间为预先设置的时间值,可以为5分钟,也可以为10分钟,具体值根据需要设置,本实施例不作限定。
在图1所描述的Wi-Fi模块控制方法中,Wi-Fi设备在自动关闭Wi-Fi时间到达或接收到终端设备发送的Wi-Fi模块关闭指令时,并未立即关闭Wi-Fi模块, 而是先判断检测到的当前条件是否为预设条件,当检测到的当前条件不为预设条件时将不关闭Wi-Fi模块,直到检测到的当前条件为预设条件时才关闭Wi-Fi模块,从而避免中断终端设备通过Wi-Fi访问网络,提高了Wi-Fi应用的灵活性、Wi-Fi设备的控制能力和用户体验。
请参阅图2,图2是本发明实施例公开的另一种Wi-Fi模块控制方法的流程图。其中,图2所示的Wi-Fi模块控制方法适用于家庭网关、路由器等有Wi-Fi模块的Wi-Fi设备。图2所示的Wi-Fi模块控制方法是从Wi-Fi设备的角度来描述的。如图2所示,该Wi-Fi模块控制方法可以包括以下步骤。
S201、在当前时间为自动关闭Wi-Fi时间,或接收到终端设备发送的Wi-Fi模块关闭指令时,Wi-Fi设备判断检测到的当前条件是否为预设条件。
本实施例中,用户提前在Wi-Fi设备上设置有自动关闭Wi-Fi时间和自动启动Wi-Fi时间,当当前时间为自动关闭Wi-Fi时间或接收到终端设备发送的Wi-Fi模块关闭指令时,Wi-Fi设备判断检测到的当前条件是否为预设条件。其中,预设条件包括以下条件中的任意一种:
不存在通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备的终端设备;和
存在通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备的终端设备,且终端设备在第一预设时间内所用流量小于第一预设流量。
本实施例中,预设条件是预先设置的条件,为无终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备;或有终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备,但终端设备在第一预设时间内所用流量小于第一预设流量。
本实施例中,在Wi-Fi设备上设置自动关闭Wi-Fi时间和自动启动Wi-Fi时间的方式可以为:通过web登陆到Wi-Fi设备上设置,或通过APP对Wi-Fi设备进行设置。例如,设置的内容可以为:设置22:30-7:00为关闭Wi-Fi模块时间,即睡眠时间关闭Wi-Fi模式,其中,22:30为自动关闭Wi-Fi时间,7:00为自动启动Wi-Fi时间;和/或8:30-18:00为关闭Wi-Fi模块时间,即上班时间关闭Wi-Fi模式,其中,8:30为自动关闭Wi-Fi时间,16:00为自动启动Wi-Fi时间。
S202、若检测到的当前条件为预设条件,Wi-Fi设备关闭Wi-Fi模块。
本实施例中,若无终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备,则 表明无用户使用Wi-Fi网络,Wi-Fi设备关闭Wi-Fi模块。若有终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备,但终端设备在第一预设时间内所用流量小于第一预设流量,则表明用户只是打开了终端设备的Wi-Fi模块,但并未通过Wi-Fi访问网络,如播放视频、下载文件等,因此,Wi-Fi设备关闭Wi-Fi模块。
相应地,若有终端设备使用Wi-Fi设备的Wi-Fi,且在第一预设时间内所用流量大于或等于第一预设流量,则表明用户正在通过Wi-Fi访问网络,因此,Wi-Fi设备不关闭Wi-Fi模块,直到终端设备在第一预设时间内所用流量小于第一预设流量或无终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备时才关闭Wi-Fi模块。其中,第一预设流量是预先设置的流量值,具体值根据需要设置,本实施例不作限定。另外,第一预设时间为预先设置的时间值,可以为5分钟,也可以为10分钟,具体值根据需要设置,本实施例不作限定。
S203、Wi-Fi设备接收终端设备通过非Wi-Fi网络发送的Wi-Fi模块启动指令。
本实施例中,当Wi-Fi设备的Wi-Fi模块关闭后,但还未到自动启动Wi-Fi时间时,如果用户想通过Wi-Fi访问网络时,Wi-Fi设备将会接收到终端设备通过非Wi-Fi网络发送的Wi-Fi模块启动指令,该Wi-Fi模块启动指令可以携带终端设备的标识。其中,非Wi-Fi网络为除Wi-Fi网络以外的网络,包括移动通信网络,如中国联通手机使用的中国联通网络、中国移动手机使用的中国移动网络、中国电信手机使用的中国电信网络等。
S204、Wi-Fi设备根据Wi-Fi模块启动指令,启动Wi-Fi模块。
本实施例中,Wi-Fi设备接收到终端设备发送的Wi-Fi模块启动指令之后,将通过该Wi-Fi模块启动指令携带的终端设备的标识和/或通过用户账号和密码判断该终端设备是否是合法终端设备,若终端设备为合法终端设备,则启动Wi-Fi模块,若终端设备为非法终端设备,则不启动Wi-Fi模块。
本实施例中,如果在Wi-Fi设备处于上班时间关闭Wi-Fi模式时,接收到Wi-Fi模块启动指令,在启动Wi-Fi模块之后,将取消关闭Wi-Fi任务;如果在Wi-Fi设备处于睡眠时间关闭Wi-Fi模式时,接收到Wi-Fi模块启动指令,在启动Wi-Fi模块之后,将重复步骤S101-S102。
在图2所描述的Wi-Fi模块控制方法中,Wi-Fi设备在自动关闭Wi-Fi时间到 达或接收到终端设备发送的Wi-Fi模块关闭指令时,并未立即关闭Wi-Fi模块,而是先判断检测到的当前条件是否为预设条件,当检测到的当前条件不为预设条件时将不关闭Wi-Fi模块,直到检测到的当前条件为预设条件时才关闭Wi-Fi模块,从而避免中断终端设备通过Wi-Fi访问网络;此外,关闭Wi-Fi模块后,且自动启动Wi-Fi时间未到达之前,当有终端设备向Wi-Fi设备发送Wi-Fi模块启动指令,且该终端设备为合法终端设备时,将启动Wi-Fi模块,以便终端设备通过Wi-Fi访问网络。因此,提高了Wi-Fi应用的灵活性、Wi-Fi设备的控制能力和用户体验。
请参阅图3,图3是本发明实施例公开的又一种Wi-Fi模块控制方法的流程图。其中,图3所示的Wi-Fi模块控制方法适用于手机、平板电脑、笔记本电脑等有Wi-Fi模块的终端设备。图3所示的Wi-Fi模块控制方法是从终端设备的角度来描述的。如图3所示,该Wi-Fi模块控制方法可以包括以下步骤。
S301、当检测到的当前事件为预设事件时,终端设备向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发目标Wi-Fi设备关闭Wi-Fi模块。
本实施例中,当终端设备检测到的当前事件为预设事件时,终端设备将生成针对目标Wi-Fi设备的Wi-Fi模块关闭指令,并将Wi-Fi模块关闭指令发送给目标Wi-Fi设备,以触发目标Wi-Fi设备关闭Wi-Fi模块,从而节约电能。其中,预设事件包括:
终端设备处于预设范围之外;或
终端设备处于预设范围内,且终端设备的当前条件为预设条件。其中,预设条件为终端设备不需要使用Wi-Fi网络的条件,可以包括以下条件中的至少一种:
存在用户输入的针对终端设备的Wi-Fi模块关闭指令;
终端设备的屏幕关闭时间大于或等于第二预设时间;和
用户由苏醒状态转换为睡眠状态。
可选地,在终端设备与目标Wi-Fi设备间的距离由短变长的过程中,即终端设备离开预设范围,当终端设备由处于预设范围内移动到处于预设范围之外时,终端设备将不在目标Wi-Fi设备的覆盖范围内,终端设备将无法使用目标 Wi-Fi设备的Wi-Fi,将生成针对目标Wi-Fi设备的Wi-Fi模块关闭指令,并将Wi-Fi模块关闭指令通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备关闭Wi-Fi模块。其中,预设范围为目标Wi-Fi设备的覆盖范围,即在此范围内,当目标Wi-Fi设备的Wi-Fi模块运行时,终端设备能检测到目标Wi-Fi设备的Wi-Fi信号。非Wi-Fi网络为除Wi-Fi网络以外的网络,包括移动通信网络,如中国联通手机使用的中国联通网络、中国移动手机使用的中国移动网络、中国电信手机使用的中国电信网络等。
可选地,当检测到终端设备处于预设范围内,且用户输入的针对终端设备的Wi-Fi模块关闭指令时,则表明用户不需要使用Wi-Fi网络,终端设备将生成针对目标Wi-Fi设备的Wi-Fi模块关闭指令,并将Wi-Fi模块关闭指令通过Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备关闭Wi-Fi模块。
可选地,当检测到终端设备处于预设范围内,且终端设备的屏幕关闭时间大于或等于第二预设时间时,表明用户可能不使用终端设备,终端设备可以生成针对目标Wi-Fi设备的Wi-Fi模块关闭指令,并将Wi-Fi模块关闭指令通过Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备关闭Wi-Fi模块。
可选地,当检测到终端设备处于预设范围内,且用户由苏醒状态转换为睡眠状态时,则表明用户可能不使用终端设备,终端设备可以生成针对目标Wi-Fi设备的Wi-Fi模块关闭指令,并将Wi-Fi模块关闭指令通过Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备关闭Wi-Fi模块。其中,可以通过可穿戴式设备检测用户是否处于苏醒状态,并将该消息发送给终端设备,其中,可穿戴式设备可以为手环、眼镜等用户常用用品中的电子设备。
在图3所描述的Wi-Fi模块控制方法中,当终端设备检测到的当前事件为预设事件时,向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发目标Wi-Fi设备关闭Wi-Fi模块,因此,可以提高终端设备的控制能力和节约电能。
请参阅图4,图4是本发明实施例公开的又一种Wi-Fi模块控制方法的流程图。其中,图4所示的Wi-Fi模块控制方法适用于手机、平板电脑、笔记本电脑等有Wi-Fi模块的终端设备。图4所示的Wi-Fi模块控制方法是从终端设备的角度来描述的。如图4所示,该Wi-Fi模块控制方法可以包括以下步骤。
S401、终端设备判断是否检测到终端设备处于预设范围内。
作为一种可能的实施方式,判断是否检测到终端设备处于预设范围内的方式具体为:
终端设备判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则终端设备处于预设范围内,若不相同,则终端设备处于预设范围之外,存储的无线基站标识为终端设备处于预设范围内时检测到的基站标识;或
终端设备判断终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则终端设备处于预设范围内,若大于,则终端设备处于预设范围之外,预设位置为终端设备处于预设范围内时卫星定位位置;或
终端设备判断在第三预设时间内终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则终端设备处于预设范围内,若大于,则终端设备处于预设范围之外,第三预设时间内为终端设备与目标Wi-Fi设备断开连接到当前时间的时间间隔。
本实施例中,无线基站是能够发送无线信号的设备,无线基站可以是移动通信网络中的基站,或是能够发送蓝牙信号的设备,或是发送蓝牙iBeacon信号的iBeacon基站,或是能够发送Wi-Fi的设备,或是RFID(Radio Frequency Identification,射频识别)标签。
本实施例中,终端设备的运动距离可以通过终端设备上的陀螺仪来计算,终端设备与目标Wi-Fi设备断开连接可以为终端设备主动与目标Wi-Fi设备断开连接,如用户关闭终端设备上的Wi-Fi模块,也可以为终端设备检测不到Wi-Fi设备的Wi-Fi信号而断开连接。
本实施例中,预设范围为目标Wi-Fi设备的覆盖范围,即在此范围内,当目标Wi-Fi设备的Wi-Fi模块运行时,终端设备能检测到目标Wi-Fi设备的目标Wi-Fi信号。
S402、若终端设备处于预设范围之外,或终端设备处于预设范围内且终端设备的当前条件为预设条件时,终端设备向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发目标Wi-Fi设备关闭Wi-Fi模块。
本实施例中,当终端设备处于预设范围之外,或终端设备处于预设范围内且终端设备的当前条件为预设条件时,终端设备将生成针对目标Wi-Fi设备的Wi-Fi模块关闭指令,并将Wi-Fi模块关闭指令发送给目标Wi-Fi设备,以触发目标Wi-Fi设备关闭Wi-Fi模块,从而节约电能。其中,预设条件包括以下条件中的至少一种:
存在用户输入的针对终端设备的Wi-Fi模块关闭指令;
终端设备的屏幕关闭时间大于或等于第二预设时间;和
用户由苏醒状态转换为睡眠状态。
可选地,在终端设备与目标Wi-Fi设备间的距离由短变长的过程中,即终端设备离开预设范围,当终端设备由处于预设范围内移动到处于预设范围之外时,终端设备将不在目标Wi-Fi设备的覆盖范围内,终端设备将无法使用目标Wi-Fi设备的Wi-Fi,将生成针对目标Wi-Fi设备的Wi-Fi模块关闭指令,并将Wi-Fi模块关闭指令通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备关闭Wi-Fi模块。其中,非Wi-Fi网络为除Wi-Fi网络以外的网络,包括移动通信网络,如中国联通手机使用的中国联通网络、中国移动手机使用的中国移动网络、中国电信手机使用的中国电信网络等。
可选地,当检测到终端设备处于预设范围内,且用户输入的针对终端设备的Wi-Fi模块关闭指令时,则表明用户不需要使用Wi-Fi网络,终端设备将生成针对目标Wi-Fi设备的Wi-Fi模块关闭指令,并将Wi-Fi模块关闭指令通过Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备关闭Wi-Fi模块。
可选地,当检测到终端设备处于预设范围内,且终端设备的屏幕关闭时间大于或等于第二预设时间时,表明用户可能不使用终端设备,终端设备可以生成针对目标Wi-Fi设备的Wi-Fi模块关闭指令,并将Wi-Fi模块关闭指令通过Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备关闭Wi-Fi模块。
可选地,当检测到终端设备处于预设范围内,且用户由苏醒状态转换为睡眠状态时,则表明用户可能不使用终端设备,终端设备可以生成针对目标Wi-Fi设备的Wi-Fi模块关闭指令,并将Wi-Fi模块关闭指令通过Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备关闭Wi-Fi模块。其中,可以通过可穿戴式设备检测用户是否处于苏醒状态,并将该消息发送给终端设备,其中,可穿戴式 设备可以为手环、眼镜等用户常用用品中的电子设备。
在图4所描述的Wi-Fi模块控制方法中,当终端设备检测到的当前事件为预设事件时,向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发目标Wi-Fi设备关闭Wi-Fi模块,因此,可以提高终端设备的控制能力和节约电能。
请参阅图5,图5是本发明实施例公开的又一种Wi-Fi模块控制方法的流程图。其中,图5所示的Wi-Fi模块控制方法适用于手机、平板电脑、笔记本电脑等有Wi-Fi模块的终端设备。图5所示的Wi-Fi模块控制方法是从终端设备的角度来描述的。如图5所示,该Wi-Fi模块控制方法可以包括以下步骤。
S501、当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
本实施例中,检测目标Wi-Fi设备的Wi-Fi信号的方法包括:在终端设备上预先配置某个Wi-Fi设备为目标Wi-Fi设备,如果终端设备已配置该目标Wi-Fi设备的接入密码,或终端设备已与该目标Wi-Fi设备建立过Wi-Fi连接,当终端设备的Wi-Fi模块启动后,检测能否接收到该目标Wi-Fi设备的Wi-Fi信号,如果不能接收到,则认为未检测到目标Wi-Fi设备的Wi-Fi信号,如果能接收到,则认为可以检测到目标Wi-Fi设备的Wi-Fi信号。
本实施例中,当终端设备检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。其中,预设事件包括:
终端设备处于预设范围内;或
终端设备处于预设范围内,终端设备的当前条件满足预设条件。其中,预设条件为终端设备需要使用Wi-Fi网络的条件,可以包括以下条件中的至少一种:
存在用户输入的针对终端设备的Wi-Fi模块启动指令;
终端设备的屏幕开启时间大于或等于第四预设时间;
终端设备的目标应用程序处于运行状态;
用户由睡眠状态转换为苏醒状态;和
终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量。
本实施例中,当用户通过终端设备首次使用目标Wi-Fi设备时,先在终端设备上设置有目标Wi-Fi设备的账号、域名、URI、URL、IP地址、名称等信息,以便对目标Wi-Fi设备进行识别。
本实施例中,非Wi-Fi网络为除Wi-Fi网络以外的网络,包括移动通信网络,如中国联通手机使用的中国联通网络、中国移动手机使用的中国移动网络、中国电信手机使用的中国电信网络等。
可选地,当终端设备处于预设范围内时,表明需要通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动Wi-Fi模块。其中,预设范围为目标Wi-Fi设备的覆盖范围,即在此范围内,当目标Wi-Fi设备的Wi-Fi模块运行时,终端设备能检测到目标Wi-Fi设备的目标Wi-Fi信号。
可选地,当终端设备处于预设范围内,且检测到用户输入的针对终端设备的Wi-Fi模块启动指令时,表明用户想通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动Wi-Fi模块。
可选地,当终端设备处于预设范围内,且终端设备的屏幕开启时间大于或等于第四预设时间时,表明需要通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动Wi-Fi模块。
可选地,当终端设备处于预设范围内,且终端设备的目标应用程序处于运行状态时,表明需要通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动Wi-Fi模块。其中,目标应用程序可以为比较费流量的应用程序,比如视频播放应用程序等。
可选地,当终端设备处于预设范围内,且用户由睡眠状态转换为苏醒状态时,表明需要通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动 Wi-Fi模块。其中,可以通过可穿戴式设备检测用户是否处于苏醒状态,并将该消息发送给终端设备,其中,可穿戴式设备可以为手环、眼镜等用户常用用品中的电子设备。
可选地,当终端设备处于预设范围内,且终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量时,表明需要通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动Wi-Fi模块。
作为一种可能的实施方式,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块的方式具体为:
终端设备通过非Wi-Fi网络直接向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
本实施例中,终端设备可以通过移动通信网络的数据通道直接向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
作为一种可能的实施方式,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块的方式具体为:
终端设备通过非Wi-Fi网络向服务器发送Wi-Fi模块启动指令,由服务器向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
本实施例中,终端设备可以通过移动通信网络的数据通道向服务器发送Wi-Fi模块启动指令,由服务器向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块;或向服务器发送短信,短信中携带目标Wi-Fi设备的Wi-Fi模块启动指令,由服务器向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
本实施例中,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令之后,将会接收到目标Wi-Fi设备发送的Wi-Fi模块启动完成的响应消息,表明终端设备可以使用目标Wi-Fi设备传输的Wi-Fi访问网络。终端设备向目标Wi-Fi设备发送Wi-Fi模块启动指令,可以是终端设备将Wi-Fi模块启动指令直接发送给目标Wi-Fi设备,也可以是先将Wi-Fi模块启动指令发送给云端服务器,再由云端服务器将Wi-Fi模块启动指令发送给目标Wi-Fi设备,本实施例不作限定。当终端设备将Wi-Fi模块启动指令直接发送给目标Wi-Fi设备时,终端 设备是否为合法终端设备是由目标Wi-Fi设备进行认证的;当终端设备将Wi-Fi模块启动指令先发送给云端服务器,再由云端服务器将Wi-Fi模块启动指令发送给目标Wi-Fi设备时,终端设备是否为合法终端设备是由云端服务器进行认证的。
在图5所示的Wi-Fi控制方法中,当Wi-Fi设备关闭Wi-Fi模块后,且自动启动Wi-Fi时间未到达之前,当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块,因此,提高了终端设备的控制能力、Wi-Fi应用的灵活性和用户体验。
请参阅图6,图6是本发明实施例公开的又一种Wi-Fi模块控制方法的流程图。其中,图6所示的Wi-Fi模块控制方法适用于手机、平板电脑、笔记本电脑等有Wi-Fi模块的终端设备。图6所示的Wi-Fi模块控制方法是从终端设备的角度来描述的。如图6所示,该Wi-Fi模块控制方法可以包括以下步骤。
S601、终端设备判断是否检测到终端设备处于预设范围内。
作为一种可能的实施方式,终端设备判断是否检测到终端设备处于预设范围内的方式具体为:
终端设备判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则终端设备处于预设范围内,若不相同,则终端设备处于预设范围之外,存储的无线基站标识为终端设备处于预设范围内时检测到的基站标识;或
终端设备判断终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则终端设备处于预设范围内,若大于,则终端设备处于预设范围之外,预设位置为终端设备处于预设范围内时卫星定位位置;或
终端设备判断在第六预设时间内终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则终端设备处于预设范围内,若大于,则终端设备处于预设范围之外,第六预设时间内为终端设备与目标Wi-Fi设备断开连接到当前时间的时间间隔。
本实施例中,无线基站为能够发送无线信号的设备,无线基站可以是移动通信网络中的基站,或是能够发送蓝牙信号的设备,或是发送蓝牙iBeacon信号的iBeacon基站,或是能够发送Wi-Fi的设备,或是RFID(Radio Frequency Identification,射频识别)标签。
本实施例中,终端设备的运动距离可以通过终端设备上的陀螺仪来计算,终端设备与目标Wi-Fi设备断开连接可以为终端设备主动与目标Wi-Fi设备断开连接,如用户关闭终端设备上的Wi-Fi模块,也可以为终端设备检测不到Wi-Fi设备的Wi-Fi而断开连接。
S602、若终端设备处于预设范围内但未检测到目标Wi-Fi设备的Wi-Fi信号,或终端设备处于预设范围内,终端设备的当前条件满足预设条件但未检测到目标Wi-Fi设备的Wi-Fi信号时,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
本实施例中,当终端设备处于预设范围内但未检测到目标Wi-Fi设备的Wi-Fi信号,或终端设备处于预设范围内,终端设备的当前条件满足预设条件但未检测到目标Wi-Fi设备的Wi-Fi信号时,通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。其中,预设条件包括以下条件中的至少一种:
存在用户输入的针对终端设备的Wi-Fi模块启动指令;
终端设备的屏幕开启时间大于或等于第四预设时间;
终端设备的目标应用程序处于运行状态;
用户由睡眠状态转换为苏醒状态;和
终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量。
本实施例中,当用户通过终端设备首次使用目标Wi-Fi设备时,先在终端设备上设置有目标Wi-Fi设备的账号、域名、URI、URL、IP地址、名称等信息,以便对目标Wi-Fi设备进行识别。
本实施例中,非Wi-Fi网络为除Wi-Fi网络以外的网络,包括移动通信网络,如中国联通手机使用的中国联通网络、中国移动手机使用的中国移动网络、中国电信手机使用的中国电信网络等。
可选地,当终端设备处于预设范围内时,表明需要通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动Wi-Fi模块。其中,预设范围为目标Wi-Fi设备的覆盖范围,即在此范围内,当目标Wi-Fi设备的Wi-Fi模块运行时,终端设备能检测到目标Wi-Fi设备的目标Wi-Fi信号。
可选地,当终端设备处于预设范围内,且检测到用户输入的针对终端设备的Wi-Fi模块启动指令时,表明用户想通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动Wi-Fi模块。
可选地,当终端设备处于预设范围内,且终端设备的屏幕开启时间大于或等于第四预设时间时,表明需要通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动Wi-Fi模块。
可选地,当终端设备处于预设范围内,且终端设备的目标应用程序处于运行状态时,表明需要通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动Wi-Fi模块。其中,目标应用程序可以为比较费流量的应用程序,比如视频播放应用程序等。
可选地,可选地,当终端设备处于预设范围内,且用户由睡眠状态转换为苏醒状态时,表明需要通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动Wi-Fi模块。其中,可以通过可穿戴式设备检测用户是否处于苏醒状态,并将该消息发送给终端设备,其中,可穿戴式设备可以为手环、眼镜等用户常用用品中的电子设备。
可选地,当终端设备处于预设范围内,且终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量时,表明需要通过Wi-Fi访问网络,因此,生成针对目标Wi-Fi设备的Wi-Fi模块启动指令并通过非Wi-Fi网络发送给目标Wi-Fi设备,以触发目标Wi-Fi设备启动Wi-Fi模块。
作为一种可能的实施方式,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发 送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块的方式具体为:
终端设备通过非Wi-Fi网络直接向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
本实施例中,终端设备可以通过移动通信网络的数据通道直接向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
作为一种可能的实施方式,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块的方式具体为:
终端设备通过非Wi-Fi网络向服务器发送Wi-Fi模块启动指令,由服务器向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
本实施例中,终端设备可以通过移动通信网络的数据通道向服务器发送Wi-Fi模块启动指令,由服务器向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块;或向服务器发送短信,短信中携带目标Wi-Fi设备的Wi-Fi模块启动指令,由服务器向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
本实施例中,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令之后,将会接收到目标Wi-Fi设备发送的Wi-Fi模块启动完成的响应消息,表明终端设备可以使用目标Wi-Fi设备传输的Wi-Fi访问网络。终端设备向目标Wi-Fi设备发送Wi-Fi模块启动指令,可以是终端设备将Wi-Fi模块启动指令直接发送给目标Wi-Fi设备,也可以是先将Wi-Fi模块启动指令发送给云端服务器,再由云端服务器将Wi-Fi模块启动指令发送给目标Wi-Fi设备,本实施例不作限定。当终端设备将Wi-Fi模块启动指令直接发送给目标Wi-Fi设备时,终端设备是否为合法终端设备是由目标Wi-Fi设备进行认证的;当终端设备将Wi-Fi模块启动指令先发送给云端服务器,再由云端服务器将Wi-Fi模块启动指令发送给目标Wi-Fi设备时,终端设备是否为合法终端设备是由云端服务器进行认证的。
在图6所示的Wi-Fi控制方法中,当Wi-Fi设备关闭Wi-Fi模块后,且自动启动Wi-Fi时间未到达之前,当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块,因此,提高了终端 设备的控制能力、Wi-Fi应用的灵活性和用户体验。
请参阅图7,图7是本发明实施例公开的一种Wi-Fi设备的结构图。其中,图7所示的Wi-Fi设备可以为无线路由器、家庭网关等有Wi-Fi模块的Wi-Fi设备。如图7所示,该Wi-Fi设备700可以包括:
判断单元701,用于在当前时间为自动关闭Wi-Fi时间,或接收到终端设备发送的Wi-Fi模块关闭指令时,判断检测到的当前条件是否为预设条件;
关闭单元702,用于当判断单元701的判断结果为是时,关闭Wi-Fi设备的Wi-Fi模块;
预设条件可以包括以下条件中的任意一种:
不存在通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备的终端设备;和
存在通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备的终端设备,且终端设备在第一预设时间内所用流量小于第一预设流量。
本实施例中,用户提前在该Wi-Fi设备上设置有自动关闭Wi-Fi时间和自动启动Wi-Fi时间,当当前时间为自动关闭Wi-Fi时间或接收到终端设备发送的Wi-Fi模块关闭指令时,判断单元701将判断检测到的当前条件是否为预设条件。
相应地,当判断单元701的判断结果为有终端设备使用Wi-Fi设备的Wi-Fi,且在第一预设时间内所用流量大于或等于第一预设流量,则表明用户正在通过Wi-Fi访问网络,因此,关闭单元702不关闭Wi-Fi模块,直到终端设备在第一预设时间内所用流量小于第一预设流量或无终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备时关闭单元702才关闭Wi-Fi模块。其中,第一预设流量是预先设置的流量值,具体值根据需要设置,本实施例不作限定。另外,第一预设时间为预先设置的时间值,可以为5分钟,也可以为10分钟,具体值根据需要设置,本实施例不作限定。
本实施例中,若无终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备,则表明无用户使用Wi-Fi网络,关闭单元702关闭Wi-Fi模块。若有终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备,但终端设备在第一预设时间内所用流量小于第一预设流量,则表明用户只是打开了终端设备的Wi-Fi模块,但并未通 过Wi-Fi访问网络,如播放视频、下载文件等,因此,关闭单元702关闭Wi-Fi模块。
本实施例中,预设条件是预先设置的条件,为无终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备;或有终端设备通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备,但终端设备在第一预设时间内所用流量小于第一预设流量。
本实施例中,在Wi-Fi设备上设置自动关闭Wi-Fi时间和自动启动Wi-Fi时间的方式可以为:通过web登陆到Wi-Fi设备上设置,或通过APP对Wi-Fi设备进行设置。例如,设置的内容可以为:设置22:30-7:00为关闭Wi-Fi模块时间,即睡眠时间关闭Wi-Fi模式,其中,22:30为自动关闭Wi-Fi时间,7:00为自动启动Wi-Fi时间;和/或8:30-18:00为关闭Wi-Fi模块时间,即上班时间关闭Wi-Fi模式,其中,8:30为自动关闭Wi-Fi时间,16:00为自动启动Wi-Fi时间。
作为一种可能的实施方式,该Wi-Fi设备700还可以包括:
接收单元703,用于接收终端设备通过非Wi-Fi网络发送的Wi-Fi模块启动指令;
启动单元704,用于根据接收单元703接收的Wi-Fi模块启动指令,启动Wi-Fi设备的Wi-Fi模块。
本实施例中,当关闭单元702关闭Wi-Fi设备的Wi-Fi模块后,但还未到自动启动Wi-Fi时间时,如果用户想通过Wi-Fi访问网络时,接收单元703将会接收到终端设备通过非Wi-Fi网络发送的Wi-Fi模块启动指令,该Wi-Fi模块启动指令携带有终端设备的标识。其中,非Wi-Fi网络为除Wi-Fi网络以外的网络,包括移动通信网络,如中国联通手机使用的中国联通网络、中国移动手机使用的中国移动网络、中国电信手机使用的中国电信网络等。
本实施例中,接收单元703接收到终端设备发送的Wi-Fi模块启动指令之后,将通过该Wi-Fi模块启动指令携带的终端设备的标识和/或通过用户账号和密码判断该终端设备是否是合法终端设备,若终端设备为合法终端设备,则启动单元704启动Wi-Fi模块,若终端设备为非法终端设备,则不启动Wi-Fi模块。
本实施例中,如果在Wi-Fi设备处于上班时间关闭Wi-Fi模式时,接收到Wi-Fi模块启动指令,在启动Wi-Fi模块之后,将取消关闭Wi-Fi任务;如果在Wi-Fi设备处于睡眠时间关闭Wi-Fi模式时,接收到Wi-Fi模块启动指令,在启动 Wi-Fi模块之后,将重复步骤S101-S102。
在图7所示的Wi-Fi设备中,Wi-Fi设备在自动关闭Wi-Fi时间到达时,并未立即关闭Wi-Fi模块,而是先判断是否有终端设备使用Wi-Fi设备传输的Wi-Fi信号访问网络,当有终端设备使用Wi-Fi设备传输的Wi-Fi信号访问网络时将不关闭Wi-Fi模块,当无终端设备使用Wi-Fi设备传输的Wi-Fi信号访问网络时将关闭Wi-Fi模块,从而避免中断终端设备通过Wi-Fi访问网络;此外,关闭Wi-Fi模块后,且自动启动Wi-Fi时间未到达之前,当有终端设备向Wi-Fi设备发送Wi-Fi模块启动指令,且该终端设备为合法终端设备时,将启动Wi-Fi模块,以便终端设备通过Wi-Fi访问网络。因此,提高了Wi-Fi应用的灵活性、Wi-Fi设备的控制能力和用户体验。
请参阅图8,图8是本发明实施例公开的另一种Wi-Fi设备的结构图。其中,图8所示的Wi-Fi设备可以为无线路由器、家庭网关等有Wi-Fi模块的Wi-Fi设备。如图8所示,该Wi-Fi设备800可以包括存储器801、处理器802和输入装置803,存储器801中存储一组程序代码,且处理器802用于调用存储器801中存储的程序代码执行以下操作:
在当前时间为自动关闭Wi-Fi时间,或接收到终端设备发送的Wi-Fi模块关闭指令时,判断检测到的当前条件是否为预设条件;
若检测到的当前条件为预设条件,关闭Wi-Fi设备的Wi-Fi模块;
预设条件包括以下条件中的任意一种:
不存在通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备的终端设备;和
存在通过Wi-Fi设备的Wi-Fi信号接入Wi-Fi设备的终端设备,且终端设备在第一预设时间内所用流量小于第一预设流量。
作为一种可能的实施方式,输入装置803,用于在处理器802关闭Wi-Fi设备的Wi-Fi模块之后,接收终端设备通过非Wi-Fi网络发送的Wi-Fi模块启动指令并发送给处理器802;
处理器802还用于调用存储器801中存储的程序代码执行以下操作:
根据Wi-Fi模块启动指令,启动Wi-Fi设备的Wi-Fi模块。
本实施例中,非Wi-Fi网络为除Wi-Fi网络以外的网络,包括移动通信网络, 如中国联通手机使用的中国联通网络、中国移动手机使用的中国移动网络、中国电信手机使用的中国电信网络等。
本实施例中,处理器为Wi-Fi设备的控制中心,利用各种接口和线路连接整个Wi-Fi设备的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行Wi-Fi设备的各种功能和/或处理数据。处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器可以仅包括中央处理器(Central Processing Unit,简称CPU),也可以是GPU、数字信号处理器(Digital Signal Processor,简称DSP)、及通信单元中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。
在图8所示的Wi-Fi设备中,Wi-Fi设备在自动关闭Wi-Fi时间到达时,并未立即关闭Wi-Fi模块,而是先判断是否有终端设备使用Wi-Fi设备传输的Wi-Fi信号访问网络,当有终端设备使用Wi-Fi设备传输的Wi-Fi信号访问网络时将不关闭Wi-Fi模块,当无终端设备使用Wi-Fi设备传输的Wi-Fi信号访问网络时将关闭Wi-Fi模块,从而避免中断终端设备通过Wi-Fi访问网络;此外,关闭Wi-Fi模块后,且自动启动Wi-Fi时间未到达之前,当有终端设备向Wi-Fi设备发送Wi-Fi模块启动指令,且该终端设备为合法终端设备时,将启动Wi-Fi模块,以便终端设备通过Wi-Fi访问网络。因此,提高了Wi-Fi应用的灵活性、Wi-Fi设备的控制能力和用户体验。
请参阅图9,图9是本发明实施例公开的一种终端设备的结构图。其中,图9所示的终端设备可以为手机、平板电脑、笔记本电脑等终端设备。如图9所示,该终端设备900可以包括:
发送单元901,用于当检测到的当前事件为预设事件时,向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发目标Wi-Fi设备关闭Wi-Fi模块;
预设事件可以包括:
终端设备处于预设范围之外;或
终端设备处于预设范围内,且终端设备的当前条件为预设条件。
作为一种可能的实施方式,预设条件可以包括以下条件中的至少一种:
存在用户输入的针对终端设备的Wi-Fi模块关闭指令;
终端设备的屏幕关闭时间大于或等于第二预设时间;和
用户由苏醒状态转换为睡眠状态。
本实施例中,预设范围为目标Wi-Fi设备的覆盖范围,即在此范围内,当目标Wi-Fi设备的Wi-Fi模块运行时,终端设备能检测到目标Wi-Fi设备的目标Wi-Fi信号。
作为一种可能的实施方式,该终端设备900还可以包括:
判断单元902,用于判断是否检测到终端设备处于预设范围内。
具体地,发送单元901,用于当判断单元902的判断结果为否,或判断单元902的判断结果为是且检测到终端设备的当前条件为预设条件时,向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发目标Wi-Fi设备关闭Wi-Fi模块。
作为一种可能的实施方式,判断单元902,具体用于:
判断检测到的当前无线基站标识是否与存储的无线基站标识相同,当第一判断单元的判断结果为是时,终端设备处于预设范围内,当第一判断单元的判断结果为否时,终端设备处于预设范围之外,存储的无线基站标识为终端设备处于预设范围内时检测到的基站标识;或
判断终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,当第二判断单元的判断结果为否时,终端设备处于预设范围内,当第二判断单元的判断结果为是时,终端设备处于预设范围之外,预设位置为终端设备处于预设范围内时卫星定位位置;或
判断在第三预设时间内终端设备的运动距离是否小于或等于第二预设距离,当第三判断单元的判断结果为否时,终端设备处于预设范围内,当第三判断单元的判断结果为是时,终端设备处于预设范围之外,第三预设时间内为终端设备与目标Wi-Fi设备断开连接到当前时间的时间间隔。
在图9所描述的终端设备中,当终端设备检测到的当前事件为预设事件时,向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发目标Wi-Fi设备关闭Wi-Fi模块,因此,可以提高终端设备的控制能力和节约电能。
请参阅图10,图10是本发明实施例公开的又一种Wi-Fi设备的结构图。其中,图10所示的终端设备可以为手机、平板电脑、笔记本电脑等终端设备。如图10所示,该终端设备1000可以包括:
输出装置1001,用于当检测到的当前事件为预设事件时,向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发目标Wi-Fi设备关闭Wi-Fi模块;
预设事件可以包括:
终端设备处于预设范围之外;或
终端设备处于预设范围内,且终端设备的当前条件为预设条件。
作为一种可能的实施方式,预设条件可以包括以下条件中的至少一种:
存在用户输入的针对终端设备的Wi-Fi模块关闭指令;
终端设备的屏幕关闭时间大于或等于第二预设时间;和
用户由苏醒状态转换为睡眠状态。
作为一种可能的实施方式,该终端设备1000还可以包括处理器1002和存储器1003,存储器1003中存储有一组程序代码,处理器1002用于调用存储器1003中存储的程序代码执行以下操作:
判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则终端设备处于预设范围内,若不相同,则终端设备处于预设范围之外,存储的无线基站标识为终端设备处于预设范围内时检测到的基站标识;或
判断终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则终端设备处于预设范围内,若大于,则终端设备处于预设范围之外,预设位置为终端设备处于预设范围内时卫星定位位置;或
判断在第三预设时间内终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则终端设备处于预设范围内,若大于,则终端设备处于预设范围之外,第三预设时间内为终端设备与目标Wi-Fi设备断开连接到当前时间的时间间隔。
本实施例中,处理器为终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行终端设备的各种功能和/或处理 数据。处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器可以仅包括中央处理器(Central Processing Unit,简称CPU),也可以是GPU、数字信号处理器(Digital Signal Processor,简称DSP)、及通信单元中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。
在图10所描述的终端设备中,当终端设备检测到的当前事件为预设事件时,向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发目标Wi-Fi设备关闭Wi-Fi模块,因此,可以提高终端设备的控制能力和节约电能。
请参阅图11,图11是本发明实施例公开的又一种终端设备的结构图。其中,图11所示的终端设备可以为手机、平板电脑、笔记本电脑等终端设备。如图11所示,该终端设备1100可以包括:
发送单元1101,用于当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号,通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块;
预设事件可以包括:
终端设备处于预设范围内;或
终端设备处于预设范围内,终端设备的当前条件满足预设条件。
本实施例中,当用户通过该终端设备首次使用目标Wi-Fi设备时,先在终端设备上设置有目标Wi-Fi设备的账号、密码、IP地址、名称等信息,以便对目标Wi-Fi设备进行识别。其中,预设范围为目标Wi-Fi设备的覆盖范围,即在此范围内,当目标Wi-Fi设备的Wi-Fi模块运行时,终端设备能检测到目标Wi-Fi设备的Wi-Fi信号。非Wi-Fi网络为除Wi-Fi网络以外的网络,包括移动通信网络,如中国联通手机使用的中国联通网络、中国移动手机使用的中国移动网络、中国电信手机使用的中国电信网络等。
作为一种可能的实施方式,预设条件可以包括以下条件中的至少一种:
存在用户输入的针对终端设备的Wi-Fi模块启动指令;
终端设备的屏幕开启时间大于或等于第四预设时间;
终端设备的目标应用程序处于运行状态;
用户由睡眠状态转换为苏醒状态;和
终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量。
作为一种可能的实施方式,该终端设备还可以包括:
判断单元1102,用于判断是否检测到终端设备处于预设范围内。
具体地,发送单元1101,用于当判断单元1102的判断结果为是但未检测到目标Wi-Fi设备的Wi-Fi信号,或当判断单元1102的判断结果为是,检测到的终端设备的当前条件满足预设条件但未检测到目标Wi-Fi设备的Wi-Fi信号时,通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
作为一种可能的实施方式,判断单元1102,具体用于:
判断检测到的当前无线基站标识是否与存储的无线基站标识相同,当第一判断单元的判断结果为是时,终端设备处于预设范围内,存储的无线基站标识为终端设备处于预设范围内时检测到的基站标识;或
判断终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,当第二判断单元的判断结果为否时,当第一判断单元的判断结果为否时,终端设备处于预设范围之外,终端设备处于预设范围内,预设位置为终端设备处于预设范围内时卫星定位位置;或
判断在第六预设时间内终端设备的运动距离是否小于或等于第二预设距离,当第三判断单元的判断结果为否时,终端设备小于或等于预设范围内,当第二判断单元的判断结果为是时,终端设备处于预设范围之外,第六预设时间内为终端设备与目标Wi-Fi设备断开连接到当前时间的时间间隔。
作为一种可能的实施方式,发送单元1101,具体用于通过非Wi-Fi网络直接向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
作为一种可能的实施方式,发送单元1101,具体用于通过非Wi-Fi网络向服务器发送Wi-Fi模块启动指令,由服务器向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
本实施例中,发送单元1101通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令之后,将会接收到目标Wi-Fi设备发送的Wi-Fi模块启动完成的响应消息,表明终端设备可以使用目标Wi-Fi设备的Wi-Fi访问网络。发送单元1101向目标Wi-Fi设备发送Wi-Fi模块启动指令,可以是发送单元1101将Wi-Fi模块启动指令直接发送给目标Wi-Fi设备,也可以是先将Wi-Fi模块启动指令发送给云端服务器,再由云端服务器将Wi-Fi模块启动指令发送给目标Wi-Fi设备,本实施例不作限定。当发送单元1101将Wi-Fi模块启动指令直接发送给目标Wi-Fi设备时,该终端设备是否为合法终端设备是由目标Wi-Fi设备进行认证的;当发送单元1101将Wi-Fi模块启动指令先发送给云端服务器,再由云端服务器将Wi-Fi模块启动指令发送给目标Wi-Fi设备时,该终端设备是否为合法终端设备是由云端服务器进行认证的。
在图11所示的终端设备中,当Wi-Fi设备关闭Wi-Fi模块后,且自动启动Wi-Fi时间未到达之前,当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块,因此,提高了终端设备的控制能力、Wi-Fi应用的灵活性和用户体验。
请参阅图12,图12是本发明实施例公开的另一种Wi-Fi设备的结构图。其中,图12所示的终端设备可以为手机、平板电脑、笔记本电脑等终端设备。如图11所示,该Wi-Fi设备可以包括:
输出装置1201,用于当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号,通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块;
预设事件可以包括:
终端设备处于预设范围内;或
终端设备处于预设范围内,终端设备的当前条件满足预设条件。
作为一种可能的实施方式,预设条件可以包括以下条件中的至少一种:
存在用户输入的针对终端设备的Wi-Fi模块启动指令;
终端设备的屏幕开启时间大于或等于第四预设时间;
终端设备的目标应用程序处于运行状态;
用户由睡眠状态转换为苏醒状态;和
终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量。
作为一种可能的实施方式,该终端设备1200还可以包括处理器1202和存储器1203,其中,存储器1203中存储有一组程序代码,处理器1202用于调用处理器1203中存储的程序代码执行以下操作:
判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则终端设备处于预设范围内,存储的无线基站标识为终端设备处于预设范围内时检测到的基站标识;或
判断终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则终端设备处于预设范围内,若大于,则终端设备处于预设范围之外,预设位置为终端设备处于预设范围内时卫星定位位置;或
判断在第六预设时间内终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则终端设备处于预设范围内,若大于,则终端设备处于预设范围之外,第六预设时间内为终端设备与目标Wi-Fi设备断开连接到当前时间的时间间隔。
作为一种可能的实施方式,输出装置1201通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块的方式具体为:
通过非Wi-Fi网络直接向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
作为一种可能的实施方式,输出装置1201通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块的方式具体为:
通过非Wi-Fi网络向服务器发送Wi-Fi模块启动指令,由服务器向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块。
本实施例中,处理器为终端设备的控制中心,利用各种接口和线路连接整 个终端设备的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行终端设备的各种功能和/或处理数据。处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器可以仅包括中央处理器(Central Processing Unit,简称CPU),也可以是GPU、数字信号处理器(Digital Signal Processor,简称DSP)、及通信单元中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。
在图12所示的终端设备中,当Wi-Fi设备关闭Wi-Fi模块后,且自动启动Wi-Fi时间未到达之前,当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,终端设备通过非Wi-Fi网络向目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发目标Wi-Fi设备启动Wi-Fi模块,因此,提高了终端设备的控制能力、Wi-Fi应用的灵活性和用户体验。
一个实施例中,本发明实施例进一步公开一种计算机存储介质,该计算机存储介质存储有计算机程序,当计算机存储介质中的计算机程序被读取到计算机时,能够使得计算机完成本发明实施例公开的Wi-Fi控制方法的全部步骤。
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某一些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。
以上对本发明实施例所提供的Wi-Fi控制方法及相关装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的 一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (30)

  1. 一种Wi-Fi模块控制方法,其特征在于,包括:
    在当前时间为自动关闭Wi-Fi时间,或接收到终端设备发送的Wi-Fi模块关闭指令时,Wi-Fi设备判断检测到的当前条件是否为预设条件;
    若检测到的当前条件为预设条件,所述Wi-Fi设备关闭Wi-Fi模块;
    所述预设条件包括以下条件中的任意一种:
    不存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备;和
    存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备,且所述终端设备在第一预设时间内所用流量小于第一预设流量。
  2. 如权利要求1所述的方法,其特征在于,所述Wi-Fi设备关闭Wi-Fi模块之后,所述方法还包括:
    所述Wi-Fi设备接收终端设备通过非Wi-Fi网络发送的Wi-Fi模块启动指令;
    所述Wi-Fi设备根据所述Wi-Fi模块启动指令,启动Wi-Fi模块。
  3. 一种Wi-Fi模块控制方法,其特征在于,包括:
    当检测到的当前事件为预设事件时,终端设备向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发所述目标Wi-Fi设备关闭Wi-Fi模块;
    所述预设事件包括:
    所述终端设备处于预设范围之外;或
    所述终端设备处于预设范围内,且所述终端设备的当前条件为预设条件。
  4. 如权利要求3所述的方法,其特征在于,所述预设条件包括以下条件中的至少一种:
    存在用户输入的针对所述终端设备的Wi-Fi模块关闭指令;
    所述终端设备的屏幕关闭时间大于或等于第二预设时间;和
    用户由苏醒状态转换为睡眠状态。
  5. 如权利要求3或4所述的方法,其特征在于,所述方法还包括:
    所述终端设备判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则所述终端设备处于预设范围内,若不相同,则所述终端设备处于预设范围之外,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
    所述终端设备判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则所述终端设备处于预设范围内,若大于,则所述终端设备处于预设范围之外,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
    所述终端设备判断在第三预设时间内所述终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则所述终端设备处于预设范围内,若大于,则所述终端设备处于预设范围之外,所述第三预设时间为所述终端设备与所述目标Wi-Fi设备断开连接到当前时间的时间间隔。
  6. 一种Wi-Fi模块控制方法,其特征在于,包括:
    当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,所述终端设备通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块;
    所述预设事件包括:
    所述终端设备处于预设范围内;或
    所述终端设备处于预设范围内,所述终端设备的当前条件满足预设条件。
  7. 如权利要求6所述的方法,其特征在于,所述预设条件包括以下条件中的至少一种:
    存在用户输入的针对所述终端设备的Wi-Fi模块启动指令;
    所述终端设备的屏幕开启时间大于或等于第四预设时间;
    所述终端设备的目标应用程序处于运行状态;
    用户由睡眠状态转换为苏醒状态;和
    所述终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量。
  8. 如权利要求7所述的方法,其特征在于,所述方法还包括:
    所述终端设备判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则所述终端设备处于预设范围内,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
    所述终端设备判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则所述终端设备处于预设范围内,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
    所述终端设备判断在第六预设时间内所述终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则所述终端设备处于预设范围内,所述第六预设时间内为所述终端设备与所述目标Wi-Fi设备断开连接到当前时间的时间间隔。
  9. 如权利要求6-8任一项所述的方法,其特征在于,所述终端设备通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块包括:
    所述终端设备通过非Wi-Fi网络直接向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
  10. 如权利要求6-8任一项所述的方法,其特征在于,所述终端设备通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块包括:
    所述终端设备通过非Wi-Fi网络向服务器发送Wi-Fi模块启动指令,由所述服务器向所述目标Wi-Fi设备发送所述Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
  11. 一种Wi-Fi设备,其特征在于,包括:
    判断单元,用于在当前时间为自动关闭Wi-Fi时间,或接收到终端设备发送的Wi-Fi模块关闭指令时,判断检测到的当前条件是否为预设条件;
    关闭单元,用于当所述判断单元的判断结果为是时,关闭所述Wi-Fi设备 的Wi-Fi模块;
    所述预设条件包括以下条件中的任意一种:
    不存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备;和
    存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备,且所述终端设备在第一预设时间内所用流量小于第一预设流量。
  12. 如权利要求11所述的Wi-Fi设备,其特征在于,所述Wi-Fi设备还包括:
    接收单元,用于接收终端设备通过非Wi-Fi网络发送的Wi-Fi模块启动指令;
    启动单元,用于根据所述接收单元接收的Wi-Fi模块启动指令,启动所述Wi-Fi设备的Wi-Fi模块。
  13. 一种Wi-Fi设备,其特征在于,包括存储器和处理器,所述存储器中存储有一组程序代码,所述处理器用于调用所述存储器中存储的程序代码执行以下操作:
    在当前时间为自动关闭Wi-Fi时间,或接收到终端设备发送的Wi-Fi模块关闭指令时,判断检测到的当前条件是否为预设条件;
    若检测到的当前条件为预设条件,关闭所述Wi-Fi设备的Wi-Fi模块;
    所述预设条件包括以下条件中的任意一种:
    不存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备;和
    存在通过所述Wi-Fi设备的Wi-Fi信号接入所述Wi-Fi设备的终端设备,且所述终端设备在第一预设时间内所用流量小于第一预设流量。
  14. 如权利要求13所述的Wi-Fi设备,其特征在于,所述Wi-Fi设备还包括:
    输入装置,用于在处理器关闭所述Wi-Fi设备的Wi-Fi模块之后,接收终端设备通过非Wi-Fi网络发送的Wi-Fi模块启动指令并发送给所述处理器;
    所述处理器还用于调用所述存储器中存储的程序代码执行以下操作:
    根据所述Wi-Fi模块启动指令,启动所述Wi-Fi设备的Wi-Fi模块。
  15. 一种终端设备,其特征在于,包括:
    发送单元,用于当检测到的当前事件为预设事件时,向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发所述目标Wi-Fi设备关闭Wi-Fi模块;
    所述预设事件包括:
    所述终端设备处于预设范围之外;或
    所述终端设备处于预设范围内,且所述终端设备的当前条件为预设条件。
  16. 如权利要求15所述的终端设备,其特征在于,所述预设条件包括以下条件中的至少一种:
    存在用户输入的针对所述终端设备的Wi-Fi模块关闭指令;
    所述终端设备的屏幕关闭时间大于或等于第二预设时间;和
    用户由苏醒状态转换为睡眠状态。
  17. 如权利要求15或16所述的终端设备,其特征在于,所述终端设备还包括:
    第一判断单元,用于判断检测到的当前无线基站标识是否与存储的无线基站标识相同,当所述第一判断单元的判断结果为是时,所述终端设备处于预设范围内,当所述第一判断单元的判断结果为否时,所述终端设备处于预设范围之外,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
    第二判断单元,用于判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,当所述第二判断单元的判断结果为是时,所述终端设备处于预设范围内,当所述第二判断单元的判断结果为是时,所述终端设备处于预设范围之外,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
    第三判断单元,用于判断在第三预设时间内所述终端设备的运动距离是否小于或等于第二预设距离,当所述第三判断单元的判断结果为是时,所述终端设备处于预设范围内,当所述第三判断单元的判断结果为是时,所述终端设备处于预设范围之外,所述第三预设时间内为所述终端设备与所述目标Wi-Fi设 备断开连接到当前时间的时间间隔。
  18. 一种终端设备,其特征在于,包括:
    输出装置,用于当检测到的当前事件为预设事件时,向目标Wi-Fi设备发送Wi-Fi模块关闭指令,以触发所述目标Wi-Fi设备关闭Wi-Fi模块;
    所述预设事件包括:
    所述终端设备处于预设范围之外;或
    所述终端设备处于预设范围内,且所述终端设备的当前条件为预设条件。
  19. 如权利要求18所述的终端设备,其特征在于,所述预设条件包括以下条件中的至少一种:
    存在用户输入的针对所述终端设备的Wi-Fi模块关闭指令;
    所述终端设备的屏幕关闭时间大于或等于第二预设时间;和
    用户由苏醒状态转换为睡眠状态。
  20. 如权利要求18或19所述的终端设备,其特征在于,所述终端设备还包括处理器和存储器,所述存储器中存储有一组程序代码,所述处理器用于调用所述存储器中存储的程序代码执行以下操作:
    判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则所述终端设备处于预设范围内,若不相同,则所述终端设备处于预设范围之外,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
    判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则所述终端设备处于预设范围内,若大于,则所述终端设备处于预设范围之外,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
    判断在第三预设时间内所述终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则所述终端设备处于预设范围内,若大于,则所述终端设备处于预设范围之外,所述第三预设时间内为所述终端设备与所述目标 Wi-Fi设备断开连接到当前时间的时间间隔。
  21. 一种终端设备,其特征在于,包括:
    发送单元,用于当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块;
    所述预设事件包括:
    所述终端设备处于预设范围内;或
    所述终端设备处于预设范围内,所述终端设备的当前条件满足预设条件。
  22. 如权利要求21所述的终端设备,其特征在于,所述预设条件包括以下条件中的至少一种:
    存在用户输入的针对所述终端设备的Wi-Fi模块启动指令;
    所述终端设备的屏幕开启时间大于或等于第四预设时间;
    所述终端设备的目标应用程序处于运行状态;
    用户由睡眠状态转换为苏醒状态;和
    所述终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量。
  23. 如权利要求22所述的终端设备,其特征在于,所述终端设备还包括:
    第一判断单元,用于判断检测到的当前无线基站标识是否与存储的无线基站标识相同,当所述第一判断单元的判断结果为是时,所述终端设备处于预设范围内,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
    第二判断单元,用于判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,当所述第二判断单元的判断结果为是时,所述终端设备处于预设范围内,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
    第三判断单元,用于判断在第六预设时间内所述终端设备的运动距离是否 小于或等于第二预设距离,当所述第三判断单元的判断结果为是时,所述终端设备处于预设范围内,所述第六预设时间内为所述终端设备与所述目标Wi-Fi设备断开连接到当前时间的时间间隔。
  24. 如权利要求21-23任一项所述的终端设备,其特征在于,所述发送单元,具体用于通过非Wi-Fi网络直接向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
  25. 如权利要求21-23任一项所述的终端设备,其特征在于,所述发送单元,具体用于通过非Wi-Fi网络向服务器发送Wi-Fi模块启动指令,由所述服务器向所述目标Wi-Fi设备发送所述Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
  26. 一种终端设备,其特征在于,包括:
    输出装置,用于当检测到的当前事件为预设事件,且未检测到目标Wi-Fi设备的Wi-Fi信号时,通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块;
    所述预设事件包括:
    所述终端设备处于预设范围内;或
    所述终端设备处于预设范围内,所述终端设备的当前条件满足预设条件。
  27. 如权利要求26所述的终端设备,其特征在于,所述预设条件包括以下条件中的至少一种:
    存在用户输入的针对所述终端设备的Wi-Fi模块启动指令;
    所述终端设备的屏幕开启时间大于或等于第四预设时间;
    所述终端设备的目标应用程序处于运行状态;
    用户由睡眠状态转换为苏醒状态;和
    所述终端设备在第五预设时间内所用非Wi-Fi网络的流量大于或等于第二预设流量。
  28. 如权利要求27所述的终端设备,其特征在于,所述终端设备还包括处理器和存储器,其中,所述存储器中存储有一组程序代码,所述处理器用于调用所述处理器中存储的程序代码执行以下操作:
    判断检测到的当前无线基站标识是否与存储的无线基站标识相同,若相同,则所述终端设备处于预设范围内,所述存储的无线基站标识为所述终端设备处于预设范围内时检测到的基站标识;或
    判断所述终端设备当前卫星定位位置与预设位置间的距离是否小于或等于第一预设距离,若小于或等于,则所述终端设备处于预设范围内,所述预设位置为所述终端设备处于预设范围内时卫星定位位置;或
    判断在第六预设时间内所述终端设备的运动距离是否小于或等于第二预设距离,若小于或等于,则所述终端设备处于预设范围内,所述第六预设时间内为所述终端设备与所述目标Wi-Fi设备断开连接到当前时间的时间间隔。
  29. 如权利要求26-28任一项所述的终端设备,其特征在于,所述输出装置通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块的方式具体为:
    通过非Wi-Fi网络直接向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
  30. 如权利要求26-28任一项所述的终端设备,其特征在于,所述输出装置通过非Wi-Fi网络向所述目标Wi-Fi设备发送Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块的方式具体为:
    通过非Wi-Fi网络向服务器发送Wi-Fi模块启动指令,由所述服务器向所述目标Wi-Fi设备发送所述Wi-Fi模块启动指令,以触发所述目标Wi-Fi设备启动Wi-Fi模块。
PCT/CN2014/086413 2014-09-12 2014-09-12 一种Wi-Fi模块控制方法及相关装置 WO2016037356A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480056143.2A CN105637973A (zh) 2014-09-12 2014-09-12 一种Wi-Fi模块控制方法及相关装置
PCT/CN2014/086413 WO2016037356A1 (zh) 2014-09-12 2014-09-12 一种Wi-Fi模块控制方法及相关装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/086413 WO2016037356A1 (zh) 2014-09-12 2014-09-12 一种Wi-Fi模块控制方法及相关装置

Publications (1)

Publication Number Publication Date
WO2016037356A1 true WO2016037356A1 (zh) 2016-03-17

Family

ID=55458276

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086413 WO2016037356A1 (zh) 2014-09-12 2014-09-12 一种Wi-Fi模块控制方法及相关装置

Country Status (2)

Country Link
CN (1) CN105637973A (zh)
WO (1) WO2016037356A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107302440A (zh) * 2017-08-09 2017-10-27 无锡北斗星通信息科技有限公司 无线路由自动关闭装置
CN113853002A (zh) * 2021-10-19 2021-12-28 深圳壹账通智能科技有限公司 Wi-Fi开关的状态切换方法、装置、终端设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833831A (zh) * 2012-08-21 2012-12-19 中兴通讯股份有限公司 实现动态休眠和唤醒的网卡设备、路由设备、系统及方法
CN103546950A (zh) * 2013-10-30 2014-01-29 深圳Tcl新技术有限公司 自动开关无线路由器的WiFi模组的方法和装置
US20140029596A1 (en) * 2012-07-30 2014-01-30 Qualcomm Incorporated Autonomous discovery for enhanced wifi devices
CN103974391A (zh) * 2013-02-04 2014-08-06 华为终端有限公司 一种设备唤醒方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2416547A3 (en) * 2010-08-04 2012-02-29 Cellco Partnership D/B/A Verizon Wireless Wireless mobile communication device with autonomous WI-FI control
CN103179647A (zh) * 2013-03-11 2013-06-26 广东欧珀移动通信有限公司 智能控制wifi模块的方法及移动终端
CN103686963B (zh) * 2013-12-06 2017-07-28 小米科技有限责任公司 控制无线网络开关方法、装置、设备及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140029596A1 (en) * 2012-07-30 2014-01-30 Qualcomm Incorporated Autonomous discovery for enhanced wifi devices
CN102833831A (zh) * 2012-08-21 2012-12-19 中兴通讯股份有限公司 实现动态休眠和唤醒的网卡设备、路由设备、系统及方法
CN103974391A (zh) * 2013-02-04 2014-08-06 华为终端有限公司 一种设备唤醒方法及装置
CN103546950A (zh) * 2013-10-30 2014-01-29 深圳Tcl新技术有限公司 自动开关无线路由器的WiFi模组的方法和装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107302440A (zh) * 2017-08-09 2017-10-27 无锡北斗星通信息科技有限公司 无线路由自动关闭装置
CN107835084A (zh) * 2017-08-09 2018-03-23 董瑞兰 保护孕妇辐射伤害的装置
CN113853002A (zh) * 2021-10-19 2021-12-28 深圳壹账通智能科技有限公司 Wi-Fi开关的状态切换方法、装置、终端设备及介质

Also Published As

Publication number Publication date
CN105637973A (zh) 2016-06-01

Similar Documents

Publication Publication Date Title
US9979497B2 (en) Audio playing method and apparatus based on Bluetooth connection
EP3136648B1 (en) Method and device for determining control authority on user device
CN116232667A (zh) 用于边缘计算服务的方法及其电子装置
JP6404486B2 (ja) 接続確立方法、装置、プログラム、及び記録媒体
US11330065B2 (en) Application connection for devices in a network
EP3226432B1 (en) Method and devices for sharing media data between terminals
JP2019525554A (ja) ブルートゥース接続管理方法、マスタ・ブルートゥース・デバイス、及び装置
WO2018049886A1 (zh) 建立热点的方法及终端设备
WO2016107124A1 (zh) 流量共享方法及装置、终端
WO2018107593A1 (zh) 一种在不同终端间共享文件的方法及设备
CN105100141A (zh) 多媒体内容网络分享方法、装置及系统
CN107831886B (zh) 关联启动应用的管控方法、装置、存储介质及智能终端
WO2016150191A1 (zh) 一种数据共享方法及装置
WO2018049969A1 (zh) 热点建立方法及相关设备
EP3011717A1 (en) Managing data communications based on phone calls between mobile computing devices
WO2018049970A1 (zh) 热点网络切换方法及终端
WO2018028239A1 (zh) 一种控制终端的方法及装置、计算机存储介质
WO2017215151A1 (zh) 自动调节情景模式的方法及装置
US20160285949A1 (en) Wireless login-based remote control method and device
CN107885588B (zh) 应用服务的控制方法、装置及存储介质和移动终端
KR101498509B1 (ko) 하이브리드 데스크톱 환경 데이터 사용 인증을 위한 방법들 및 장치들
WO2015165415A1 (en) Method and apparatus for playing audio data
US20180213027A1 (en) Receiving a communication event
WO2018161788A1 (zh) 多媒体数据共享方法及装置
WO2015139401A1 (zh) 无线网络的建立方法、系统及无线路由装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14901784

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14901784

Country of ref document: EP

Kind code of ref document: A1