Network connection method and device, electronic equipment and storage medium

By determining the first priority of the wireless network in the electronic device and combining it with the user's preference to determine the second priority, the problem of poor user experience when the electronic device automatically selects the wireless network is solved, and a network connection that better meets the user's needs is achieved.

CN122073714APending Publication Date: 2026-05-22BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2024-11-22
Publication Date
2026-05-22

AI Technical Summary

Technical Problem

In existing technologies, when electronic devices automatically select wireless networks based on network ratings, they may choose networks that are not needed by the user, resulting in a degraded user experience.

Method used

By determining the first priority of the wireless network and combining it with the user's preference to determine the second priority, a target wireless network is selected for connection.

Benefits of technology

This increases the likelihood that the selected target wireless network will meet the user's needs, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122073714A_ABST
    Figure CN122073714A_ABST
Patent Text Reader

Abstract

The invention relates to a network connection method and device, electronic equipment and a storage medium. The network connection method comprises the following steps: determining a first priority corresponding to each wireless network in a to-be-selected wireless network set, responding to a preference wireless network existing in the to-be-selected wireless network set, and aiming at each preference wireless network, determining a first priority corresponding to each wireless network in the to-be-selected wireless network set; based on the preference degree corresponding to the preference wireless network and / or the first priority corresponding to the preference wireless network, determining a second priority corresponding to the preference wireless network, and according to the second priority corresponding to each preference wireless network and the first priority corresponding to each non-preference wireless network, determining the preference degree corresponding to each non-preference wireless network; and selecting a first target wireless network for connection from the to-be-selected wireless network set, and establishing connection with the first target wireless network. According to the invention, the target wireless network is selected according to the first priority and the second priority with the same dimension, so that the possibility that the selected connected target wireless network meets user requirements is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of wireless communication, and more particularly to network connection methods, apparatus, electronic devices, and storage media. Background Technology

[0002] Wireless networks are widely used in various office and daily life scenarios due to their advantages of stable and fast communication.

[0003] In related technologies, electronic devices automatically select and connect to wireless networks based on network ratings. However, this can easily result in the selected wireless network not being the one the user needs, thus reducing the user experience. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a network connection method, apparatus, electronic device, and storage medium.

[0005] According to a first aspect of the present disclosure, a network connection method is provided, comprising: determining a first priority corresponding to each wireless network in a set of wireless networks to be selected, wherein the first priority is used to represent the probability that a wireless network can be selected for connection in a set of predetermined dimensions; in response to the existence of a preferred wireless network in the set of wireless networks to be selected, determining a second priority corresponding to each preferred wireless network based on the degree of preference corresponding to the preferred wireless network and / or the first priority corresponding to the preferred wireless network, wherein the preferred wireless network is a wireless network that a user wishes to switch to, the degree of preference of the preferred wireless network characterizes the degree of demand of the user to switch to the corresponding preferred wireless network, and the second priority uses the same dimension as the first priority to represent the probability that a wireless network can be selected for connection; selecting a first target wireless network for connection in the set of wireless networks to be selected according to the second priority corresponding to each preferred wireless network and the first priority corresponding to each non-preferred wireless network, and establishing a connection with the first target wireless network, wherein the non-preferred wireless network is a wireless network in the set of wireless networks to be selected other than the preferred wireless network.

[0006] In one implementation, determining the second priority of a preferred wireless network based on the preference level and / or the first priority of the preferred wireless network includes: in response to the existence of a corresponding priority for the preference level of the preferred wireless network, setting the priority corresponding to the preference level as the second priority of the preferred wireless network; or in response to the existence of a corresponding priority adjustment amount and priority adjustment tendency for the preference level of the preferred wireless network, adjusting the first priority of the preferred wireless network according to the priority adjustment amount and priority adjustment tendency to obtain the second priority of the preferred wireless network, wherein the priority adjustment amount represents the degree of adjustment for the first priority, and the adjustment tendency includes increasing or decreasing.

[0007] In another implementation, in response to the preference level corresponding to the preferred wireless network having a corresponding priority, the priority corresponding to the preference level is set as the second priority corresponding to the preferred wireless network, including: in response to the preference level corresponding to the preferred wireless network being a first type of preference level, the third priority corresponding to the first type of preference level is set as the second priority corresponding to the preferred wireless network, where the first type of preference level indicates that the user's demand to switch to the preferred wireless network is the highest, and the third priority indicates that the wireless network can be selected for connection the most; in response to the preference level corresponding to the preferred wireless network being a second type of preference level, the fourth priority corresponding to the second type of preference level is set as the fourth priority corresponding to the preferred wireless network, where the second type of preference level indicates that the user's demand to switch to the preferred wireless network is the lowest, and the fourth priority indicates that the wireless network can be selected for connection the least.

[0008] In another implementation, in response to a priority adjustment amount corresponding to the preference level of the preferred wireless network, the first priority of the preferred wireless network is adjusted according to the priority adjustment amount corresponding to the preference level to obtain a second priority of the preferred wireless network. This includes: in response to a preference level of the preferred wireless network being a third type of preference level, increasing the first priority of the preferred wireless network according to the first priority adjustment amount corresponding to the third type of preference level, and determining the increased first priority as the second priority of the preferred wireless network. The increased first priority is lower than the third priority, where the third priority indicates the highest probability that the wireless network can be selected for connection; in response to a preference level of the preferred wireless network being a fourth type of preference level, adjusting the second priority according to the second priority of the fourth type of preference level... The adjustment amount lowers the first priority corresponding to the preferred wireless network, and the lowered first priority is determined as the second priority corresponding to the preferred wireless network. The lowered first priority is higher than or equal to the fourth priority, which indicates that the wireless network has the lowest probability of being selected for connection. Among them, the third type of preference degree indicates that the user's demand to switch to the preferred wireless network is lower than the first type of preference degree but higher than the fourth type of preference degree. The fourth type of preference degree indicates that the user's demand to switch to the preferred wireless network is lower than the third type of preference degree but higher than the second type of preference degree. The first type of preference degree indicates that the user's demand to switch to the preferred wireless network is the highest, and the second type of preference degree indicates that the user's demand to switch to the preferred wireless network is the lowest.

[0009] In another embodiment, the first priority corresponding to the wireless network is a continuously updated parameter. After establishing a connection with the first target wireless network, the method further includes: determining the latest first priority corresponding to each wireless network in the set of wireless networks to be selected; in response to network switching based on the first priority corresponding to the wireless network, selecting a second target wireless network to be switched in the set of wireless networks to be selected according to the latest first priority corresponding to each wireless network in the set of wireless networks to be selected, and establishing a connection with the second target wireless network.

[0010] In another embodiment, the method further includes: responding to network switching based on a first priority and preference level corresponding to a wireless network, determining a latest second priority corresponding to a preferred wireless network based on the preference level corresponding to the preferred wireless network and / or the latest first priority corresponding to the preferred wireless network; selecting a second target wireless network for connection from the set of wireless networks to be selected according to the latest second priority corresponding to each preferred wireless network and the latest first priority corresponding to each non-preferred wireless network, and establishing a connection with the second target wireless network.

[0011] According to a second aspect of the present disclosure, a network connection apparatus is provided, comprising: a determining unit, configured to determine a first priority corresponding to each wireless network in a set of selectable wireless networks, wherein the first priority is used to represent the probability of a wireless network being selected for connection using a set dimension; a processing unit, configured to, when there is a preferred wireless network in the set of selectable wireless networks, determine a second priority corresponding to each preferred wireless network based on the degree of preference corresponding to the preferred wireless network and / or the first priority corresponding to the preferred wireless network, wherein the preferred wireless network is a wireless network that the user wishes to switch to, the degree of preference of the preferred wireless network characterizes the degree of demand of the user to switch to the corresponding preferred wireless network, and the second priority uses the same dimension as the first priority to represent the probability of a wireless network being selected for connection; and, according to the second priority corresponding to each preferred wireless network and the first priority corresponding to each non-preferred wireless network, select a first target wireless network for connection in the set of selectable wireless networks and establish a connection with the first target wireless network, wherein the non-preferred wireless networks are wireless networks in the set of selectable wireless networks other than the preferred wireless networks.

[0012] In one implementation, the processing unit determines a second priority corresponding to a preferred wireless network based on the preference level and / or the first priority corresponding to the preferred wireless network through one or more of the following methods: in response to the existence of a corresponding priority for the preference level of the preferred wireless network, setting the priority corresponding to the preference level as the second priority corresponding to the preferred wireless network; or in response to the existence of a corresponding priority adjustment amount and priority adjustment tendency for the preference level of the preferred wireless network, adjusting the first priority corresponding to the preferred wireless network according to the priority adjustment amount and priority adjustment tendency to obtain the second priority corresponding to the preferred wireless network, wherein the priority adjustment amount represents the degree of adjustment for the first priority, and the adjustment tendency includes increasing or decreasing.

[0013] In another implementation, the processing unit sets the priority corresponding to the preference level to the second priority corresponding to the preferred wireless network through one or more of the following methods: In response to the preference level corresponding to the preferred wireless network being a first type of preference level, the third priority corresponding to the first type of preference level is set to the second priority corresponding to the preferred wireless network, where the first type of preference level indicates that the user's need to switch to the preferred wireless network is the highest, and the third priority indicates that the wireless network is most likely to be selected for connection; In response to the preference level corresponding to the preferred wireless network being a second type of preference level, the fourth priority corresponding to the second type of preference level is set to the fourth priority corresponding to the preferred wireless network, where the second type of preference level indicates that the user's need to switch to the preferred wireless network is the lowest, and the fourth priority indicates that the wireless network is least likely to be selected for connection.

[0014] In another embodiment, the processing unit adjusts the first priority corresponding to the preferred wireless network based on a priority adjustment amount and priority adjustment tendency corresponding to the preference level in one or more of the following ways to obtain a second priority corresponding to the preferred wireless network: In response to the preference level corresponding to the preferred wireless network being a third type of preference level, the first priority corresponding to the preferred wireless network is increased according to the first priority adjustment amount corresponding to the third type of preference level, and the increased first priority is determined as the second priority corresponding to the preferred wireless network. The increased first priority is lower than the third priority, where the third priority indicates the highest probability that the wireless network can be selected for connection; In response to the preference level corresponding to the preferred wireless network being a fourth type of preference level, the second priority is adjusted according to the second priority adjustment amount corresponding to the fourth type of preference level. The first priority corresponding to the preferred wireless network is reduced, and the reduced first priority is determined as the second priority corresponding to the preferred wireless network. The reduced first priority is higher than or equal to the fourth priority, which indicates that the wireless network has the lowest probability of being selected for connection. Among them, the third type of preference degree indicates that the user's demand to switch to the preferred wireless network is lower than the first type of preference degree but higher than the fourth type of preference degree. The fourth type of preference degree indicates that the user's demand to switch to the preferred wireless network is lower than the third type of preference degree but higher than the second type of preference degree. The first type of preference degree indicates that the user's demand to switch to the preferred wireless network is the highest, and the second type of preference degree indicates that the user's demand to switch to the preferred wireless network is the lowest.

[0015] In another embodiment, the processing unit is further configured to, with the first priority corresponding to the wireless network being a continuously updated parameter, after establishing a connection with the first target wireless network, perform the following: determine the latest first priority corresponding to each wireless network in the set of wireless networks to be selected; in response to network switching based on the first priority corresponding to the wireless network, select a second target wireless network to be switched in the set of wireless networks to be selected according to the latest first priority corresponding to each wireless network in the set of wireless networks to be selected, and establish a connection with the second target wireless network.

[0016] In another embodiment, the processing unit is further configured to: in response to network switching based on a first priority and preference level corresponding to a wireless network, determine a latest second priority corresponding to a preferred wireless network based on the preference level corresponding to the preferred wireless network and / or the latest first priority corresponding to the preferred wireless network; select a second target wireless network for connection from the set of wireless networks to be selected according to the latest second priority corresponding to each preferred wireless network and the latest first priority corresponding to each non-preferred wireless network, and establish a connection with the second target wireless network.

[0017] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0018] A processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the network connectivity method described in the first aspect or any embodiment of the first aspect.

[0019] According to a fourth aspect of the present disclosure, a storage medium is provided that stores instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the network connection method described in the first aspect or any one of the embodiments of the first aspect.

[0020] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: This disclosure first obtains a first priority corresponding to the wireless network based on network performance, and then determines a second priority corresponding to the wireless network by combining user preference with the first priority. Once the first or second priority of the wireless network is determined, a target wireless network is selected for connection by comparing the first and second priorities with the same dimensions. This method increases the likelihood that the selected target wireless network meets the user's needs, thereby improving the user experience.

[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0022] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0023] Figure 1 This is a flowchart illustrating a network connection method according to an exemplary embodiment.

[0024] Figure 2 This is a flowchart illustrating a method for determining a second priority in a network connection method according to an exemplary embodiment.

[0025] Figure 3 This is a flowchart illustrating a method for setting a priority corresponding to a preference level to a second priority corresponding to a preferred wireless network, according to an exemplary embodiment.

[0026] Figure 4 This is a flowchart illustrating a network connection method according to an exemplary embodiment, in which an electronic device adjusts the first priority corresponding to the preferred wireless network according to the priority adjustment amount corresponding to the preference level, to obtain the second priority corresponding to the preferred wireless network.

[0027] Figure 5 This is a flowchart illustrating a method for switching wireless networks based on a first priority selection in a network connection method according to an exemplary embodiment.

[0028] Figure 6 This is a flowchart illustrating a network connection method according to an exemplary embodiment, showing whether to select a wireless network for connection based on a first priority.

[0029] Figure 7 This is a flowchart illustrating a method for determining the latest second priority corresponding to a preferred wireless network in a network connection method according to an exemplary embodiment.

[0030] Figure 8 This is a flowchart illustrating a network connection method in which an electronic device selects and switches to a target wireless network when it is in a disconnected state, according to an exemplary embodiment.

[0031] Figure 9 This is a flowchart illustrating a network connection method according to an exemplary embodiment, showing an electronic device in a connected state selecting and switching a target wireless network.

[0032] Figure 10 This is a block diagram of a network connection device according to an exemplary embodiment.

[0033] Figure 11 This is a block diagram illustrating an apparatus for network connectivity according to an exemplary embodiment.

[0034] Figure 12 This is a block diagram illustrating an apparatus for network connectivity according to an exemplary embodiment. Detailed Implementation

[0035] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure.

[0036] The network connection method disclosed herein is applied to scenarios where electronic devices select or switch wireless networks. For example, in scenarios where a user needs to select and connect an electronic device to a target wireless network between different networks.

[0037] In related technologies, when an electronic device has its automatic network selection function enabled, the lower-level network selection module acquires network information of the detectable wireless networks to be switched to. This network information includes multiple metrics, such as received signal strength, frequency, power, network speed, status, and communication quality. Received signal strength is measured using the Received Signal Strength Indication (RSSI). RSSI values ​​are typically negative, expressed in decibels per milliwatt (dBm). The closer the RSSI value is to 0, the higher the signal strength; the lower the value, the lower the signal strength. The electronic device scores each wireless network based on this information, using the score to indicate priority. The default scorer (ThroughputScorer) calculates a base score based on the RSSI and adds bonus points based on throughput, whether it is a recently selected network, whether it matches the current network, whether it is a secure network, whether it is an unmetered network, whether it is a saved network, whether it is an untrusted network, and whether it is a non-connected network. Electronic devices calculate a network score based on a default scorer's base score and bonus score, automatically selecting the highest-scoring wireless network from a set of candidate networks for connection. However, network information cannot fully reflect user needs. Wireless networks often have specific application scenarios; for example, two different networks may be dedicated to transmitting different types of content. While automatically selecting the best-performing network can achieve this, it's often not the network the user needs. For instance, when a user moves from an office area to a residential area, they might need to connect their electronic device to a lower-scoring residential network, but the device might automatically connect to the higher-scoring office network, degrading the user experience. Allowing users to customize their network preferences during selection and switching would enable personalized network selection, while retaining the basic selection and switching logic for networks without personalized settings, thus preserving the user experience.

[0038] In view of this, this disclosure provides a network connection method that characterizes the user's demand level through preference level. After pre-determining the priority of each wireless network, a target wireless network is selected for connection based on the preference level. Through this disclosure, in scenarios where electronic devices select or switch wireless networks, the electronic device combines wireless network performance and preference level for selection, which can increase the likelihood that the selected target wireless network meets the user's needs and improve the user experience.

[0039] In this embodiment, the disclosure is applied to scenarios where electronic devices select or switch wireless networks. Electronic devices include various devices such as smartphones, laptops and tablets, desktop computers, smart home devices, and wearable devices. In this scenario, the electronic device collects network information from wireless networks in real time to obtain a set of wireless networks to be selected. Priorities can be determined by analyzing the network information from the set of wireless networks to be selected using a comprehensive analysis method or the electronic device's default scoring mechanism. For example, the network scores obtained from the analysis can be used as priorities. Of course, this disclosure does not limit the dimensions of the priorities.

[0040] The comprehensive analysis and evaluation method includes assigning a final network score based on established rules, considering factors such as signal strength, frequency interference, packet loss rate, latency, data rate and retransmission, security level, and weighted scoring. A higher score indicates a higher likelihood of the wireless network being selected for connection. The defined dimensions can also be in the form of scores, levels, or proportions.

[0041] For ease of description, the priority of each wireless network in the set of wireless networks to be selected is referred to as the first priority, and the priority of the preferred wireless network determined based on the degree of preference and / or the first priority of the preferred wireless network is referred to as the second priority.

[0042] In this embodiment of the disclosure, Figure 1 This is a flowchart illustrating a network connection method according to an exemplary embodiment. Figure 1 As shown, the network connection method includes the following steps.

[0043] In step S11, the first priority of each wireless network in the set of wireless networks to be selected is determined.

[0044] The first priority is used to represent the likelihood of a wireless network being selected for connection, based on a defined dimension. For example, the defined dimension could be a network rating, with different network ratings representing different first priorities.

[0045] In step S12, in response to the existence of a preferred wireless network in the set of wireless networks to be selected, for each preferred wireless network, a second priority corresponding to the preferred wireless network is determined based on the degree of preference corresponding to the preferred wireless network and / or the first priority corresponding to the preferred wireless network.

[0046] Here, the preferred wireless network is the wireless network that the user expects to switch to. The degree of preference for the preferred wireless network represents the user's need to switch to the corresponding preferred wireless network. The second priority uses the same dimension as the first priority to represent the probability that the wireless network can be selected for connection. For example, the second priority can be a network score, with different network scores representing different second priorities.

[0047] In this embodiment of the disclosure, the user can pre-set a wireless network as a preferred network. When the user obtains a set of wireless networks to be selected, it can be determined whether the preferred network exists within that set. If the preferred network is confirmed to exist, the electronic device determines a second priority based on a first priority that reflects the user's level of preference and / or network performance. The determined second priority comprehensively reflects both the performance of the wireless network and the user's level of preference, and it employs the same dimensions as the first priority.

[0048] In step S13, based on the second priority corresponding to each preferred wireless network and the first priority corresponding to each non-preferred wireless network, a first target wireless network is selected from the set of wireless networks to be selected for connection, and a connection is established with the first target wireless network.

[0049] Among them, the non-preferred wireless networks are wireless networks in the set of wireless networks to be selected that are not the preferred wireless networks.

[0050] In this embodiment, the electronic device selects a wireless network for connection based on a first priority and a second priority that comprehensively reflects the performance of the wireless network and the user's needs. The explanation further considers a scenario where the set of wireless networks includes a first wireless network and a second wireless network. The first wireless network may be, for example, a wireless network with a higher first priority, and the second wireless network may be, for example, a wireless network with a lower first priority. If the second wireless network is a preferred wireless network and the first wireless network is a non-preferred wireless network, and the second priority of the second wireless network is higher than the first priority of the first wireless network, then the electronic device selects the second wireless network as the target wireless network for connection.

[0051] The network connection method provided in this disclosure improves the likelihood that the selected target wireless network meets the user's needs by using a first priority and a second priority that comprehensively reflects the performance of the wireless network and the user's needs, thereby enhancing the user experience. For example, there may be a first wireless network with high signal quality and a second wireless network with low signal quality. Because the first wireless network has high signal quality, the electronic device will choose to connect to the first wireless network even if the user needs to connect to the second wireless network. In this case, the user needs to manually select the second wireless network to connect to the electronic device. However, by combining preference and the first priority to select the target wireless network, the electronic device can connect to the second wireless network in this situation. For example, the second wireless network can be set as the preferred wireless network to increase the likelihood of it being selected, allowing the electronic device to connect to it in this situation. If the second wireless network is the preferred wireless network, but its second priority is not higher than the first priority of the first wireless network, the electronic device selects the first wireless network as the target wireless network for connection. For example, when the user moves from the area covered by the second wireless network to the area covered by the first wireless network, even if the second priority of the second wireless network is not higher than the first priority of the first wireless network, the electronic device chooses to connect to the first wireless network. Users can set different preference levels for different wireless networks, allowing electronic devices to choose the target wireless network based on their needs when selecting from multiple wireless networks. This increases the likelihood that the selected wireless network will meet the user's requirements, thereby improving the user experience.

[0052] It is understandable that users typically have varying levels of need for different wireless networks. For example, considering factors such as wireless network coverage, service quality, brand, and additional services, users may have a desire to connect to or not connect to a particular network. The likelihood of an electronic device connecting to a specific wireless network can be increased or decreased by assigning a corresponding second priority to preferred wireless networks. This disclosure further illustrates the method for determining the second priority of preferred wireless networks through the following embodiments.

[0053] In one embodiment, Figure 2 This is a flowchart illustrating a method for determining a second priority in a network connection method according to an exemplary embodiment. See also... Figure 2 The second priority corresponding to the preferred wireless network is determined through the following steps:

[0054] In step S21, it is confirmed that a preferred wireless network exists in the set of wireless networks to be selected.

[0055] In step S22, in response to the existence of a priority corresponding to the preference level of the preferred wireless network, the priority corresponding to the preference level is set to the second priority corresponding to the preferred wireless network.

[0056] In step S23, in response to the preference level corresponding to the preferred wireless network, there is a corresponding priority adjustment amount and priority adjustment tendency. Based on the priority adjustment amount and priority adjustment tendency corresponding to the preference level, the first priority corresponding to the preferred wireless network is adjusted to obtain the second priority corresponding to the preferred wireless network.

[0057] In this embodiment of the disclosure, the priority adjustment amount represents the degree of adjustment for the first priority, and the adjustment tendency includes increasing or decreasing.

[0058] In this embodiment, a scenario where the likelihood of a certain wireless network being selected needs to be improved is illustrated using a third wireless network as an example. The third wireless network can be, for example, a wireless network whose selection probability needs to be increased. The user can pre-set the third wireless network as a preferred wireless network. When the third wireless network appears in the set of wireless networks to be selected, the likelihood of the third wireless network being selected can be increased according to the user's pre-set preference level. For example, the priority corresponding to the preference level of the third wireless network can be set to the second priority corresponding to the third wireless network, or a first priority adjustment amount can be added to the first priority corresponding to the third wireless network to obtain the second priority. Alternatively, the priority of other wireless networks besides the third wireless network can be lowered to allow the electronic device to connect to the third wireless network. This embodiment does not specifically limit the specific adjustment method. The user can select any wireless network from the obtained set of wireless networks to be selected as a preferred wireless network, or can set the connected wireless network as a preferred wireless network by setting a preference level. When setting a wireless network as a preferred wireless network, the electronic device can set a preference level, a priority corresponding to the preference level, a priority adjustment amount corresponding to the preference level, and / or a priority adjustment tendency for the preferred wireless network.

[0059] Through the above embodiments, by setting the priority corresponding to the preference level as the second priority corresponding to the preferred wireless network, or by determining the second priority corresponding to the preferred wireless network based on the priority adjustment amount and priority adjustment tendency, the likelihood of electronic devices automatically selecting and connecting to the wireless network that the user needs is increased, thereby improving the user experience. For example, in a home, there are two wireless networks with similar quality and identical network scores, meaning that the first priority corresponding to the two wireless networks is the same. In this scenario, the first user prefers one of the wireless networks. The second user, in order to reduce the load on the first user's preferred wireless network, prefers to connect to the other wireless network. Therefore, the first user and the second user can determine the second priority corresponding to the preferred wireless network based on the priority adjustment amount and priority adjustment tendency, and connect to their respective preferred wireless networks, instead of relying on the first priority to connect to the same wireless network.

[0060] It is understandable that wireless networks are often configured to perform specific functions. For example, in a smart home network where multiple devices are connected, even if the first priority of that wireless network is lower than that of other wireless networks, the user still needs to connect to that wireless network. That is, in practical applications, there are situations where users prioritize connecting to a specific wireless network. This disclosure further illustrates, through the following embodiments, that setting the priority corresponding to the degree of preference as the second priority of the preferred wireless network.

[0061] In yet another embodiment, Figure 3 This is a flowchart illustrating a method for setting a priority corresponding to a preference level to a second priority corresponding to a preferred wireless network, according to an exemplary embodiment.

[0062] See Figure 3 The following steps are used to set the priority corresponding to the preference level to the second priority corresponding to the preferred wireless network:

[0063] In step S31, it is confirmed that a preferred wireless network exists in the set of wireless networks to be selected.

[0064] In step S32, the preference level type corresponding to the preferred wireless network is confirmed.

[0065] In step S33, the preference level corresponding to the preferred wireless network is confirmed to be the first type of preference level, and the third priority corresponding to the first type of preference level is set to the second priority corresponding to the preferred wireless network.

[0066] The first preference level indicates the user's highest level of desire to switch to their preferred wireless network, while the third priority level indicates the highest probability that the wireless network will be selected for connection.

[0067] In step S34, the preference level corresponding to the preferred wireless network is confirmed to be the second type of preference level, and the fourth priority corresponding to the second type of preference level is set as the fourth priority corresponding to the preferred wireless network.

[0068] The second preference level indicates that the user's desire to switch to the preferred wireless network is the lowest, while the fourth priority level indicates that the wireless network is the least likely to be selected for connection.

[0069] In this embodiment, a scenario where a fourth wireless network needs to be prioritized for connection to a certain wireless network is further explained. The fourth wireless network can be, for example, a network that requires priority connection, where multiple smart devices, such as smart home devices, are connected to the same fourth wireless network. In this scenario, even if the first priority of the fourth wireless network is lower than the first priority of other wireless networks in the set of selectable wireless networks, the user still needs to connect the electronic device to the fourth wireless network to control multiple smart devices. The user can prioritize connecting to the fourth wireless network by setting it as a preferred wireless network on the electronic device and setting its preference level to a first-class preference level. The first-class preference level corresponds to a third priority. When the fourth wireless network exists in the set of selectable wireless networks, the third priority corresponding to the first-class preference level is set as the second priority of the fourth wireless network. Since the third priority indicates the highest probability of the wireless network being selected for connection, the electronic device will automatically connect to the fourth wireless network. Alternatively, the wireless network to be avoided can be set as a preferred wireless network with a second-class preference level. Since the fourth priority corresponding to the second-class preference level indicates the lowest probability of the wireless network being selected for connection, the electronic device will not connect to the wireless network to be avoided as long as there are other wireless networks in the set of selectable wireless networks available for connection.

[0070] Through the above embodiments, by setting the preferred wireless network as the one that needs to be connected first, and assigning a first-level preference level, the system ensures that users will connect to the preferred wireless network first when possible, thus prioritizing the fulfillment of their needs for wireless network-specific functions. This approach increases the likelihood that the wireless network automatically selected by the electronic device will meet the user's needs, thereby enhancing the user experience.

[0071] In the embodiments of this disclosure, users typically have a certain preference for certain wireless networks, but they do not need to ensure that they prioritize connecting to that wireless network. Instead, they only need to connect to the wireless network if their basic communication needs are met. This disclosure further illustrates, through the following embodiments, how to adjust the first priority corresponding to the preferred wireless network according to the priority adjustment amount corresponding to the preference level, to obtain the second priority corresponding to the preferred wireless network.

[0072] In yet another embodiment, Figure 4 This is a flowchart illustrating a network connection method according to an exemplary embodiment, in which an electronic device adjusts the first priority of a preferred wireless network based on a priority adjustment amount corresponding to the preference level, to obtain a second priority of the preferred wireless network. See also... Figure 4 The second priority of the preferred wireless network can be obtained by adjusting the first priority of the preferred wireless network in the following way:

[0073] In step S41, it is confirmed that a preferred wireless network exists in the set of wireless networks to be selected.

[0074] In step S42, the preference level type corresponding to the preferred wireless network is confirmed.

[0075] In step S43, in response to the preference level corresponding to the preferred wireless network being a third type of preference level, the first priority corresponding to the preferred wireless network is increased according to the first priority adjustment amount corresponding to the third type of preference level, and the increased first priority is determined as the second priority corresponding to the preferred wireless network.

[0076] The first priority after the upgrade is lower than the third priority, and the third priority indicates that the wireless network is most likely to be selected for connection.

[0077] In step S44, in response to the preference level corresponding to the preferred wireless network being a fourth type of preference level, the first priority corresponding to the preferred wireless network is reduced according to the second priority adjustment amount corresponding to the fourth type of preference level, and the reduced first priority is determined as the second priority corresponding to the preferred wireless network.

[0078] The reduced first priority is higher than or equal to the fourth priority, with the fourth priority indicating the lowest probability that the wireless network can be selected for connection.

[0079] Among them, the third type of preference indicates that the user's desire to switch to the preferred wireless network is lower than the first type of preference but higher than the fourth type of preference. The fourth type of preference indicates that the user's desire to switch to the preferred wireless network is lower than the third type of preference but higher than the second type of preference. The first type of preference indicates that the user's desire to switch to the preferred wireless network is the highest, and the second type of preference indicates that the user's desire to switch to the preferred wireless network is the lowest.

[0080] In this embodiment, the electronic device first obtains the first priority corresponding to each wireless network. After obtaining the first priority, the probability of each wireless network being selected can be determined. There is a scenario where the first priority of the network the user needs to connect to is not the highest first priority among the set of wireless networks to be connected to. The wireless network with the highest first priority among the set of wireless networks to be selected can also be understood as the wireless network with the best network performance. Taking the fifth and sixth wireless networks as examples, the scenario where the probability of wireless network selection needs to be adjusted is further explained. The fifth wireless network can be, for example, a wireless network with a large coverage area, whose first priority remains stable within that large coverage area. The sixth wireless network can be, for example, a wireless network with a smaller coverage area, whose first priority is higher than that of the fifth wireless network within that smaller coverage area. If the user deviates from this smaller set range of the sixth wireless network, the first priority of the sixth wireless network will drop significantly. Furthermore, the coverage areas of the fifth and sixth wireless networks overlap. If the first priorities of the fifth and sixth wireless networks are the same or the difference is less than a set value, the electronic device will frequently switch between the fifth and sixth wireless networks during the user's movement, causing network lag and thus reducing the user experience. To address this, the user can ensure network connection stability by setting different preference levels for different networks. For example, a user can pre-set a fifth wireless network as their preferred wireless network, with a preference level of type 3. When selecting a wireless network, the electronic device determines the second priority of the fifth wireless network based on its preference level. If the second priority of the fifth wireless network is higher than the first priority of the sixth wireless network, the electronic device selects the fifth wireless network for connection. If the second priority of the fifth wireless network is still lower than the first priority of the sixth wireless network, the sixth wireless network is selected for connection. Since the electronic device is within a large coverage area of ​​the fifth wireless network, setting it as the preferred wireless network with a preference level of type 3 increases the likelihood of the fifth wireless network being selected. This allows users to maintain a stable communication connection even when moving over large areas, better meeting their needs for stability and wide-range mobility.

[0081] Through the above embodiments, this disclosure adjusts the first priority corresponding to the preferred wireless network by setting a preference level for the wireless network, determines the second priority corresponding to the wireless network, and selects the target wireless network based on the second priority corresponding to the preferred wireless network and the first priority corresponding to the non-preferred wireless network. This increases the likelihood that the selected target wireless network meets the user's needs, thereby improving the user experience. If the set of wireless networks to be selected includes a preferred wireless network, the selection of the wireless network does not completely rely on the first priority. For example, when the set of wireless networks includes multiple wireless networks with different first priorities, if no preferred wireless network is set, the electronic device will automatically select the wireless network with the highest first priority; however, if a preferred wireless network is set, it may not necessarily select the first wireless network.

[0082] In this embodiment, the set of wireless networks to be selected can be obtained through a network nomination process. When the wireless network configuration of the electronic device is enabled, a wireless network scan is performed to obtain network information within a set range. This network information includes data such as received signal strength and frequency. Based on this network information, a network nomination process is performed to obtain the set of wireless networks to be switched to.

[0083] The network nomination process can be configured to nominate networks with the lowest RSSI, for example, -80dBm for the 2.4GHz band and -77dBm for the 5GHz and 6GHz bands. This can be configured using the following overlays: `config_wifi_framework_wifi_score_entry_rssi_threshold_24GHz` defines a minimum RSSI standard when the device attempts to select the optimal 2.4GHz Wi-Fi network connection; `config_wifi_framework_wifi_score_entry_rssi_threshold_5GHz` sets a minimum signal strength requirement when the device attempts to select the optimal 5GHz Wi-Fi network connection; and `config_wifiFrameworkScoreEntryRssiThreshold6ghz` sets a minimum signal strength requirement when the device attempts to select the optimal 6GHz Wi-Fi network connection.

[0084] The nominated wireless networks must also meet the following criteria: not blocked, not indicating that the device cannot use them, and having access permissions set. Unblocked networks include those that have previously failed to connect but were not blocked, and networks not indicating that the device cannot use them include Multi-Band Operation (MBO) networks and Open Connectivity Extensions (OCE) networks. The network nomination procedures used include saved network nomination procedures, recommended network nomination procedures, and externally rated network nomination procedures. Saved network nomination procedures evaluate all saved networks, including saved passpoint subscriptions. Recommended network nomination procedures evaluate all network-recommended passpoint subscriptions provided by the application using the Suggestion Application Programming Interface (Suggestion API). Externally rated network nomination procedures are original equipment manufacturer (OEM) mechanisms used to provide network connectivity options to devices.

[0085] After completing the wireless network nomination and obtaining the set of wireless networks to be switched, network scores can be obtained through the default scorer (ThroughputScorer), with the network score indicating the first priority. The default scorer first calculates a basic score based on the received signal strength index. For example, for the 2.4GHz band, the upper limit of RSSI is -73dBm; for the 5GHz and 6GHz bands, the upper limit of RSSI is -70dBm. This is configured through the following overlays: `config_wifi_framework_wifi_score_low_rssi_threshold_24GHz` defines the low threshold for received signal strength in the 2.4GHz band, `config_wifi_framework_wifi_score_low_rssi_threshold_5GHz` defines the low threshold for received signal strength in the 5GHz band, and `config_wifiFrameworkScoreLowRssiThreshold6ghz` defines the low threshold for received signal strength in the 6GHz band. After calculating the base score using the default scorer, additional scores are calculated based on throughput, whether the network was recently selected by a user or application, whether it matches the current network, whether it is a secure network, a free network, a saved network, an untrusted network, and whether the device is currently connected to another network with an internet connection. The additional score calculated based on throughput is derived from throughput estimates derived from technology, channel frequency, bandwidth, RSSI, channel conditions, spatial stream limit, and other parameters. This throughput-based additional score is configured using the following overlays: `config_wifiFrameworkThroughputBonusNumerator` determines the numerator of the score based on the estimated wireless network throughput, and `config_wifiFrameworkThroughputBonusDenominator` determines the denominator. The denominator must not exceed the upper limit of the score based on the estimated wireless network throughput, as determined by `config_wifiFrameworkThroughputBonusLimit`. The bonus points calculated based on whether a network has been recently selected by a user or application are configured through the following overlay: config_wifiFrameworkLastSelectionMinutes. The bonus points are calculated based on selections within a user-defined time period, indicating that wireless networks that have been selected by users or applications within the defined time period can receive higher bonus points, thereby increasing the likelihood of electronic devices continuously selecting that network within the defined time period.The bonus score calculated based on whether the network matches the current network is configured through the following overlays: `config_wifiFrameworkCurrentNetworkBonusMin` (minimum bonus score for the current network) and `config_wifiFrameworkCurrentNetworkBonusPercent` (percentage bonus score for the current network). This represents the ratio of the bonus score calculated based on the network's received signal strength index and throughput. The bonus score calculated based on whether the network is secure is configured through the following overlay: `config_wifiFrameworkSecureNetworkBonus` (the bonus score for secure networks is higher than that for open networks). The bonus score calculated based on whether the network is free is configured through the following overlay: `config_wifiFrameworkUnmeteredNetworkBonus` (the bonus score for free networks is higher than that for paid networks). The bonus score calculated based on whether the network is saved is configured through the following overlay: `config_wifiFrameworkSavedNetworkBonus` (the bonus score for saved networks is higher than that for unsaved networks). The bonus score calculated based on whether the network is untrusted indicates that the bonus score for untrusted networks is lower than that for any other network. The additional score for whether the electronic device is currently connected to another network with an internet connection means that if the electronic device is currently connected to another network with an internet connection, a score of 0 is given for a network that has never been connected before.

[0086] In this embodiment, the network score obtained by the default scorer represents the first priority as an example. The maximum score for the network score obtained by the default scorer is A. If the preference for the preferred wireless network is of the third level, C points can be added to the network score B to obtain the updated network score D = B + C. The updated network score D is then determined as the second priority corresponding to this preferred wireless network. If the preference for the preferred wireless network is of the fourth level, E points can be subtracted from the network score to obtain the updated network score D = BE. The updated network score D is then determined as the second priority corresponding to this preferred wireless network.

[0087] Through the above embodiments, by increasing the first priority adjustment amount or decreasing the second priority adjustment amount in the network score of the preferred wireless network according to the type of preference, users can increase the likelihood of their electronic devices connecting to the wireless network they need by setting different preference levels for different networks. For example, setting a fourth preference level for public networks can avoid accidental connections. This scheme increases the likelihood that the selected target wireless network meets the user's needs, thereby improving the user experience.

[0088] In this disclosure, users may have different needs at different times; for example, they may need to maintain high-quality communication to complete a task. When high-quality communication is required, selecting a wireless network based on preferences may affect task execution. This disclosure further illustrates the method of switching wireless networks based on a first priority selection through the following embodiments.

[0089] In yet another embodiment, Figure 5 This is a flowchart illustrating a method for switching wireless networks based on a first priority selection in a network connection method according to an exemplary embodiment. See also... Figure 5 The wireless network to be switched to is selected based on the first priority through the following steps:

[0090] In step S51, a connection is established with the target wireless network.

[0091] The first priority for wireless networks is the continuously updated parameter.

[0092] In step S52, the latest first priority of each wireless network in the set of wireless networks to be selected is determined.

[0093] In step S53, network switching is confirmed based on the first priority corresponding to the wireless network. According to the latest first priority of each wireless network in the set of wireless networks to be selected, a second target wireless network to be switched is selected in the set of wireless networks to be selected, and a connection is established with the second target wireless network.

[0094] In this embodiment of the disclosure, users typically encounter situations requiring high communication quality for specific tasks, such as video conferencing. However, they may have already set a preferred wireless network from a set of available wireless networks, and need to connect to the highest-priority wireless network to complete the task. Only after the user has completed the task will they select a wireless network to connect to based on their preferences. Figure 6 This is a flowchart illustrating a network connection method according to an exemplary embodiment, showing whether a wireless network is selected for connection based on a first priority. See also Figure 6The electronic device continuously acquires the first priority of each network in the set of wireless networks to be selected. Once the electronic device obtains the first priority of each wireless network, it only determines the second priority of the wireless network if it is determined that the selection of a wireless network is not based solely on the first priority. Then, based on the second priority of each preferred wireless network and the first priority of each unpreferred wireless network, it selects a first target wireless network from the set of wireless networks to connect to. If it is determined that network switching is based solely on the first priority, then based on the latest first priority of each wireless network in the set of wireless networks, it selects a second target wireless network from the set of wireless networks to switch to and establishes a connection with the second target wireless network.

[0095] Through the above embodiments, after the electronic device establishes a connection with the first target wireless network, the latest first priority corresponding to each wireless network is continuously determined. When switching networks based on the first priority of the wireless network, the second priority is not determined based on user preferences. This allows users to select wireless networks to connect to according to their different needs at different times, improving the user experience.

[0096] It is understandable that after an electronic device connects to a wireless network, the device will switch between different wireless networks because the first priority of the wireless network is a continuously updated parameter. To ensure that the wireless network connected to the electronic device always meets the user's needs, it is necessary to continuously select a wireless network according to the user's preferences. This disclosure further illustrates the method for determining the latest second priority of the preferred wireless network through the following embodiments.

[0097] In yet another embodiment, Figure 7 This is a flowchart illustrating a method for determining the latest second priority corresponding to a preferred wireless network in a network connection method according to an exemplary embodiment. See also Figure 7 The latest second priority corresponding to the preferred wireless network is determined by the following method.

[0098] In step S61, a connection is established with the first target wireless network.

[0099] The first priority for wireless networks is the continuously updated parameter.

[0100] In step S62, in response to network switching based on the first priority and preference level of the wireless network, the latest second priority of the preferred wireless network is determined based on the preference level of the preferred wireless network and / or the latest first priority of the preferred wireless network.

[0101] In step S63, based on the latest second priority corresponding to each preferred wireless network and the latest first priority corresponding to each unpreferred wireless network, a second target wireless network is selected from the set of wireless networks to be selected for connection, and a connection is established with the second target wireless network.

[0102] In this embodiment of the disclosure, after establishing a connection with the target wireless network, the system continuously acquires each wireless network in the set of wireless networks to be selected and its corresponding first priority, and continuously monitors whether a preferred wireless network exists in the set of wireless networks to be selected, continuously determining the latest second priority corresponding to the preferred wireless network. If the latest second priority of the preferred wireless network is higher than the priority of the currently connected wireless network, the wireless network with the highest latest second priority is selected as the second target wireless network, and a connection is established with the second target wireless network.

[0103] Through the above embodiments, by continuously determining the latest second priority corresponding to the preferred wireless network, and selecting a second target wireless network for connection from the set of wireless networks to be selected based on the latest second priority corresponding to each preferred wireless network and the latest first priority corresponding to each non-preferred wireless network, the likelihood of electronic devices continuously connecting to wireless networks that meet user needs is increased, thereby improving the user experience.

[0104] It is understandable that different connection states of an electronic device correspond to different methods of selecting a wireless network from the set of candidate wireless networks. Connection states include being connected to a wireless network and not being connected to a wireless network. The following embodiments of this disclosure further illustrate the methods for selecting a target wireless network when the electronic device is in different connection states.

[0105] In this embodiment of the disclosure, Figure 8 This is a flowchart illustrating a network connection method according to an exemplary embodiment, showing the selection and switching of a target wireless network when an electronic device is in a disconnected state. See also... Figure 8 If your electronic device is not connected to a wireless network, select a target wireless network by following these steps:

[0106] If your electronic device is not connected to a wireless network, select a target wireless network using the following steps:

[0107] In step S71, if it is confirmed that the electronic device is not connected to the wireless network, a wireless network scan is performed in real time to obtain network information within a set range, and the first priority of each network in the set of wireless networks to be selected is obtained based on the obtained network information.

[0108] In step S72, it is confirmed whether the preferred wireless network exists in the set of wireless networks to be selected.

[0109] In step S73, if it is confirmed that there is a preferred wireless network in the set of wireless networks to be selected, the second priority corresponding to the preferred wireless network is determined based on the degree of preference, and according to the second priority corresponding to each preferred wireless network and the first priority corresponding to each non-preferred wireless network, a first target wireless network is selected from the set of wireless networks to be selected for connection, and a connection is established with the first target wireless network.

[0110] In step S74, if it is confirmed that there is no preferred wireless network in the set of wireless networks to be selected, the target wireless network to be switched is selected according to the first priority of the wireless network.

[0111] In this embodiment of the disclosure, Figure 9 This is a flowchart illustrating a network connection method according to an exemplary embodiment, showing an electronic device in a connected state selecting and switching to a target wireless network. See also... Figure 9 With your electronic device connected to an existing wireless network, select your target wireless network by following these steps:

[0112] In step S81, if it is confirmed that the electronic device is connected to the wireless network, a wireless network scan is performed in real time to obtain network information within a set range, and the first priority of each network in the set of wireless networks to be selected is obtained based on the obtained network information.

[0113] In step S82, it is confirmed whether the preferred wireless network exists in the set of wireless networks to be selected.

[0114] In step S83, if it is confirmed that there is no preferred wireless network in the set of wireless networks to be selected, the connected wireless network will not be switched.

[0115] In step S84, if it is confirmed that there is a preferred wireless network in the set of wireless networks to be selected, then it is determined whether to switch networks based on the first priority of the wireless network.

[0116] In step S85, if it is confirmed that network switching is to be performed based on the first priority corresponding to the wireless network, the second target wireless network to be switched is selected from the set of wireless networks to be selected according to the latest first priority corresponding to each wireless network in the set of wireless networks to be selected, and a connection is established with the second target wireless network.

[0117] In step S86, if it is confirmed that network switching is to be performed based on the first priority and preference level corresponding to the wireless network, the latest second priority corresponding to the preferred wireless network is determined based on the preference level corresponding to the preferred wireless network and / or the latest first priority corresponding to the preferred wireless network.

[0118] Through the above embodiments, by determining the second priority of the preferred wireless network based on preferences when the electronic device is not connected to the wireless network, and by determining the latest second priority of the preferred wireless network based on preferences when the electronic device is already connected to the wireless network, the probability of the wireless network being selected is adjusted, the possibility of the electronic device continuously connecting to the wireless network that meets the user's needs under different connection states is increased, and the possibility of wireless network access being disconnected due to fluctuations in the first priority is reduced, thereby improving the user experience.

[0119] Based on the same concept, embodiments of this disclosure also provide a network connection device.

[0120] It is understood that the network connection device provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. In conjunction with the units and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.

[0121] Figure 10 This is a block diagram illustrating a network connectivity device 100 according to an exemplary embodiment. See also... Figure 10 The device includes a determining unit 101 and a processing unit 102.

[0122] The determining unit 101 is configured to determine the first priority of each wireless network in the set of wireless networks to be selected, wherein the first priority is used to represent the probability that a wireless network can be selected for connection in a set dimension.

[0123] The processing unit 102 is configured to, when a preferred wireless network exists in the set of wireless networks to be selected, determine a second priority for each preferred wireless network based on the degree of preference and / or the first priority corresponding to the preferred wireless network, wherein the preferred wireless network is the wireless network that the user expects to switch to, the degree of preference of the preferred wireless network represents the degree of demand of the user to switch to the corresponding preferred wireless network, and the second priority uses the same dimension as the first priority to represent the probability that the wireless network can be selected for connection; and select a first target wireless network for connection in the set of wireless networks to be selected according to the second priority corresponding to each preferred wireless network and the first priority corresponding to each non-preferred wireless network, and establish a connection with the first target wireless network, wherein the non-preferred wireless network is a wireless network in the set of wireless networks to be selected other than the preferred wireless network.

[0124] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0125] In another embodiment, the processing unit 102 determines the second priority of the preferred wireless network based on the preference level and / or the first priority of the preferred wireless network in one or more of the following ways: in response to the existence of a corresponding priority for the preference level of the preferred wireless network, the priority corresponding to the preference level is set as the second priority of the preferred wireless network; or in response to the existence of a corresponding priority adjustment amount and priority adjustment tendency for the preference level of the preferred wireless network, the first priority of the preferred wireless network is adjusted according to the priority adjustment amount and priority adjustment tendency to obtain the second priority of the preferred wireless network, wherein the priority adjustment amount represents the degree of adjustment for the first priority, and the adjustment tendency includes increasing or decreasing.

[0126] In another embodiment, the processing unit 102 sets the priority corresponding to the preference level to the second priority corresponding to the preferred wireless network in one or more of the following ways: in response to the preference level corresponding to the preferred wireless network being a first type of preference level, the third priority corresponding to the first type of preference level is set to the second priority corresponding to the preferred wireless network, where the first type of preference level represents the highest degree of user demand to switch to the preferred wireless network, and the third priority represents the highest probability that the wireless network can be selected for connection; in response to the preference level corresponding to the preferred wireless network being a second type of preference level, the fourth priority corresponding to the second type of preference level is set to the fourth priority corresponding to the preferred wireless network, where the second type of preference level represents the lowest degree of user demand to switch to the preferred wireless network, and the fourth priority represents the lowest probability that the wireless network can be selected for connection.

[0127] In another embodiment, the processing unit 102 adjusts the first priority corresponding to the preferred wireless network according to one or more of the following methods based on the priority adjustment amount and priority adjustment tendency corresponding to the preference level, to obtain the second priority corresponding to the preferred wireless network: In response to the preference level corresponding to the preferred wireless network being a third type of preference level, the first priority corresponding to the preferred wireless network is increased according to the first priority adjustment amount corresponding to the third type of preference level, and the increased first priority is determined as the second priority corresponding to the preferred wireless network. The increased first priority is lower than the third priority, and the third priority represents the highest probability that the wireless network can be selected for connection; In response to the preference level corresponding to the preferred wireless network being a fourth type of preference level, according to the priority adjustment amount corresponding to the fourth type of preference level... The second priority adjustment involves lowering the first priority corresponding to the preferred wireless network, and then setting the lowered first priority as the second priority corresponding to the preferred wireless network. The lowered first priority is higher than or equal to the fourth priority, which indicates that the wireless network has the lowest probability of being selected for connection. Among these, the third type of preference indicates that the user's desire to switch to the preferred wireless network is lower than the first type of preference but higher than the fourth type of preference. The fourth type of preference indicates that the user's desire to switch to the preferred wireless network is lower than the third type of preference but higher than the second type of preference. The first type of preference indicates that the user's desire to switch to the preferred wireless network is the highest, and the second type of preference indicates that the user's desire to switch to the preferred wireless network is the lowest.

[0128] In another embodiment, the processing unit 102 is further configured to, with the first priority corresponding to the wireless network being a continuously updated parameter, after establishing a connection with the first target wireless network, perform the following: determine the latest first priority corresponding to each wireless network in the set of wireless networks to be selected; in response to network switching based on the first priority corresponding to the wireless network, select a second target wireless network to be switched in the set of wireless networks to be selected according to the latest first priority corresponding to each wireless network in the set of wireless networks to be selected, and establish a connection with the second target wireless network.

[0129] In another embodiment, the processing unit 102 is further configured to: in response to network switching based on a first priority and preference level corresponding to a wireless network, determine a latest second priority corresponding to a preferred wireless network based on the preference level corresponding to the preferred wireless network and / or the latest first priority corresponding to the preferred wireless network; select a second target wireless network for connection from the set of wireless networks to be selected according to the latest second priority corresponding to each preferred wireless network and the latest first priority corresponding to each non-preferred wireless network, and establish a connection with the second target wireless network.

[0130] Figure 11This is a block diagram illustrating a device 200 for network connectivity according to an exemplary embodiment. For example, device 200 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0131] Reference Figure 11 The device 200 may include one or more of the following components: processing component 202, memory 204, power component 206, multimedia component 208, audio component 210, input / output (I / O) interface 212, sensor component 214, and communication component 216.

[0132] Processing component 202 typically controls the overall operation of device 200, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 202 may include one or more modules to facilitate interaction between processing component 202 and other components. For example, processing component 202 may include a multimedia module to facilitate interaction between multimedia component 208 and processing component 202.

[0133] Memory 204 is configured to store various types of data to support the operation of device 200. Examples of such data include instructions for any application or method operating on device 200, contact data, phonebook data, messages, pictures, videos, etc. Memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0134] The power supply component 206 provides power to the various components of the device 200. The power supply component 206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 200.

[0135] Multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 208 includes a front-facing camera and / or a rear-facing camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0136] Audio component 210 is configured to output and / or input audio signals. For example, audio component 210 includes a microphone (MIC) configured to receive external audio signals when device 200 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 204 or transmitted via communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.

[0137] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0138] Sensor assembly 214 includes one or more sensors for providing status assessments of various aspects of device 200. For example, sensor assembly 214 may detect the on / off state of device 200, the relative positioning of components such as the display and keypad of device 200, changes in the position of device 200 or a component of device 200, the presence or absence of user contact with device 200, the orientation or acceleration / deceleration of device 200, and temperature changes of device 200. Sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 214 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0139] Communication component 216 is configured to facilitate wired or wireless communication between device 200 and other devices. Device 200 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 216 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 216 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0140] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0141] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, which can be executed by a processor 220 of the device 200 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0142] Figure 12 This is a block diagram illustrating an apparatus 300 for network connectivity according to an exemplary embodiment. For example, apparatus 300 may be provided as a server. (Refer to...) Figure 12 The device 300 includes a processing component 322, which further includes one or more processors, and memory resources represented by memory 332 for storing instructions, such as application programs, that can be executed by the processing component 322. The application programs stored in memory 332 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 322 is configured to execute instructions to perform the aforementioned network connectivity method.

[0143] Device 300 may also include a power supply component 326 configured to perform power management of device 300, a wired or wireless network interface 350 configured to connect device 300 to a network, and an input / output (I / O) interface 358. Device 300 may operate on an operating system stored in memory 332, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.

[0144] It is understood that in this disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.

[0145] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.

[0146] It is further understood that although operations are described in a specific order in the accompanying drawings in the embodiments of this disclosure, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the shown operations to be performed to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.

[0147] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein.

[0148] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A network connection method, characterized in that, include: Determine the first priority of each wireless network in the set of wireless networks to be selected, wherein the first priority is used to represent the probability of a wireless network being selected for connection in a defined dimension; In response to the existence of a preferred wireless network in the set of wireless networks to be selected, for each preferred wireless network, a second priority corresponding to the preferred wireless network is determined based on the degree of preference corresponding to the preferred wireless network and / or the first priority corresponding to the preferred wireless network. Here, the preferred wireless network is the wireless network that the user expects to switch to, the degree of preference of the preferred wireless network represents the degree of the user's need to switch to the corresponding preferred wireless network, and the second priority uses the same dimension as the first priority to represent the probability that the wireless network can be selected for connection. Based on the second priority corresponding to each preferred wireless network and the first priority corresponding to each non-preferred wireless network, a first target wireless network is selected from the set of wireless networks to be selected for connection, and a connection is established with the first target wireless network. The non-preferred wireless networks are wireless networks in the set of wireless networks to be selected other than the preferred wireless networks.

2. The network connection method according to claim 1, characterized in that, The determination of the second priority of the preferred wireless network based on the preference level and / or the first priority of the preferred wireless network includes: In response to the existence of a priority corresponding to the preference level for the preferred wireless network, the priority corresponding to the preference level is set to the second priority corresponding to the preferred wireless network; or In response to the preference level corresponding to the preferred wireless network, there are corresponding priority adjustment amounts and priority adjustment tendencies. Based on the priority adjustment amounts and priority adjustment tendencies corresponding to the preference level, the first priority corresponding to the preferred wireless network is adjusted to obtain the second priority corresponding to the preferred wireless network. The priority adjustment amount represents the degree of adjustment for the first priority, and the adjustment tendency includes increasing or decreasing.

3. The network connection method according to claim 2, characterized in that, The response that there is a priority corresponding to the preference level of the preferred wireless network, setting the priority corresponding to the preference level as the second priority corresponding to the preferred wireless network, includes: In response to the preference level corresponding to the preferred wireless network being a first-class preference level, the third priority corresponding to the first-class preference level is set as the second priority corresponding to the preferred wireless network. The first-class preference level indicates that the user's demand to switch to the preferred wireless network is the highest, and the third priority indicates that the wireless network is most likely to be selected for connection. In response to the preference level corresponding to the preferred wireless network being the second type of preference level, the fourth priority corresponding to the second type of preference level is set as the fourth priority corresponding to the preferred wireless network. The second type of preference level indicates that the user's demand to switch to the preferred wireless network is the lowest, and the fourth priority indicates that the wireless network is the least likely to be selected for connection.

4. The network connection method according to claim 2, characterized in that, The first priority corresponding to the preferred wireless network is adjusted according to the priority adjustment amount corresponding to the preference level, in response to the preference level of the preferred wireless network, to obtain the second priority corresponding to the preferred wireless network, including: In response to the preference level corresponding to the preferred wireless network being the third type of preference level, the first priority corresponding to the preferred wireless network is increased according to the first priority adjustment amount corresponding to the third type of preference level. The increased first priority is determined as the second priority corresponding to the preferred wireless network. The increased first priority is lower than the third priority. The third priority indicates that the wireless network is most likely to be selected for connection. In response to the preference level corresponding to the preferred wireless network being a fourth type of preference level, the first priority corresponding to the preferred wireless network is reduced according to the second priority adjustment amount corresponding to the fourth type of preference level. The reduced first priority is determined as the second priority corresponding to the preferred wireless network. The reduced first priority is higher than or equal to the fourth priority. The fourth priority indicates that the wireless network is least likely to be selected for connection. The third type of preference indicates that the user's desire to switch to the preferred wireless network is lower than the first type of preference but higher than the fourth type of preference. The fourth type of preference indicates that the user's desire to switch to the preferred wireless network is lower than the third type of preference but higher than the second type of preference. The first type of preference indicates that the user's desire to switch to the preferred wireless network is the highest. The second type of preference indicates that the user's desire to switch to the preferred wireless network is the lowest.

5. The network connection method according to claim 4, characterized in that, The first priority corresponding to the wireless network is a continuously updated parameter. After establishing a connection with the first target wireless network, the method further includes: Determine the latest first priority for each wireless network in the set of wireless networks to be selected; In response to network switching based on the first priority of the wireless network, according to the latest first priority of each wireless network in the set of wireless networks to be selected, a second target wireless network to be switched is selected in the set of wireless networks to be selected, and a connection is established with the second target wireless network.

6. The network connection method according to claim 5, characterized in that, The method further includes: In response to network switching based on the first priority and preference level of the wireless network, the latest second priority of the preferred wireless network is determined based on the preference level of the preferred wireless network and / or the latest first priority of the preferred wireless network. Based on the latest second priority corresponding to each preferred wireless network and the latest first priority corresponding to each non-preferred wireless network, a second target wireless network is selected from the set of wireless networks to be selected for connection, and a connection is established with the second target wireless network.

7. A network connection device, characterized in that, include: The determining unit is used to determine the first priority of each wireless network in the set of wireless networks to be selected, wherein the first priority is used to represent the probability of a wireless network being selected for connection in a set dimension. The processing unit is configured to, when a preferred wireless network exists in the set of wireless networks to be selected, determine a second priority for each preferred wireless network based on the degree of preference and / or the first priority corresponding to the preferred wireless network, wherein the preferred wireless network is the wireless network that the user wishes to switch to, the degree of preference of the preferred wireless network represents the degree of the user's desire to switch to the corresponding preferred wireless network, and the second priority uses the same dimension as the first priority to represent the probability that the wireless network can be selected for connection; and select a first target wireless network for connection in the set of wireless networks to be selected according to the second priority corresponding to each preferred wireless network and the first priority corresponding to each non-preferred wireless network, and establish a connection with the first target wireless network, wherein the non-preferred wireless networks are wireless networks in the set of wireless networks to be selected other than the preferred wireless networks.

8. The network connection device according to claim 7, characterized in that, The processing unit determines the second priority of the preferred wireless network based on the preference level and / or the first priority of the preferred wireless network through one or more of the following methods: In response to the fact that there is a priority corresponding to the degree of preference for the preferred wireless network, the priority corresponding to the degree of preference is set as the second priority corresponding to the preferred wireless network; or In response to the preference level corresponding to the preferred wireless network, there are corresponding priority adjustment amounts and priority adjustment tendencies. Based on the priority adjustment amounts and priority adjustment tendencies corresponding to the preference level, the first priority corresponding to the preferred wireless network is adjusted to obtain the second priority corresponding to the preferred wireless network. The priority adjustment amount represents the degree of adjustment for the first priority, and the adjustment tendency includes increasing or decreasing.

9. The network connection device according to claim 8, characterized in that, The processing unit sets the priority corresponding to the preference level to the second priority corresponding to the preferred wireless network through one or more of the following methods: In response to the preference level corresponding to the preferred wireless network being a first-class preference level, the third priority corresponding to the first-class preference level is set as the second priority corresponding to the preferred wireless network. The first-class preference level indicates that the user's demand to switch to the preferred wireless network is the highest, and the third priority indicates that the wireless network is most likely to be selected for connection. In response to the preference level corresponding to the preferred wireless network being the second type of preference level, the fourth priority corresponding to the second type of preference level is set as the fourth priority corresponding to the preferred wireless network. The second type of preference level indicates that the user's demand to switch to the preferred wireless network is the lowest, and the fourth priority indicates that the wireless network is the least likely to be selected for connection.

10. The network connection device according to claim 8, characterized in that, The processing unit adjusts the first priority corresponding to the preferred wireless network based on the priority adjustment amount and priority adjustment tendency corresponding to the preference level through one or more of the following methods to obtain the second priority corresponding to the preferred wireless network: In response to the preference level corresponding to the preferred wireless network being the third type of preference level, the first priority corresponding to the preferred wireless network is increased according to the first priority adjustment amount corresponding to the third type of preference level. The increased first priority is determined as the second priority corresponding to the preferred wireless network. The increased first priority is lower than the third priority. The third priority indicates that the wireless network is most likely to be selected for connection. In response to the preference level corresponding to the preferred wireless network being a fourth type of preference level, the first priority corresponding to the preferred wireless network is reduced according to the second priority adjustment amount corresponding to the fourth type of preference level. The reduced first priority is determined as the second priority corresponding to the preferred wireless network. The reduced first priority is higher than or equal to the fourth priority. The fourth priority indicates that the wireless network is least likely to be selected for connection. The third type of preference indicates that the user's desire to switch to the preferred wireless network is lower than the first type of preference but higher than the fourth type of preference. The fourth type of preference indicates that the user's desire to switch to the preferred wireless network is lower than the third type of preference but higher than the second type of preference. The first type of preference indicates that the user's desire to switch to the preferred wireless network is the highest. The second type of preference indicates that the user's desire to switch to the preferred wireless network is the lowest.

11. The network connection device according to claim 10, characterized in that, The processing unit is further configured to, after establishing a connection with the first target wireless network, execute the following based on the continuously updated parameters corresponding to the first priority of the wireless network: Determine the latest first priority for each wireless network in the set of wireless networks to be selected; In response to network switching based on the first priority of the wireless network, according to the latest first priority of each wireless network in the set of wireless networks to be selected, a second target wireless network to be switched is selected in the set of wireless networks to be selected, and a connection is established with the second target wireless network.

12. The network connection device according to claim 11, characterized in that, The processing unit is also used to perform: In response to network switching based on the first priority and preference level of the wireless network, the latest second priority of the preferred wireless network is determined based on the preference level of the preferred wireless network and / or the latest first priority of the preferred wireless network. Based on the latest second priority corresponding to each preferred wireless network and the latest first priority corresponding to each non-preferred wireless network, a second target wireless network is selected from the set of wireless networks to be selected for connection, and a connection is established with the second target wireless network.

13. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the network connection method according to any one of claims 1-6.

14. A storage medium, characterized in that, The storage medium stores instructions that, when executed by the processor of the electronic device, enable the electronic device to perform the network connection method according to any one of claims 1-6.