WiFi hotspot management methods, electronic devices and computer-readable storage media
By managing multiple WiFi hotspots in electronic devices and dynamically adjusting their operating frequency bands and connection status, the problem of high power consumption when starting multiple WiFi hotspots is solved, achieving higher WiFi performance and compatibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2023-08-11
- Publication Date
- 2026-04-17
AI Technical Summary
When electronic devices start multiple WiFi hotspots, power consumption is high and it is difficult to guarantee WiFi performance and compatibility.
By managing the operating frequency bands of the first and second WiFi hotspots, the on/off status of the hotspots is dynamically adjusted based on device connection information, reducing the number of WiFi hotspots running simultaneously, and switching from low-frequency hotspots to high-frequency hotspots to improve data transmission rates and compatibility.
It reduces the power consumption of electronic devices and improves the data transmission rate and compatibility of WiFi.
Smart Images

Figure CN119485595B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, specifically to a WiFi hotspot management method, an electronic device, and a computer-readable storage medium. Background Technology
[0002] Currently, electronic devices can support providing at least one Wireless Fidelity (WiFi) hotspot. Each WiFi hotspot has a corresponding operating frequency band, and these bands do not overlap. When an electronic device activates a WiFi hotspot, devices that do not support the corresponding operating frequency band cannot connect to it, resulting in a limited number of devices that the electronic device can connect to. While activating at least two WiFi hotspots increases the number of connected devices, it also increases the power consumption of the electronic device and makes it difficult to guarantee WiFi performance and compatibility. Summary of the Invention
[0003] This application provides a WiFi hotspot management method, an electronic device, and a computer-readable storage medium, aiming to solve the problem of how to reduce power consumption when an electronic device starts at least two WiFi hotspots.
[0004] This application provides a WiFi hotspot management method for an electronic device. The method includes: activating a first WiFi hotspot and a second WiFi hotspot, wherein the first WiFi hotspot operates on a first frequency band, and the second WiFi hotspot operates on a second frequency band, with the first frequency band being lower than the second frequency band. During a first time period, connection information for a first device is displayed on the hotspot management interface of the electronic device. This connection information includes the number of first connected devices, which includes a first device and a second device, where 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 then deactivated based on the first device switching to the second WiFi hotspot. Alternatively, the second WiFi hotspot is deactivated based on the first device not switching to the second WiFi hotspot and the second device switching to the first WiFi hotspot.
[0005] 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 switches to the second WiFi hotspot, and then the first WiFi hotspot with no connected devices is turned off. Alternatively, the second device connected to the second WiFi hotspot switches to the first WiFi hotspot, and then the second WiFi hotspot with no connected devices is turned off. This reduces the number of WiFi hotspots operating simultaneously, thereby reducing the power consumption of electronic devices. Furthermore, since the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot helps to improve the data transmission rate of WiFi services, thereby improving WiFi performance. Turning off the second WiFi hotspot and turning on the first WiFi hotspot helps to be compatible with a wider frequency band range, thereby improving WiFi compatibility.
[0006] In one implementation, after activating the first and second WiFi hotspots, the method further includes: during a second time period, displaying second device connection information on a hotspot management interface. The second device connection information includes the number of second connected devices, which include a first device and a third device. The first and third devices are connected to the first WiFi hotspot, and the second WiFi hotspot has no connected devices. The first WiFi hotspot is then turned off based on both the first and third devices switching to the second WiFi hotspot. Alternatively, the second WiFi hotspot is turned off based on the first device not switching to the second WiFi hotspot and the third device switching to the first WiFi hotspot. Or, the second WiFi hotspot is turned off based on neither the first nor the third device switching to the second WiFi hotspot.
[0007] In this embodiment, when the first device and the third device are connected to the first WiFi hotspot, and no devices are connected to the second WiFi hotspot, both the first and third devices connected to the first WiFi hotspot switch to the second WiFi hotspot, and then the first WiFi hotspot without connected devices is turned off. Alternatively, if the first device has not switched to the second WiFi hotspot, but the third device has switched to the first WiFi hotspot, the second WiFi hotspot without connected devices is turned off. Or, if neither the first nor the third device has switched to the second WiFi hotspot, the second WiFi hotspot without connected devices is turned off. This reduces the number of WiFi hotspots operating simultaneously, thereby reducing the power consumption of electronic devices. Furthermore, since the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot helps to improve the data transmission rate of WiFi services, thereby improving WiFi performance. Turning off the second WiFi hotspot and turning on the first WiFi hotspot helps to be compatible with a wider frequency band range, thereby improving WiFi compatibility.
[0008] In another implementation, after activating the first and second WiFi hotspots, the method further includes: during 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 a second device connected to the second WiFi hotspot, and no devices connected to the first WiFi hotspot. Then, the first WiFi hotspot is turned off.
[0009] In this embodiment, when no device is connected to the first WiFi hotspot and the second device is connected to the second WiFi hotspot, the first WiFi hotspot without a connected device is turned off. This reduces the number of simultaneously operating WiFi hotspots, thereby reducing the power consumption of electronic devices. Furthermore, since the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot helps to improve the data transmission rate of WiFi services, thus enhancing WiFi performance.
[0010] In another implementation, after activating the first and second WiFi hotspots, the method further includes: during 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, where the number of fourth connected devices is 0. Then, the first WiFi hotspot is turned off.
[0011] In this embodiment, the first WiFi hotspot is turned off when no devices are connected to either the first or second WiFi hotspot. This reduces the number of simultaneously operating WiFi hotspots, thereby lowering the power consumption of electronic devices. Furthermore, since the first WiFi hotspot operates at a lower frequency than the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot helps improve the data transmission rate of WiFi services, thus enhancing WiFi performance.
[0012] In another implementation, before switching from the first device to the second WiFi hotspot and turning off the first WiFi hotspot, the method further includes: sending a first roaming instruction through the first WiFi hotspot, the first roaming instruction being used to instruct a device connected to the first WiFi hotspot to start roaming, and the first device switching to the second WiFi hotspot if roaming is successful.
[0013] In another implementation, before switching from the first device to the second WiFi hotspot and then to the first WiFi hotspot, and before turning off the second WiFi hotspot, the method further includes: querying the WiFi service traffic of the electronic device based on the first device's roaming failure. Based on the WiFi service traffic being less than the bandwidth of the first frequency band, a second roaming command is sent through the second WiFi hotspot. The second roaming command instructs devices connected to the second WiFi hotspot to initiate roaming. If roaming is successful, the second device switches to the first WiFi hotspot.
[0014] In another implementation, before turning off the first WiFi hotspot after both the first device and the third device have switched 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 devices connected to the first WiFi hotspot to start roaming, and the first device and the third device switching to the second WiFi hotspot if roaming is successful.
[0015] In another implementation, before shutting down the second WiFi hotspot after the first device has not switched to the second WiFi hotspot and the third device has switched to the first WiFi hotspot, the method further includes: querying the WiFi service traffic of the electronic devices based on the first device's roaming failure and the third device's successful roaming. Based on the WiFi service traffic being less than the bandwidth of the first frequency band, a second roaming command is sent through the second WiFi hotspot, instructing devices connected to the second WiFi hotspot to initiate roaming. The third device switches to the first WiFi hotspot upon successful roaming.
[0016] A second aspect of this 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 execute the instructions stored in the memory, causing the electronic device to execute the WiFi hotspot management method of this application.
[0017] A third aspect of this application provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the WiFi hotspot management method of this application.
[0018] The technical effects brought about by the second and third aspects of the embodiments of this 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. Attached Figure Description
[0019] Figure 1 This is a schematic diagram of the architecture of a communication system provided as an example.
[0020] Figure 2 This is a schematic diagram of the software architecture of an example application (AP).
[0021] Figure 3 This is a timing diagram of an example AP starting a multi-frequency WiFi hotspot.
[0022] Figure 4 This is a sequence diagram of a WiFi hotspot management method provided as an example scenario.
[0023] Figure 5 This is a schematic diagram of an AP interface provided as an example scenario.
[0024] Figure 6 This is a sequence diagram of a WiFi hotspot management method in scenario two provided as an example.
[0025] Figure 7 This is a schematic diagram of the AP interface in scenario two provided as an example.
[0026] Figure 8 This is a sequence diagram of a WiFi hotspot management method provided in Scenario 3 as an example.
[0027] Figure 9 This is a schematic diagram of the AP interface in scenario three provided as an example.
[0028] Figure 10 This is a sequence diagram of a WiFi hotspot management method provided in scenario four as an example.
[0029] Figure 11 This is a schematic diagram of the AP interface in scenario four provided as an example.
[0030] Figure 12 This is a schematic diagram of the hardware structure of an AP provided as an example. Detailed Implementation
[0031] It should be noted that in the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.
[0032] It should also be noted that the methods disclosed in the embodiments of this application or the methods shown in the flowcharts include 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, and some steps can also be deleted.
[0033] Figure 1 This is a schematic diagram of the architecture of a communication system provided as an example.
[0034] like Figure 1 As shown, the communication system includes an Access Point (AP) and a Station (STA). The AP provides a WiFi hotspot, and the STA connects to the AP by accessing the WiFi hotspot. The AP is an electronic device that supports providing a WiFi hotspot, and the STA is an electronic device that supports WiFi connectivity.
[0035] It is understood that this application does not limit the number of APs and STAs.
[0036] Electronic devices are also referred to as terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. Specifically, electronic devices can be mobile phones, tablets, computers with wireless transceiver capabilities, virtual reality (VR) terminals, augmented reality (AR) terminals, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc., and this application does not limit the scope of these.
[0037] Figure 2 This is a schematic diagram of the software architecture of an example application (AP).
[0038] The software system of an application processor (AP) can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment uses the layered architecture of the Android system as an example to illustrate the software structure of the AP. The layered architecture divides the AP's software system into several layers, each with a clear role and division of labor, and the layers communicate with each other through software interfaces.
[0039] like Figure 2 As shown, the AP's software system is divided into four layers, from top to bottom: 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 applications such as an app store, calendar, clock, settings, camera, gallery, call, and SMS. The Framework layer provides Application Programming Interfaces (APIs) for the various 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 the display screen, WiFi firmware, camera, and sensor modules.
[0040] In this embodiment, 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 WiFi API calls. The WiFi driver in the Kernel layer drives the WiFi firmware in the Hardware layer, enabling the WiFi firmware to perform various functions and data processing, such as starting or stopping the WiFi hotspot.
[0041] The following is combined Figure 2 and Figure 3 This document explains the process of an access point (AP) starting a multi-frequency WiFi hotspot.
[0042] Figure 3 This is a timing diagram of an example AP starting a multi-frequency WiFi hotspot.
[0043] like Figure 3 As shown, starting a multi-band WiFi hotspot via an AP involves the following steps:
[0044] S301, WiFi Setting module activated.
[0045] S302, the WiFi Setting module sends a WiFi capability query request to the WiFi Service module.
[0046] The WiFi capability query request is used to query whether the AP supports the multi-frequency WiFi hotspot function.
[0047] S303, the WiFi Service module sends a WiFi capability query request to the WiFi driver.
[0048] S304, the WiFi driver obtains the WiFi capability query results from the WiFi configuration information based on the WiFi capability query request.
[0049] The WiFi configuration information is pre-configured information indicating the WiFi functions supported by the access point (AP). This 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 indicates whether the AP supports multi-band WiFi hotspot functionality. For instance, when the multi-band WiFi hotspot configuration field is set to "enable," it means the AP supports multi-band WiFi hotspot functionality. When the multi-band WiFi hotspot configuration field is set to "disable," it means the AP does not support multi-band WiFi hotspot functionality.
[0050] The WiFi capability query results can 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 function, while a return value of 0 indicates that the AP does not support the multi-band WiFi hotspot function.
[0051] S305, the WiFi driver sends the WiFi capability query results to the WiFi Service module.
[0052] S306, the WiFi Service module sends the WiFi capability query results to the WiFi Setting module.
[0053] S307, if the WiFi capability query result indicates that the AP supports the multi-frequency WiFi hotspot function, the WiFiSetting module sends a command to the WiFi Service module to start the multi-frequency WiFi hotspot.
[0054] The command to start a multi-frequency WiFi hotspot is used to instruct the user to start a multi-frequency WiFi hotspot.
[0055] S308, the WiFi Service module sends a command to the WiFi driver to start a multi-frequency WiFi hotspot.
[0056] S309, the WiFi driver obtains the channel list of each of the multi-frequency WiFi hotspots from the WiFi configuration information based on the command to start a multi-frequency WiFi hotspot.
[0057] The WiFi configuration information includes a channel list for each of the multi-band WiFi hotspots. Each channel list includes at least one available channel used for transmitting service data. For example, the WiFi driver retrieves the channel lists for 2.4GHz and 5GHz WiFi hotspots from the WiFi configuration information.
[0058] S310, the WiFi driver determines the target channel for each of the multi-frequency WiFi hotspots from their respective channel lists.
[0059] In this embodiment, the WiFi driver can use the ACS algorithm to determine the target channel for each of the multi-frequency WiFi hotspots. The ACS algorithm calculates the weight of each channel in the channel list, sorts the weights of each channel according to their weights, thereby determining the priority order of each channel, and selects the target channel according to the priority order.
[0060] It is understood that this application does not limit the method for determining the target channel of each multi-frequency WiFi hotspot.
[0061] S311, the WiFi driver sends a command to the WiFi firmware to start a multi-frequency WiFi hotspot.
[0062] The command to activate a multi-frequency WiFi hotspot includes the target channel for each of the multi-frequency WiFi hotspots.
[0063] S312, the WiFi firmware is based on the command to start a multi-frequency WiFi hotspot, and starts a multi-frequency WiFi hotspot.
[0064] After activating a multi-frequency WiFi hotspot, the WiFi firmware can send or receive service data on the target channels of each multi-frequency WiFi hotspot.
[0065] It is understood that the process of AP starting a single-frequency WiFi hotspot is roughly the same as steps S307 to S312 above, and this application will not repeat it here.
[0066] Currently, an access point (AP) can support providing at least one WiFi hotspot, each with its own operating frequency band that does not overlap. When an AP activates a WiFi hotspot, STAs (Stations) that do not support the corresponding operating frequency band cannot connect, resulting in a limited number of STAs that the AP can connect to. While activating at least two WiFi hotspots increases the number of STAs, it also increases the AP's power consumption and makes it difficult to guarantee WiFi performance and compatibility.
[0067] Based on this, embodiments of this application provide a WiFi hotspot management method, an electronic device, and a computer-readable storage medium. When an AP (Access Point) activates at least two WiFi hotspots, it shuts down at least one WiFi hotspot without connected devices based on the device connection information of each of the at least two WiFi hotspots, thereby reducing the AP's power consumption. Furthermore, it selects to shut down different WiFi hotspots in different scenarios, thus ensuring WiFi performance and compatibility.
[0068] The following section uses a dual-band WiFi hotspot as an example to illustrate the WiFi hotspot management method provided in this application's embodiments, in conjunction with scenarios one through four.
[0069] Scene 1
[0070] Scenario Description: When the AP starts up a first WiFi hotspot and a second WiFi hotspot, the first STA connects to the first WiFi hotspot, and the second STA connects to the second WiFi hotspot. The first WiFi hotspot operates on a lower frequency band than the second WiFi hotspot.
[0071] Figure 4 This is a sequence diagram of a WiFi hotspot management method provided as an example scenario.
[0072] like Figure 4 As shown, the WiFi hotspot management method includes the following steps:
[0073] S401, when the first STA connects to the first WiFi hotspot and the second STA connects to the second WiFi hotspot, after a preset time period, the WiFi Setting module sends a first roaming command to the WiFi Service module.
[0074] The first roaming command is used to instruct the STA connected to the first WiFi hotspot to initiate roaming.
[0075] 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, 5 minutes or 10 minutes, etc.
[0076] S402, the WiFi Service module sends the first roaming command to the WiFi driver.
[0077] S403, the WiFi driver sends the first roaming command to the WiFi firmware.
[0078] S404, the WiFi firmware sends the first roaming command to the first STA through the first WiFi hotspot.
[0079] S405, the WiFi firmware receives the first roaming result from the first STA via the first WiFi hotspot.
[0080] The first roaming result includes either roaming success or roaming failure. A successful roaming result indicates that the first STA switched from the first WiFi hotspot to the second WiFi hotspot. A failed roaming result indicates that the first STA did not switch from the first WiFi hotspot to the second WiFi hotspot.
[0081] The initial roaming result may include an indicator to indicate whether the roaming was successful or failed. For example, a true indicator indicates a successful roaming, while a false indicator indicates a failed roaming.
[0082] S406, the WiFi firmware sends the first roaming result to the WiFi driver.
[0083] S407, the WiFi driver sends the first roaming result to the WiFi Service module.
[0084] S408, the WiFi Service module sends the first roaming result to the WiFi Setting module.
[0085] S409, if the first roaming result is successful, the WiFi Setting module sends a command to the WiFi Service module to turn off the first WiFi hotspot.
[0086] The command to turn off the first WiFi hotspot is used to instruct the user to turn off the first WiFi hotspot.
[0087] In one embodiment, if the first roaming result is successful, after a preset time period, the WiFiSetting module determines whether the first WiFi hotspot has been connected to by a STA. If it is determined that the first WiFi hotspot is connected to by a STA, the WiFi Setting module does not send a command to turn off the first WiFi hotspot. If it is determined that the first WiFi hotspot is not connected to by a STA, the WiFi Setting module sends a command to the WiFi Service module to turn off the first WiFi hotspot. The aforementioned STA can be any STA other than the first STA and the second STA.
[0088] In other embodiments, if the first roaming result is successful, the WiFi Setting module determines whether the first WiFi hotspot is turned off. If the first WiFi hotspot is turned off, the WiFi Setting module does not send a command to turn off the first WiFi hotspot. If the first WiFi hotspot is not turned off, the WiFi Setting module sends a command to turn off the first WiFi hotspot.
[0089] S410, the WiFi Service module sends a command to the WiFi driver to shut down the first WiFi hotspot.
[0090] S411, the WiFi driver sends a command to the WiFi firmware to turn off the first WiFi hotspot.
[0091] S412, the WiFi firmware is based on the command to turn off the first WiFi hotspot, and the first WiFi hotspot is turned off.
[0092] S413, if the first roaming result is roaming failure, the WiFi Setting module queries the WiFi service traffic.
[0093] In this embodiment, after starting the first and second WiFi hotspots, the WiFi firmware reports WiFi service traffic at predetermined intervals. After receiving the WiFi service traffic from the WiFi firmware, the WiFi driver sends the WiFi service traffic to the WiFi Service module. Then, the WiFi Service module sends the WiFi service traffic to the WiFi Setting module. The WiFi Setting module stores the WiFi service traffic after receiving it. The predetermined interval can be set as needed; for example, it can be set to 5 seconds, 10 seconds, or 20 seconds.
[0094] It is understandable that the WiFi Setting module can store WiFi service traffic for each period, or it can store only the WiFi service traffic for the most recent period. WiFi service traffic can be stored in a preset storage space, such as memory or a database.
[0095] S414, when the WiFi service traffic is less than the bandwidth corresponding to the first WiFi hotspot, the WiFiSetting module sends a second roaming command to the WiFi Service module.
[0096] The second roaming command is used to instruct a STA connected to the second WiFi hotspot to initiate roaming.
[0097] In this embodiment, if the WiFi service traffic is greater than or equal to the bandwidth corresponding to the first WiFi hotspot, the process returns to step S413.
[0098] S415, the WiFi Service module sends a second roaming command to the WiFi driver.
[0099] S416, the WiFi driver sends a second roaming command to the WiFi firmware.
[0100] S417, the WiFi firmware sends a second roaming command to the second STA through the second WiFi hotspot.
[0101] S418, the WiFi firmware receives the second roaming result from the second STA via the second WiFi hotspot.
[0102] The results of the second roaming are largely the same as those of the first roaming, and will not be repeated here.
[0103] S419, the WiFi firmware sends the second roaming result to the WiFi driver.
[0104] S420, the WiFi driver sends the second roaming result to the WiFi Service module.
[0105] S421, the WiFi Service module sends the second roaming result to the WiFi Setting module.
[0106] S422, if the second roaming result is successful, the WiFi Setting module sends a command to the WiFi Service module to turn off the second WiFi hotspot.
[0107] The command to turn off the second WiFi hotspot is largely the same as the command to turn off the first WiFi hotspot, so it will not be repeated here.
[0108] In other embodiments, if the second roaming result is a roaming failure, the WiFi Setting module does not send a command to turn off the second WiFi hotspot.
[0109] S423, the WiFi Service module sends a command to the WiFi driver to turn off the second WiFi hotspot.
[0110] S424, the WiFi driver sends a command to the WiFi firmware to turn off the second WiFi hotspot.
[0111] S425, WiFi firmware based on the command to turn off the second WiFi hotspot, turns off the second WiFi hotspot.
[0112] Based on a scenario-based 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, the first STA connected to the first WiFi hotspot can be switched to the second WiFi hotspot via roaming, and then the first WiFi hotspot without a connected STA can be turned off. Alternatively, the second STA connected to the second WiFi hotspot can be switched to the first WiFi hotspot via roaming, and then the second WiFi hotspot without a connected STA can be turned off. This reduces the number of WiFi hotspots operating simultaneously, thereby reducing the power consumption of the access point (AP). Furthermore, since the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot helps improve the data transmission rate of WiFi services, thus improving WiFi performance. Turning off the second WiFi hotspot and turning on the first WiFi hotspot facilitates compatibility with a wider frequency band range, thereby improving WiFi compatibility.
[0113] Figure 5 This is a schematic diagram of an AP interface provided as an example scenario.
[0114] like Figure 5 As shown, the AP displays a hotspot management interface, which shows device connection information, including the number of connected devices. For example, if the first STA is connected to the first WiFi hotspot and the second STA is connected to the second WiFi hotspot, the number of connected STAs is 2. Based on the WiFi hotspot management method in Scenario 1, even if the AP turns off at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged.
[0115] It is understood that device connection information may also include the name of the connected device, Internet Protocol (IP) address, Medium Access Control (MAC) address, Service Set Identifier (SSID) of the connected WiFi hotspot, operating frequency band, channel, and WiFi service traffic, etc. This application does not limit this information.
[0116] Scene 2
[0117] Scenario description: When the AP starts up the first WiFi hotspot and the second WiFi hotspot, the first STA and the third STA connect to the first WiFi hotspot, while no STA connects to the second WiFi hotspot.
[0118] 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 largely the same as that in Scenario 1.
[0119] Figure 6 This is a sequence diagram of a WiFi hotspot management method in scenario two provided as an example.
[0120] like Figure 6 As shown, the WiFi hotspot management method includes the following steps:
[0121] S601, when the first STA and the third STA are connected to the first WiFi hotspot, and the second WiFi hotspot has no STA connected, the WiFi Setting module sends the first roaming command to the WiFi Service module after a preset time period.
[0122] S602, the WiFi Service module sends the first roaming command to the WiFi driver.
[0123] S603, the WiFi driver sends the first roaming command to the WiFi firmware.
[0124] S604, the WiFi firmware sends the first roaming command to the first STA through the first WiFi hotspot.
[0125] S605, the WiFi firmware sends the first roaming command to the third STA through the first WiFi hotspot.
[0126] S606, the WiFi firmware receives the first roaming result from the first STA via the first WiFi hotspot.
[0127] S607, the WiFi firmware receives the third roaming result from the third STA through the first WiFi hotspot.
[0128] The results of the third roaming are roughly the same as those of the first roaming, so they will not be described in detail here.
[0129] S608, the WiFi firmware sends the first roaming result and the third roaming result to the WiFi driver.
[0130] S609, the WiFi driver sends the first roaming result and the third roaming result to the WiFi Service module.
[0131] S610, the WiFi Service module sends the first roaming result and the third roaming result to the WiFi Setting module.
[0132] S611, if both the first and third roaming results are successful, the WiFi Setting module sends a command to the WiFi Service module to turn off the first WiFi hotspot.
[0133] S612, the WiFi Service module sends a command to the WiFi driver to shut down the first WiFi hotspot.
[0134] S613, the WiFi driver sends a command to the WiFi firmware to shut down the first WiFi hotspot.
[0135] S614, the WiFi firmware is based on the command to turn off the first WiFi hotspot, and turns off the first WiFi hotspot.
[0136] S615, if the first roaming result is roaming failure and the third roaming result is roaming success, the WiFiSetting module queries the WiFi service traffic.
[0137] In other embodiments, if both the first and third roaming results are roaming failures, the WiFiSetting module sends a command to the WiFi Service module to disable the second WiFi hotspot. The WiFi Service module then sends this command to the WiFi driver. The WiFi driver sends this command to the WiFi firmware. Based on this command, the WiFi firmware disables the second WiFi hotspot.
[0138] S616, when the WiFi service traffic is less than the bandwidth corresponding to the first WiFi hotspot, the WiFiSetting module sends a second roaming command to the WiFi Service module.
[0139] S617, the WiFi Service module sends a second roaming command to the WiFi driver.
[0140] S618, the WiFi driver sends a second roaming command to the WiFi firmware.
[0141] S619, the WiFi firmware sends a second roaming command to the third STA through the second WiFi hotspot.
[0142] The S620's WiFi firmware receives new third roaming results from a third STA via a second WiFi hotspot.
[0143] S621, the WiFi firmware sends a new third roaming result to the WiFi driver.
[0144] S622, the WiFi driver sends a new third roaming result to the WiFi Service module.
[0145] S623, the WiFi Service module sends a new third roaming result to the WiFi Setting module.
[0146] S624, if the new third roaming result is successful, the WiFi Setting module sends a command to the WiFi Service module to turn off the second WiFi hotspot.
[0147] In other embodiments, if the new third roaming result is a roaming failure, the WiFi Setting module does not send a command to turn off the second WiFi hotspot.
[0148] S625, the WiFi Service module sends a command to the WiFi driver to turn off the second WiFi hotspot.
[0149] S626, the WiFi driver sends a command to the WiFi firmware to turn off the second WiFi hotspot.
[0150] S627, WiFi firmware based on the command to turn off the second WiFi hotspot, turns off the second WiFi hotspot.
[0151] Based on the WiFi hotspot management method in Scenario 2, when the first and third STAs are connected to the first WiFi hotspot, and no STA is 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 without a STA connection is turned off. If neither the first nor the third STA has switched to the second WiFi hotspot, the second WiFi hotspot without a STA connection is turned off. Alternatively, if the first STA has not switched to the second WiFi hotspot, but the third STA has, 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 without a STA connection is turned off. This reduces the number of simultaneously operating WiFi hotspots, thereby reducing AP power consumption. Furthermore, since the first WiFi hotspot operates at a lower frequency than the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot helps improve the data transmission rate of WiFi services, thus improving WiFi performance. Turning off the second WiFi hotspot and turning on the first WiFi hotspot facilitates compatibility with a wider frequency band range, thereby improving WiFi compatibility.
[0152] Figure 7 This is a schematic diagram of the AP interface in scenario two provided as an example.
[0153] like Figure 7 As shown, the AP displays a hotspot management interface, which shows device connection information, including the number of connected devices. For example, if the first STA and the third STA are connected to the first WiFi hotspot, and no STA is connected to the second WiFi hotspot, the number of connected STAs is 2. Based on the WiFi hotspot management method in scenario two, even if the AP turns off at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged or increases.
[0154] Scene 3
[0155] Scenario description: When the AP starts up the first WiFi hotspot and the second WiFi hotspot, no STA connects to the first WiFi hotspot, and the second STA connects to the second WiFi hotspot.
[0156] The difference between Scenario 3 and Scenario 1 is that the first WiFi hotspot has no STA connection.
[0157] Figure 8 This is a sequence diagram of a WiFi hotspot management method provided in Scenario 3 as an example.
[0158] like Figure 8 As shown, the WiFi hotspot management method includes the following steps:
[0159] S801, when there is no STA connected to the first WiFi hotspot and the second STA is connected to the second WiFi hotspot, the WiFi Setting module sends a command to the WiFi Service module to shut down the first WiFi hotspot after a preset time period.
[0160] S802, the WiFi Service module sends a command to the WiFi driver to shut down the first WiFi hotspot.
[0161] S803, the WiFi driver sends a command to the WiFi firmware to turn off the first WiFi hotspot.
[0162] S804, the WiFi firmware is based on the command to turn off the first WiFi hotspot, and turns off the first WiFi hotspot.
[0163] Based on the WiFi hotspot management method in Scenario 3, when the first WiFi hotspot has no STA connection and the second STA is connected to the second WiFi hotspot, the first WiFi hotspot without a STA connection is turned off. This reduces the number of WiFi hotspots running simultaneously, thereby reducing the power consumption of the AP. Furthermore, since the operating frequency band of the first WiFi hotspot is lower than that of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot helps improve the data transmission rate of WiFi services, thus enhancing WiFi performance.
[0164] Figure 9 This is a schematic diagram of the AP interface in scenario three provided as an example.
[0165] like Figure 9 As shown, the AP displays a hotspot management interface, which shows device connection information, including the number of connected devices. For example, if no STA is connected to the first WiFi hotspot, but a second STA is connected to the second WiFi hotspot, the number of connected STAs is 1. Based on the WiFi hotspot management method in scenario three, the number of connected STAs displayed on the hotspot management interface remains unchanged even when at least one WiFi hotspot is turned off by the AP.
[0166] Scene 4
[0167] Scenario description: When the AP starts the first WiFi hotspot and the second WiFi hotspot, neither the first WiFi hotspot nor the second WiFi hotspot has any STA connection.
[0168] 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 largely the same as that in Scenario 3.
[0169] Figure 10 This is a sequence diagram of a WiFi hotspot management method provided in scenario four as an example.
[0170] like Figure 10 As shown, the WiFi hotspot management method includes the following steps:
[0171] S1001, when neither the first WiFi hotspot nor the second WiFi hotspot has a STA connection, after a preset time period, the WiFi Setting module sends a command to the WiFi Service module to shut down the first WiFi hotspot.
[0172] S1002, the WiFi Service module sends a command to the WiFi driver to shut down the first WiFi hotspot.
[0173] S1003, the WiFi driver sends a command to the WiFi firmware to shut down the first WiFi hotspot.
[0174] S1004, the WiFi firmware is based on the command to turn off the first WiFi hotspot, and turns off the first WiFi hotspot.
[0175] Based on the WiFi hotspot management method in Scenario 4, the first WiFi hotspot is turned off when neither the first nor the second WiFi hotspot has a STA connection. This reduces the number of simultaneously running WiFi hotspots, thereby lowering the AP's power consumption. Furthermore, since the first WiFi hotspot operates at a lower frequency than the second WiFi hotspot, turning off the first and turning on the second helps improve the data transmission rate of WiFi services, thus enhancing WiFi performance.
[0176] Figure 11 This is a schematic diagram of the AP interface in scenario four provided as an example.
[0177] like Figure 11 As shown, the AP displays a hotspot management interface, which shows device connection information, including the number of connected devices. For example, if neither the first nor the second WiFi hotspot has any STAs connected, the number of connected STAs is 0. Based on the WiFi hotspot management method in scenario four, the number of connected STAs displayed on the hotspot management interface remains unchanged even when at least one WiFi hotspot is turned off by the AP.
[0178] Figure 12 This is a schematic diagram of the hardware structure of an AP provided as an example.
[0179] like Figure 12 As shown, 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, antenna 1, 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, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc.
[0180] The processor 110 can execute instructions stored in the internal memory 121, causing the AP to perform the WiFi hotspot management method provided in this application embodiment.
[0181] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0182] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0183] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0184] In some embodiments, the processor 110 may include one or more interfaces. 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) interface, a General-Purpose Input / Output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and / or a Universal Serial Bus (USB) interface, etc.
[0185] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thus realizing the touch function of the AP.
[0186] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may 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 to enable the function of answering phone calls through a Bluetooth headset.
[0187] 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 the 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 phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0188] 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 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 to enable music playback through Bluetooth headphones.
[0189] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a Camera Serial Interface (CSI) and a Display Serial Interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the AP's shooting function. The processor 110 and the display screen 194 communicate via the DSI interface to enable the AP's display function.
[0190] The GPIO interface is configurable via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a 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.
[0191] USB port 130 is a USB standard compliant interface, which can be a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge the access point (AP), or for data transfer between the AP and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0192] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a limitation on the structure of the AP. In other embodiments of this application, the AP may also adopt different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.
[0193] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via a USB interface 130. In some wireless charging embodiments, the charging management module 140 receives 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 supply power to the electronic device via the power management module 141.
[0194] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0195] The AP's wireless communication function can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
[0196] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the AP can be used to cover one or more 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 some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0197] The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G on an access point (AP). The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a 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 via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0198] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates 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 processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0199] The wireless communication module 160 can provide solutions for wireless communication applications on an access point (AP), including Wireless Local Area Network (WLAN) (e.g., WiFi network), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), and Infrared (IR). 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 antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0200] In some embodiments, the AP's antenna 1 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, enabling the AP to communicate with the network and other devices via wireless communication technology. 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), BT, 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).
[0201] The application processor (AP) implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU performs mathematical and geometric calculations and is used for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0202] Display screen 194 is used to display images, videos, etc. 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 (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the AP may include one or N displays 194, where N is a positive integer greater than 1.
[0203] The AP can achieve shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0204] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, 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, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0205] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element through a lens, generating an optical image. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the AP may include one or N cameras 193, where N is a positive integer greater than 1.
[0206] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when an access point (AP) is selecting a frequency, a DSP can perform Fourier transforms on the frequency energy.
[0207] Video codecs are used to compress or decompress digital video. An application processor (AP) can support one or more video codecs. This allows the AP to play or record video in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0208] NPU stands for Neural Network (NN) computing processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications such as image recognition, facial recognition, speech recognition, and text understanding.
[0209] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the AP. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.
[0210] Internal memory 121 can be used to store executable program code, including instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during AP use (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, Universal Flash Storage (UFS), etc. Processor 110 executes various AP functions and data processing by running instructions stored in internal memory 121 and / or instructions stored in memory located within the processor.
[0211] The AP can implement audio functions such as music playback and recording through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0212] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0213] The speaker 170A, also known as a "loudspeaker," 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.
[0214] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the access point (AP) answers a phone call or voice message, it can listen to the voice by bringing the receiver 170B close to the listener's ear.
[0215] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. An access point (AP) can have at least one microphone 170C. In some embodiments, the AP can have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, the AP can have three, four, or more microphones 170C, enabling sound signal collection, noise reduction, sound source identification, and directional recording, among other functions.
[0216] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0217] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch buttons. The AP can receive button input and generate key signal inputs related to the AP's user settings and function control.
[0218] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to different touch operations applied to different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0219] Indicator 192 can be an indicator light, which can be used to indicate charging status, power changes, or messages such as missed calls and notifications.
[0220] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to establish contact with the AP. The AP can support one 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, and other SIM cards. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The types of cards can be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The AP interacts with the network through the SIM card to achieve functions such as calls and data communication. 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 it.
[0221] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0222] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the WiFi hotspot management method of this application.
[0223] Computer-readable storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing 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 cartridges, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer.
[0224] The embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of this application.
Claims
1. A WiFi hotspot management method, applied to electronic devices, characterized in that, The method includes: Start the first WiFi hotspot and the second WiFi hotspot. The first WiFi hotspot operates on the first frequency band, and the second WiFi hotspot operates on the second frequency band. The first frequency band is lower than the second frequency band. During a first time period, the hotspot management interface of the electronic device displays first device connection information, which includes the number of first connected devices. The first connected devices include a first device and a second device, wherein the first device is connected to the first WiFi hotspot and the second device is connected to the second WiFi hotspot. A first roaming command is sent through the first WiFi hotspot, the first roaming command 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; based on the first device switching to the second WiFi hotspot, the first WiFi hotspot is turned off; If the first device fails to roam, query the WiFi service traffic of the electronic device; if the WiFi service traffic is less than the bandwidth of the first frequency band, send a second roaming command through the second WiFi hotspot. The second roaming command is used to instruct the device connected to the second WiFi hotspot to start roaming. If the second device successfully roams, switch to the first WiFi hotspot; if the first device does not switch to the second WiFi hotspot and the second device switches to the first WiFi hotspot, turn off the second WiFi hotspot.
2. The WiFi hotspot management method as described in claim 1, characterized in that, After activating the first and second WiFi hotspots, the method further includes: During the second time period, the hotspot management interface displays the second device connection information, which 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 the second WiFi hotspot has no connected devices. The first WiFi hotspot is turned off if both the first device and the third device switch to the second WiFi hotspot; or, the second WiFi hotspot is turned off if the first device does not switch to the second WiFi hotspot and the third device switches to the first WiFi hotspot; or, the second WiFi hotspot is turned off if neither the first device nor the third device switches to the second WiFi hotspot.
3. The WiFi hotspot management method as described in claim 1 or 2, characterized in that, After activating the first and second WiFi hotspots, the method further includes: During the third time period, the connection information of the third device is displayed on the hotspot management interface. The connection information of the third device includes the number of third connected devices. The third connected devices include the second device, which is connected to the second WiFi hotspot. The first WiFi hotspot has no connected devices. Turn off the first WiFi hotspot.
4. The WiFi hotspot management method as described in claim 1 or 2, characterized in that, After activating the first and second WiFi hotspots, the method further includes: During the fourth time period, the 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. Turn off the first WiFi hotspot.
5. The WiFi hotspot management method as described in claim 2, characterized in that, Before switching to the second WiFi hotspot and turning off 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. The first roaming instruction is used to instruct devices connected to the first WiFi hotspot to start roaming. If roaming is successful, the first device and the third device switch to the second WiFi hotspot.
6. The WiFi hotspot management method as described in claim 5, characterized in that, Before the method is completed based on the first device not switching to the second WiFi hotspot and the third device switching to the first WiFi hotspot and turning off the second WiFi hotspot, the method further includes: Based on the first device failing to roam and the third device successfully roaming, query 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. The second roaming instruction is used to instruct the device connected to the second WiFi hotspot to start roaming. If the roaming is successful, the third device switches to the first WiFi hotspot.
7. 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 up and manage at least two WiFi hotspots. The memory is used to store instructions. The processor is used to execute the instructions stored in the memory, causing the electronic device to perform the WiFi hotspot management method as described in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the WiFi hotspot management method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Control method of wireless access network, network equipment and storage medium
CN110582108A