WO2025035753A1 - WiFi热点管理方法、电子设备及计算机可读存储介质 - Google Patents
WiFi热点管理方法、电子设备及计算机可读存储介质 Download PDFInfo
- Publication number
- WO2025035753A1 WO2025035753A1 PCT/CN2024/081182 CN2024081182W WO2025035753A1 WO 2025035753 A1 WO2025035753 A1 WO 2025035753A1 CN 2024081182 W CN2024081182 W CN 2024081182W WO 2025035753 A1 WO2025035753 A1 WO 2025035753A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wifi hotspot
- wifi
- hotspot
- roaming
- management method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0055—Transmission or use of information for re-establishing the radio link
- H04W36/0072—Transmission or use of information for re-establishing the radio link of resource information of target access point
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/34—Reselection control
- H04W36/36—Reselection control by user or terminal equipment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the embodiments of the present application relate to the field of communication technology, and specifically to a WiFi hotspot management method, an electronic device, and a computer-readable storage medium.
- electronic devices can support providing at least one Wireless Fidelity (WiFi) hotspot, each WiFi hotspot has a corresponding working frequency band, and the working frequency bands of each WiFi hotspot do not overlap.
- WiFi Wireless Fidelity
- devices that do not support the working frequency band corresponding to the WiFi hotspot cannot access the WiFi hotspot, resulting in a small number of devices that the electronic device can connect to.
- an electronic device starts at least two WiFi hotspots although the number of connected devices can be increased, the power consumption of the electronic device is high, and it is difficult to ensure the performance and compatibility of WiFi.
- the embodiments of the present application provide a WiFi hotspot management method, an electronic device, and a computer-readable storage medium, which are intended to solve the problem of how to reduce power consumption when an electronic device starts at least two WiFi hotspots.
- the first aspect of the embodiment of the present application provides a WiFi hotspot management method, which is applied to an electronic device, and the method includes: starting a first WiFi hotspot and a second WiFi hotspot, the working frequency band of the first WiFi hotspot is the first frequency band, the working frequency band of the second WiFi hotspot is the second frequency band, and the first frequency band is lower than the second frequency band.
- the first device connection information is displayed on the hotspot management interface of the electronic device, the first device connection information includes the number of first connected devices, the first connected devices include the first device and the second device, the first device is connected to the first WiFi hotspot, and the second device is connected to the second WiFi hotspot.
- the first WiFi hotspot is closed.
- the second WiFi hotspot is closed.
- the first device connected to the first WiFi hotspot is switched to the second WiFi hotspot, and then the first WiFi hotspot to which no device is connected is turned off.
- the second device connected to the second WiFi hotspot is switched to the first WiFi hotspot, and then the second WiFi hotspot to which no device is connected is turned off. This reduces the number of WiFi hotspots running synchronously, thereby reducing the power consumption of electronic devices.
- the operating frequency band of the first WiFi hotspot is lower than the operating frequency band of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance.
- Turning off the second WiFi hotspot and turning on the first WiFi hotspot is conducive to compatibility with a wider frequency band range, thereby improving WiFi compatibility.
- the method further includes: In the second time period, the second device connection information is displayed on the hotspot management interface, the second device connection information includes the number of second connected devices, the second connected devices include the first device and the third device, the first device and the third device are connected to the first WiFi hotspot, and no device is connected to the second WiFi hotspot. Based on the first device and the third device both switching to the second WiFi hotspot, the first WiFi hotspot is closed. Alternatively, based on the first device not switching to the second WiFi hotspot and the third device switching to the first WiFi hotspot, the second WiFi hotspot is closed.
- the second WiFi hotspot is closed.
- the second WiFi hotspot is closed.
- the first device and the third device when the first device and the third device are connected to the first WiFi hotspot and no device is connected to the second WiFi hotspot, the first device and the third device connected to the first WiFi hotspot are switched to the second WiFi hotspot, and then the first WiFi hotspot with no device connected is closed.
- the first device when the first device is not switched to the second WiFi hotspot and the third device is switched to the first WiFi hotspot, the second WiFi hotspot with no device connected is closed.
- the second WiFi hotspot with no device connected when neither the first device nor the third device is switched to the second WiFi hotspot, the second WiFi hotspot with no device connected is closed.
- the number of WiFi hotspots running synchronously is reduced, thereby reducing the power consumption of the electronic device.
- the working frequency band of the first WiFi hotspot is lower than the working frequency band of the second WiFi hotspot
- closing the first WiFi hotspot and opening the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance.
- Closing the second WiFi hotspot and opening the first WiFi hotspot is conducive to compatibility with a wider frequency band range, thereby improving WiFi compatibility.
- the method further includes: in a third time period, displaying third device connection information on the hotspot management interface, the third device connection information including the number of third connected devices, the third connected devices including the second device, the second device connected to the second WiFi hotspot, and no device connected to the first WiFi hotspot. Turning off the first WiFi hotspot.
- the first WiFi hotspot to which no device is connected is turned off. This reduces the number of WiFi hotspots running simultaneously, thereby reducing the power consumption of the electronic device.
- the operating frequency band of the first WiFi hotspot is lower than the operating frequency band of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance.
- the method further includes: in a fourth time period, displaying fourth device connection information on the hotspot management interface, the fourth device connection information including the number of fourth connected devices, and the number of fourth connected devices is 0. Turn off the first WiFi hotspot.
- the first WiFi hotspot when no device is connected to the first WiFi hotspot and the second WiFi hotspot, the first WiFi hotspot is turned off. This reduces the number of WiFi hotspots running simultaneously, thereby reducing the power consumption of the electronic device.
- the operating frequency band of the first WiFi hotspot is lower than the operating frequency band of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot is conducive to increasing the data transmission rate of the WiFi service, thereby improving the WiFi performance.
- the method before the first WiFi hotspot is closed based on the first device switching to the second WiFi hotspot, the method also includes: sending a first roaming instruction through the first WiFi hotspot, the first roaming instruction is used to instruct the device connected to the first WiFi hotspot to start roaming, and the first device switches to the second WiFi hotspot if roaming is successful.
- the method before the second WiFi hotspot is closed based on the first device not switching to the second WiFi hotspot and the second device switching to the first WiFi hotspot, the method further includes: querying the WiFi service flow of the electronic device based on the failure of roaming of the first device. Based on the WiFi service flow being less than the bandwidth of the first frequency band, sending a second roaming instruction through the second WiFi hotspot, the second roaming instruction is used to instruct the device connected to the second WiFi hotspot to start roaming, and the second device switches to the first WiFi hotspot if the roaming is successful.
- the method further includes: sending a first roaming instruction through the first WiFi hotspot, the first roaming instruction is used to instruct the device connected to the first WiFi hotspot to start roaming, and the first device and the third device switch to the second WiFi hotspot when the roaming is successful.
- the method before the second WiFi hotspot is closed based on the first device not switching to the second WiFi hotspot and the third device switching to the first WiFi hotspot, the method further includes: based on the first device failing to roam and the third device successfully roaming, querying the WiFi service traffic of the electronic device. Based on the WiFi service traffic being less than the bandwidth of the first frequency band, sending a second roaming instruction through the second WiFi hotspot, the second roaming instruction being used to instruct the device connected to the second WiFi hotspot to start roaming. The third device switches to the first WiFi hotspot if roaming is successful.
- a second aspect of an embodiment of the present application provides an electronic device, which includes a memory, a processor, a display screen, and a wireless communication module.
- the display screen is used to display a hotspot management interface
- the wireless communication module is used to set and manage at least two WiFi hotspots
- the memory is used to store instructions
- the processor is used to run the instructions stored in the memory, so that the electronic device executes the WiFi hotspot management method of the embodiment of the present application.
- a third aspect of an embodiment of the present application provides a computer-readable storage medium, which stores instructions.
- the instructions When the instructions are executed on a computer, the computer executes the WiFi hotspot management method of the embodiment of the present application.
- FIG. 1 is a schematic diagram of the architecture of a communication system provided by an example.
- FIG. 2 is a schematic diagram of the software structure of an AP provided by an example.
- FIG. 3 is a timing diagram of an AP starting a multi-frequency WiFi hotspot provided by an example.
- FIG. 4 is a timing diagram of a WiFi hotspot management method in a scenario provided by an example.
- FIG. 5 is a schematic diagram of an AP interface in a scenario provided by an example.
- FIG. 6 is a timing diagram of a WiFi hotspot management method in scenario 2 provided as an example.
- FIG. 7 is a schematic diagram of an AP interface in scenario 2 provided by an example.
- FIG8 is a timing diagram of a WiFi hotspot management method under scenario three provided by an example.
- FIG. 9 is a schematic diagram of an AP interface in scenario three provided by an example.
- FIG. 10 is a timing diagram of a WiFi hotspot management method under scenario 4 provided by an example.
- FIG. 11 is a schematic diagram of an AP interface in scenario 4 provided by an example.
- FIG. 12 is a schematic diagram of the hardware structure of an AP provided by an example.
- FIG. 1 is a schematic diagram of the architecture of a communication system provided by an example.
- the communication system includes an access point (AP) and a station (STA).
- AP is used to provide a WiFi hotspot, and STA connects to AP by accessing the WiFi hotspot.
- AP is an electronic device that supports providing WiFi hotspots.
- STA is an electronic device that supports WiFi connection.
- Electronic devices are also called terminal equipment (Terminal Equipment), user equipment (User Equipment, UE), mobile station (Mobile Station, MS), mobile terminal (Mobile Terminal, MT), etc.
- the electronic device can be a mobile phone (Mobile Phone), a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (Virtual Reality, VR) terminal, an augmented reality (Augmented Reality, AR) terminal, a wireless terminal in industrial control (Industrial Control), a wireless terminal in self-driving (Self Driving), a wireless terminal in remote medical surgery (Remote Medical Surgery), a wireless terminal in smart grid (Smart Grid), a wireless terminal in transportation safety (Transportation Safety), a wireless terminal in smart city (Smart City), a wireless terminal in smart home (Smart Home), etc., and this application does not limit this.
- FIG. 2 is a schematic diagram of the software structure of an AP provided by an example.
- the software system of the AP can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture.
- This embodiment takes the Android system of the layered architecture as an example to illustrate the software structure of the AP.
- the layered architecture divides the software system of the AP into several layers, each layer has a clear role and division of labor, and the layers communicate with each other through software interfaces.
- the software system of AP is divided into four layers, namely, the application (APP) layer, the framework (Framework) layer, the kernel (Kernel) layer and the hardware (Hardware) layer from top to bottom.
- the APP layer includes a series of application packages, which may include application market, calendar, clock, settings, camera, gallery, call and short message applications.
- the Framework layer provides application programming interfaces (Application Programming Interface, API) for each application in the APP layer, such as WiFi API.
- the Kernel layer includes various drivers, such as display drivers, WiFi drivers, camera drivers and sensor drivers.
- the Hardware layer includes various hardware components, such as display screens, WiFi firmware, cameras and sensor modules.
- the APP layer includes a WiFi Setting module, which is used to set and manage WiFi hotspots.
- the Framework layer includes a WiFi Service module, which is used to implement the call of the WiFi API.
- the WiFi driver of the Kernel layer is used to drive the WiFi firmware of the Hardware layer, so that the WiFi firmware performs various functions and data processing, such as starting or shutting down the WiFi hotspot.
- FIG. 3 is a timing diagram of an AP starting a multi-frequency WiFi hotspot provided by an example.
- the AP starts a multi-band WiFi hotspot including the following steps:
- the WiFi Setting module sends a WiFi capability query request to the WiFi Service module.
- the WiFi capability query request is used to query whether the AP supports the multi-band WiFi hotspot function.
- the WiFi Service module sends a WiFi capability query request to the WiFi driver.
- the WiFi driver obtains a WiFi capability query result from the WiFi configuration information based on the WiFi capability query request.
- the WiFi configuration information is pre-configured information used to indicate the WiFi functions supported by the AP.
- the WiFi configuration information can be stored in a pre-configured WiFi configuration file (such as an XML file).
- the WiFi configuration information includes multiple
- the multi-frequency WiFi hotspot configuration field is used to indicate whether the AP supports the multi-frequency WiFi hotspot function. For example, when the multi-frequency WiFi hotspot configuration field is set to enable, it indicates that the AP supports the multi-frequency WiFi hotspot function. When the multi-frequency WiFi hotspot configuration field is set to disable, it indicates that the AP does not support the multi-frequency WiFi hotspot function.
- the WiFi capability query result may include a return value corresponding to the multi-band WiFi hotspot configuration field. For example, when the return value is 1, it indicates that the AP supports the multi-band WiFi hotspot function. When the return value is 0, it indicates that the AP does not support the multi-band WiFi hotspot function.
- the WiFi driver sends the WiFi capability query results to the WiFi Service module.
- the WiFi Service module sends the WiFi capability query results to the WiFi Setting module.
- the WiFi Setting module sends a command to start the multi-band WiFi hotspot to the WiFi Service module.
- the start multi-frequency WiFi hotspot instruction is used to instruct the start of a multi-frequency WiFi hotspot.
- the WiFi Service module sends a command to the WiFi driver to start a multi-frequency WiFi hotspot.
- the WiFi driver obtains a channel list of each multi-frequency WiFi hotspot from the WiFi configuration information based on the instruction to start the multi-frequency WiFi hotspot.
- the WiFi configuration information includes a channel list of each of the multi-frequency WiFi hotspots, and the channel list includes at least one available channel, and the channel is used to transmit service data.
- the WiFi driver obtains a channel list of 2.4GHz WiFi hotspots and a channel list of 5GHz WiFi hotspots from the WiFi configuration information.
- the WiFi driver determines a target channel for each of the multi-frequency WiFi hotspots from a channel list for each of the multi-frequency WiFi hotspots.
- the WiFi driver can use the ACS algorithm to determine the target channels of the multi-frequency WiFi hotspots.
- the ACS algorithm calculates the weight of each channel in the channel list, sorts the weight of each channel according to the weight, thereby determining the priority of each channel, and selecting the target channel according to the priority.
- the present application does not limit the method for determining the target channel of each multi-frequency WiFi hotspot.
- the WiFi driver sends a command to start a multi-frequency WiFi hotspot to the WiFi firmware.
- the instruction to start the multi-frequency WiFi hotspot includes the target channels of the multi-frequency WiFi hotspots.
- the WiFi firmware starts the multi-frequency WiFi hotspot based on the instruction to start the multi-frequency WiFi hotspot.
- the WiFi firmware can send or receive service data on the respective target channels of the multi-band WiFi hotspot.
- an AP can support providing at least one WiFi hotspot, each WiFi hotspot has a corresponding working frequency band, and the working frequency bands of each WiFi hotspot do not overlap.
- STAs that do not support the working frequency band corresponding to the WiFi hotspot cannot access the WiFi hotspot, resulting in a small number of STAs that the AP can connect to.
- an AP starts at least two WiFi hotspots although the number of STAs can be increased, the power consumption of the AP is high, and it is difficult to ensure the performance and compatibility of WiFi.
- the embodiments of the present application provide a WiFi hotspot management method, an electronic device, and a computer-readable storage medium.
- an AP starts at least two WiFi hotspots, based on the device connection information of the at least two WiFi hotspots, at least one WiFi hotspot with no device connected is closed, thereby reducing the power consumption of the AP.
- different WiFi hotspots are selected to be closed in different scenarios, thereby ensuring the performance and compatibility of WiFi.
- the following takes a dual-band WiFi hotspot as an example and describes in detail the WiFi hotspot management method provided in the embodiment of the present application in combination with scenarios one to four.
- FIG. 4 is a timing diagram of a WiFi hotspot management method in a scenario provided by an example.
- the WiFi hotspot management method includes the following steps:
- the WiFi Setting module sends a first roaming instruction to the WiFi Service module.
- the first roaming instruction is used to instruct the STA connected to the first WiFi hotspot to start roaming.
- the preset time period can be set as needed, for example, the preset time period can be set to 3 minutes (min), 5 min or 10 min, etc.
- the WiFi Service module sends the first roaming instruction to the WiFi driver.
- S403 The WiFi driver sends a first roaming instruction to the WiFi firmware.
- the WiFi firmware sends a first roaming instruction to the first STA through the first WiFi hotspot.
- the WiFi firmware receives a first roaming result from the first STA through the first WiFi hotspot.
- the first roaming result includes roaming success or roaming failure.
- roaming success it means that the first STA switches from the first WiFi hotspot to the second WiFi hotspot.
- roaming failure it means that the first STA does not switch from the first WiFi hotspot to the second WiFi hotspot.
- the first roaming result may include an indicator for indicating roaming success or roaming failure. Exemplarily, when the indicator is true, it indicates roaming success. When the indicator is false, it indicates roaming failure.
- the WiFi driver sends the first roaming result to the WiFi Service module.
- the WiFi Service module sends the first roaming result to the WiFi Setting module.
- the WiFi Setting module sends a command to close the first WiFi hotspot to the WiFi Service module.
- the instruction to close the first WiFi hotspot is used to instruct to close the first WiFi hotspot.
- the WiFi Setting module determines whether the first WiFi hotspot is connected by the STA. When it is determined that the first WiFi hotspot is connected by the STA, the WiFi Setting module does not send a command to close the first WiFi hotspot. When it is determined that the first WiFi hotspot is not connected by the STA, the WiFi Setting module sends a command to close the first WiFi hotspot to the WiFi Service module.
- the above-mentioned STA can be any STA except the first STA and the second STA.
- the WiFi Setting module determines whether the first WiFi hotspot is closed. When the first WiFi hotspot is closed, the WiFi Setting module does not send a command to close the first WiFi hotspot. When the first WiFi hotspot is not closed, the WiFi Setting module sends a command to close the first WiFi hotspot.
- the WiFi Service module sends a command to the WiFi driver to close the first WiFi hotspot.
- the WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.
- S412 The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.
- the WiFi Setting module queries the WiFi service traffic.
- the WiFi firmware reports the WiFi service traffic according to a predetermined period.
- the WiFi driver sends the WiFi service traffic to the WiFi Service module.
- the WiFi Service module sends the WiFi service traffic to the WiFi Setting module.
- the WiFi Setting module stores the WiFi service traffic.
- the predetermined period can be set as needed, for example, the predetermined period can be set to 5 seconds (s), 10s or 20s, etc.
- the WiFi Setting module can store the WiFi service traffic corresponding to each cycle, or only store the WiFi service traffic corresponding to the most recent cycle.
- the WiFi service traffic can be stored in a preset storage space, such as a memory space or a database.
- the WiFi Setting module when the WiFi service traffic is less than the bandwidth corresponding to the first WiFi hotspot, the WiFi Setting module sends a second roaming instruction to the WiFi Service module.
- the second roaming instruction is used to instruct the STA connected to the second WiFi hotspot to start roaming.
- the WiFi Service module sends a second roaming instruction to the WiFi driver.
- S416 The WiFi driver sends a second roaming instruction to the WiFi firmware.
- the WiFi firmware sends a second roaming instruction to the second STA through the second WiFi hotspot.
- the WiFi firmware receives a second roaming result from the second STA through a second WiFi hotspot.
- the second roaming result is substantially the same as the first roaming result, and will not be described in detail herein.
- the WiFi firmware sends the second roaming result to the WiFi driver.
- the WiFi driver sends the second roaming result to the WiFi Service module.
- the WiFi Service module sends the second roaming result to the WiFi Setting module.
- the WiFi Setting module sends a command to close the second WiFi hotspot to the WiFi Service module.
- the instruction for closing the second WiFi hotspot is roughly the same as the instruction for closing the first WiFi hotspot, which will not be repeated here.
- the WiFi Setting module when the second roaming result is roaming failure, the WiFi Setting module does not send an instruction to close the second WiFi hotspot.
- the WiFi Service module sends a command to the WiFi driver to close the second WiFi hotspot.
- the WiFi driver sends a command to close the second WiFi hotspot to the WiFi firmware.
- the WiFi firmware closes the second WiFi hotspot based on the instruction to close the second WiFi hotspot.
- the WiFi hotspot management method of the following scenario when the first STA is connected to the first WiFi hotspot and the second STA is connected to the second WiFi hotspot, the first STA connected to the first WiFi hotspot is switched to the second WiFi hotspot by roaming, and then the first WiFi hotspot without STA connection is closed.
- the second STA connected to the second WiFi hotspot is switched to the first WiFi hotspot by roaming, and then the second WiFi hotspot without STA connection is closed.
- the number of WiFi hotspots running synchronously is thereby reduced, thereby reducing the power consumption of the AP.
- shutting down the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance.
- Turning off the second WiFi hotspot and turning on the first WiFi hotspot is conducive to compatibility with a wider frequency band range, thereby improving WiFi compatibility.
- FIG. 5 is a schematic diagram of an AP interface in a scenario provided by an example.
- the AP displays a hotspot management interface, and displays device connection information on the hotspot management interface, where the device connection information includes the number of connected devices.
- the number of connected STAs is 2.
- the WiFi hotspot management method when the AP turns off at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged.
- the device connection information may also include the name of the connected device, Internet Protocol (IP) address, Media Access Control (MAC) address, Service Set Identifier (SSID) of the connected WiFi hotspot, working frequency band, channel, and WiFi service traffic, etc., and this application does not limit this.
- IP Internet Protocol
- MAC Media Access Control
- SSID Service Set Identifier
- scenario 2 The difference between scenario 2 and scenario 1 is that the second WiFi hotspot has no STA connection.
- the WiFi hotspot management method in scenario 2 is roughly the same as the WiFi hotspot management method in scenario 1.
- FIG. 6 is a timing diagram of a WiFi hotspot management method in scenario 2 provided as an example.
- the WiFi hotspot management method includes the following steps:
- the WiFi Setting module sends a first roaming instruction to the WiFi Service module.
- the WiFi Service module sends the first roaming instruction to the WiFi driver.
- S603 The WiFi driver sends a first roaming instruction to the WiFi firmware.
- the WiFi firmware sends a first roaming instruction to the first STA through the first WiFi hotspot.
- the WiFi firmware sends a first roaming instruction to a third STA through the first WiFi hotspot.
- the WiFi firmware receives a first roaming result from the first STA through the first WiFi hotspot.
- the WiFi firmware receives a third roaming result from a third STA through the first WiFi hotspot.
- the third roaming result is substantially the same as the first roaming result, and will not be described in detail herein.
- S608 The WiFi firmware sends the first roaming result and the third roaming result to the WiFi driver.
- the WiFi driver sends the first roaming result and the third roaming result to the WiFi Service module.
- the WiFi Service module sends the first roaming result and the third roaming result to the WiFi Setting module.
- the WiFi Setting module sends a command to close the first WiFi hotspot to the WiFi Service module.
- the WiFi Service module sends a command to the WiFi driver to close the first WiFi hotspot.
- S613 The WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.
- S614 The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.
- the WiFi Setting module queries the WiFi service traffic.
- the WiFi Setting module sends a command to close the second WiFi hotspot to the WiFi Service module.
- the WiFi Service module sends a command to close the second WiFi hotspot to the WiFi driver.
- the WiFi driver sends a command to close the second WiFi hotspot to the WiFi firmware.
- the WiFi firmware closes the second WiFi hotspot based on the command to close the second WiFi hotspot.
- the WiFi Service module sends the second roaming instruction to the WiFi driver.
- S618 The WiFi driver sends a second roaming instruction to the WiFi firmware.
- the WiFi firmware sends a second roaming instruction to the third STA through the second WiFi hotspot.
- S620 The WiFi firmware receives a new third roaming result from a third STA through the second WiFi hotspot.
- the WiFi firmware sends a new third roaming result to the WiFi driver.
- the WiFi driver sends a new third roaming result to the WiFi Service module.
- the WiFi Service module sends a new third roaming result to the WiFi Setting module.
- the WiFi Setting module sends a command to close the second WiFi hotspot to the WiFi Service module.
- the WiFi Setting module when the new third roaming result is roaming failure, the WiFi Setting module does not send an instruction to close the second WiFi hotspot.
- the WiFi Service module sends a command to the WiFi driver to close the second WiFi hotspot.
- the WiFi driver sends a command to close the second WiFi hotspot to the WiFi firmware.
- S627 The WiFi firmware closes the second WiFi hotspot based on the instruction to close the second WiFi hotspot.
- the WiFi hotspot management method under scenario 2 when the first STA and the third STA are connected to the first WiFi hotspot and the second WiFi hotspot has no STA connection, the first STA and the third STA connected to the first WiFi hotspot are switched to the second WiFi hotspot by roaming, and then the first WiFi hotspot without STA connection is closed. When neither the first STA nor the third STA is switched to the second WiFi hotspot, the second WiFi hotspot without STA connection is closed.
- the third STA connected to the second WiFi hotspot is switched to the first WiFi hotspot by roaming, and then the second WiFi hotspot without STA connection is closed.
- the number of WiFi hotspots running synchronously is thereby reduced, thereby reducing the power consumption of the AP.
- the working frequency band of the first WiFi hotspot is lower than the working frequency band of the second WiFi hotspot, shutting down the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance.
- Shutting down the second WiFi hotspot and turning on the first WiFi hotspot is conducive to compatibility with a wider frequency band range, thereby improving WiFi compatibility.
- FIG. 7 is a schematic diagram of an AP interface in scenario 2 provided by an example.
- the AP displays a hotspot management interface, and displays device connection information on the hotspot management interface, where the device connection information includes the number of connected devices.
- the device connection information includes the number of connected devices.
- the number of connected STAs is 2.
- the WiFi hotspot management method under scenario 2 when the AP turns off at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged or increases.
- scenario 3 The difference between scenario 3 and scenario 1 is that there is no STA connection to the first WiFi hotspot.
- FIG8 is a timing diagram of a WiFi hotspot management method under scenario three provided by an example.
- the WiFi hotspot management method includes the following steps:
- the WiFi Setting module sends a command to close the first WiFi hotspot to the WiFi Service module.
- the WiFi Service module sends a command to the WiFi driver to close the first WiFi hotspot.
- the WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.
- S804 The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.
- the first WiFi hotspot without STA connection is turned off. This reduces the number of WiFi hotspots running synchronously, thereby reducing the power consumption of the AP.
- the working frequency band of the first WiFi hotspot is lower than the working frequency band of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance.
- FIG. 9 is a schematic diagram of an AP interface in scenario three provided by an example.
- the AP displays a hotspot management interface, and displays device connection information on the hotspot management interface, where the device connection information includes the number of connected devices.
- the device connection information includes the number of connected devices.
- the number of connected STAs is 1.
- the WiFi hotspot management method under scenario three when the AP turns off at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged.
- scenario 4 The difference between scenario 4 and scenario 3 is that the second WiFi hotspot has no STA connection.
- the WiFi hotspot management method in scenario 4 is roughly the same as the WiFi hotspot management method in scenario 3.
- FIG. 10 is a timing diagram of a WiFi hotspot management method under scenario 4 provided by an example.
- the WiFi hotspot management method includes the following steps:
- the WiFi Setting module when there is no STA connection to the first WiFi hotspot and the second WiFi hotspot, after a preset time period, the WiFi Setting module sends a command to close the first WiFi hotspot to the WiFi Service module.
- the WiFi Service module sends a command to the WiFi driver to close the first WiFi hotspot.
- the WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.
- S1004 The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.
- the first WiFi hotspot is turned off. This reduces the number of WiFi hotspots running simultaneously, thereby reducing the power consumption of the AP.
- the working frequency band of the first WiFi hotspot is lower than the working frequency band of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance.
- FIG. 11 is a schematic diagram of an AP interface in scenario 4 provided by an example.
- the AP displays a hotspot management interface, and displays device connection information on the hotspot management interface, where the device connection information includes the number of connected devices.
- the device connection information includes the number of connected devices.
- the number of connected STAs is 0.
- the WiFi hotspot management method under scenario 4 when the AP turns off at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged.
- FIG. 12 is a schematic diagram of the hardware structure of an AP provided by an example.
- the AP includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc.
- SIM Subscriber Identification Module
- the processor 110 may execute instructions stored in the internal memory 121 , so that the AP executes the WiFi hotspot management method provided in the embodiment of the present application.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural network processor (NPU), etc.
- AP application processor
- GPU graphics processor
- ISP image signal processor
- DSP digital signal processor
- NPU neural network processor
- the controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an Inter-Integrated Circuit (I2C) interface, an Inter-Integrated Circuit Sound (I2S) interface, a Pulse Code Modulation (PCM) interface, a Universal Asynchronous Receiver/Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a General-Purpose Input/Output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
- I2C Inter-Integrated Circuit
- I2S Inter-Integrated Circuit Sound
- PCM Pulse Code Modulation
- UART Universal Asynchronous Receiver/Transmitter
- MIPI Mobile Industry Processor Interface
- GPIO General-Purpose Input/Output
- SIM Subscriber Identity Module
- USB Universal Serial Bus
- the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may include multiple groups of I2C buses.
- the processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
- the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the AP.
- the I2S interface can be used for audio communication.
- the processor 110 can include multiple I2S buses.
- the processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170.
- the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
- the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
- the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.
- the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to implement the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus for asynchronous communication.
- the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
- the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
- the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193.
- the MIPI interface includes the camera serial interface (CSI), the display serial interface (DSI), etc.
- the processor 110 and the camera 193 communicate through the CSI interface to realize the shooting function of the AP.
- the processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the AP.
- the GPIO interface can be configured by software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.
- the GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
- the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
- the USB interface 130 can be used to connect a charger to charge the AP, and can also be used to transmit data between the AP and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
- the interface can also be used to connect other electronic devices, such as AR devices, etc.
- the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation of the AP.
- the AP may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the charging management module 140 is used to receive charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
- the charging management module 140 may receive wireless charging input through a wireless charging coil of an AP. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
- the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
- the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193 and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
- the power management module 141 can also be set in the processor 110.
- the power management module 141 and the charging management module 140 can also be set in the same device.
- the wireless communication function of the AP can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, baseband processor, etc.
- Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the AP can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas.
- antenna 1 can be reused as a diversity antenna for a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to the AP.
- the mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1 and connect to the The received electromagnetic waves are filtered, amplified, and processed, and transmitted to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
- at least some functional modules of the mobile communication module 150 can be set in the processor 110.
- at least some functional modules of the mobile communication module 150 can be set in the same device as at least some modules of the processor 110.
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
- the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
- the modem processor may be an independent device.
- the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide wireless communication solutions including wireless local area network (WLAN) (such as WiFi network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. applied on AP.
- WLAN wireless local area network
- BT Bluetooth
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared
- the wireless communication module 160 includes WiFi firmware.
- the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
- the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate and amplify it, and convert it into electromagnetic waves for radiation through antenna 2.
- the antenna 1 of the AP is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the AP can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include Global System For Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM and/or IR technology, etc.
- GNSS can include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the Beidou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS) and/or the Satellite Based Augmentation System (SBAS).
- GPS Global Positioning System
- GLONASS Global Navigation Satellite System
- BDS Beidou Navigation Satellite System
- QZSS Quasi-Zenith Satellite System
- SBAS Satellite Based Augmentation System
- the AP implements the display function through the GPU, the display screen 194, and the application processor.
- the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLEX), or a TFT-LCD.
- Diode, FLED Miniled, MicroLed, Micro-oLed, Quantum Dot Light Emitting Diode (QLED), etc.
- the AP may include 1 or N display screens 194, where N is a positive integer greater than 1.
- the AP can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
- the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye.
- the ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
- the camera 193 is used to capture still images or videos.
- the object generates an optical image through the lens and projects it onto the photosensitive element.
- the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
- CMOS complementary metal oxide semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
- the AP may include 1 or N cameras 193, where N is a positive integer greater than 1.
- the digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the AP is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
- Video codecs are used to compress or decompress digital videos.
- An AP can support one or more video codecs. In this way, an AP can play or record videos in multiple encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
- MPEG Moving Picture Experts Group
- NPU is a neural network (NN) computing processor. It can quickly process input information and continuously self-learn by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain. NPU can realize applications such as intelligent cognition of AP, such as image recognition, face recognition, voice recognition, text understanding, etc.
- NN neural network
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the AP.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be saved in the external memory card.
- the internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions.
- the internal memory 121 may include a program storage area and a data storage area.
- the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
- the data storage area may store data created during the use of the AP (such as audio data, a phone book, etc.), etc.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (Universal Flash Storage, UFS), etc.
- the processor 110 executes various functional applications and data processing of the AP by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- the AP can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
- the audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input
- the audio module 170 may also be used to encode and decode the audio signal.
- the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
- the speaker 170A also called a "speaker" is used to convert an audio electrical signal into a sound signal.
- the AP can listen to music or listen to a hands-free call through the speaker 170A.
- the receiver 170B also called a "handset" is used to convert audio electrical signals into sound signals.
- the AP can receive the voice by placing the receiver 170B close to the human ear.
- Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C.
- the AP can be provided with at least one microphone 170C. In other embodiments, the AP can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the AP can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording function, etc.
- the earphone interface 170D is used to connect a wired earphone.
- the earphone interface 170D may be the USB interface 130, or may be a 3.5 mm Open Mobile Terminal Platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
- OMTP Open Mobile Terminal Platform
- CTIA Cellular Telecommunications Industry Association of the USA
- the key 190 includes a power key, a volume key, etc.
- the key 190 may be a mechanical key or a touch key.
- the AP may receive key input and generate key signal input related to user settings and function control of the AP.
- Motor 191 can generate vibration prompts.
- Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
- touch operations acting on different applications can correspond to different vibration feedback effects.
- touch operations acting on different areas of the display screen 194 can also correspond to different vibration feedback effects.
- Different application scenarios for example: time reminders, receiving messages, alarm clocks, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
- the SIM card interface 195 is used to connect a SIM card.
- the SIM card can be connected to and separated from the AP by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195.
- the AP can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different.
- the SIM card interface 195 can also be compatible with different types of SIM cards.
- the SIM card interface 195 can also be compatible with external memory cards.
- the AP interacts with the network through the SIM card to implement functions such as calls and data communications.
- the AP uses an eSIM, i.e., an embedded SIM card.
- the eSIM card can be embedded in the AP and cannot be separated from the AP.
- the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device.
- the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
- the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
- the embodiment of the present application also provides a computer-readable storage medium, which stores instructions.
- the instructions When the instructions are executed on a computer, the computer executes the WiFi hotspot management method of the embodiment of the present application.
- Computer-readable storage media include a computer-readable storage medium for storing information (such as computer-readable instructions, data structures, program modules, etc.)
- the computer readable storage medium includes, but is not limited to, random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请实施例提供一种WiFi热点管理方法、电子设备及计算机可读存储介质,涉及通信技术领域。WiFi热点管理方法包括:启动第一WiFi热点和第二WiFi热点,第一WiFi热点的工作频段为第一频段,第二WiFi热点的工作频段为第二频段,第一频段低于第二频段。在第一时间段,在电子设备的热点管理界面上显示第一设备连接信息,第一设备连接信息包括第一连接设备的数目,第一连接设备包括第一设备和第二设备,第一设备连接到第一WiFi热点,第二设备连接到第二WiFi热点。基于第一设备切换到第二WiFi热点,关闭第一WiFi热点。或者,基于第一设备未切换到第二WiFi热点,且第二设备切换到第一WiFi热点,关闭第二WiFi热点。由此减少同步运行的WiFi热点的数目,从而降低电子设备的功耗。
Description
相关申请的交叉引用
本申请要求在2023-08-11提交中国专利局、申请号为202311021885.9、申请名称为“WiFi热点管理方法、电子设备及计算机可读存储介质”的中国专利的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及通信技术领域,具体涉及一种WiFi热点管理方法、电子设备及计算机可读存储介质。
目前,电子设备可以支持提供至少一个无线保真(Wireless Fidelity,WiFi)热点,各个WiFi热点具有对应的工作频段,各个WiFi热点的工作频段不重叠。当电子设备启动一个WiFi热点时,不支持该WiFi热点对应工作频段的设备不能接入该WiFi热点,导致电子设备能够连接的设备数目较少。当电子设备启动至少两个WiFi热点时,虽然能够增加连接设备的数目,但是电子设备的功耗较高,且难以保证WiFi的性能和兼容性。
发明内容
本申请实施例提供一种WiFi热点管理方法、电子设备及计算机可读存储介质,旨在解决电子设备启动至少两个WiFi热点时如何降低功耗的问题。
本申请实施例第一方面提供一种WiFi热点管理方法,应用于电子设备,方法包括:启动第一WiFi热点和第二WiFi热点,第一WiFi热点的工作频段为第一频段,第二WiFi热点的工作频段为第二频段,第一频段低于第二频段。在第一时间段,在电子设备的热点管理界面上显示第一设备连接信息,第一设备连接信息包括第一连接设备的数目,第一连接设备包括第一设备和第二设备,第一设备连接到第一WiFi热点,第二设备连接到第二WiFi热点。基于第一设备切换到第二WiFi热点,关闭第一WiFi热点。或者,基于第一设备未切换到第二WiFi热点,且第二设备切换到第一WiFi热点,关闭第二WiFi热点。
在本实施例中,在第一设备连接到第一WiFi热点,第二设备连接到第二WiFi热点的情况下,使连接到第一WiFi热点的第一设备切换到第二WiFi热点,再关闭无设备连接的第一WiFi热点。或者,使连接到第二WiFi热点的第二设备切换到第一WiFi热点,再关闭无设备连接的第二WiFi热点。由此减少同步运行的WiFi热点的数目,从而降低电子设备的功耗。此外,由于第一WiFi热点的工作频段低于第二WiFi热点的工作频段,关闭第一WiFi热点,开启第二WiFi热点,有利于提高WiFi业务的数据传输速率,从而提升WiFi性能。关闭第二WiFi热点,开启第一WiFi热点,有利于兼容更宽的频段范围,从而提升WiFi兼容性。
在一种实施方式中,在启动第一WiFi热点和第二WiFi热点之后,方法还包括:在第
二时间段,在热点管理界面上显示第二设备连接信息,第二设备连接信息包括第二连接设备的数目,第二连接设备包括第一设备和第三设备,第一设备和第三设备连接到第一WiFi热点,第二WiFi热点无设备连接。基于第一设备和第三设备均切换到第二WiFi热点,关闭第一WiFi热点。或者,基于第一设备未切换到第二WiFi热点,且第三设备切换到第一WiFi热点,关闭第二WiFi热点。或者,基于第一设备和第三设备均未切换到第二WiFi热点,关闭第二WiFi热点。
在本实施例中,在第一设备和第三设备连接到第一WiFi热点,第二WiFi热点无设备连接的情况下,使连接到第一WiFi热点的第一设备和第三设备均切换到第二WiFi热点,再关闭无设备连接的第一WiFi热点。或者,在第一设备未切换到第二WiFi热点,且第三设备切换到第一WiFi热点的情况下,关闭无设备连接的第二WiFi热点。或者,在第一设备和第三设备均未切换到第二WiFi热点的情况下,关闭无设备连接的第二WiFi热点。由此减少同步运行的WiFi热点的数目,从而降低电子设备的功耗。此外,由于第一WiFi热点的工作频段低于第二WiFi热点的工作频段,关闭第一WiFi热点,开启第二WiFi热点,有利于提高WiFi业务的数据传输速率,从而提升WiFi性能。关闭第二WiFi热点,开启第一WiFi热点,有利于兼容更宽的频段范围,从而提升WiFi兼容性。
在另一种实施方式中,在启动第一WiFi热点和第二WiFi热点之后,方法还包括:在第三时间段,在热点管理界面上显示第三设备连接信息,第三设备连接信息包括第三连接设备的数目,第三连接设备包括第二设备,第二设备连接到第二WiFi热点,第一WiFi热点无设备连接。关闭第一WiFi热点。
在本实施例中,在第一WiFi热点无设备连接,第二设备连接到第二WiFi热点的情况下,关闭无设备连接的第一WiFi热点。由此减少同步运行的WiFi热点的数目,从而降低电子设备的功耗。此外,由于第一WiFi热点的工作频段低于第二WiFi热点的工作频段,关闭第一WiFi热点,开启第二WiFi热点,有利于提高WiFi业务的数据传输速率,从而提升WiFi性能。
在另一种实施方式中,在启动第一WiFi热点和第二WiFi热点之后,方法还包括:在第四时间段,在热点管理界面上显示第四设备连接信息,第四设备连接信息包括第四连接设备的数目,第四连接设备的数目为0。关闭第一WiFi热点。
在本实施例中,在第一WiFi热点和第二WiFi热点均无设备连接的情况下,关闭第一WiFi热点。由此减少同步运行的WiFi热点的数目,从而降低电子设备的功耗。此外,由于第一WiFi热点的工作频段低于第二WiFi热点的工作频段,关闭第一WiFi热点,开启第二WiFi热点,有利于提高WiFi业务的数据传输速率,从而提升WiFi性能。
在另一种实施方式中,在基于第一设备切换到第二WiFi热点,关闭第一WiFi热点之前,方法还包括:通过第一WiFi热点发送第一漫游指令,第一漫游指令用于指示连接到第一WiFi热点的设备启动漫游,第一设备在漫游成功的情况下切换到第二WiFi热点。
在另一种实施方式中,在基于第一设备未切换到第二WiFi热点,且第二设备切换到第一WiFi热点,关闭第二WiFi热点之前,方法还包括:基于第一设备漫游失败,查询电子设备的WiFi业务流量。基于WiFi业务流量小于第一频段的频带宽度,通过第二WiFi热点发送第二漫游指令,第二漫游指令用于指示连接到第二WiFi热点的设备启动漫游,第二设备在漫游成功的情况下切换到第一WiFi热点。
在另一种实施方式中,在基于第一设备和第三设备均切换到第二WiFi热点,关闭第一
WiFi热点之前,方法还包括:通过第一WiFi热点发送第一漫游指令,第一漫游指令用于指示连接到第一WiFi热点的设备启动漫游,第一设备和第三设备在漫游成功的情况下切换到第二WiFi热点。
在另一种实施方式中,在基于第一设备未切换到第二WiFi热点,且第三设备切换到第一WiFi热点,关闭第二WiFi热点之前,方法还包括:基于第一设备漫游失败,且第三设备漫游成功,查询电子设备的WiFi业务流量。基于WiFi业务流量小于第一频段的频带宽度,通过第二WiFi热点发送第二漫游指令,第二漫游指令用于指示连接到第二WiFi热点的设备启动漫游。第三设备在漫游成功的情况下切换到第一WiFi热点。
本申请实施例第二方面提供一种电子设备,电子设备包括存储器、处理器、显示屏以及无线通信模块,显示屏用于显示热点管理界面,无线通信模块用于设置和管理至少两个WiFi热点,存储器用于存储指令,处理器用于运行存储于存储器中的指令,使得电子设备执行本申请实施例的WiFi热点管理方法。
本申请实施例第三方面提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令在计算机上运行时,使得计算机执行本申请实施例的WiFi热点管理方法。
本申请实施例第二方面和第三方面所带来的技术效果可参见上述第一方面的WiFi热点管理方法的相关描述,此处不再赘述。
图1是一种示例提供的通信系统的架构示意图。
图2是一种示例提供的AP的软件结构示意图。
图3是一种示例提供的AP启动多频WiFi热点的时序图。
图4是一种示例提供的场景一下WiFi热点管理方法的时序图。
图5是一种示例提供的场景一下AP界面的示意图。
图6是一种示例提供的场景二下WiFi热点管理方法的时序图。
图7是一种示例提供的场景二下AP界面的示意图。
图8是一种示例提供的场景三下WiFi热点管理方法的时序图。
图9是一种示例提供的场景三下AP界面的示意图。
图10是一种示例提供的场景四下WiFi热点管理方法的时序图。
图11是一种示例提供的场景四下AP界面的示意图。
图12是一种示例提供的AP的硬件结构示意图。
需要说明的是,本申请实施例中“至少一个”是指一个或者多个,“多个”是指两个或多于两个。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。本申请的说明书和权利要求书及附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不是用于描述特定的顺序或先后次序。
另外需要说明的是,本申请实施例中公开的方法或流程图所示出的方法,包括用于实现方法的一个或多个步骤,在不脱离权利要求的范围的情况下,多个步骤的执行顺序可以彼此互换,其中某些步骤也可以被删除。
图1是一种示例提供的通信系统的架构示意图。
如图1所示,通信系统包括接入点(Access Point,AP)和站(Station,STA)。AP用于提供WiFi热点,STA通过接入WiFi热点与AP连接。其中,AP为支持提供WiFi热点的电子设备。STA为支持WiFi连接的电子设备。
可以理解,本申请对AP的数目和STA的数目不做限定。
电子设备也被称为终端设备(Terminal Equipment)、用户设备(User Equipment,UE)、移动台(Mobile Station,MS)、移动终端(Mobile Terminal,MT)等。具体地,电子设备可以是手机(Mobile Phone)、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(Virtual Reality,VR)终端、增强现实(Augmented Reality,AR)终端、工业控制(Industrial Control)中的无线终端、无人驾驶(Self Driving)中的无线终端、远程手术(Remote Medical Surgery)中的无线终端、智能电网(Smart Grid)中的无线终端、运输安全(Transportation Safety)中的无线终端、智慧城市(Smart City)中的无线终端、智慧家庭(Smart Home)中的无线终端等,本申请对此不做限定。
图2是一种示例提供的AP的软件结构示意图。
AP的软件系统可以采用分层架构、事件驱动架构、微核架构、微服务架构或云架构。本实施例以分层架构的Android系统为例,示例性说明AP的软件结构。分层架构将AP的软件系统分成若干层,每一层都有清晰的角色和分工,层与层之间通过软件接口通信。
如图2所示,AP的软件系统分为四层,从上至下分别为应用(Application,APP)层、框架(Framework)层、内核(Kernel)层以及硬件(Hardware)层。其中,APP层包括一系列应用程序包,应用程序包可以包括应用市场、日历、时钟、设置、相机、图库、通话以及短信息等应用程序。Framework层为APP层的各应用程序提供应用程序编程接口(Application Programming Interface,API),例如WiFi API。Kernel层包括各种驱动,例如显示驱动、WiFi驱动、摄像头驱动以及传感器驱动等。Hardware层包括各种硬件部件,例如显示屏、WiFi固件、摄像头以及传感器模块等。
在本实施例中,APP层包括WiFi设置(WiFi Setting)模块,WiFi Setting模块用于设置和管理WiFi热点。Framework层包括WiFi服务(WiFi Service)模块,WiFi Service模块用于实现WiFi API的调用。Kernel层的WiFi驱动用于驱动Hardware层的WiFi固件,使WiFi固件执行各种功能和数据处理,例如启动或关闭WiFi热点。
下面结合图2和图3对AP启动多频WiFi热点的过程进行说明。
图3是一种示例提供的AP启动多频WiFi热点的时序图。
如图3所示,AP启动多频WiFi热点包括如下步骤:
S301,WiFi Setting模块启动。
S302,WiFi Setting模块向WiFi Service模块发送WiFi能力查询请求。
其中,WiFi能力查询请求用于请求查询AP是否支持多频WiFi热点功能。
S303,WiFi Service模块向WiFi驱动发送WiFi能力查询请求。
S304,WiFi驱动基于WiFi能力查询请求,从WiFi配置信息中获取WiFi能力查询结果。
其中,WiFi配置信息是预配置的用于表示AP支持的WiFi功能的信息,WiFi配置信息可以存储于预配置的WiFi配置文件(例如xml文件)中。例如,WiFi配置信息包括多
频WiFi热点配置字段,多频WiFi热点配置字段用于表示AP是否支持多频WiFi热点功能。示例性的,当多频WiFi热点配置字段被设置为enable时,表示AP支持多频WiFi热点功能。当多频WiFi热点配置字段被设置为disable时,表示AP不支持多频WiFi热点功能。
WiFi能力查询结果可以包括多频WiFi热点配置字段对应的返回值。例如,当返回值为1时,表示AP支持多频WiFi热点功能。当返回值为0时,表示AP不支持多频WiFi热点功能。
S305,WiFi驱动向WiFi Service模块发送WiFi能力查询结果。
S306,WiFi Service模块向WiFi Setting模块发送WiFi能力查询结果。
S307,在WiFi能力查询结果表示AP支持多频WiFi热点功能的情况下,WiFi Setting模块向WiFi Service模块发送启动多频WiFi热点指令。
其中,启动多频WiFi热点指令用于指示启动多频WiFi热点。
S308,WiFi Service模块向WiFi驱动发送启动多频WiFi热点指令。
S309,WiFi驱动基于启动多频WiFi热点指令,从WiFi配置信息中获取多频WiFi热点各自的信道列表。
其中,WiFi配置信息包括多频WiFi热点各自的信道列表,信道列表包括至少一个可用的信道,信道用于传输业务数据。例如,WiFi驱动从WiFi配置信息中获取2.4GHz频段WiFi热点的信道列表和5GHz频段WiFi热点的信道列表。
S310,WiFi驱动从多频WiFi热点各自的信道列表中确定多频WiFi热点各自的目标信道。
在本实施例中,WiFi驱动可以采用ACS算法确定多频WiFi热点各自的目标信道。ACS算法通过计算信道列表中各信道的权重,依权重大小对各信道的权重进行排序,由此确定各信道的优先次序,依优先次序选择目标信道。
可以理解,本申请对确定多频WiFi热点各自的目标信道的方法不做限定。
S311,WiFi驱动向WiFi固件发送启动多频WiFi热点指令。
其中,启动多频WiFi热点指令包括多频WiFi热点各自的目标信道。
S312,WiFi固件基于启动多频WiFi热点指令,启动多频WiFi热点。
在启动多频WiFi热点之后,WiFi固件可以在多频WiFi热点各自的目标信道上发送或接收业务数据。
可以理解,AP启动单频WiFi热点的过程与上述步骤S307至S312大致相同,本申请对此不再赘述。
目前,AP可以支持提供至少一个WiFi热点,各个WiFi热点具有对应的工作频段,各个WiFi热点的工作频段不重叠。当AP启动一个WiFi热点时,不支持该WiFi热点对应工作频段的STA不能接入该WiFi热点,导致AP能够连接的STA的数目较少。当AP启动至少两个WiFi热点时,虽然能够增加STA的数目,但是AP的功耗较高,且难以保证WiFi的性能和兼容性。
基于此,本申请实施例提供一种WiFi热点管理方法、电子设备及计算机可读存储介质,在AP启动至少两个WiFi热点的情况下,基于至少两个WiFi热点各自的设备连接信息,关闭无设备连接的至少一个WiFi热点,从而降低AP的功耗。并且,在不同场景下选择关闭不同的WiFi热点,从而保证WiFi的性能和兼容性。
下面以双频WiFi热点为例,结合场景一至四对本申请实施例提供的WiFi热点管理方法进行具体说明。
场景一
场景描述:在AP启动第一WiFi热点和第二WiFi热点的情况下,第一STA连接到第一WiFi热点,第二STA连接到第二WiFi热点。其中,第一WiFi热点的工作频段低于第二WiFi热点的工作频段。
图4是一种示例提供的场景一下WiFi热点管理方法的时序图。
如图4所示,WiFi热点管理方法包括如下步骤:
S401,在第一STA连接到第一WiFi热点,第二STA连接到第二WiFi热点的情况下,在预设时间段之后,WiFi Setting模块向WiFi Service模块发送第一漫游指令。
其中,第一漫游指令用于指示连接到第一WiFi热点的STA启动漫游。
可以理解,预设时间段可依需而设,例如预设时间段可被设置为3分钟(min)、5min或10min等。
S402,WiFi Service模块向WiFi驱动发送第一漫游指令。
S403,WiFi驱动向WiFi固件发送第一漫游指令。
S404,WiFi固件通过第一WiFi热点向第一STA发送第一漫游指令。
S405,WiFi固件通过第一WiFi热点接收来自第一STA的第一漫游结果。
其中,第一漫游结果包括漫游成功或漫游失败。当第一漫游结果为漫游成功时,说明第一STA从第一WiFi热点切换到第二WiFi热点。当第一漫游结果为漫游失败时,说明第一STA未从第一WiFi热点切换到第二WiFi热点。
第一漫游结果可以包括用于表示漫游成功或漫游失败的指示符。示例性的,当指示符为true时,表示漫游成功。当指示符为false时,表示漫游失败。
S406,WiFi固件向WiFi驱动发送第一漫游结果。
S407,WiFi驱动向WiFi Service模块发送第一漫游结果。
S408,WiFi Service模块向WiFi Setting模块发送第一漫游结果。
S409,在第一漫游结果为漫游成功的情况下,WiFi Setting模块向WiFi Service模块发送关闭第一WiFi热点指令。
其中,关闭第一WiFi热点指令用于指示关闭第一WiFi热点。
在一种实施例中,在第一漫游结果为漫游成功的情况下,在预设时间段之后,WiFi Setting模块确定第一WiFi热点是否被STA连接。在确定第一WiFi热点被STA连接的情况下,WiFi Setting模块不发送关闭第一WiFi热点指令。在确定第一WiFi热点未被STA连接的情况下,WiFi Setting模块向WiFi Service模块发送关闭第一WiFi热点指令。其中,上述STA可以是除第一STA和第二STA以外的任意STA。
在其他实施例中,在第一漫游结果为漫游成功的情况下,WiFi Setting模块确定第一WiFi热点是否被关闭。在第一WiFi热点已被关闭的情况下,WiFi Setting模块不发送关闭第一WiFi热点指令。在第一WiFi热点未被关闭的情况下,WiFi Setting模块发送关闭第一WiFi热点指令。
S410,WiFi Service模块向WiFi驱动发送关闭第一WiFi热点指令。
S411,WiFi驱动向WiFi固件发送关闭第一WiFi热点指令。
S412,WiFi固件基于关闭第一WiFi热点指令,关闭第一WiFi热点。
S413,在第一漫游结果为漫游失败的情况下,WiFi Setting模块查询WiFi业务流量。
在本实施例中,WiFi固件在启动第一WiFi热点和第二WiFi热点之后,依预定的周期上报WiFi业务流量。WiFi驱动接收来自WiFi固件的WiFi业务流量之后,向WiFi Service模块发送WiFi业务流量。然后,WiFi Service模块向WiFi Setting模块发送WiFi业务流量。WiFi Setting模块在接收WiFi业务流量之后,存储WiFi业务流量。其中,预定的周期可依需而设,例如预定的周期可被设置为5秒(s)、10s或20s等。
可以理解,WiFi Setting模块可以存储各周期对应的WiFi业务流量,也可以仅存储最近一个周期对应的WiFi业务流量。WiFi业务流量可以存储于预设的存储空间中,例如存储于内存空间或数据库中。
S414,在WiFi业务流量小于第一WiFi热点对应的频带宽度的情况下,WiFi Setting模块向WiFi Service模块发送第二漫游指令。
其中,第二漫游指令用于指示连接到第二WiFi热点的STA启动漫游。
在本实施例中,在WiFi业务流量大于或等于第一WiFi热点对应的频带宽度的情况下,返回执行步骤S413。
S415,WiFi Service模块向WiFi驱动发送第二漫游指令。
S416,WiFi驱动向WiFi固件发送第二漫游指令。
S417,WiFi固件通过第二WiFi热点向第二STA发送第二漫游指令。
S418,WiFi固件通过第二WiFi热点接收来自第二STA的第二漫游结果。
其中,第二漫游结果与第一漫游结果大致相同,此处不再赘述。
S419,WiFi固件向WiFi驱动发送第二漫游结果。
S420,WiFi驱动向WiFi Service模块发送第二漫游结果。
S421,WiFi Service模块向WiFi Setting模块发送第二漫游结果。
S422,在第二漫游结果为漫游成功的情况下,WiFi Setting模块向WiFi Service模块发送关闭第二WiFi热点指令。
其中,关闭第二WiFi热点指令与关闭第一WiFi热点指令大致相同,此处不再赘述。
在其他实施例中,在第二漫游结果为漫游失败的情况下,WiFi Setting模块不发送关闭第二WiFi热点指令。
S423,WiFi Service模块向WiFi驱动发送关闭第二WiFi热点指令。
S424,WiFi驱动向WiFi固件发送关闭第二WiFi热点指令。
S425,WiFi固件基于关闭第二WiFi热点指令,关闭第二WiFi热点。
基于场景一下的WiFi热点管理方法,在第一STA连接到第一WiFi热点,第二STA连接到第二WiFi热点的情况下,通过漫游的方式使连接到第一WiFi热点的第一STA切换到第二WiFi热点,再关闭无STA连接的第一WiFi热点。或者,通过漫游的方式使连接到第二WiFi热点的第二STA切换到第一WiFi热点,再关闭无STA连接的第二WiFi热点。由此减少同步运行的WiFi热点的数目,从而降低AP的功耗。此外,由于第一WiFi热点的工作频段低于第二WiFi热点的工作频段,关闭第一WiFi热点,开启第二WiFi热点,有利于提高WiFi业务的数据传输速率,从而提升WiFi性能。关闭第二WiFi热点,开启第一WiFi热点,有利于兼容更宽的频段范围,从而提升WiFi兼容性。
图5是一种示例提供的场景一下AP界面的示意图。
如图5所示,AP显示热点管理界面,在热点管理界面上显示设备连接信息,设备连接信息包括连接设备的数目。示例性的,在第一STA连接到第一WiFi热点,第二STA连接到第二WiFi热点的情况下,连接STA的数目为2。基于场景一下的WiFi热点管理方法,AP在关闭至少一个WiFi热点的情况下,在热点管理界面上显示的连接STA的数目不变。
可以理解,设备连接信息还可以包括连接设备的名称、互联网协议(Internet Protocol,IP)地址、媒体访问控制(Medium Access Control,MAC)地址、已连接WiFi热点的服务集标识(Service Set Identifier,SSID)、工作频段、信道以及WiFi业务流量等信息,本申请对此不做限定。
场景二
场景描述:在AP启动第一WiFi热点和第二WiFi热点的情况下,第一STA和第三STA连接到第一WiFi热点,第二WiFi热点无STA连接。
场景二与场景一的区别在于,第二WiFi热点无STA连接。场景二下的WiFi热点管理方法与场景一下的WiFi热点管理方法大致相同。
图6是一种示例提供的场景二下WiFi热点管理方法的时序图。
如图6所示,WiFi热点管理方法包括如下步骤:
S601,在第一STA和第三STA连接到第一WiFi热点,第二WiFi热点无STA连接的情况下,在预设时间段之后,WiFi Setting模块向WiFi Service模块发送第一漫游指令。
S602,WiFi Service模块向WiFi驱动发送第一漫游指令。
S603,WiFi驱动向WiFi固件发送第一漫游指令。
S604,WiFi固件通过第一WiFi热点向第一STA发送第一漫游指令。
S605,WiFi固件通过第一WiFi热点向第三STA发送第一漫游指令。
S606,WiFi固件通过第一WiFi热点接收来自第一STA的第一漫游结果。
S607,WiFi固件通过第一WiFi热点接收来自第三STA的第三漫游结果。
其中,第三漫游结果与第一漫游结果大致相同,此处不再赘述。
S608,WiFi固件向WiFi驱动发送第一漫游结果和第三漫游结果。
S609,WiFi驱动向WiFi Service模块发送第一漫游结果和第三漫游结果。
S610,WiFi Service模块向WiFi Setting模块发送第一漫游结果和第三漫游结果。
S611,在第一漫游结果和第三漫游结果均为漫游成功的情况下,WiFi Setting模块向WiFi Service模块发送关闭第一WiFi热点指令。
S612,WiFi Service模块向WiFi驱动发送关闭第一WiFi热点指令。
S613,WiFi驱动向WiFi固件发送关闭第一WiFi热点指令。
S614,WiFi固件基于关闭第一WiFi热点指令,关闭第一WiFi热点。
S615,在第一漫游结果为漫游失败,且第三漫游结果为漫游成功的情况下,WiFi Setting模块查询WiFi业务流量。
在其他实施例中,在第一漫游结果和第三漫游结果均为漫游失败的情况下,WiFi Setting模块向WiFi Service模块发送关闭第二WiFi热点指令。WiFi Service模块向WiFi驱动发送关闭第二WiFi热点指令。WiFi驱动向WiFi固件发送关闭第二WiFi热点指令。WiFi固件基于关闭第二WiFi热点指令,关闭第二WiFi热点。
S616,在WiFi业务流量小于第一WiFi热点对应的频带宽度的情况下,WiFi Setting模块向WiFi Service模块发送第二漫游指令。
S617,WiFi Service模块向WiFi驱动发送第二漫游指令。
S618,WiFi驱动向WiFi固件发送第二漫游指令。
S619,WiFi固件通过第二WiFi热点向第三STA发送第二漫游指令。
S620,WiFi固件通过第二WiFi热点接收来自第三STA的新的第三漫游结果。
S621,WiFi固件向WiFi驱动发送新的第三漫游结果。
S622,WiFi驱动向WiFi Service模块发送新的第三漫游结果。
S623,WiFi Service模块向WiFi Setting模块发送新的第三漫游结果。
S624,在新的第三漫游结果为漫游成功的情况下,WiFi Setting模块向WiFi Service模块发送关闭第二WiFi热点指令。
在其他实施例中,在新的第三漫游结果为漫游失败的情况下,WiFi Setting模块不发送关闭第二WiFi热点指令。
S625,WiFi Service模块向WiFi驱动发送关闭第二WiFi热点指令。
S626,WiFi驱动向WiFi固件发送关闭第二WiFi热点指令。
S627,WiFi固件基于关闭第二WiFi热点指令,关闭第二WiFi热点。
基于场景二下的WiFi热点管理方法,在第一STA和第三STA连接到第一WiFi热点,第二WiFi热点无STA连接的情况下,通过漫游的方式使连接到第一WiFi热点的第一STA和第三STA切换到第二WiFi热点,再关闭无STA连接的第一WiFi热点。在第一STA和第三STA均未切换到第二WiFi热点的情况下,关闭无STA连接的第二WiFi热点。或者,在第一STA未切换到第二WiFi热点,且第三STA切换到第二WiFi热点的情况下,通过漫游的方式使连接到第二WiFi热点的第三STA切换到第一WiFi热点,再关闭无STA连接的第二WiFi热点。由此减少同步运行的WiFi热点的数目,从而降低AP的功耗。此外,由于第一WiFi热点的工作频段低于第二WiFi热点的工作频段,关闭第一WiFi热点,开启第二WiFi热点,有利于提高WiFi业务的数据传输速率,从而提升WiFi性能。关闭第二WiFi热点,开启第一WiFi热点,有利于兼容更宽的频段范围,从而提升WiFi兼容性。
图7是一种示例提供的场景二下AP界面的示意图。
如图7所示,AP显示热点管理界面,在热点管理界面上显示设备连接信息,设备连接信息包括连接设备的数目。示例性的,在第一STA和第三STA连接到第一WiFi热点,第二WiFi热点无STA连接的情况下,连接STA的数目为2。基于场景二下的WiFi热点管理方法,AP在关闭至少一个WiFi热点的情况下,在热点管理界面上显示的连接STA的数目不变或增大。
场景三
场景描述:在AP启动第一WiFi热点和第二WiFi热点的情况下,第一WiFi热点无STA连接,第二STA连接到第二WiFi热点。
场景三与场景一的区别在于,第一WiFi热点无STA连接。
图8是一种示例提供的场景三下WiFi热点管理方法的时序图。
如图8所示,WiFi热点管理方法包括如下步骤:
S801,在第一WiFi热点无STA连接,第二STA连接到第二WiFi热点的情况下,在预设时间段之后,WiFi Setting模块向WiFi Service模块发送关闭第一WiFi热点指令。
S802,WiFi Service模块向WiFi驱动发送关闭第一WiFi热点指令。
S803,WiFi驱动向WiFi固件发送关闭第一WiFi热点指令。
S804,WiFi固件基于关闭第一WiFi热点指令,关闭第一WiFi热点。
基于场景三下的WiFi热点管理方法,在第一WiFi热点无STA连接,第二STA连接到第二WiFi热点的情况下,关闭无STA连接的第一WiFi热点。由此减少同步运行的WiFi热点的数目,从而降低AP的功耗。此外,由于第一WiFi热点的工作频段低于第二WiFi热点的工作频段,关闭第一WiFi热点,开启第二WiFi热点,有利于提高WiFi业务的数据传输速率,从而提升WiFi性能。
图9是一种示例提供的场景三下AP界面的示意图。
如图9所示,AP显示热点管理界面,在热点管理界面上显示设备连接信息,设备连接信息包括连接设备的数目。示例性的,在第一WiFi热点无STA连接,第二STA连接到第二WiFi热点的情况下,连接STA的数目为1。基于场景三下的WiFi热点管理方法,AP在关闭至少一个WiFi热点的情况下,在热点管理界面上显示的连接STA的数目不变。
场景四
场景描述:在AP启动第一WiFi热点和第二WiFi热点的情况下,第一WiFi热点和第二WiFi热点均无STA连接。
场景四与场景三的区别在于,第二WiFi热点无STA连接。场景四下的WiFi热点管理方法与场景三下的WiFi热点管理方法大致相同。
图10是一种示例提供的场景四下WiFi热点管理方法的时序图。
如图10所示,WiFi热点管理方法包括如下步骤:
S1001,在第一WiFi热点和第二WiFi热点均无STA连接的情况下,在预设时间段之后,WiFi Setting模块向WiFi Service模块发送关闭第一WiFi热点指令。
S1002,WiFi Service模块向WiFi驱动发送关闭第一WiFi热点指令。
S1003,WiFi驱动向WiFi固件发送关闭第一WiFi热点指令。
S1004,WiFi固件基于关闭第一WiFi热点指令,关闭第一WiFi热点。
基于场景四下的WiFi热点管理方法,在第一WiFi热点和第二WiFi热点均无STA连接的情况下,关闭第一WiFi热点。由此减少同步运行的WiFi热点的数目,从而降低AP的功耗。此外,由于第一WiFi热点的工作频段低于第二WiFi热点的工作频段,关闭第一WiFi热点,开启第二WiFi热点,有利于提高WiFi业务的数据传输速率,从而提升WiFi性能。
图11是一种示例提供的场景四下AP界面的示意图。
如图11所示,AP显示热点管理界面,在热点管理界面上显示设备连接信息,设备连接信息包括连接设备的数目。示例性的,在第一WiFi热点和第二WiFi热点均无STA连接的情况下,连接STA的数目为0。基于场景四下的WiFi热点管理方法,AP在关闭至少一个WiFi热点的情况下,在热点管理界面上显示的连接STA的数目不变。
图12是一种示例提供的AP的硬件结构示意图。
如图12所示,AP包括处理器110、外部存储器接口120、内部存储器121、通用串行总线(Universal Serial Bus,USB)接口130、充电管理模块140、电源管理模块141、电池142、天线1、天线2、移动通信模块150、无线通信模块160、音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、传感器模块180、按键190、马达191、指示器192、摄像头193、显示屏194,以及用户标识模块(Subscriber Identification Module,SIM)卡接口195等。
其中,处理器110可以运行存储于内部存储器121中的指令,使得AP执行本申请实施例提供的WiFi热点管理方法。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(Application Processor,AP),调制解调处理器,图形处理器(Graphics Processing Unit,GPU),图像信号处理器(ISP),控制器,视频编解码器,数字信号处理器(Digital Signal Processor,DSP),基带处理器,和/或神经网络处理器(Neural-Network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免重复存取,减少处理器110的等待时间,因而提高系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(Inter-Integrated Circuit,I2C)接口,集成电路内置音频(Inter-Integrated Circuit Sound,I2S)接口,脉冲编码调制(Pulse Code Modulation,PCM)接口,通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)接口,移动产业处理器接口(Mobile Industry Processor Interface,MIPI),通用输入输出(General-Purpose Input/Output,GPIO)接口,用户标识模块(SIM)接口,和/或通用串行总线(USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(Serial Data Line,SDA)和一根串行时钟线(Derail Clock Line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现AP的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。I2S接口和PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(Camera Serial Interface,CSI),显示屏串行接口(Display Serial Interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现AP的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现AP的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为AP充电,也可以用于AP与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对AP的结构限定。在本申请另一些实施例中,AP也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过AP的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110、内部存储器121、显示屏194、摄像头193和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量、电池循环次数、电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
AP的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。AP中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在AP上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器、开关、功率放大器、低噪声放大器(Low Noise Amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接
收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在AP上的包括无线局域网(Wireless Local Area Network,WLAN)(例如WiFi网络)、蓝牙(BlueTooth,BT)、全球导航卫星系统(Global Navigation Satellite System,GNSS)、调频(Frequency Modulation,FM)、近距离无线通信(Near Field Communication,NFC)、红外(Infrared,IR)等无线通信的解决方案。在本实施例中,无线通信模块160包括WiFi固件。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频、放大,经天线2转为电磁波辐射出去。
在一些实施例中,AP的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得AP可以通过无线通信技术与网络以及其他设备通信。无线通信技术可以包括全球移动通讯系统(Global System For Mobile Communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址接入(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、时分码分多址(Time-Division Code Division Multiple Access,TD-SCDMA)、长期演进(Long Term Evolution,LTE)、BT、GNSS、WLAN、NFC、FM和/或IR技术等。GNSS可以包括全球卫星定位系统(Global Positioning System,GPS)、全球导航卫星系统(Global Navigation Satellite System,GLONASS)、北斗卫星导航系统(Beidou Navigation Satellite System,BDS)、准天顶卫星系统(Quasi-Zenith Satellite System,QZSS)和/或星基增强系统(Satellite Based Augmentation System,SBAS)。
AP通过GPU、显示屏194以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像、视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(Active-Matrix Organic Light Emitting Diode,AMOLED)、柔性发光二极管(Flex Light-Emitting
Diode,FLED)、Miniled、MicroLed、Micro-oLed、量子点发光二极管(Quantum Dot Light Emitting Diode,QLED)等。在一些实施例中,AP可以包括1个或N个显示屏194,N为大于1的正整数。
AP可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点、亮度、肤色进行算法优化。ISP还可以对拍摄场景的曝光、色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于拍摄静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(Charge Coupled Device,CCD)或互补金属氧化物半导体(Complementary Metal-Oxide-Semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,AP可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当AP在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。AP可以支持一种或多种视频编解码器。这样,AP可以播放或录制多种编码格式的视频,例如:动态图像专家组(Moving Picture Experts Group,MPEG)1、MPEG2、MPEG3、MPEG4等。
NPU为神经网络(Neural-Network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现AP的智能认知等应用,例如:图像识别、人脸识别、语音识别、文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展AP的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐、视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等。存储数据区可存储AP使用过程中所创建的数据(比如音频数据、电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、通用闪存存储器(Universal Flash Storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行AP的各种功能应用以及数据处理。
AP可以通过音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D以及应用处理器等实现音频功能。例如音乐播放、录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入
转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。AP可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当AP接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。AP可以设置至少一个麦克风170C。在另一些实施例中,AP可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,AP还可以设置三个、四个或更多麦克风170C,实现采集声音信号、降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(Open Mobile Terminal Platform,OMTP)标准接口,美国蜂窝电信工业协会(Cellular Telecommunications Industry Association of the USA,CTIA)标准接口。
按键190包括开机键、音量键等。按键190可以是机械按键,也可以是触摸式按键。AP可以接收按键输入,产生与AP的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照、音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒、接收信息、闹钟、游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态、电量变化,也可以用于指示消息,未接来电、通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和AP的接触和分离。AP可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡、Micro SIM卡、SIM卡等。同一个SIM卡接口195可以同时插入多张卡。多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。AP通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,AP采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在AP中,不能和AP分离。
可以理解的是,本发明实施例示意的结构并不构成对电子设备的具体限定。在另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令在计算机上运行时,使得计算机执行本申请实施例的WiFi热点管理方法。
计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模
块或其它数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机可读存储介质包括,但不限于随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、带电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、闪存或其它存储器、只读光盘(Compact Disc Read-Only Memory,CD-ROM)、数字通用光盘(Digital Versatile Disc,DVD)或其它光盘存储、磁盒、磁带、磁盘存储或其它磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其它的介质。
上面结合附图对本申请实施例作了详细说明,但是本申请不限于上述实施例,在所属技术领域普通技术人员所具备的知识范围内,还可以在不脱离本申请宗旨的前提下做出各种变化。
Claims (10)
- 一种WiFi热点管理方法,应用于电子设备,其特征在于,所述方法包括:启动第一WiFi热点和第二WiFi热点,所述第一WiFi热点的工作频段为第一频段,所述第二WiFi热点的工作频段为第二频段,所述第一频段低于所述第二频段;在第一时间段,在所述电子设备的热点管理界面上显示第一设备连接信息,所述第一设备连接信息包括第一连接设备的数目,所述第一连接设备包括第一设备和第二设备,所述第一设备连接到所述第一WiFi热点,所述第二设备连接到所述第二WiFi热点;基于所述第一设备切换到所述第二WiFi热点,关闭所述第一WiFi热点;或者,基于所述第一设备未切换到所述第二WiFi热点,且所述第二设备切换到所述第一WiFi热点,关闭所述第二WiFi热点。
- 如权利要求1所述的WiFi热点管理方法,其特征在于,在启动第一WiFi热点和第二WiFi热点之后,所述方法还包括:在第二时间段,在所述热点管理界面上显示第二设备连接信息,所述第二设备连接信息包括第二连接设备的数目,所述第二连接设备包括所述第一设备和第三设备,所述第一设备和所述第三设备连接到所述第一WiFi热点,所述第二WiFi热点无设备连接;基于所述第一设备和所述第三设备均切换到所述第二WiFi热点,关闭所述第一WiFi热点;或者,基于所述第一设备未切换到所述第二WiFi热点,且所述第三设备切换到所述第一WiFi热点,关闭所述第二WiFi热点;或者,基于所述第一设备和所述第三设备均未切换到所述第二WiFi热点,关闭所述第二WiFi热点。
- 如权利要求1或2所述的WiFi热点管理方法,其特征在于,在启动第一WiFi热点和第二WiFi热点之后,所述方法还包括:在第三时间段,在所述热点管理界面上显示第三设备连接信息,所述第三设备连接信息包括第三连接设备的数目,所述第三连接设备包括所述第二设备,所述第二设备连接到所述第二WiFi热点,所述第一WiFi热点无设备连接;关闭所述第一WiFi热点。
- 如权利要求1至3中任一项所述的WiFi热点管理方法,其特征在于,在启动第一WiFi热点和第二WiFi热点之后,所述方法还包括:在第四时间段,在所述热点管理界面上显示第四设备连接信息,所述第四设备连接信息包括第四连接设备的数目,所述第四连接设备的数目为0;关闭所述第一WiFi热点。
- 如权利要求1所述的WiFi热点管理方法,其特征在于,在基于所述第一设备切换到所述第二WiFi热点,关闭所述第一WiFi热点之前,所述方法还包括:通过所述第一WiFi热点发送第一漫游指令,所述第一漫游指令用于指示连接到所述第一WiFi热点的设备启动漫游,所述第一设备在漫游成功的情况下切换到所述第二WiFi热点。
- 如权利要求5所述的WiFi热点管理方法,其特征在于,在基于所述第一设备未切换到所述第二WiFi热点,且所述第二设备切换到所述第一WiFi热点,关闭所述第二WiFi热点之前,所述方法还包括:基于所述第一设备漫游失败,查询所述电子设备的WiFi业务流量;基于所述WiFi业务流量小于所述第一频段的频带宽度,通过所述第二WiFi热点发送第二漫游指令,所述第二漫游指令用于指示连接到所述第二WiFi热点的设备启动漫游,所述第二设备在漫游成功的情况下切换到所述第一WiFi热点。
- 如权利要求2所述的WiFi热点管理方法,其特征在于,在基于所述第一设备和所述第三设备均切换到所述第二WiFi热点,关闭所述第一WiFi热点之前,所述方法还包括:通过所述第一WiFi热点发送第一漫游指令,所述第一漫游指令用于指示连接到所述第一WiFi热点的设备启动漫游,所述第一设备和所述第三设备在漫游成功的情况下切换到所述第二WiFi热点。
- 如权利要求7所述的WiFi热点管理方法,其特征在于,在基于所述第一设备未切换到所述第二WiFi热点,且所述第三设备切换到所述第一WiFi热点,关闭所述第二WiFi热点之前,所述方法还包括:基于所述第一设备漫游失败,且所述第三设备漫游成功,查询所述电子设备的WiFi业务流量;基于所述WiFi业务流量小于所述第一频段的频带宽度,通过所述第二WiFi热点发送第二漫游指令,所述第二漫游指令用于指示连接到所述第二WiFi热点的设备启动漫游,所述第三设备在漫游成功的情况下切换到所述第一WiFi热点。
- 一种电子设备,其特征在于,所述电子设备包括存储器、处理器、显示屏以及无线通信模块,所述显示屏用于显示热点管理界面,所述无线通信模块用于设置和管理至少两个WiFi热点,所述存储器用于存储指令,所述处理器用于运行存储于所述存储器中的指令,使得所述电子设备执行如权利要求1至8中任一项所述的WiFi热点管理方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有指令,当所述指令在计算机上运行时,使得所述计算机执行如权利要求1至8中任一项所述的WiFi热点管理方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311021885.9A CN119485595B (zh) | 2023-08-11 | 2023-08-11 | WiFi热点管理方法、电子设备及计算机可读存储介质 |
| CN202311021885.9 | 2023-08-11 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025035753A1 true WO2025035753A1 (zh) | 2025-02-20 |
Family
ID=94595713
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/081182 Pending WO2025035753A1 (zh) | 2023-08-11 | 2024-03-12 | WiFi热点管理方法、电子设备及计算机可读存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN119485595B (zh) |
| WO (1) | WO2025035753A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118714549B (zh) * | 2024-06-03 | 2025-07-04 | 荣耀终端股份有限公司 | 一种移动热点的控制方法及电子设备 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106604367A (zh) * | 2015-10-14 | 2017-04-26 | 中兴通讯股份有限公司 | 终端热点休眠的方法和装置 |
| CN106713180A (zh) * | 2015-11-18 | 2017-05-24 | 中兴通讯股份有限公司 | 热点设备控制方法及装置 |
| WO2017166179A1 (zh) * | 2016-03-31 | 2017-10-05 | 李昕光 | 一种管理终端无线网络热点的方法 |
| CN112261710A (zh) * | 2020-09-24 | 2021-01-22 | 深圳市广和通无线股份有限公司 | 热点控制方法、装置、终端设备和存储介质 |
| CN112449401A (zh) * | 2019-08-31 | 2021-03-05 | Oppo广东移动通信有限公司 | WiFi漫游方法、装置、移动终端及存储介质 |
| CN113015264A (zh) * | 2021-02-22 | 2021-06-22 | 斑马网络技术有限公司 | 实现双热点建立连接的方法、电子设备及可读存储介质 |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102443063B1 (ko) * | 2016-05-10 | 2022-09-14 | 삼성전자주식회사 | 저전력 모바일 핫스팟을 제공하기 위한 장치 및 방법 |
| WO2018111305A1 (en) * | 2016-12-16 | 2018-06-21 | Nokia Technologies Oy | Improved power-save mode for wireless device |
| US20180295548A1 (en) * | 2017-04-07 | 2018-10-11 | Theatro Labs Inc. | Predictive Roaming within an Environment |
| CN110582108B (zh) * | 2018-06-11 | 2022-08-26 | 中兴通讯股份有限公司 | 一种无线接入网络的控制方法、网络设备和存储介质 |
| CN112291833B (zh) * | 2019-07-23 | 2023-01-13 | 华为技术有限公司 | 一种设备控制方法、系统相关装置 |
| CN110730448A (zh) * | 2019-09-18 | 2020-01-24 | 华为技术有限公司 | 设备之间建立连接的方法及电子设备 |
| CN114339903A (zh) * | 2020-09-30 | 2022-04-12 | 华为技术有限公司 | 一种无线通信方法及电子设备 |
| CN114980224B (zh) * | 2021-02-26 | 2024-04-12 | 华为技术有限公司 | WiFi热点的切换方法、终端设备及存储介质 |
| CN114007248B (zh) * | 2021-09-16 | 2022-12-27 | 荣耀终端有限公司 | Wi-Fi漫游的方法、电子设备及存储介质 |
| CN115348574B (zh) * | 2022-10-18 | 2023-02-10 | 浙江大华技术股份有限公司 | 无线终端的漫游方法、电子设备以及存储介质 |
-
2023
- 2023-08-11 CN CN202311021885.9A patent/CN119485595B/zh active Active
-
2024
- 2024-03-12 WO PCT/CN2024/081182 patent/WO2025035753A1/zh active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106604367A (zh) * | 2015-10-14 | 2017-04-26 | 中兴通讯股份有限公司 | 终端热点休眠的方法和装置 |
| CN106713180A (zh) * | 2015-11-18 | 2017-05-24 | 中兴通讯股份有限公司 | 热点设备控制方法及装置 |
| WO2017166179A1 (zh) * | 2016-03-31 | 2017-10-05 | 李昕光 | 一种管理终端无线网络热点的方法 |
| CN112449401A (zh) * | 2019-08-31 | 2021-03-05 | Oppo广东移动通信有限公司 | WiFi漫游方法、装置、移动终端及存储介质 |
| CN112261710A (zh) * | 2020-09-24 | 2021-01-22 | 深圳市广和通无线股份有限公司 | 热点控制方法、装置、终端设备和存储介质 |
| CN113015264A (zh) * | 2021-02-22 | 2021-06-22 | 斑马网络技术有限公司 | 实现双热点建立连接的方法、电子设备及可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119485595A (zh) | 2025-02-18 |
| CN119485595B (zh) | 2026-04-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12494811B2 (en) | Bluetooth communication method, wearable device, and system | |
| CN114009055A (zh) | 一种投屏显示方法及电子设备 | |
| WO2021135815A1 (zh) | 通信方法、相关设备及通信系统 | |
| US20230129780A1 (en) | Wi-Fi Aware Link Establishment Method and System, Electronic Device, and Storage Medium | |
| CN112425201B (zh) | 一种业务控制的方法及电子设备 | |
| CN112335294B (zh) | 一种紧急呼叫方法及用户终端 | |
| CN113645688B (zh) | 网络接入注册方法、装置、终端设备以及存储介质 | |
| CN114727269A (zh) | 一种蓝牙回连方法及相关装置 | |
| CN113115483B (zh) | 无线资源控制连接的释放方法、装置和用户设备 | |
| CN119485595B (zh) | WiFi热点管理方法、电子设备及计算机可读存储介质 | |
| CN113099528B (zh) | 服务获取方法、装置和用户设备 | |
| US20230337147A1 (en) | Device Configuration Method and Device | |
| EP4460096B1 (en) | Communication methods | |
| CN116981108B (zh) | 无线投屏连接方法、移动终端及计算机可读存储介质 | |
| CN113099500B (zh) | 小区的测量方法、装置和用户设备 | |
| CN114449492B (zh) | 数据传输方法及终端设备 | |
| CN113141665B (zh) | 按需系统消息的接收方法、装置和用户设备 | |
| CN114697953B (zh) | 一种网络制式确定方法及装置 | |
| WO2025061115A1 (zh) | 一种通话方法、电子设备及系统 | |
| CN119906464A (zh) | 天线切换方法、芯片、网络设备及计算机可读存储介质 | |
| HK40075008B (zh) | 驻网方法、电子设备及系统 | |
| CN119997043A (zh) | 建立蓝牙连接的方法及电子设备 | |
| WO2024022154A1 (zh) | 一种确定设备使用者的方法及相关装置 | |
| CN116974587A (zh) | 应用程序的部署方法、电子设备、存储介质及芯片系统 | |
| CN121940572A (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: 24853169 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |