Wi-fi hotspot management method, electronic device and computer-readable storage medium
By displaying device connection information on the hotspot management interface of electronic devices and closing WiFi hotspots without device connection based on device switching, the problem of high power consumption and poor performance compatibility when electronic devices start multiple WiFi hotspots is solved, and the results are achieved Reduced consumption and improved WiFi performance.
Patent Information
- Application Number
- PCT/CN2024/081182
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-11
- Filing Date
- 2024-03-12
- Publication Date
- 2025-02-20
AI Technical Summary
When an electronic device starts at least two WiFi hotspots, the power consumption is high and it is difficult to ensure the performance and compatibility of WiFi.
By displaying device connection information on the hotspot management interface, turning off WiFi hotspots without device connections based on device switching, thereby reducing the number of WiFi hotspots running simultaneously, reducing power consumption, and optimizing WiFi performance and compatibility.
By reducing the number of WiFi hotspots running synchronously, the power consumption of electronic devices is reduced, and by adjusting the working frequency band, the data transmission rate of WiFi services is improved, and WiFi performance and compatibility are improved.
Smart Images

Figure CN2024081182_20022025_PF_FP_ABST
Abstract
Description
WiFi hotspot management method, electronic device, and computer-readable storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to a Chinese patent application filed with the China Patent Office on August 11, 2023, with application number 202311021885.9 and application name “WiFi hotspot management method, electronic device and computer-readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The embodiments of the present application relate to the field of communication technology, and more particularly to a WiFi hotspot management method, an electronic device, and a computer-readable storage medium. Background Art
[0004] Currently, electronic devices can support at least one Wireless Fidelity (WiFi) hotspot. Each WiFi hotspot has a corresponding operating frequency band, and the operating frequency bands of the WiFi hotspots do not overlap. When an electronic device activates a WiFi hotspot, devices that do not support the corresponding operating frequency band of the WiFi hotspot cannot access the WiFi hotspot, resulting in a small number of devices that can be connected to the electronic device. When an electronic device activates 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 WiFi performance and compatibility.
[0005] Summary of the Invention
[0006] Embodiments of the present application provide a WiFi hotspot management method, an electronic device, and a computer-readable storage medium, which aim to solve the problem of how to reduce power consumption when an electronic device activates at least two WiFi hotspots.
[0007] A first aspect of an embodiment of the present application provides a WiFi hotspot management method, which is applied to an electronic device. The method includes: starting a first WiFi hotspot and a second WiFi hotspot, wherein the operating frequency band of the first WiFi hotspot is the first frequency band, and the operating frequency band of the second WiFi hotspot is the second frequency band, and the first frequency band is lower than the second frequency band. During a first time period, first device connection information is displayed on the hotspot management interface of the electronic device, wherein 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. Based on the first device 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 second device switching to the first WiFi hotspot, the second WiFi hotspot is closed.
[0008] In this embodiment, when a first device is connected to a first WiFi hotspot and a second device is connected to a second WiFi hotspot, 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 shut down. Alternatively, 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 shut down. This reduces the number of WiFi hotspots operating simultaneously, thereby lowering the power consumption of the electronic device. Furthermore, because the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, shutting down the first WiFi hotspot and activating the second WiFi hotspot helps increase the data transmission rate of WiFi services, thereby improving WiFi performance. Shutting down the second WiFi hotspot and activating the first WiFi hotspot facilitates compatibility with a wider frequency range, thereby improving WiFi compatibility.
[0009] In one embodiment, after activating the first and second WiFi hotspots, the method further includes: displaying second device connection information on the hotspot management interface during a second time period, the second device connection information including the number of second connected devices, the second connected devices including the first device and the third device, the first device and the third device being connected to the first WiFi hotspot, and no device being connected to the second WiFi hotspot. Based on both the first and third devices switching to the second WiFi hotspot, the first WiFi hotspot is shut down. 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 shut down. Alternatively, based on neither the first device nor the third device switching to the second WiFi hotspot, the second WiFi hotspot is shut down.
[0010] In this embodiment, if 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 and third devices connected to the first WiFi hotspot are switched to the second WiFi hotspot, and the first WiFi hotspot (with no device connected) is shut down. Alternatively, if the first device has not switched to the second WiFi hotspot, and the third device has switched to the first WiFi hotspot, the second WiFi hotspot (with no device connected) is shut down. Alternatively, if neither the first device nor the third device has switched to the second WiFi hotspot, the second WiFi hotspot (with no device connected) is shut down. This reduces the number of simultaneously operating WiFi hotspots, thereby reducing power consumption of the electronic device. Furthermore, since the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, shutting down the first WiFi hotspot and activating the second WiFi hotspot helps increase the data transmission rate of WiFi services, thereby improving WiFi performance. Shutting down the second WiFi hotspot and activating the first WiFi hotspot facilitates compatibility with a wider frequency band, thereby improving WiFi compatibility.
[0011] In another embodiment, after activating the first and second WiFi hotspots, the method further includes: displaying third device connection information on the hotspot management interface during a third time period, the third device connection information including the number of third connected devices, the third connected devices including the second device, the second device being connected to the second WiFi hotspot, and no device being connected to the first WiFi hotspot; and deactivating the first WiFi hotspot.
[0012] In this embodiment, if no device is connected to the first WiFi hotspot and a second device is connected to the second WiFi hotspot, the first WiFi hotspot is shut down. This reduces the number of simultaneously operating WiFi hotspots, thereby reducing the power consumption of the electronic device. Furthermore, because the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, shutting down the first WiFi hotspot and opening the second WiFi hotspot helps increase the data transmission rate of WiFi services, thereby improving WiFi performance.
[0013] In another embodiment, after activating the first WiFi hotspot and the second WiFi hotspot, the method further includes: displaying fourth device connection information on the hotspot management interface during a fourth time period, the fourth device connection information including the number of fourth connected devices, the number of fourth connected devices being 0. Deactivating the first WiFi hotspot.
[0014] In this embodiment, if no device is connected to either the first or second WiFi hotspot, the first WiFi hotspot is shut down. This reduces the number of simultaneously operating WiFi hotspots, thereby lowering the power consumption of the electronic device. Furthermore, because the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, shutting down the first WiFi hotspot and opening the second WiFi hotspot helps increase the data transmission rate of WiFi services, thereby improving WiFi performance.
[0015] In another embodiment, before the first device switches to the second WiFi hotspot and closes the first WiFi hotspot, the method further includes: sending a first roaming instruction through the first WiFi hotspot, where 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 the roaming is successful.
[0016] In another embodiment, before shutting down the second WiFi hotspot 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 traffic of the electronic device based on a roaming failure of the first device. Based on the WiFi service traffic being less than the bandwidth of the first frequency band, sending a second roaming instruction via the second WiFi hotspot, the second roaming instruction being used to instruct the device connected to the second WiFi hotspot to initiate roaming, and the second device switching to the first WiFi hotspot if roaming is successful.
[0017] In another embodiment, before the first WiFi hotspot is closed based on the first device and the third device both switching to the second WiFi hotspot, the method further includes: sending a first roaming instruction through the first WiFi hotspot, the first roaming instruction being used to instruct the device connected to the first WiFi hotspot to initiate roaming, and the first device and the third device switching to the second WiFi hotspot if roaming is successful.
[0018] In another embodiment, before shutting down the second WiFi hotspot 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: querying the WiFi service traffic of the electronic device based on the first device failing to roam and the third device successfully roaming. Based on the WiFi service traffic being less than the bandwidth of the first frequency band, a second roaming instruction is sent via the second WiFi hotspot, the second roaming instruction being used to instruct the device connected to the second WiFi hotspot to initiate roaming. If roaming is successful, the third device switches to the first WiFi hotspot.
[0019] 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, and 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.
[0020] A third aspect of an embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the WiFi hotspot management method of the embodiment of the present application.
[0021] The technical effects brought about by the second and third aspects of the embodiments of the present application can be found in the relevant description of the WiFi hotspot management method of the first aspect above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] FIG1 is a schematic diagram of the architecture of a communication system provided by an example.
[0023] FIG2 is a schematic diagram of the software structure of an AP provided by an example.
[0024] FIG3 is a timing diagram of an example of an AP starting a multi-frequency WiFi hotspot.
[0025] FIG4 is a timing diagram of a WiFi hotspot management method according to a scenario provided by an example.
[0026] FIG5 is a schematic diagram of an AP interface in a scenario provided by an example.
[0027] FIG6 is a timing diagram of a WiFi hotspot management method under scenario 2 provided as an example.
[0028] FIG. 7 is a schematic diagram of an AP interface in scenario 2 provided as an example.
[0029] FIG8 is a timing diagram of a WiFi hotspot management method under scenario three provided by an example.
[0030] FIG9 is a schematic diagram of an AP interface in scenario three provided by an example.
[0031] FIG10 is a timing diagram of a WiFi hotspot management method under scenario 4 provided by an example.
[0032] FIG11 is a schematic diagram of an AP interface in scenario 4 provided by an example.
[0033] FIG12 is a schematic diagram of the hardware structure of an AP provided by an example. DETAILED DESCRIPTION
[0034] It should be noted that, in the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0035] It should also be noted that the method disclosed in the embodiments of the present application or the method shown in the flowchart includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchanged with each other, and some steps can also be deleted.
[0036] FIG1 is a schematic diagram of the architecture of a communication system provided by an example.
[0037] As shown in Figure 1, the communication system includes an access point (AP) and a station (STA). The AP is used to provide a Wi-Fi hotspot, and the STA connects to the AP by accessing the Wi-Fi hotspot. The AP is an electronic device that supports providing a Wi-Fi hotspot, and the STA is an electronic device that supports Wi-Fi connection.
[0038] It is understandable that this application does not limit the number of APs and the number of STAs.
[0039] Electronic devices are also referred to as terminal equipment (Terminal Equipment), user equipment (UE), mobile station (MS), mobile terminal (MT), etc. Specifically, the electronic device can be a mobile phone (Mobile Phone), a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal, an 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.
[0040] FIG2 is a schematic diagram of the software structure of an AP provided by an example.
[0041] The AP's software system can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This example uses the layered architecture of the Android system as an example to illustrate the AP's software structure. The layered architecture divides the AP's software system into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces.
[0042] As shown in Figure 2, the AP software system is divided into four layers: the application (APP) layer, the framework layer, the kernel layer, and the hardware layer. The APP layer includes a series of application packages, which may include application markets, calendars, clocks, settings, cameras, galleries, calls, and short messages. The Framework layer provides application programming interfaces (APIs) for the applications in the APP layer, such as the 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.
[0043] In this embodiment, the App layer includes a WiFi Settings module, which is used to set up and manage WiFi hotspots. The Framework layer includes a WiFi Service module, which is used to implement WiFi API calls. The WiFi driver in the Kernel layer drives the WiFi firmware in the Hardware layer, enabling it to perform various functions and data processing, such as starting or stopping WiFi hotspots.
[0044] The following describes the process of an AP starting a multi-band WiFi hotspot with reference to FIG2 and FIG3.
[0045] FIG3 is a timing diagram of an example of an AP starting a multi-frequency WiFi hotspot.
[0046] As shown in Figure 3, the AP starts a multi-band Wi-Fi hotspot in the following steps:
[0047] S301, WiFi Setting module starts.
[0048] S302: The WiFi Setting module sends a WiFi capability query request to the WiFi Service module.
[0049] The WiFi capability query request is used to query whether the AP supports the multi-band WiFi hotspot function.
[0050] S303: The WiFi Service module sends a WiFi capability query request to the WiFi driver.
[0051] S304: The WiFi driver obtains a WiFi capability query result from the WiFi configuration information based on the WiFi capability query request.
[0052] 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 (e.g., an XML file). For example, the WiFi configuration information includes a multi-band WiFi hotspot configuration field, which is used to indicate whether the AP supports the multi-band WiFi hotspot function. For example, when the multi-band WiFi hotspot configuration field is set to enable, it indicates that the AP supports the multi-band WiFi hotspot function. When the multi-band WiFi hotspot configuration field is set to disable, it indicates that the AP does not support the multi-band WiFi hotspot function.
[0053] The WiFi capability query result may include the return value corresponding to the Multi-band WiFi Hotspot Configuration field. For example, a return value of 1 indicates that the AP supports the multi-band WiFi hotspot feature. A return value of 0 indicates that the AP does not support the multi-band WiFi hotspot feature.
[0054] S305: The WiFi driver sends the WiFi capability query result to the WiFi Service module.
[0055] S306: The WiFi Service module sends the WiFi capability query result to the WiFi Setting module.
[0056] S307 , when the WiFi capability query result indicates that the AP supports the multi-band WiFi hotspot function, the WiFi Setting module sends a start-multi-band WiFi hotspot instruction to the WiFi Service module.
[0057] The start multi-frequency WiFi hotspot instruction is used to instruct the start of a multi-frequency WiFi hotspot.
[0058] S308, the WiFi Service module sends a command to start a multi-frequency WiFi hotspot to the WiFi driver.
[0059] S309 : 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.
[0060] The WiFi configuration information includes a channel list for each of the multiple-band WiFi hotspots. The channel list includes at least one available channel, which is used to transmit service data. For example, the WiFi driver obtains the channel list for the 2.4GHz WiFi hotspot and the channel list for the 5GHz WiFi hotspot from the WiFi configuration information.
[0061] S310: The WiFi driver determines the target channel of each of the multi-frequency WiFi hotspots from the channel lists of each of the multi-frequency WiFi hotspots.
[0062] In this embodiment, the WiFi driver can use the ACS algorithm to determine the target channel for each multi-band WiFi hotspot. The ACS algorithm calculates the weight of each channel in the channel list and sorts the weights by size to determine the priority of each channel. The target channel is selected based on the priority.
[0063] It will be understood that the present application does not limit the method for determining the target channel of each multi-frequency WiFi hotspot.
[0064] S311, the WiFi driver sends a command to start a multi-frequency WiFi hotspot to the WiFi firmware.
[0065] The instruction to start the multi-frequency WiFi hotspot includes the target channels of the multi-frequency WiFi hotspots.
[0066] S312 , the WiFi firmware starts the multi-frequency WiFi hotspot based on the instruction to start the multi-frequency WiFi hotspot.
[0067] After the multi-band WiFi hotspot is started, the WiFi firmware may send or receive service data on the respective target channels of the multi-band WiFi hotspot.
[0068] It can be understood that the process of the AP starting a single-frequency WiFi hotspot is roughly the same as the above steps S307 to S312, and this application will not go into details.
[0069] Currently, an AP can support at least one Wi-Fi hotspot, each with a corresponding operating frequency band that does not overlap. When an AP activates a Wi-Fi hotspot, STAs that do not support the corresponding operating frequency band cannot access it, resulting in a limited number of STAs that can connect to the AP. While enabling at least two Wi-Fi hotspots increases the number of STAs, it consumes more power and makes it difficult to guarantee Wi-Fi performance and compatibility.
[0070] Based on this, embodiments of the present application provide a WiFi hotspot management method, electronic device, and computer-readable storage medium. When an access point (AP) activates at least two WiFi hotspots, the method disables at least one WiFi hotspot to which no device is connected based on the device connection information of each of the at least two WiFi hotspots, thereby reducing the AP's power consumption. Furthermore, different WiFi hotspots are selectively disabled in different scenarios, thereby ensuring WiFi performance and compatibility.
[0071] 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.
[0072] Scene 1
[0073] Scenario description: When an AP starts a first Wi-Fi hotspot and a second Wi-Fi hotspot, a first STA connects to the first Wi-Fi hotspot, and a second STA connects to the second Wi-Fi hotspot. The operating frequency band of the first Wi-Fi hotspot is lower than that of the second Wi-Fi hotspot.
[0074] FIG4 is a timing diagram of a WiFi hotspot management method according to a scenario provided by an example.
[0075] As shown in FIG4 , the WiFi hotspot management method includes the following steps:
[0076] S401: When a first STA is connected to a first WiFi hotspot and a second STA is connected to a second WiFi hotspot, after a preset time period, the WiFi Setting module sends a first roaming instruction to the WiFi Service module.
[0077] The first roaming instruction is used to instruct the STA connected to the first WiFi hotspot to start roaming.
[0078] It is understandable that the preset time period can be set as needed, for example, the preset time period can be set to 3 minutes (min), 5 minutes or 10 minutes, etc.
[0079] S402: The WiFi Service module sends a first roaming instruction to the WiFi driver.
[0080] S403: The WiFi driver sends a first roaming instruction to the WiFi firmware.
[0081] S404: The WiFi firmware sends a first roaming instruction to the first STA via the first WiFi hotspot.
[0082] S405 : The WiFi firmware receives a first roaming result from the first STA via the first WiFi hotspot.
[0083] The first roaming result includes roaming success or roaming failure. When the first roaming result is roaming success, it indicates that the first STA has switched from the first WiFi hotspot to the second WiFi hotspot. When the first roaming result is roaming failure, it indicates that the first STA has not switched from the first WiFi hotspot to the second WiFi hotspot.
[0084] The first roaming result may include an indicator for indicating roaming success or roaming failure. For example, when the indicator is true, it indicates roaming success. When the indicator is false, it indicates roaming failure.
[0085] S406: The WiFi firmware sends a first roaming result to the WiFi driver.
[0086] S407: The WiFi driver sends the first roaming result to the WiFi Service module.
[0087] S408: The WiFi Service module sends the first roaming result to the WiFi Setting module.
[0088] S409: When the first roaming result is successful, the WiFi Setting module sends a command to close the first WiFi hotspot to the WiFi Service module.
[0089] The instruction to close the first WiFi hotspot is used to instruct to close the first WiFi hotspot.
[0090] In one embodiment, if the first roaming result is successful, after a preset period of time, the WiFi Setting module determines whether the first WiFi hotspot is connected to by a STA. If the WiFi Setting module determines that the first WiFi hotspot is connected to by a STA, it does not send a command to close the first WiFi hotspot. If the WiFi Setting module determines that the first WiFi hotspot is not connected to by a STA, it sends a command to the WiFi Service module to close the first WiFi hotspot. The STAs can be any STAs other than the first and second STAs.
[0091] In other embodiments, if the first roaming result is successful, the WiFi Setting module determines whether the first WiFi hotspot is closed. If the first WiFi hotspot is closed, the WiFi Setting module does not send a command to close the first WiFi hotspot. If the first WiFi hotspot is not closed, the WiFi Setting module sends a command to close the first WiFi hotspot.
[0092] S410: The WiFi Service module sends a command to close the first WiFi hotspot to the WiFi driver.
[0093] S411, the WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.
[0094] S412: The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.
[0095] S413: When the first roaming result is roaming failure, the WiFi Setting module queries the WiFi service traffic.
[0096] In this embodiment, after activating the first and second WiFi hotspots, the WiFi firmware reports WiFi traffic at a predetermined period. After receiving the WiFi traffic from the WiFi firmware, the WiFi driver sends the WiFi traffic to the WiFi Service module. The WiFi Service module then sends the WiFi traffic to the WiFi Setting module. After receiving the WiFi traffic, the WiFi Setting module stores the WiFi traffic. The predetermined period can be set as needed, for example, 5 seconds, 10 seconds, or 20 seconds.
[0097] It is understood that the WiFi Setting module can store the WiFi service traffic corresponding to each cycle, or can 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.
[0098] S414: 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.
[0099] The second roaming instruction is used to instruct the STA connected to the second WiFi hotspot to start roaming.
[0100] In this embodiment, when the WiFi service flow is greater than or equal to the frequency bandwidth corresponding to the first WiFi hotspot, the process returns to step S413 .
[0101] S415: The WiFi Service module sends a second roaming instruction to the WiFi driver.
[0102] S416: The WiFi driver sends a second roaming instruction to the WiFi firmware.
[0103] S417: The WiFi firmware sends a second roaming instruction to the second STA through the second WiFi hotspot.
[0104] S418: The WiFi firmware receives a second roaming result from the second STA through the second WiFi hotspot.
[0105] The second roaming result is substantially the same as the first roaming result, and will not be described in detail here.
[0106] S419: The WiFi firmware sends the second roaming result to the WiFi driver.
[0107] S420: The WiFi driver sends the second roaming result to the WiFi Service module.
[0108] S421, the WiFi Service module sends a second roaming result to the WiFi Setting module.
[0109] S422: When the second roaming result is that the roaming is successful, the WiFi Setting module sends a command to close the second WiFi hotspot to the WiFi Service module.
[0110] Among them, the instruction for closing the second WiFi hotspot is roughly the same as the instruction for closing the first WiFi hotspot, and will not be repeated here.
[0111] In other embodiments, when the second roaming result is roaming failure, the WiFi Setting module does not send an instruction to close the second WiFi hotspot.
[0112] S423, the WiFi Service module sends a command to close the second WiFi hotspot to the WiFi driver.
[0113] S424: The WiFi driver sends a command to close the second WiFi hotspot to the WiFi firmware.
[0114] S425 , the WiFi firmware closes the second WiFi hotspot based on the instruction to close the second WiFi hotspot.
[0115] Based on the following scenario, the WiFi hotspot management method, when a first STA is connected to a first WiFi hotspot and a second STA is connected to a second WiFi hotspot, roaming is used to switch the first STA connected to the first WiFi hotspot to the second WiFi hotspot, and then the first WiFi hotspot, to which no STA is connected, is shut down. Alternatively, roaming is used to switch the second STA connected to the second WiFi hotspot to the first WiFi hotspot, and then the second WiFi hotspot, to which no STA is connected, is shut down. This reduces the number of WiFi hotspots operating simultaneously, thereby lowering AP power consumption. Furthermore, since the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, shutting down the first WiFi hotspot and opening the second WiFi hotspot helps increase the data transmission rate of WiFi services, thereby improving WiFi performance. Shutting down the second WiFi hotspot and opening the first WiFi hotspot facilitates compatibility with a wider frequency band range, thereby improving WiFi compatibility.
[0116] FIG5 is a schematic diagram of an AP interface in a scenario provided by an example.
[0117] As shown in Figure 5, the AP displays the hotspot management interface, which displays device connection information, including the number of connected devices. For example, if a first STA is connected to a first WiFi hotspot and a second STA is connected to a second WiFi hotspot, the number of connected STAs is 2. Based on the WiFi hotspot management method described in the following scenario, if the AP disables at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged.
[0118] It can be understood that 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., which is not limited in this application.
[0119] Scene 2
[0120] Scenario description: When the AP starts the first and second WiFi hotspots, the first and third STAs connect to the first WiFi hotspot, but no STAs are connected to the second WiFi hotspot.
[0121] The difference between Scenario 2 and Scenario 1 is that there are no STAs connected to the second Wi-Fi hotspot. The Wi-Fi hotspot management method in Scenario 2 is roughly the same as that in Scenario 1.
[0122] FIG6 is a timing diagram of a WiFi hotspot management method under scenario 2 provided as an example.
[0123] As shown in FIG6 , the WiFi hotspot management method includes the following steps:
[0124] S601: When a first STA and a third STA are connected to a first WiFi hotspot and no STA is connected to a second WiFi hotspot, the WiFi Setting module sends a first roaming instruction to the WiFi Service module after a preset time period.
[0125] S602: The WiFi Service module sends a first roaming instruction to the WiFi driver.
[0126] S603: The WiFi driver sends a first roaming instruction to the WiFi firmware.
[0127] S604: The WiFi firmware sends a first roaming instruction to the first STA via the first WiFi hotspot.
[0128] S605: The WiFi firmware sends a first roaming instruction to the third STA through the first WiFi hotspot.
[0129] S606 : The WiFi firmware receives a first roaming result from the first STA via the first WiFi hotspot.
[0130] S607 : The WiFi firmware receives a third roaming result from a third STA through the first WiFi hotspot.
[0131] The third roaming result is substantially the same as the first roaming result, and will not be described in detail here.
[0132] S608: The WiFi firmware sends the first roaming result and the third roaming result to the WiFi driver.
[0133] S609: The WiFi driver sends the first roaming result and the third roaming result to the WiFi Service module.
[0134] S610: The WiFi Service module sends the first roaming result and the third roaming result to the WiFi Setting module.
[0135] S611: When both the first roaming result and the third roaming result are successful, the WiFi Setting module sends a command to close the first WiFi hotspot to the WiFi Service module.
[0136] S612: The WiFi Service module sends a command to close the first WiFi hotspot to the WiFi driver.
[0137] S613: The WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.
[0138] S614: The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.
[0139] S615: When the first roaming result is roaming failure and the third roaming result is roaming success, the WiFi Setting module queries WiFi service traffic.
[0140] In other embodiments, if both the first and third roaming results indicate roaming failure, 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.
[0141] S616: 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.
[0142] S617: The WiFi Service module sends a second roaming instruction to the WiFi driver.
[0143] S618: The WiFi driver sends a second roaming instruction to the WiFi firmware.
[0144] S619: The WiFi firmware sends a second roaming instruction to the third STA through the second WiFi hotspot.
[0145] S620: The WiFi firmware receives a new third roaming result from a third STA through the second WiFi hotspot.
[0146] S621: The WiFi firmware sends a new third roaming result to the WiFi driver.
[0147] S622: The WiFi driver sends a new third roaming result to the WiFi Service module.
[0148] S623: The WiFi Service module sends a new third roaming result to the WiFi Setting module.
[0149] S624: When the new third roaming result is roaming success, the WiFi Setting module sends a command to close the second WiFi hotspot to the WiFi Service module.
[0150] In other embodiments, when the new third roaming result is roaming failure, the WiFi Setting module does not send an instruction to close the second WiFi hotspot.
[0151] S625: The WiFi Service module sends a command to close the second WiFi hotspot to the WiFi driver.
[0152] S626: The WiFi driver sends a command to close the second WiFi hotspot to the WiFi firmware.
[0153] S627: The WiFi firmware closes the second WiFi hotspot based on the instruction to close the second WiFi hotspot.
[0154] Based on the WiFi hotspot management method for scenario 2, when a first STA and a third STA are connected to the first WiFi hotspot and no STAs are connected to the second WiFi hotspot, roaming is used to switch the first and third STAs connected to the first WiFi hotspot to the second WiFi hotspot, and then the first WiFi hotspot with no STA connections is shut down. If neither the first STA nor the third STA has switched to the second WiFi hotspot, the second WiFi hotspot with no STA connections is shut down. Alternatively, if the first STA has not switched to the second WiFi hotspot and the third STA has switched to the second WiFi hotspot, roaming is used to switch the third STA connected to the second WiFi hotspot to the first WiFi hotspot, and then the second WiFi hotspot with no STA connections is shut down. This reduces the number of simultaneously operating WiFi hotspots, thereby lowering AP power consumption. Furthermore, since the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, shutting down the first WiFi hotspot and opening the second WiFi hotspot helps increase the data transmission rate of WiFi services, thereby improving WiFi performance. Shutting down the second WiFi hotspot and opening the first WiFi hotspot facilitates compatibility with a wider frequency band, thereby improving WiFi compatibility.
[0155] FIG. 7 is a schematic diagram of an AP interface in scenario 2 provided as an example.
[0156] As shown in Figure 7, the AP displays the hotspot management interface, which displays device connection information, including the number of connected devices. For example, if the first and third STAs are connected to the first WiFi hotspot, and no STAs are connected to the second WiFi hotspot, the number of connected STAs is 2. Based on the WiFi hotspot management method for scenario 2, if the AP disables at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged or increases.
[0157] Scene 3
[0158] Scenario description: When an AP starts the first and second WiFi hotspots, no STA is connected to the first WiFi hotspot, and the second STA is connected to the second WiFi hotspot.
[0159] The difference between scenario 3 and scenario 1 is that there is no STA connection to the first WiFi hotspot.
[0160] FIG8 is a timing diagram of a WiFi hotspot management method under scenario three provided by an example.
[0161] As shown in FIG8 , the WiFi hotspot management method includes the following steps:
[0162] S801: When no STA is connected to a first WiFi hotspot and a second STA is connected to a 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.
[0163] S802: The WiFi Service module sends a command to close the first WiFi hotspot to the WiFi driver.
[0164] S803: The WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.
[0165] S804: The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.
[0166] Based on the WiFi hotspot management method for scenario three, if no STA is connected to the first WiFi hotspot and a second STA is connected to the second WiFi hotspot, the first WiFi hotspot without STA connections is shut down. This reduces the number of simultaneously operating WiFi hotspots, thereby reducing AP power consumption. Furthermore, since the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, shutting down the first WiFi hotspot and opening the second WiFi hotspot helps increase the data transmission rate of WiFi services, thereby improving WiFi performance.
[0167] FIG9 is a schematic diagram of an AP interface in scenario three provided by an example.
[0168] As shown in Figure 9, the AP displays the hotspot management interface, which displays device connection information, including the number of connected devices. For example, if no STAs are connected to the first WiFi hotspot and a second STA is connected to the second WiFi hotspot, the number of connected STAs is 1. Based on the WiFi hotspot management method for scenario three, if the AP disables at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged.
[0169] Scene 4
[0170] Scenario description: When the AP starts the first and second WiFi hotspots, no STAs are connected to the first and second WiFi hotspots.
[0171] The difference between Scenario 4 and Scenario 3 is that there are no STAs connected to the second Wi-Fi hotspot. The Wi-Fi hotspot management method in Scenario 4 is roughly the same as that in Scenario 3.
[0172] FIG10 is a timing diagram of a WiFi hotspot management method under scenario 4 provided by an example.
[0173] As shown in FIG10 , the WiFi hotspot management method includes the following steps:
[0174] S1001: 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.
[0175] S1002: The WiFi Service module sends a command to close the first WiFi hotspot to the WiFi driver.
[0176] S1003: The WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.
[0177] S1004: The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.
[0178] Based on the WiFi hotspot management method for scenario 4, if no STAs are connected to either the first or second WiFi hotspots, the first WiFi hotspot is shut down. This reduces the number of simultaneously operating WiFi hotspots, thereby lowering AP power consumption. Furthermore, since the operating frequency band of the first WiFi hotspot is lower than that of the second, shutting down the first WiFi hotspot and opening the second WiFi hotspot helps increase the data transmission rate of WiFi services, thereby improving WiFi performance.
[0179] FIG11 is a schematic diagram of an AP interface in scenario 4 provided by an example.
[0180] As shown in Figure 11, the AP displays the hotspot management interface, which displays device connection information, including the number of connected devices. For example, if no STAs are connected to either the first or second WiFi hotspots, the number of connected STAs is 0. Based on the WiFi hotspot management method in scenario 4, if the AP disables at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged.
[0181] FIG12 is a schematic diagram of the hardware structure of an AP provided by an example.
[0182] As shown in Figure 12, 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 194, and a Subscriber Identification Module (SIM) card interface 195, etc.
[0183] 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.
[0184] 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). Different processing units may be independent devices or integrated into one or more processors.
[0185] 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.
[0186] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0187] In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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.
[0188] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the AP.
[0189] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0190] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0191] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0192] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the Camera Serial Interface (CSI) and the Display Serial Interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the AP's capture function. The processor 110 and the display 194 communicate via the DSI interface to implement the AP's display function.
[0193] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, 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.
[0194] USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. USB interface 130 can be used to connect a charger to charge the AP and to transfer data between the AP and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices.
[0195] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present invention is merely illustrative and does not constitute a structural limitation on the AP. In other embodiments of the present application, the AP may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.
[0196] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the access point (AP). While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141.
[0197] 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 provides power to the processor 110, the internal memory 121, the display 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 count, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0198] 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.
[0199] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an AP can cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0200] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on the AP. The mobile communication module 150 may 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 from the antenna 1, filter, amplify and process the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0201] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted 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. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, 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.
[0202] 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 the AP. In this embodiment, 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 the antenna 2, frequency 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, frequency modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0203] In some embodiments, antenna 1 of the AP is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that the AP can communicate with a network and other devices via wireless communication technologies. Wireless communication technologies 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), Bluetooth, GNSS, WLAN, NFC, FM, and / or IR technologies. GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), Beidou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation System (SBAS).
[0204] The AP implements display functions through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0205] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode (AMOLED), flexible light-emitting diode (FLED), miniLED, microLED, micro-oLED, quantum dot light-emitting diode (QLED), and the like. In some embodiments, the AP may include one or N display screens 194, where N is a positive integer greater than one.
[0206] The AP can implement the shooting function through the ISP, camera 193, video codec, GPU, display 194 and application processor.
[0207] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and transformed into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0208] 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. The photosensitive element converts the optical signal into an electrical signal, which is then passed to the ISP for conversion 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. In some embodiments, the AP may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0209] The digital signal processor processes digital signals, not only digital image signals but also other digital signals. For example, when the AP selects a frequency, the digital signal processor performs a Fourier transform on the frequency energy.
[0210] Video codecs are used to compress or decompress digital video. An AP can support one or more video codecs. This allows the AP to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0211] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU enables intelligent cognitive applications within the AP, such as image recognition, face recognition, speech recognition, and text comprehension.
[0212] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the AP's storage capacity. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored on the external memory card.
[0213] 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. Among them, 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. In addition, 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 memory (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.
[0214] The AP can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0215] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0216] The speaker 170A, also called a "speaker," is used to convert audio electrical signals into sound signals. The AP can listen to music or make hands-free calls through the speaker 170A.
[0217] The receiver 170B, also called a "handset," is used to convert audio electrical signals into sound signals. When the AP receives a call or voice message, the AP can hear the voice by placing the receiver 170B close to the human ear.
[0218] Microphone 170C, also known as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can put their mouth close to the microphone 170C and speak, inputting 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 implement noise reduction functions. In other embodiments, the AP can also be provided with three, four, or more microphones 170C to collect sound signals, reduce noise, identify the sound source, implement directional recording functions, etc.
[0219] The headphone jack 170D is used to connect a wired headphone and can be a USB interface 130 or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
[0220] The buttons 190 include a power button, a volume button, etc. The buttons 190 may be mechanical buttons or touch buttons. The AP may receive button inputs and generate key signal inputs related to user settings and function control of the AP.
[0221] 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. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0222] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, and the like.
[0223] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the AP by inserting it into or removing it 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. In some embodiments, 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.
[0224] It should be understood that the structures illustrated in the embodiments of the present invention do not constitute specific limitations on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0225] An embodiment of the present application further provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the WiFi hotspot management method of the embodiment of the present application.
[0226] Computer-readable storage media include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer-readable instructions, data structures, program modules, or other data. Computer-readable storage media include, but are 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 tape, 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.
[0227] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments. Various changes can be made within the scope of knowledge possessed by ordinary technicians in the relevant technical field without departing from the purpose of the present application.
Claims
1. A WiFi hotspot management method, applied to electronic equipment, characterized in that: The method comprises: Start a first WiFi hotspot and a second WiFi hotspot, the first WiFi hotspot operates at a first frequency band, the second WiFi hotspot operates at a second frequency band, and the first frequency band is lower than the second frequency band; In a first time period, displaying first device connection information on the hotspot management interface of the electronic device, the first device connection information including the number of first connected devices, the first connected devices including a first device and a second device, the first device connected to the first WiFi hotspot, and the second device connected to the second WiFi hotspot; Based on the first device switching to the second WiFi hotspot, the first WiFi hotspot is turned off; or based on the first device not switching to the second WiFi hotspot and the second device switching to the first WiFi hotspot, the second WiFi hotspot is turned off.
2. The WiFi hotspot management method according to claim 1, wherein: After starting the first WiFi hotspot and the second WiFi hotspot, the method further includes: In a second time period, second device connection information is displayed on the hotspot management interface, where the second device connection information includes the number of second connected devices, where the second connected devices include the first device and a third device, where the first device and the third device are connected to the first WiFi hotspot, and where 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 turned off; or, 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 turned off; or, based on the first device and the third device not switching to the second WiFi hotspot, the second WiFi hotspot is turned off.
3. The WiFi hotspot management method according to claim 1 or 2, characterized in that: After starting the first WiFi hotspot and the second WiFi hotspot, 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; Close the first WiFi hotspot.
4. The WiFi hotspot management method according to any one of claims 1 to 3, characterized in that: After starting the first WiFi hotspot and the second WiFi hotspot, the method further includes: In a fourth time period, fourth device connection information is displayed on the hotspot management interface, the fourth device connection information includes the number of fourth connected devices, and the number of fourth connected devices is 0; Close the first WiFi hotspot.
5. The WiFi hotspot management method according to claim 1, wherein: Before switching the first device to the second WiFi hotspot and closing the first WiFi hotspot, the method further includes: A first roaming instruction is sent through the first WiFi hotspot, where the first roaming instruction is used to instruct a device connected to the first WiFi hotspot to start roaming, and the first device switches to the second WiFi hotspot if roaming is successful.
6. The WiFi hotspot management method according to claim 5, characterized in that: Before closing the second WiFi hotspot 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: Based on the roaming failure of the first device, querying the WiFi service traffic of the electronic device; Based on the fact that the WiFi service traffic is less than the bandwidth of the first frequency band, a second roaming instruction is sent through the second WiFi hotspot, where the second roaming instruction is used to instruct a device connected to the second WiFi hotspot to start roaming, and the second device switches to the first WiFi hotspot if roaming is successful.
7. The WiFi hotspot management method according to claim 2, characterized in that: Before closing the first WiFi hotspot based on both the first device and the third device switching to the second WiFi hotspot, the method further includes: A first roaming instruction is sent through the first WiFi hotspot, where 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 if the roaming is successful.
8. The WiFi hotspot management method according to claim 7, characterized in that: Before closing the second WiFi hotspot 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 failure of roaming of the first device and the success of roaming of the third device, querying the WiFi service flow of the electronic device; Based on the fact that the WiFi service traffic is less than the bandwidth of the first frequency band, a second roaming instruction is sent through the second WiFi hotspot, where the second roaming instruction is used to instruct the device connected to the second WiFi hotspot to start roaming, and the third device switches to the first WiFi hotspot if the roaming is successful.
9. An electronic device, characterized in that: The electronic device 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, and the processor is used to run the instructions stored in the memory, so that the electronic device executes the WiFi hotspot management method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer is enabled to execute the WiFi hotspot management method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method and apparatus for hot-spot sleep of terminal
CN106604367A
Hotspot equipment control method and device
CN106713180A
Hot spot control method and device, terminal equipment and storage medium
CN112261710A
WiFi roaming method and device, mobile terminal and storage medium
CN112449401A
Method for establishing connection between double hotspots, electronic equipment and readable storage medium
CN113015264A