Network connection control method, and terminal device and storage medium

By obtaining and judging the hotspot information of surrounding Wi-Fi networks, automatic network switching of terminal devices is achieved, which solves the problem of low network speed caused by fixed connections of terminal devices, and improves the quality of network connections and user experience.

WO2024255371A1PCT designated stage expired Publication Date: 2024-12-19HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082793
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-14
Filing Date
2024-03-20
Publication Date
2024-12-19

AI Technical Summary

Technical Problem

When the terminal device is fixedly connected to a Wi-Fi network, the network speed is low, and the automatic switching of the Wi-Fi network cannot be achieved, affecting the user's Internet experience.

Method used

By obtaining the hot information of Wi-Fi networks in different frequency bands around, and judging and prompting the user to switch to a network with higher network speeds or better signal quality, the network connection of the terminal device can be automatically switched.

Benefits of technology

It improves the network speed and signal quality of the terminal equipment, ensures that users have the best network connection experience, and avoids the problem of poor network performance caused by fixed connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082793_19122024_PF_FP_ABST
    Figure CN2024082793_19122024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a network connection control method, and a terminal device and a storage medium. The method comprises: when a terminal device is connected to a first network, acquiring network hot spot information of a second network, wherein the network rate of the second network is higher than the network rate of the first network; if the acquired network hot spot information of the second network meets a preset condition, sending a prompt message to prompt the presence of a network hot spot of the second network to allow the connection of a user, such that the user can conveniently and manually switch a network, to which the terminal device is connected, to the second network with a higher network rate or a better network signal quality, thereby improving the network rate and network signal quality of the terminal device; and after the prompt message is sent, if it is detected that the terminal device is not connected to the second network within a preset time, automatically connecting the terminal device to the second network, so as to automatically switch the network of the terminal device to the second network, such that the terminal device can be connected to the network with the highest rate.
Need to check novelty before this filing date? Find Prior Art

Description

Network connection control method, terminal device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to a Chinese patent application filed with the Chinese Patent Office on June 14, 2023, with application number 202310708990.3 and application name “Network connection control method, terminal device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of communications, and in particular to a network connection control method, a terminal device, and a storage medium. Background Art

[0004] Existing terminal devices can be connected to different Wi-Fi networks, for example, they can be connected to a 2.4G network or a 5G network. However, when using terminal devices, users often fix the terminal devices to one frequency band, such as fixing the terminal devices to a 2.4G network or a 5G network. However, the performance of Wi-Fi networks in different frequency bands varies. For example, the network rate of the 2.4G network is lower than the network rate of the 5G network, and the penetration and signal radiation capabilities of the 5G network are lower than those of the 2.4G network. If the terminal device is fixedly connected to the 2.4G network, it will not be able to obtain the high network speed service of the 5G network. If the terminal device is fixedly connected to the 5G network, then when the 5G network signal is blocked, the penetration and radiation capabilities of the 5G network signal are weakened, resulting in a low network rate, which affects the user's Internet experience.

[0005] Summary of the Invention

[0006] In view of the above, it is necessary to provide a network connection control method, electronic device and storage medium to solve the technical problem that a terminal device is fixedly connected to a Wi-Fi network, resulting in an inability to switch to a Wi-Fi network when the network rate of the Wi-Fi network is low.

[0007] In a first aspect, an embodiment of the present application provides a network connection control method, which is applied in a terminal device, and the method includes: when the terminal device is connected to a first network, obtaining network hotspot information of a second network, the network rate of the second network is higher than the network rate of the first network, the first network and the second network are networks of different frequency bands in at least one dual-band router, and the at least one dual-band router separately sets the network hotspot of the first network and the network hotspot of the second network; if it is determined that the network hotspot information of the second network meets a preset condition, a prompt message is issued to indicate the existence of a network hotspot of the second network; if it is detected that the terminal device is not connected to the second network within a preset time after the prompt message is issued, the terminal device is connected to the second network. In the above scheme, when the terminal device is connected to the first network, if the network hotspot information of the second network obtained meets the preset condition, a prompt message is issued to indicate the existence of a network hotspot of the second network for the user to connect to, thereby facilitating the user to manually switch the network connected to the terminal device to the second network with a higher network rate or better network signal quality, thereby improving the network rate and network signal quality of the terminal device. In addition, if after the prompt message is sent, it is detected that the terminal device has not been connected to the second network within a preset time, the terminal device will be automatically connected to the second network, thereby automatically switching the terminal device's network to the second network, so that the terminal device can connect to the network with the highest speed.

[0008] In one embodiment of the present application, obtaining the network hotspot information of the second network includes: receiving broadcast information sent by a network device of the second network; and parsing the network hotspot information of the second network from the broadcast information, wherein the network hotspot information of the second network includes a device identification number of the network device of the second network, an identification number of the network hotspot of the second network, and a network identification number of the second network. In the above solution, the terminal device obtains the network hotspot information of the second network by scanning the surrounding broadcast information.

[0009] In one embodiment of the present application, the method further includes: obtaining a device identification number of a network device of the first network, an identification number of a network hotspot of the first network, and a network identification number of the first network.

[0010] In one embodiment of the present application, the determination that the network hotspot information of the second network meets the preset condition includes: if the device identification number of the network device of the second network is the same as the device identification number of the network device of the first network, and the identification number of the network hotspot of the second network is the same as the identification number of the network hotspot of the first network, determining that the network hotspot information of the second network meets the preset condition. In the above scheme, if the device identification number of the network device of the second network is the same as the device identification number of the network device of the first network, and the identification number of the network hotspot of the second network is the same as the identification number of the network hotspot of the first network, it can be determined that the second network and the first network are from the same network device, which facilitates the terminal device to switch between Wi-Fi networks under the same network device.

[0011] In one embodiment of the present application, the determination that the network hotspot information of the second network meets the preset condition includes: if the device identification number of the network device of the second network is different from the device identification number of the network device of the first network, but the network identification number of the second network matches the network identification number of the first network, determining that the network hotspot information of the second network meets the preset condition. In the above scheme, if the device identification number of the network device of the second network is different from the device identification number of the network device of the first network, but the network identification number of the second network matches the network identification number of the first network, it indicates that the second network and the first network belong to the same user's network, which facilitates the mobile phone to switch between the first network and the second network.

[0012] In an embodiment of the present application, the network identification number of the second network matches the network identification number of the first network, including: the network identification number of the second network has some fields identical to those of the network identification number of the first network.

[0013] In one embodiment of the present application, connecting the terminal device to the second network includes: if it is detected that the terminal device is in the screen-off state, obtaining the login password of the first network; sending a connection request carrying the login password of the first network to the network hotspot of the second network, and connecting to the network hotspot of the second network after the login password is verified. In the above solution, the terminal device is connected to the network hotspot of the second network when the terminal device is in the screen-off state, thereby achieving automatic connection or switching of networks without the user's perception.

[0014] In one embodiment of the present application, after sending a connection request carrying the login password of the first network to the network hotspot of the second network, and connecting to the network hotspot of the second network after the login password is verified, the method further includes: disconnecting the terminal device from the second network and recording the network hotspot information of the second network in the network list; sending a connection request carrying the login password of the first network to the network hotspot of the first network, and connecting to the network hotspot of the first network after the login password is verified. In the above technical solution, after disconnecting the terminal device from the second network, the terminal device reconnects to the network hotspot of the first network to avoid affecting the networking behavior of the user of the terminal device.

[0015] In one embodiment of the present application, after disconnecting the terminal device from the second network, the method further includes prompting the user that the terminal device has automatically selected a hotspot of the second network for connection, and prompting the user to connect the terminal device to the second network by selecting the network hotspot information of the second network recorded in the network list. In the above technical solution, the user can be prompted to connect the terminal device to the second network with a better network speed.

[0016] In one embodiment of the present application, after disconnecting the terminal device from the second network, the method further includes: if it is detected that the network speed of the terminal device has dropped to a preset speed value while connected to the first network, connecting the terminal device to the second network. In the above technical solution, if it is detected that the network speed of the terminal device has dropped to a preset speed value while connected to the first network, the terminal device can be automatically connected to the second network with a higher network speed, thereby increasing the network speed of the terminal device.

[0017] In one embodiment of the present application, after disconnecting the terminal device from the second network, the method further includes: when connected to the first network, if it is detected that the network signal quality of the terminal device has degraded to a preset signal quality value, connecting the terminal device to the second network. In the above technical solution, when it is detected that the network signal quality of the terminal device has degraded to a preset signal quality value when connected to the first network, the terminal device can be automatically connected to the second network with better network signal quality, thereby improving the network speed of the terminal device.

[0018] In one embodiment of the present application, connecting the terminal device to the second network includes: if it is detected that the terminal device is in a screen-off state, obtaining the login password of the first network from the network list; sending a connection request to the network hotspot of the second network using the login password of the first network, and connecting to the network hotspot of the first network after verification of the connection request fails. In the above technical solution, if the connection request sent to the network hotspot of the second network fails to be verified, the terminal device is connected to the network hotspot of the first network to ensure that the terminal device can normally connect to the network.

[0019] In one embodiment of the present application, the obtaining of the network hotspot information of the second network includes: obtaining the network signal strength of the second network, and obtaining the network hotspot information of the second network when the network signal strength is less than a preset signal strength value. In the above technical solution, when the terminal device is connected to the second network, if the network signal strength of the second network is less than a preset signal strength value, the network hotspot information of the first network is obtained, and when the obtained network hotspot information of the first network meets the preset conditions, a prompt message is issued to prompt that there is a network hotspot of the first network for the user to connect, thereby facilitating the user to manually switch the network connected to the terminal device to the first network with a higher network speed or better network signal quality, thereby improving the network speed and network signal quality of the terminal device. In addition, if it is detected that the terminal device has not been connected to the first network within the preset time, the terminal device is automatically connected to the first network, thereby automatically switching the network of the terminal device to the first network, so that the terminal device is connected to the optimal network.

[0020] In one embodiment of the present application, the sending of a prompt message to indicate the existence of a network hotspot of the second network includes: prompting the existence of a network hotspot of the second network through notification information, the notification message including a link address of a network connection interface, and the network connection interface is the network connection interface of the second network.

[0021] In a second aspect, an embodiment of the present application provides a terminal device comprising a processor and a memory; wherein the processor is connected to the memory; the memory is used to store program instructions; and the processor is used to read the program instructions stored in the memory to implement the above-mentioned network connection control method.

[0022] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores program instructions. When the program instructions are executed on a terminal device, the terminal device executes the above-mentioned network connection control method.

[0023] In addition, the technical effects brought about by the second to third aspects can be found in the descriptions of the methods of each design in the above method section, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0025] FIG1 is an application scenario diagram of a network connection control method provided in an embodiment of the present application.

[0026] FIG2 is a flowchart of a network connection control method provided in an embodiment of the present application.

[0027] FIG3 is a schematic diagram of notification information provided by an embodiment of the present application.

[0028] FIG4 is a schematic diagram of a network connection interface provided in an embodiment of the present application.

[0029] FIG5 is a flowchart of a network connection control method provided by another embodiment of the present application.

[0030] FIG6 is a schematic diagram of a network setting interface provided in an embodiment of the present application.

[0031] FIG7 is a flowchart of a network connection control method provided by another embodiment of the present application.

[0032] FIG8 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can mean A or B. "And / or" in this application is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, a, b and c.

[0035] Existing terminal devices can connect to different Wi-Fi networks. For example, a dual-band home router supports both the 2.4GHz and 5G bands. The 2.4GHz band provides users with 2.4G network access, while the 5G band is used for 5G network access. However, when using terminal devices, users often permanently connect them to a single frequency band, such as a 2.4G network or a 5G network. However, the performance of different Wi-Fi networks varies. For example, when the network is functioning normally, the network speed of a 2.4G network is lower than that of a 5G network, and the penetration and signal radiation capabilities of a 5G network are lower than those of a 2.4G network. If a terminal device is permanently connected to a 2.4G network, it will not be able to access the high network speed of the 5G network. If a terminal device is permanently connected to a 5G network, the penetration and radiation capabilities of the 5G network will be further weakened if the 5G network signal is blocked, resulting in a low Wi-Fi network speed and affecting the user's Internet experience. Therefore, if the terminal device is fixedly connected to a Wi-Fi network, it is impossible for the terminal device to connect to the optimal network.

[0036] In order to solve the technical problem that a terminal device is fixedly connected to a Wi-Fi network, resulting in the inability to switch to a Wi-Fi network when the network rate of the Wi-Fi network is low. An embodiment of the present application provides a network connection control method. Referring to Figure 1, there is shown an application scenario diagram of the network connection control method provided in an embodiment of the present application. The terminal device 10 can be connected to a first network 20 and a second network 30. The network connection control method is used to control the terminal device 10 to connect to one of the first network 20 or the second network 30. For example, if the network rate of the second network 30 is higher than the network rate of the first network 20, the network connection control method provided in the embodiment of the present application can control the terminal device 10 to connect to the second network 30. If the location of the terminal device 10 changes, resulting in the network rate of the first network 20 being higher than the network rate of the second network 30 at the current location, the network connection control method provided in the embodiment of the present application can control the network connected to the terminal device 10 to switch from the second network 30 to the first network 20, thereby improving the network rate of the terminal device 10. In one embodiment of the present application, the first network 20 and the second network 30 are Wi-Fi networks, for example, the first network 20 is a 2.4G network and the second network 30 is a 5G network, or the first network 20 is a 5G network and the second network 30 is a 2.4G network. This embodiment of the present application is not limited to this. In one embodiment of the present application, the network rate of the first network 20 is higher than the network rate of the second network 30, which means that the network rate of the first network 20 in normal working state is higher than the network rate of the second network 30 in normal working state, for example, the network rate of the 5G network in normal working state is higher than the network rate of the 2.4G network in normal working state. In another embodiment of the present application, the network rate of the first network 20 is higher than the network rate of the second network 30, which means that the network rate of the first network 20 in normal working state is higher than the network rate of the second network 30 in a state of severe network interference, for example, the network rate of the 2.4G network in normal working state is higher than the network rate of the 5G network in a state of severe network interference. The normal working state refers to a state in which the network is not subject to network interference or is subject to a low degree of network interference.In one embodiment of the present application, the terminal device 10 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, and / or a smart city device.

[0037] Referring to Figure 2, a flowchart of a network connection control method provided in one embodiment of the present application is shown. The method disclosed in the embodiment of the present application or the method shown in the flowchart includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchanged with each other, and some steps can also be omitted. Some embodiments will be described below with reference to the accompanying drawings. The following embodiments and features in the embodiments can be combined with each other unless there is a conflict. The network connection control method includes the following steps.

[0038] In step S201, when the terminal device is connected to the first network, it obtains the network hotspot information of the second network, wherein the first network and the second network are networks of different frequency bands in at least one dual-band router, and the at least one dual-band router separately sets the network hotspot of the first network and the network hotspot of the second network.

[0039] For ease of clarity, the following describes the specific implementation of the network connection control method using the example of a mobile phone as the terminal device 10, a 2.4G network as the first network 20, and a 5G network as the second network 30. A dual-band router separately sets up network hotspots for the 2.4G network and the 5G network, so that the mobile phone only connects to the 2.4G network hotspot in the usage scenario. When the mobile phone is connected to the 2.4G network, the network hotspot information of the 2.4G network is recorded in the Wi-Fi saved network list. In one embodiment, the network hotspot information of the 2.4G network may include at least a device identification number of a network device of the 2.4G network, an identification number of a network hotspot of the 2.4G network, and a network identification number of the 2.4G network. The network device may be a router. The router is used to set up a network hotspot. For example, a 2.4G network router is used to set up a network hotspot of the 2.4G network. The device identification number of the network device may be an Organizationally Unique Identifier (OUI) of the network device, which is used to represent an identifier of the network device and is a 32-bit identifier that can be used to uniquely identify a Media Access Control (MAC) address. OUI can be used to identify and distinguish different MAC addresses, and can be used to implement functions such as routing, security authentication, and fault location.

[0040] The identification number of a network hotspot is the Broadcast Service Set Identifier (BSSID), which is an identifier in a Wi-Fi network that can identify a wireless access point (AP) and can be used to represent a unique identifier for a network hotspot. BSSID can be a 6-byte hexadecimal number, for example, it can usually start with a capital letter "G". In a Wi-Fi network, each terminal device (such as a computer, smartphone, etc.) requires a unique BSSID to identify itself. When a terminal device is connected to an AP, it can send a BSSID request to the AP and obtain a BSSID that matches the request. Once the BSSID is obtained, the terminal device can use the BSSID to communicate with other devices.

[0041] The network identification number is the Service Set Identifier (SSID), which is used to represent the name of the network and distinguish different service sets. In network communications, a service set refers to a group of related network services that can share the same characteristics such as protocols, ports, and data formats. The service set identifier allows network devices to identify and select the appropriate service set based on a specific identifier, thereby achieving efficient data transmission and routing. The service set identifier usually consists of a 32-bit binary number and can be expressed as a hexadecimal number or a dotted decimal number. For example, a common service set identifier is the first 32 bits of an IPv4 address, or it can be a unique 16-bit UUID value.

[0042] For example, a mobile phone can obtain the OUI of a 2.4G network device, the BSSID of a 2.4G network hotspot, and the SSID of a 2.4G network from the list of saved Wi-Fi networks. When connected to a 2.4G network, the mobile phone scans for nearby hotspots and obtains broadcast information from 5G network routers. The mobile phone parses the obtained broadcast information to obtain 5G network hotspot information. 5G network hotspot information includes the OUI of a 5G network device, the BSSID of a 5G network hotspot, and the 5G network SSID.

[0043] Step S202: Determine whether the hotspot information of the second network satisfies a preset condition. In one embodiment of the present application, if the hotspot information of the second network satisfies the preset condition, step S203 is executed; if the hotspot information of the second network does not satisfy the preset condition, the process returns to step S201 to continue acquiring the hotspot information of the next second network.

[0044] In one embodiment of the present application, the terminal device can determine whether the network hotspot information of the second network meets the preset conditions by comparing the OUI, BSSID, and / or SSID corresponding to the second network with the OUI, BSSID, and / or SSID corresponding to the first network. For example, the mobile phone obtains the device identification number OUI, network hotspot identification number BSSID, and network identification number SSID of the 2.4G network router from the Wi-Fi saved network list.

[0045] In one embodiment of the present application, if the device identification number of the network device of the 5G network is the same as the device identification number of the network device of the 2.4G network, and the identification number of the network hotspot of the 5G network is the same as the identification number of the network hotspot of the 2.4G network, it is determined that the network hotspot information of the 5G network meets the preset conditions. In an embodiment of the present application, if the device identification number of the network device of the 5G network is the same as the device identification number of the network device of the 2.4G network, and the identification number of the network hotspot of the 5G network is the same as the identification number of the network hotspot of the 2.4G network, it can be determined that the 5G network and the 2.4G network are from the same network device (such as a router), which facilitates the mobile phone to switch between Wi-Fi networks under the same network device.

[0046] In another embodiment, if the device identification number of the router of the 5G network is different from the device identification number of the network device of the 2.4G network, but the network identification number of the 5G network matches the network identification number of the 2.4G network, it is determined that the network hotspot information of the 5G network meets the preset conditions. In one embodiment of the present application, the network identification number of the 5G network matches the network identification number of the 2.4G network, which may mean that the network identification number of the 5G network is the same as some fields of the network identification number of the 2.4G network. For example, the network identification number of the 5G network is "WXW0101", and the network identification number of the 2.4G network is "WXW0001". Since the network identification number "WXW0101" is the same as the partial field "WXW0" of the network identification number "WXW0001", it can be determined that the network hotspot information of the 5G network meets the preset conditions. In an embodiment of the present application, if the device identification number of the router of the 5G network is different from the device identification number of the network device of the 2.4G network, but the network identification number of the 5G network matches the network identification number of the 2.4G network, it indicates that the 5G network or the 2.4G network belongs to the same user's network, then the login passwords of the 5G network and the 2.4G network are often set to the same, which makes it convenient for the mobile phone to switch between the 5G network and the 2.4G network.

[0047] Step S203: Sending a prompt message to prompt the existence of a network hotspot of the second network.

[0048] In one embodiment of the present application, the terminal device may output a prompt message to inform the user that there is a network hotspot of the second network that can be connected. For example, the mobile phone prompts the existence of a network hotspot of the 5G network through a notification message. Reference is made to Figure 3, which is a schematic diagram of notification information provided in one embodiment of the present application. The notification message prompts that there is a network hotspot of the 5G network that can be connected to the mobile phone. Exemplarily, the notification message may include a link address of a network connection interface. The network connection interface may be a network connection interface of a 5G network. By clicking on the link address, the network connection interface shown in Figure 4 is displayed. The network connection interface includes a user name and login password. After the user enters the correct user name and login password in the network connection interface, the mobile phone can be connected to the 5G network. In one embodiment of the present application, the mobile phone may display the notification message in the form of a pop-up window, or may display the notification message in the notification bar of the mobile phone.

[0049] Step S204: After sending the prompt message, detect whether the terminal device is connected to the second network; if it is detected that the terminal device is not connected to the second network within a preset time, connect the terminal device to the second network.

[0050] In one embodiment of the present application, a timer is counted after the mobile phone sends a prompt message. When the time for sending the prompt message reaches a preset time, if it is detected that the network hotspot information of the 5G network is not recorded in the Wi-Fi saved network list of the mobile phone, and it is determined that the mobile phone has not been connected to the 5G network within the preset time, the mobile phone is connected to the network hotspot of the 5G network. The preset time can be set according to user needs. For example, the preset time can be set to a few minutes (such as 5 minutes). In actual applications, the preset time is not limited. It should be noted that when the mobile phone is connected to the network hotspot of the 5G network, the connection to the 2.4G network will be disconnected.

[0051] In one embodiment of the present application, if the phone is detected to be in the off state, the login password for the 2.4G network is obtained from the network list. The phone sends a connection request with the login password for the 2.4G network to the 5G network hotspot. The 5G network router responds to the connection request and verifies the login password. After the 5G network router successfully verifies the login password, the phone connects to the 5G network hotspot.

[0052] In one embodiment of the present application, if the 5G network router fails to verify the login password, the mobile phone sends a connection request with the 2.4G network login password to the 2.4G network hotspot to connect to the 2.4G network hotspot. In one embodiment of the present application, the network speed of the 5G network is higher than the network speed of the 2.4G network.

[0053] In one embodiment of the present application, the mobile phone obtains the screen-off status through the isScreenOn() function in the PowerManager class. If the isScreenOn() function returns a true value, it indicates that the mobile phone is currently in the screen-on state; if the isScreenOn() function returns a false value, it indicates that the mobile phone is currently in the screen-off state.

[0054] In one embodiment of the present application, the mobile phone can send a connection request carrying the login password of the 2.4G network to the network hotspot of the 5G network in silent mode with the screen off. In this way, the network can be automatically connected or switched without the user's awareness, which will not cause interference to the user. It can also ensure that the mobile phone is always connected to a high-speed network, ensuring the network speed when the user uses the mobile phone to surf the Internet, thereby improving the user's Internet experience.

[0055] In an embodiment of the present application, when a terminal device is connected to a first network, if the obtained network hotspot information of a second network meets a preset condition, a prompt message is issued to indicate the existence of a network hotspot of the second network for the user to connect to, thereby facilitating the user to manually switch the network connected to the terminal device to a second network with a higher network speed or better network signal quality, thereby improving the network speed and network signal quality of the terminal device. In addition, if it is detected that the terminal device has not connected to the second network within a preset time after the prompt message is issued, the terminal device is automatically roamed to the second network, thereby automatically switching the terminal device's network to the second network, allowing the terminal device to connect to the network with the highest speed.

[0056] 5 is a flowchart of a network connection control method according to another embodiment of the present application, wherein the method comprises the following steps.

[0057] In step S401, when the terminal device is connected to the 2.4G network, it obtains the network hotspot information of the 2.4G network and the network hotspot information of the 5G network.

[0058] In one embodiment of the present application, the 2.4G network and the 5G network are networks of different frequency bands in at least one dual-band router, and the at least one dual-band router is separately configured with a network hotspot of the 2.4G network and a network hotspot of the 5G network, so that the terminal device only connects to the network hotspot of the 2.4G network in the usage scenario. The network hotspot information of the 5G network includes the device identification number OUI of the router of the 5G network, the identification number BSSID of the network hotspot of the 5G network, and the network identification number SSID of the 5G network. The network hotspot information of the 2.4G network includes the OUI of the router of the 2.4G network, the BSSID of the network hotspot of the 2.4G network, and the SSID of the 2.4G network.

[0059] The specific implementation content of step S401 refers to the specific implementation content of step S201 in Figure 2, and will not be repeated here.

[0060] Step S402: Determine whether the OUI of the 2.4G network router is the same as the OUI of the 5G network router. If the OUI of the 2.4G network router is different from the OUI of the 5G network router, execute step S403; otherwise, if the OUI of the 2.4G network router is the same as the OUI of the 5G network router, execute step S404.

[0061] Step S403, determine whether the SSID of the router of the 2.4G network matches the SSID of the router of the 5G network. If the SSID of the router of the 2.4G network matches the SSID of the router of the 5G network, execute step S405, otherwise, if the SSID of the router of the 2.4G network does not match the SSID of the router of the 5G network, the process returns to step S401, and re-compares the network hotspot information of the 2.4G network and the network hotspot information of another 5G network. In one embodiment of the present application, the network hotspot information of the 5G network that does not match the network hotspot information of the 2.4G network after comparison can be recorded, and when the network hotspot information of the 2.4G network and the network hotspot information of another 5G network are compared next time, the recorded network hotspot information of the 5G network is removed from the compared network hotspot information. In one embodiment of the present application, whether the SSID of the router of the 2.4G network matches the SSID of the router of the 5G network can be to determine whether some fields of the SSID of the router of the 2.4G network and the SSID of the router of the 5G network are the same.

[0062] Step S404: Determine whether the BSSID of the 2.4G network router is the same as the BSSID of the 5G network router. If the BSSID of the 2.4G network router is the same as the BSSID of the 5G network router, execute step S405. Otherwise, if the BSSID of the 2.4G network router is different from the BSSID of the 5G network router, the process returns to step S401 and re-compares the network hotspot information of the 2.4G network with the network hotspot information of the other 5G network.

[0063] Step S405: Send a prompt message to indicate the existence of a 5G network hotspot.

[0064] In one embodiment of the present application, the prompt message may be "There is a 5G network with better network quality nearby that can be connected to, which can provide a better network experience."

[0065] The specific implementation content of step S405 can refer to the specific implementation content of step S203 in Figure 2, and will not be repeated here.

[0066] Step S406, within a preset time after the time when the prompt message is sent, determine whether the network hotspot information of the 5G network is recorded in the Wi-F saved network list. If the network hotspot information of the 5G network is recorded in the Wi-F saved network list, the process ends. Otherwise, if the network hotspot information of the 5G network is not recorded in the Wi-F saved network list, execute step S407. In an embodiment of the present application, if the network hotspot information of the 5G network is recorded in the Wi-F saved network list, it means that the mobile phone has had a behavioral event of switching from a 2.4G network to a 5G network. Therefore, when it is determined that the network hotspot information of the 5G network is recorded in the Wi-F saved network list, the user's current networking behavior is maintained, and the connection is not sent to the 5G network to avoid interference with the user.

[0067] Step S407: Send a connection request to the 5G network.

[0068] In one embodiment of the present application, if it is detected that the terminal device is in the screen-off state, the login password of the 2.4G network is obtained, and a connection request carrying the login password of the 2.4G network is sent to the network hotspot of the 5G network.

[0069] Step S408: Determine whether the device is connected to a 5G network. If not, proceed to step S409; if connected, proceed to step S410.

[0070] Step S409: Send a connection request to the network hotspot of the 2.4G network to connect to the network hotspot of the 2.4G network.

[0071] In one embodiment of the present application, the terminal device sends a connection request carrying a login password of the 2.4G network to the network hotspot of the 2.4G network to connect to the network hotspot of the 2.4G network. After connecting to the network hotspot of the 2.4G network, the terminal device does not prompt the user for the connection result.

[0072] Step S410: disconnect the terminal device from the 5G network, record the network hotspot information of the 5G network in the Wi-Fi saved network list, and connect to the network hotspot of the 2.4G network.

[0073] In one embodiment of the present application, after disconnecting the terminal device from the 5G network, the terminal device reconnects to the 2.4G network hotspot to avoid affecting the terminal device user's network connection behavior. Specifically, the terminal device sends a connection request with the 2.4G network login password to the 2.4G network hotspot, and connects to the 2.4G network hotspot after the login password is verified.

[0074] Step S411 prompts the user that the 5G network hotspot has been automatically selected for connection, and prompts the user to switch the state of the terminal device connected to the 2.4G network to the state of the terminal device connected to the 5G network by selecting the network hotspot information of the 5G network recorded in the Wi-Fi saved network list.

[0075] In one embodiment of the present application, the reminder system of the terminal device prompts the user that the hotspot of the 5G network has been automatically selected for connection, and prompts the user that the terminal device can switch the state of connection between the terminal device and the 2.4G network to the state of connection between the terminal device and the 5G network by selecting the network hotspot information of the 5G network recorded in the Wi-F saved network list. Referring to Figure 6, a schematic diagram of a network setting interface provided in an embodiment of the present application is shown. The network setting interface includes a Wi-F saved network list. The Wi-F saved network list includes the SSID of the 5G network and the SSID of the 2.4G network. The user switches the state of connection between the terminal device and the 2.4G network to the state of connection between the terminal device and the 5G network by selecting the SSID of the 5G network in the network setting interface.

[0076] In one embodiment of the present application, after step S410, the method further includes: when the terminal device is connected to the 2.4G network, if it is detected that the network rate of the terminal device is reduced to a preset speed value, connecting the terminal device to a network hotspot of the 5G network.

[0077] In one embodiment of the present application, after step S410, the method further includes: when the terminal device is connected to the 2.4G network, if it is detected that the network signal quality of the terminal device is reduced to a preset signal quality value, the terminal device is connected to the network hotspot of the 5G network. In one embodiment of the present application, the network signal quality can be represented by the network signal strength. If the network signal strength is greater, the network signal quality is better. In one embodiment of the present application, the preset speed value and the preset signal quality value can be pre-set in the terminal device. When the terminal device is turned on, the preset speed value and the preset signal quality value can be automatically loaded. The preset speed value and the preset signal quality value can be set or modified as needed, and the embodiment of the present application does not limit this.

[0078] In an embodiment of the present application, when a terminal device is connected to a 2.4G network, if the obtained network hotspot information of the 5G network meets the preset conditions, a prompt message is issued to indicate that there is a network hotspot of the 5G network for the user to connect to, thereby facilitating the user to manually switch the network connected to the terminal device to a 5G network with a higher network speed or better network signal quality, thereby improving the network speed and network signal quality of the terminal device. In addition, if it is detected that the terminal device has not been connected to the 5G network within a preset time, the terminal device can be automatically connected to the 5G network, thereby automatically switching the terminal device's network to the 5G network, allowing the terminal device to connect to the optimal network without the user's perception.

[0079] 7 is a flowchart of a network connection control method according to another embodiment of the present application, wherein the method comprises the following steps.

[0080] Step S601: When the terminal device is connected to the 5G network, the terminal device obtains the network signal strength of the 5G network terminal device and determines whether the network signal strength is less than a preset signal strength value.

[0081] In one embodiment of the present application, the 2.4G network and the 5G network are networks of different frequency bands in at least one dual-band router, and the at least one dual-band router is separately configured with a network hotspot for the 2.4G network and a network hotspot for the 5G network, so that the terminal device only connects to the network hotspot of the 5G network in the usage scenario. In one embodiment of the present application, if it is detected that the network signal strength of the terminal device is less than a preset signal strength value, step S602 is executed. If it is detected that the network signal strength of the terminal device is greater than or equal to the preset signal strength value, step S601 may be repeated until it is detected that the network signal strength of the terminal device is less than the preset signal strength value. In one embodiment of the present application, the preset signal strength value is -75dbm.

[0082] Step S602: Obtain network hotspot information of the 5G network and the network hotspot information of the 2.4G network.

[0083] When a terminal device connects to a 5G network, it records the 5G network's hotspot information in the Wi-Fi saved networks list. This 5G network hotspot information includes the OUI of the 5G network device, the BSSID of the 5G network hotspot, and the SSID of the 5G network. The terminal device can obtain the OUI of the 5G network device, the BSSID of the 5G network hotspot, and the SSID of the 5G network from the Wi-Fi saved networks list.

[0084] When a terminal device connects to a 5G network, it scans nearby hotspots and receives broadcast information from 2.4G network routers. The terminal device parses the broadcast information to determine the 2.4G network hotspot information. 5G network hotspot information includes the OUI of the 2.4G network device, the BSSID of the 2.4G network hotspot, and the SSID of the 2.4G network.

[0085] Step S603: Determine whether the OUI of the 5G network router is the same as the OUI of the 2.4G network router. If the OUI of the 5G network router is different from the OUI of the 2.4G network router, execute step S604; if the OUI of the 5G network router is the same as the OUI of the 2.4G network router, execute step S605.

[0086] Step S604: Determine whether the SSID of the 5G network router matches the SSID of the 2.4G network router. If so, proceed to step S606; if not, the SSID of the 5G network router does not match the SSID of the 2.4G network router, and the process returns to step S601.

[0087] In one embodiment of the present application, whether the SSID of the router of the 5G network matches the SSID of the router of the 2.4G network can be determined by judging whether some fields of the SSID of the router of the 5G network are the same as those of the SSID of the router of the 2.4G network.

[0088] Step S605: Determine whether the BSSID of the 5G network router is the same as the BSSID of the 2.4G network router. For example, determine whether the first eight digits of the BSSID of the 5G network router are the same as the first eight digits of the BSSID of the 2.4G network router. If the BSSID of the 5G network router is the same as the BSSID of the 2.4G network router, execute step S606; if the BSSID of the 5G network router is different from the BSSID of the 2.4G network router, the process returns to step S601.

[0089] Step S606: Send a prompt message to indicate that there is a 2.4G network hotspot.

[0090] Step S607, at a preset time after the time when the prompt message is sent, determine whether the network hotspot information of the 2.4G network is recorded in the Wi-F saved network list. If the network hotspot information of the 2.4G network is recorded in the Wi-F saved network list, the process ends. Otherwise, if the network hotspot information of the 2.4G network is not recorded in the Wi-F saved network list, execute step S608. In an embodiment of the present application, if the network hotspot information of the 2.4G network is recorded in the Wi-F saved network list, it means that the mobile phone has had a behavioral event of switching from a 5G network to a 2.4G network. Therefore, when it is determined that the network hotspot information of the 2.4G network is recorded in the Wi-F saved network list, the user's current networking behavior is maintained, and the connection is not sent to the 2.4G network to avoid interference with the user.

[0091] Step S608: Send a connection request to the 2.4G network.

[0092] In one embodiment of the present application, if it is detected that the terminal device is in the screen-off state, the login password of the 5G network is obtained, and a connection request carrying the login password of the 5G network is sent to the network hotspot of the 2.4G network.

[0093] Step S609: Determine whether the device is connected to a 2.4G network. If not, proceed to step S610; if connected, proceed to step S611.

[0094] Step S610: Send a connection request to the network hotspot of the 5G network to connect to the network hotspot of the 5G network.

[0095] In one embodiment of the present application, the terminal device sends a connection request carrying a login password of the 5G network to the network hotspot of the 5G network to connect to the network hotspot of the 5G network. After connecting to the network hotspot of the 5G network, the terminal device does not prompt the user for the connection result.

[0096] Step S611: disconnect the terminal device from the 2.4G network, record the network hotspot information of the 2.4G network in the Wi-Fi saved network list, and connect to the network hotspot of the 5G network.

[0097] In one embodiment of the present application, after disconnecting the terminal device from the 2.4G network, the terminal device reconnects to the 5G network hotspot to avoid affecting the user behavior of the terminal device. Specifically, the terminal device sends a connection request with the 5G network login password to the 5G network hotspot, and connects to the 5G network hotspot after the login password is verified.

[0098] Step S612 prompts the user that the hotspot of the 2.4G network has been automatically selected for connection, and prompts the user to switch the state of the terminal device connected to the 5G network to the state of the terminal device connected to the 2.4G network by selecting the network hotspot information of the 2.4G network recorded in the Wi-Fi saved network list.

[0099] In one embodiment of the present application, the reminder system application of the terminal device prompts the user that the hotspot of the 2.4G network has been automatically selected for connection, and prompts the user that the terminal device can switch the connection state of the 5G network to the connection state of the 2.4G network by selecting the network hotspot information of the 2.4G network recorded in the Wi-Fi saved network list.

[0100] In one embodiment of the present application, after step S611, the method further includes: when the terminal device is connected to the 5G network, if it is detected that the network rate of the terminal device is reduced to a preset speed value, connecting the terminal device to a network hotspot of the 2.4G network.

[0101] In one embodiment of the present application, after step S611, the method further includes: when the terminal device is connected to the 5G network, if it is detected that the network signal quality of the terminal device is reduced to a preset signal quality value, connecting the terminal device to the network hotspot of the 2.4G network. In one embodiment of the present application, the preset speed value and the preset signal quality value are preset in the terminal device. The preset speed value and the preset signal quality value are loaded when the terminal device is turned on. The preset speed value and the preset signal quality value can be set as needed, and this application does not impose any restrictions on this.

[0102] In an embodiment of the present application, when a terminal device is connected to a 5G network, if the network signal strength of the 5G network is less than a preset signal strength value, network hotspot information of the 2.4G network is obtained. When the obtained network hotspot information of the 2.4G network meets the preset conditions, a prompt message is issued to indicate that there is a network hotspot of the 2.4G network for the user to connect to, thereby facilitating the user to manually switch the network connected to the terminal device to a 2.4G network with a higher network speed or better network signal quality, thereby improving the network speed and network signal quality of the terminal device. In addition, if it is detected that the terminal device has not been connected to the 2.4G network within a preset time, the terminal device is automatically connected to the 2.4G network, thereby automatically switching the terminal device's network to the 2.4G network, so that the terminal device is connected to the optimal network.

[0103] The electronic device 100 involved in an embodiment of the present application is introduced below. Referring to FIG8 , a hardware structure diagram of the electronic device 100 in an embodiment of the present application is shown. The electronic device 100 may be the terminal device 10 in FIG1 .

[0104] In this embodiment, the electronic device 100 may include 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. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0105] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0106] 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 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). The different processing units may be independent devices or integrated into one or more processors.

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

[0108] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0109] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0110] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.

[0111] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

[0112] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0113] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.

[0114] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.

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

[0116] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices 100, such as AR devices.

[0117] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0118] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device 100 via the power management module 141.

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

[0120] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0121] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0122] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, 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.

[0123] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0124] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) applied to the electronic device 100, such as wireless fidelity (Wi-Fi) networks, Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0125] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (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. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0126] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0127] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0128] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0129] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0130] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal 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 electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0131] 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 electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0132] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0133] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0134] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0135] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.; non-volatile memory may include disk storage devices and flash memory.

[0136] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage cell potential level; universal flash storage (UFS) and embedded multi media card (eMMC) can be divided into UFS and eMMC according to the storage specification.

[0137] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.

[0138] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .

[0139] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory.

[0140] The internal memory 121 or the external memory interface 120 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 110. The one or more computer programs include multiple instructions. When the multiple instructions are executed by the processor 110, the network connection control method in the above embodiment can be executed on the electronic device 100 to implement the network connection control function of the electronic device 100.

[0141] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0142] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0143] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.

[0144] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.

[0145] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.

[0146] The headphone jack 170D is used to connect a wired headphone and can be a USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0147] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.

[0148] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0149] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.

[0150] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.

[0151] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic device 100, enabling applications such as switching between landscape and portrait modes and pedometers.

[0152] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.

[0153] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0154] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.

[0155] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0156] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.

[0157] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.

[0158] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.

[0159] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

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

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

[0162] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 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 electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0163] This embodiment further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on the electronic device 100, the electronic device 100 executes the above-mentioned related method steps to implement the network connection control method in the above-mentioned embodiment.

[0164] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the network connection control method in the above-mentioned embodiment.

[0165] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory to enable the chip to execute the network connection control method in the above-mentioned method embodiments.

[0166] Among them, the electronic device 100, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0167] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0168] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0169] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0170] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0171] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0172] The above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit the present application. Although the present application has been described in detail with reference to the above preferred embodiments, those skilled in the art should understand that modifications or equivalent replacements of the technical solutions of the present application should not depart from the spirit and scope of the technical solutions of the present application.

Claims

1. A network connection control method, applied in a terminal device, characterized in that: The method comprises: When the terminal device is connected to the first network, the terminal device obtains network hotspot information of the second network, and the network rate of the second network is higher than the network rate of the first network; If it is determined that the network hotspot information of the second network meets the preset condition, a prompt message is sent to prompt that there is a network hotspot of the second network; If it is detected that the terminal device is not connected to the second network within a preset time after the prompt message is sent, the terminal device is connected to the second network.

2. The network connection control method according to claim 1, characterized in that: The obtaining of the network hotspot information of the second network includes: receiving broadcast information sent by the network device of the second network; The network hotspot information of the second network is parsed out from the broadcast information, where the network hotspot information of the second network includes a device identification number of a network device of the second network, an identification number of a network hotspot of the second network, and a network identification number of the second network.

3. The network connection control method according to claim 2, characterized in that: The method further comprises: Obtain a device identification number of a network device of the first network, an identification number of a network hotspot of the first network, and a network identification number of the first network.

4. The network connection control method according to claim 3, characterized in that: The determining that the network hotspot information of the second network meets the preset condition includes: If the device identification number of the network device of the second network is the same as the device identification number of the network device of the first network, and the identification number of the network hotspot of the second network is the same as the identification number of the network hotspot of the first network, it is determined that the network hotspot information of the second network meets the preset conditions.

5. The network connection control method according to claim 3, characterized in that: The determining that the network hotspot information of the second network meets the preset condition includes: If the device identification number of the network device of the second network is different from the device identification number of the network device of the first network, but the network identification number of the second network matches the network identification number of the first network, it is determined that the network hotspot information of the second network meets the preset conditions.

6. The network connection control method according to claim 5, characterized in that: The matching of the network identification number of the second network with the network identification number of the first network comprises: The network identification number of the second network has some fields identical to those of the network identification number of the first network.

7. The network connection control method according to claim 1, characterized in that: The connecting the terminal device to the second network comprises: If it is detected that the terminal device is in a screen-off state, obtaining a login password for the first network; Send a connection request carrying the login password of the first network to the network hotspot of the second network, and connect to the network hotspot of the second network after the login password is verified.

8. The network connection control method according to claim 7, characterized in that: After sending a connection request carrying the login password of the first network to the network hotspot of the second network, and connecting with the network hotspot of the second network after the login password is verified, the method further includes: Disconnecting the terminal device from the second network, and recording the network hotspot information of the second network in the network list; A connection request carrying a login password of the first network is sent to a network hotspot of the first network, and the network hotspot of the first network is connected after the login password is verified.

9. The network connection control method according to claim 8, characterized in that: After disconnecting the terminal device from the second network, the method further includes: The user is prompted that the terminal device has automatically selected the hotspot of the second network for connection, and the user is prompted that the terminal device can be connected to the second network by selecting the network hotspot information of the second network recorded in the network list.

10. The network connection control method according to claim 8, characterized in that: After disconnecting the terminal device from the second network, the method further includes: When connected to the first network, if it is detected that the network rate of the terminal device is reduced to a preset speed value, the terminal device is connected to the second network.

11. The network connection control method according to claim 8, characterized in that: After disconnecting the terminal device from the second network, the method further includes: When connected to the first network, if it is detected that the network signal quality of the terminal device is reduced to a preset signal quality value, the terminal device is connected to the second network.

12. The network connection control method according to claim 1, characterized in that: The connecting the terminal device to the second network comprises: If it is detected that the terminal device is in a screen-off state, obtaining the login password of the first network from the network list; A connection request is sent to the network hotspot of the second network using the login password of the first network, and the network hotspot of the first network is connected after the connection request fails to be verified.

13. The network connection control method according to claim 1, characterized in that: The acquiring the network hotspot information of the second network includes: acquiring the network signal strength of the second network, and acquiring the network hotspot information of the second network when the network signal strength is less than a preset signal strength value.

14. The network connection control method according to any one of claims 1 to 13, characterized in that: The sending of a prompt message to prompt the existence of a network hotspot of the second network includes: The existence of a network hotspot of the second network is prompted through a notification message, and the notification message includes a link address of a network connection interface, and the network connection interface is the network connection interface of the second network.

15. A terminal device, characterized in that: It includes a processor and a memory; wherein the processor is connected to the memory; The memory is used to store program instructions; The processor is used to read the program instructions stored in the memory to implement the network connection control method according to any one of claims 1 to 14.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program instructions, and when the program instructions are executed on the terminal device, the terminal device executes the network connection control method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Hot spot network switching method and terminal equipment

    CN106714279A

  • Network switching method, system and device and storage medium

    CN113543250A

  • Wireless fidelity (Wi-Fi) roaming switching method and device

    CN116056174A

  • Network Handover Method and Apparatus

    US20180332517A1