WiFi hotspot management method, electronic equipment and computer readable storage medium

By displaying device connection information on the hotspot management interface of electronic devices and closing WiFi hotspots without device connections according to the device switching situation, the problem of high power consumption when starting multiple WiFi hotspots is solved, and more efficient WiFi performance and compatibility are achieved sex.

CN119485595AActive Publication Date: 2025-02-18HONOR DEVICE CO LTD

Patent Information

Application Number
CN202311021885.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2025-02-18
Estimated Expiration
2043-08-11

AI Technical Summary

Technical Problem

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.

Method used

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 frequency band usage to improve WiFi performance and compatibility.

Benefits of technology

It effectively reduces the power consumption of electronic devices, improves the data transmission rate of WiFi services, and improves the performance and compatibility of WiFi.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119485595A_ABST
    Figure CN119485595A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a WiFi hotspot management method, electronic equipment and a computer readable storage medium, and relates to the technical field of communication. The WiFi hotspot management method comprises the steps that a first WiFi hotspot and a second WiFi hotspot are started, the working frequency band of the first WiFi hotspot is a first frequency band, the working frequency band of the second WiFi hotspot is a second frequency band, and the first frequency band is lower than the second frequency band. In the first time period, first device connection information is displayed on a hotspot management interface of the electronic device, the first device connection information comprises the number of first connection devices, the first connection devices comprise 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. And switching to the second WiFi hotspot based on the first equipment, and closing the first WiFi hotspot. Or closing the second WiFi hotspot based on the condition that the first equipment is not switched to the second WiFi hotspot and the second equipment is switched to the first WiFi hotspot. Therefore, the number of the WiFi hotspots in synchronous operation is reduced, and the power consumption of the electronic equipment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and specifically to a WiFi hotspot management method, an electronic device, and a computer-readable storage medium. Background Art

[0002] At present, electronic devices can support providing at least one Wireless Fidelity (WiFi) hotspot, each WiFi hotspot has a corresponding working frequency band, and the working frequency bands of each WiFi hotspot do not overlap. When an electronic device starts a WiFi hotspot, devices that do not support the working frequency band corresponding to the WiFi hotspot cannot access the WiFi hotspot, resulting in a small number of devices that the electronic device can connect to. When an electronic device starts at least two WiFi hotspots, although the number of connected devices can be increased, the power consumption of the electronic device is high, and it is difficult to ensure the performance and compatibility of WiFi. Summary of the invention

[0003] The embodiments of the present application provide a WiFi hotspot management method, an electronic device, and a computer-readable storage medium, which are intended to solve the problem of how to reduce power consumption when an electronic device starts at least two WiFi hotspots.

[0004] The first aspect of the embodiment of the present application provides a WiFi hotspot management method, which is applied to an electronic device, and the method includes: starting a first WiFi hotspot and a second WiFi hotspot, the working frequency band of the first WiFi hotspot is the first frequency band, the working frequency band of the second WiFi hotspot is the second frequency band, and the first frequency band is lower than the second frequency band. In a first time period, the first device connection information is displayed on the hotspot management interface of the electronic device, the first device connection information includes the number of first connected devices, the first connected devices include the first device and the second device, the first device is connected to the first WiFi hotspot, and the second device is connected to the second WiFi hotspot. Based on the first device switching to the second WiFi hotspot, the first WiFi hotspot is closed. 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 closed.

[0005] In this embodiment, when the first device is connected to the first WiFi hotspot and the second device is connected to the 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 turned off. 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 turned off. This reduces the number of WiFi hotspots running synchronously, thereby reducing the power consumption of electronic devices. In addition, since the operating frequency band of the first WiFi hotspot is lower than the operating frequency band of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance. Turning off the second WiFi hotspot and turning on the first WiFi hotspot is conducive to compatibility with a wider frequency band range, thereby improving WiFi compatibility.

[0006] In one embodiment, after starting the first WiFi hotspot and the second WiFi hotspot, the method further includes: displaying the second device connection information on the hotspot management interface in the 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 are connected to the first WiFi hotspot, and no device is connected to the second WiFi hotspot. Based on the first device and the third device both switching to the second WiFi hotspot, the first WiFi hotspot is closed. Alternatively, based on the first device not switching to the second WiFi hotspot and the third device switching to the first WiFi hotspot, the second WiFi hotspot is closed. Alternatively, based on the first device not switching to the second WiFi hotspot and the third device switching to the first WiFi hotspot, the second WiFi hotspot is closed. Alternatively, based on the first device and the third device not switching to the second WiFi hotspot, the second WiFi hotspot is closed.

[0007] In this embodiment, when the first device and the third device are connected to the first WiFi hotspot and no device is connected to the second WiFi hotspot, the first device and the third device connected to the first WiFi hotspot are switched to the second WiFi hotspot, and then the first WiFi hotspot with no device connected is closed. Alternatively, when the first device is not switched to the second WiFi hotspot and the third device is switched to the first WiFi hotspot, the second WiFi hotspot with no device connected is closed. Alternatively, when neither the first device nor the third device is switched to the second WiFi hotspot, the second WiFi hotspot with no device connected is closed. Thus, the number of WiFi hotspots running synchronously is reduced, thereby reducing the power consumption of the electronic device. In addition, since the working frequency band of the first WiFi hotspot is lower than the working frequency band of the second WiFi hotspot, closing the first WiFi hotspot and opening the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance. Closing the second WiFi hotspot and opening the first WiFi hotspot is conducive to compatibility with a wider frequency band range, thereby improving WiFi compatibility.

[0008] In another embodiment, 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. Turning off the first WiFi hotspot.

[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 to which no device is connected is turned off. This reduces the number of WiFi hotspots running simultaneously, thereby reducing the power consumption of the electronic device. In addition, since the operating frequency band of the first WiFi hotspot is lower than the operating frequency band of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance.

[0010] In another embodiment, after starting the first WiFi hotspot and the second WiFi hotspot, the method further includes: in a fourth time period, displaying fourth device connection information on the hotspot management interface, the fourth device connection information including the number of fourth connected devices, and the number of fourth connected devices is 0. Turn off the first WiFi hotspot.

[0011] In this embodiment, when no device is connected to the first WiFi hotspot and the second WiFi hotspot, the first WiFi hotspot is turned off. This reduces the number of WiFi hotspots running simultaneously, thereby reducing the power consumption of the electronic device. In addition, since the operating frequency band of the first WiFi hotspot is lower than the operating frequency band of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot is conducive to increasing the data transmission rate of the WiFi service, thereby improving the WiFi performance.

[0012] In another embodiment, before the first WiFi hotspot is closed based on the first device switching to the second WiFi hotspot, the method also includes: sending a first roaming instruction through the first WiFi hotspot, the first roaming instruction is used to instruct the device connected to the first WiFi hotspot to start roaming, and the first device switches to the second WiFi hotspot if roaming is successful.

[0013] In another embodiment, before the second WiFi hotspot is closed based on the first device not switching to the second WiFi hotspot and the second device switching to the first WiFi hotspot, the method further includes: querying the WiFi service flow of the electronic device based on the failure of roaming of the first device. Based on the WiFi service flow being less than the bandwidth of the first frequency band, sending a second roaming instruction through the second WiFi hotspot, the second roaming instruction is used to instruct the device connected to the second WiFi hotspot to start roaming, and the second device switches to the first WiFi hotspot if the roaming is successful.

[0014] In another embodiment, before the first WiFi hotspot is turned off based on the first device and the third device both switching to the second WiFi hotspot, the method also includes: sending a first roaming instruction through the first WiFi hotspot, the first roaming instruction is used to instruct the device connected to the first WiFi hotspot to start roaming, and the first device and the third device switch to the second WiFi hotspot if roaming is successful.

[0015] In another embodiment, before the second WiFi hotspot is closed based on the first device not switching to the second WiFi hotspot and the third device switching to the first WiFi hotspot, the method further includes: based on the first device failing to roam and the third device successfully roaming, querying the WiFi service traffic of the electronic device. Based on the WiFi service traffic being less than the bandwidth of the first frequency band, sending a second roaming instruction through the second WiFi hotspot, the second roaming instruction being used to instruct the device connected to the second WiFi hotspot to start roaming. The third device switches to the first WiFi hotspot if roaming is successful.

[0016] 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.

[0017] 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.

[0018] 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

[0019] Figure 1 The invention is a schematic diagram of the architecture of a communication system provided by an example.

[0020] Figure 2 The following is a schematic diagram of the software structure of an AP provided as an example.

[0021] Figure 3 This is a timing diagram of an AP starting a multi-band WiFi hotspot provided by an example.

[0022] Figure 4 This is a timing diagram of a WiFi hotspot management method in a scenario provided as an example.

[0023] Figure 5 The following is a schematic diagram of the AP interface in a scenario provided as an example.

[0024] Figure 6 This is a timing diagram of a WiFi hotspot management method under scenario 2 provided as an example.

[0025] Figure 7 This is a schematic diagram of an AP interface in scenario 2 provided as an example.

[0026] Figure 8 This is a timing diagram of a WiFi hotspot management method under scenario three provided by an example.

[0027] Fig. 9 The diagram is a schematic diagram of an AP interface under scenario three provided by an example.

[0028] Fig.10 This is a timing diagram of a WiFi hotspot management method under scenario 4 provided by an example.

[0029] Fig.11 The diagram is a schematic diagram of an AP interface in scenario 4 provided as an example.

[0030] Fig.12 The following is a schematic diagram of the hardware structure of an AP provided as an example. DETAILED DESCRIPTION

[0031] 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 represent: the existence of A alone, the existence of A and B at the same time, and the existence of B 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.

[0032] 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 interchangeable with each other, and some of the steps can also be deleted.

[0033] Figure 1 The invention is a schematic diagram of the architecture of a communication system provided by an example.

[0034] like Figure 1 As shown, the communication system includes an access point (AP) and a station (STA). AP is used to provide a WiFi hotspot, and STA connects to AP by accessing the WiFi hotspot. Among them, AP is an electronic device that supports providing WiFi hotspots. STA is an electronic device that supports WiFi connection.

[0035] It can be understood that the present application does not limit the number of APs and the number of STAs.

[0036] Electronic devices are also called terminal equipment (Terminal Equipment), user equipment (User Equipment, UE), mobile station (Mobile Station, MS), mobile terminal (Mobile Terminal, MT), etc. Specifically, the electronic device can be a mobile phone (Mobile Phone), a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (Virtual Reality, VR) terminal, an augmented reality (Augmented Reality, AR) terminal, a wireless terminal in industrial control (Industrial Control), a wireless terminal in self-driving (Self Driving), a wireless terminal in remote medical surgery (Remote Medical Surgery), a wireless terminal in smart grid (Smart Grid), a wireless terminal in transportation safety (Transportation Safety), a wireless terminal in smart city (Smart City), a wireless terminal in smart home (Smart Home), etc., and this application does not limit this.

[0037] Figure 2 The following is a schematic diagram of the software structure of an AP provided as an example.

[0038] The software system of the AP can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. This embodiment takes the Android system of the layered architecture as an example to illustrate the software structure of the AP. The layered architecture divides the software system of the AP into several layers, each layer has a clear role and division of labor, and the layers communicate with each other through software interfaces.

[0039] like Figure 2 As shown in the figure, the software system of AP is divided into four layers, namely, application (Application, APP) layer, framework (Framework) layer, kernel (Kernel) layer and hardware (Hardware) layer from top to bottom. Among them, the APP layer includes a series of application packages, which may include application market, calendar, clock, settings, camera, gallery, call and short message applications. The Framework layer provides application programming interface (Application Programming Interface, API) for each application of the APP layer, such as WiFi API. The Kernel layer includes various drivers, such as display driver, WiFi driver, camera driver and sensor driver. The Hardware layer includes various hardware components, such as display screen, WiFi firmware, camera and sensor module.

[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 the call of the WiFi API. The WiFi driver of the Kernel layer is used to drive the WiFi firmware of the Hardware layer, so that the WiFi firmware performs various functions and data processing, such as starting or shutting down the WiFi hotspot.

[0041] Combine the following Figure 2 and Figure 3 This section describes the process of enabling a multi-band WiFi hotspot on an AP.

[0042] Figure 3 This is a timing diagram of an AP starting a multi-band WiFi hotspot provided by an example.

[0043] like Figure 3 As shown in the figure, the AP starts a multi-band WiFi hotspot including the following steps:

[0044] S301, WiFi Setting module starts.

[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-band 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 a WiFi capability query result from the WiFi configuration information based on the WiFi capability query request.

[0049] Among them, the WiFi configuration information is pre-configured information used to indicate the WiFi functions supported by the AP, and the WiFi configuration information can be stored in a pre-configured WiFi configuration file (such as an XML file). For example, the WiFi configuration information includes a multi-frequency WiFi hotspot configuration field, and the multi-frequency WiFi hotspot configuration field is used to indicate whether the AP supports the multi-frequency WiFi hotspot function. Exemplarily, when the multi-frequency WiFi hotspot configuration field is set to enable, it indicates that the AP supports the multi-frequency WiFi hotspot function. When the multi-frequency WiFi hotspot configuration field is set to disable, it indicates that the AP does not support the multi-frequency WiFi hotspot function.

[0050] The WiFi capability query result may include a return value corresponding to the multi-band WiFi hotspot configuration field. For example, when the return value is 1, it indicates that the AP supports the multi-band WiFi hotspot function. When the return value is 0, it indicates that the AP does not support the multi-band WiFi hotspot function.

[0051] S305, the WiFi driver sends the WiFi capability query result to the WiFi Service module.

[0052] S306, the WiFi Service module sends the WiFi capability query result to the WiFi Setting module.

[0053] 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.

[0054] Among them, the start multi-frequency WiFi hotspot instruction is used to instruct the start of a multi-frequency WiFi hotspot.

[0055] S308, the WiFi Service module sends a command to start a multi-frequency WiFi hotspot to the WiFi driver.

[0056] 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.

[0057] The WiFi configuration information includes a channel list of each of the multi-frequency WiFi hotspots, and the channel list includes at least one available channel, and the channel is used to transmit service data. For example, the WiFi driver obtains a channel list of 2.4GHz WiFi hotspots and a channel list of 5GHz WiFi hotspots from the WiFi configuration information.

[0058] S310: The WiFi driver determines a target channel for each of the multi-frequency WiFi hotspots from a channel list for each of the multi-frequency WiFi hotspots.

[0059] In this embodiment, the WiFi driver can use the ACS algorithm to determine the target channels of the multi-frequency WiFi hotspots. The ACS algorithm calculates the weight of each channel in the channel list, sorts the weight of each channel according to the weight, thereby determining the priority of each channel, and selecting the target channel according to the priority.

[0060] It can be understood that the present 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 start a multi-frequency WiFi hotspot to the WiFi firmware.

[0062] The instruction to start the multi-frequency WiFi hotspot includes the target channels of the multi-frequency WiFi hotspots.

[0063] S312, the WiFi firmware starts the multi-frequency WiFi hotspot based on the instruction to start the multi-frequency WiFi hotspot.

[0064] After starting the multi-band WiFi hotspot, the WiFi firmware can send or receive service data on the respective target channels of the multi-band WiFi hotspot.

[0065] It can be understood that the process of 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.

[0066] At present, an AP can support providing at least one WiFi hotspot, each WiFi hotspot has a corresponding working frequency band, and the working frequency bands of each WiFi hotspot do not overlap. When an AP starts a WiFi hotspot, STAs that do not support the working frequency band corresponding to the WiFi hotspot cannot access the WiFi hotspot, resulting in a small number of STAs that the AP can connect to. When an AP starts at least two WiFi hotspots, although the number of STAs can be increased, the power consumption of the AP is high, and it is difficult to ensure the performance and compatibility of WiFi.

[0067] Based on this, the embodiments of the present application provide a WiFi hotspot management method, an electronic device, and a computer-readable storage medium. When an AP starts at least two WiFi hotspots, based on the device connection information of the at least two WiFi hotspots, at least one WiFi hotspot with no device connected is closed, thereby reducing the power consumption of the AP. In addition, different WiFi hotspots are selected to be closed in different scenarios, thereby ensuring the performance and compatibility of WiFi.

[0068] 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.

[0069] Scene 1

[0070] Scenario description: When the AP starts the first WiFi hotspot and the second WiFi hotspot, the first STA connects to the first WiFi hotspot and the second STA connects to the second WiFi hotspot. The working frequency band of the first WiFi hotspot is lower than the working frequency band of the second WiFi hotspot.

[0071] Figure 4 This is a timing diagram of a WiFi hotspot management method in a scenario provided as an example.

[0072] like Figure 4 As shown, the WiFi hotspot management method includes the following steps:

[0073] 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, a WiFi Setting module sends a first roaming instruction to a WiFi Service module.

[0074] The first roaming instruction is used to instruct the STA connected to the first WiFi hotspot to start roaming.

[0075] It can be understood that the preset time period can be set as needed, for example, the preset time period can be set to 3 minutes (min), 5 min or 10 min, etc.

[0076] S402: The WiFi Service module sends a first roaming instruction to the WiFi driver.

[0077] S403: The WiFi driver sends a first roaming instruction to the WiFi firmware.

[0078] S404: The WiFi firmware sends a first roaming instruction to the first STA through the first WiFi hotspot.

[0079] S405 , the WiFi firmware receives a first roaming result from the first STA through the first WiFi hotspot.

[0080] The first roaming result includes roaming success or roaming failure. When the first roaming result is roaming success, it means that the first STA switches from the first WiFi hotspot to the second WiFi hotspot. When the first roaming result is roaming failure, it means that the first STA does not switch from the first WiFi hotspot to the second WiFi hotspot.

[0081] The first roaming result may include an indicator for indicating roaming success or roaming failure. Exemplarily, when the indicator is true, it indicates roaming success. When the indicator is false, it indicates roaming failure.

[0082] S406: The WiFi firmware sends a first roaming result to the WiFi driver.

[0083] S407: The WiFi driver sends a first roaming result to the WiFi Service module.

[0084] S408, the WiFi Service module sends a first roaming result to the WiFi Setting module.

[0085] S409: When the first roaming result is that the roaming is successful, the WiFi Setting module sends a command to close the first WiFi hotspot to the WiFi Service module.

[0086] The instruction to close the first WiFi hotspot is used to instruct to close the first WiFi hotspot.

[0087] In one embodiment, when the first roaming result is successful roaming, after a preset time period, the WiFi Setting module determines whether the first WiFi hotspot is connected by the STA. When it is determined that the first WiFi hotspot is connected by the STA, the WiFi Setting module does not send a command to close the first WiFi hotspot. When it is determined that the first WiFi hotspot is not connected by the STA, the WiFi Setting module sends a command to close the first WiFi hotspot to the WiFi Service module. The above-mentioned STA can be any STA except the first STA and the second STA.

[0088] In other embodiments, when the first roaming result is that the roaming 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.

[0089] S410, the WiFi Service module sends a command to close the first WiFi hotspot to the WiFi driver.

[0090] S411, the WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.

[0091] S412: The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.

[0092] S413: When the first roaming result is roaming failure, the WiFi Setting module queries the WiFi service flow.

[0093] In this embodiment, after starting the first WiFi hotspot and the second WiFi hotspot, the WiFi firmware reports the WiFi service traffic according to a predetermined period. 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. After receiving the WiFi service traffic, the WiFi Setting module stores the WiFi service traffic. Among them, the predetermined period can be set as needed, for example, the predetermined period can be set to 5 seconds (s), 10s or 20s, etc.

[0094] It is understandable that the WiFi Setting module can store the WiFi service traffic corresponding to each cycle, or only store the WiFi service traffic corresponding to the most recent cycle. The WiFi service traffic can be stored in a preset storage space, such as a memory space or a database.

[0095] S414: When the WiFi service flow is less than the frequency bandwidth corresponding to the first WiFi hotspot, the WiFi Setting module sends a second roaming instruction to the WiFi Service module.

[0096] The second roaming instruction is used to instruct the STA connected to the second WiFi hotspot to start roaming.

[0097] 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.

[0098] S415, the WiFi Service module sends a second roaming instruction to the WiFi driver.

[0099] S416: The WiFi driver sends a second roaming instruction to the WiFi firmware.

[0100] S417: The WiFi firmware sends a second roaming instruction to the second STA through the second WiFi hotspot.

[0101] S418: The WiFi firmware receives a second roaming result from the second STA through a second WiFi hotspot.

[0102] The second roaming result is substantially the same as the first roaming result, and will not be described in detail herein.

[0103] S419, the WiFi firmware sends the second roaming result to the WiFi driver.

[0104] S420: The WiFi driver sends a second roaming result to the WiFi Service module.

[0105] S421, the WiFi Service module sends a second roaming result to the WiFi Setting module.

[0106] 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.

[0107] Among them, the instruction for closing the second WiFi hotspot is roughly the same as the instruction for closing the first WiFi hotspot, which will not be repeated here.

[0108] 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.

[0109] S423, the WiFi Service module sends a command to close the second WiFi hotspot to the WiFi driver.

[0110] S424, the WiFi driver sends a command to close the second WiFi hotspot to the WiFi firmware.

[0111] S425, the WiFi firmware closes the second WiFi hotspot based on the instruction to close the second WiFi hotspot.

[0112] Based on the WiFi hotspot management method of the following scenario, when the first STA is connected to the first WiFi hotspot and the second STA is connected to the second WiFi hotspot, the first STA connected to the first WiFi hotspot is switched to the second WiFi hotspot by roaming, and then the first WiFi hotspot without STA connection is closed. Alternatively, the second STA connected to the second WiFi hotspot is switched to the first WiFi hotspot by roaming, and then the second WiFi hotspot without STA connection is closed. The number of WiFi hotspots running synchronously is thereby reduced, thereby reducing the power consumption of the AP. In addition, since the working frequency band of the first WiFi hotspot is lower than the working frequency band of the second WiFi hotspot, shutting down the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance. Turning off the second WiFi hotspot and turning on the first WiFi hotspot is conducive to compatibility with a wider frequency band range, thereby improving WiFi compatibility.

[0113] Figure 5 The following is a schematic diagram of the AP interface in a scenario provided as an example.

[0114] like Figure 5 As shown, the AP displays a hotspot management interface, and displays device connection information on the hotspot management interface, where the device connection information includes the number of connected devices. Exemplarily, when 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 in the following scenario, when the AP turns off at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged.

[0115] 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.

[0116] Scene 2

[0117] Scenario description: When the AP starts the first WiFi hotspot and the second WiFi hotspot, the first STA and the third STA are connected to the first WiFi hotspot, and no STA is connected 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 roughly the same as the WiFi hotspot management method in scenario 1.

[0119] Figure 6 This is a timing diagram of a WiFi hotspot management method under scenario 2 provided as an example.

[0120] like Figure 6 As shown, the WiFi hotspot management method includes the following steps:

[0121] 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, after a preset time period, a WiFi Setting module sends a first roaming instruction to a WiFi Service module.

[0122] S602: The WiFi Service module sends a first roaming instruction to the WiFi driver.

[0123] S603: The WiFi driver sends a first roaming instruction to the WiFi firmware.

[0124] S604: The WiFi firmware sends a first roaming instruction to the first STA through the first WiFi hotspot.

[0125] S605: The WiFi firmware sends a first roaming instruction to a third STA through the first WiFi hotspot.

[0126] S606: The WiFi firmware receives a first roaming result from the first STA through the first WiFi hotspot.

[0127] S607: The WiFi firmware receives a third roaming result from a third STA through the first WiFi hotspot.

[0128] The third roaming result is substantially the same as the first roaming result, and will not be described in detail herein.

[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: 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.

[0133] S612, the WiFi Service module sends a command to close the first WiFi hotspot to the WiFi driver.

[0134] S613: The WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.

[0135] S614: The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.

[0136] 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.

[0137] In other embodiments, when both the first roaming result and the third roaming result are roaming failures, 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.

[0138] S616: When the WiFi service flow is less than the frequency bandwidth corresponding to the first WiFi hotspot, the WiFi Setting module sends a second roaming instruction to the WiFi Service module.

[0139] S617, the WiFi Service module sends a second roaming instruction to the WiFi driver.

[0140] S618: The WiFi driver sends a second roaming instruction to the WiFi firmware.

[0141] S619: The WiFi firmware sends a second roaming instruction to the third STA through the second WiFi hotspot.

[0142] S620: The WiFi firmware receives a new third roaming result from a third STA through the 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: When the new third 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.

[0147] 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.

[0148] S625, the WiFi Service module sends a command to close the second WiFi hotspot to the WiFi driver.

[0149] S626, the WiFi driver sends a command to close the second WiFi hotspot to the WiFi firmware.

[0150] S627: The WiFi firmware closes the second WiFi hotspot based on the instruction to close the second WiFi hotspot.

[0151] Based on the WiFi hotspot management method under scenario 2, when the first STA and the third STA are connected to the first WiFi hotspot and the second WiFi hotspot has no STA connection, the first STA and the third STA connected to the first WiFi hotspot are switched to the second WiFi hotspot by roaming, and then the first WiFi hotspot without STA connection is closed. When neither the first STA nor the third STA is switched to the second WiFi hotspot, the second WiFi hotspot without STA connection is closed. Alternatively, when the first STA is not switched to the second WiFi hotspot and the third STA is switched to the second WiFi hotspot, the third STA connected to the second WiFi hotspot is switched to the first WiFi hotspot by roaming, and then the second WiFi hotspot without STA connection is closed. The number of WiFi hotspots running synchronously is thereby reduced, thereby reducing the power consumption of the AP. In addition, since the working frequency band of the first WiFi hotspot is lower than the working frequency band of the second WiFi hotspot, shutting down the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance. Shutting down the second WiFi hotspot and turning on the first WiFi hotspot is conducive to compatibility with a wider frequency band range, thereby improving WiFi compatibility.

[0152] Figure 7 This is a schematic diagram of an AP interface in scenario 2 provided as an example.

[0153] like Figure 7 As shown, the AP displays a hotspot management interface, and displays device connection information on the hotspot management interface, where the device connection information includes the number of connected devices. Exemplarily, when 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 under scenario 2, when the AP turns off at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged or increases.

[0154] Scene 3

[0155] Scenario description: When the AP starts the first WiFi hotspot and the second WiFi hotspot, no STA is connected to the first WiFi hotspot, and the second STA is connected to the second WiFi hotspot.

[0156] The difference between scenario 3 and scenario 1 is that there is no STA connection to the first WiFi hotspot.

[0157] Figure 8 This is a timing diagram of a WiFi hotspot management method under scenario three provided by 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, after a preset time period, the WiFi Setting module sends a command to close the first WiFi hotspot to the WiFi Service module.

[0160] S802, the WiFi Service module sends a command to close the first WiFi hotspot to the WiFi driver.

[0161] S803, the WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.

[0162] S804: The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.

[0163] Based on the WiFi hotspot management method under scenario three, when there is no STA connection to the first WiFi hotspot and the second STA is connected to the second WiFi hotspot, the first WiFi hotspot without STA connection is turned off. This reduces the number of WiFi hotspots running synchronously, thereby reducing the power consumption of the AP. In addition, since the working frequency band of the first WiFi hotspot is lower than the working frequency band of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance.

[0164] Fig. 9 The diagram is a schematic diagram of an AP interface under scenario three provided by an example.

[0165] like Fig. 9 As shown, the AP displays a hotspot management interface, and displays device connection information on the hotspot management interface, where the device connection information includes the number of connected devices. Exemplarily, when there is no STA connected to the first WiFi hotspot and the second STA is connected to the second WiFi hotspot, the number of connected STAs is 1. Based on the WiFi hotspot management method under scenario three, when the AP turns off at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged.

[0166] Scene 4

[0167] Scenario description: When the AP starts the first WiFi hotspot and the second WiFi hotspot, there is no STA connection to the first WiFi hotspot and the second WiFi hotspot.

[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 roughly the same as the WiFi hotspot management method in scenario 3.

[0169] Fig.10 This is a timing diagram of a WiFi hotspot management method under scenario 4 provided by an example.

[0170] like Fig.10 As shown, the WiFi hotspot management method includes the following steps:

[0171] 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.

[0172] S1002, the WiFi Service module sends a command to close the first WiFi hotspot to the WiFi driver.

[0173] S1003, the WiFi driver sends a command to close the first WiFi hotspot to the WiFi firmware.

[0174] S1004: The WiFi firmware closes the first WiFi hotspot based on the instruction to close the first WiFi hotspot.

[0175] Based on the WiFi hotspot management method under scenario 4, when there is no STA connection to both the first WiFi hotspot and the second WiFi hotspot, the first WiFi hotspot is turned off. This reduces the number of WiFi hotspots running simultaneously, thereby reducing the power consumption of the AP. In addition, since the working frequency band of the first WiFi hotspot is lower than the working frequency band of the second WiFi hotspot, turning off the first WiFi hotspot and turning on the second WiFi hotspot is conducive to improving the data transmission rate of the WiFi service, thereby improving the WiFi performance.

[0176] Fig.11 The diagram is a schematic diagram of an AP interface in scenario 4 provided as an example.

[0177] like Fig.11 As shown, the AP displays a hotspot management interface, and displays device connection information on the hotspot management interface, where the device connection information includes the number of connected devices. Exemplarily, when no STA is connected to the first WiFi hotspot and the second WiFi hotspot, the number of connected STAs is 0. Based on the WiFi hotspot management method under scenario 4, when the AP turns off at least one WiFi hotspot, the number of connected STAs displayed on the hotspot management interface remains unchanged.

[0178] Fig.12 The following is a schematic diagram of the hardware structure of an AP provided as an example.

[0179] like Fig.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, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc.

[0180] 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.

[0181] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processor (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0182] 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.

[0183] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0184] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an Inter-Integrated Circuit (I2C) interface, an Inter-Integrated Circuit Sound (I2S) interface, a Pulse Code Modulation (PCM) interface, a Universal Asynchronous Receiver / Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a General-Purpose Input / Output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and / or a Universal Serial Bus (USB) interface, etc.

[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 groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the AP.

[0186] 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 achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[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 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 to implement the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0188] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally 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 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0189] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes the camera serial interface (CSI), the display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to realize the shooting function of the AP. The processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the AP.

[0190] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0191] The USB interface 130 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the AP, and can also be used to transfer data between the AP and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0192] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation of the AP. In other embodiments of the present application, the AP may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0193] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of an AP. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0194] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193 and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. 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.

[0195] 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.

[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 a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0197] 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 (LowNoise Amplifier, LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. 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.

[0198] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. 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.

[0199] The wireless communication module 160 can provide wireless communication solutions including wireless local area network (WLAN) (such as WiFi network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. applied on AP. 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, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate and amplify it, and convert it into electromagnetic waves for radiation through antenna 2.

[0200] In some embodiments, the antenna 1 of the AP is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the AP can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include Global System For Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM and / or IR technology, etc. GNSS 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 AP implements the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0202] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the AP may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0203] The AP can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.

[0204] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0205] 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 may 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.

[0206] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the AP is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0207] Video codecs are used to compress or decompress digital videos. An AP can support one or more video codecs. In this way, an AP can play or record videos in multiple encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0208] NPU is a neural network (NN) computing processor. It can quickly process input information and continuously self-learn by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain. NPU can realize applications such as intelligent cognition of AP, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0209] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the AP. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.

[0210] 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 storage (Universal Flash Storage, UFS), etc. The processor 110 executes various functional applications and data processing of the AP by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0211] The AP can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.

[0212] 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 arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0213] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The AP can listen to music or listen to a hands-free call through the speaker 170A.

[0214] 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 receive the voice by placing the receiver 170B close to the human ear.

[0215] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The AP can be provided with at least one microphone 170C. In other embodiments, the AP can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the AP can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording function, etc.

[0216] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm Open Mobile Terminal Platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.

[0217] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The AP may receive key input and generate key signal input related to user settings and function control of the AP.

[0218] 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.

[0219] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.

[0220] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the AP by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The AP can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The AP interacts with the network through the SIM card to implement functions such as calls and data communications. 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.

[0221] It is to be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0222] The embodiment of the present application also 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.

[0223] Computer-readable storage media include volatile and nonvolatile, 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 (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory or other memory, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), digital versatile disc (Digital Versatile Disc, DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0224] 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, and various changes can be made within the knowledge scope of 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

  • Control method of wireless access network, network equipment and storage medium

    CN110582108A

  • Hot spot control method and device, terminal equipment and storage medium

    CN112261710A

  • WiFi roaming method and device, mobile terminal and storage medium

    CN112449401A

Cited By

  • Mobile hotspot control method and electronic equipment

    CN118714549A

  • A control method for a mobile hotspot and an electronic device

    CN118714549B