A wireless network access method, device and electronic equipment
By using a multi-dimensional matching degree determination method, the limitations of frequency band switching in existing technologies are solved, enabling more flexible and accurate frequency band switching, adapting to the network access needs of different frequency bands, and improving the network configuration efficiency and convenience of IoT devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NINGBO FOTILE KITCHEN WARE CO LTD
- Filing Date
- 2026-02-03
- Publication Date
- 2026-06-23
AI Technical Summary
In existing technologies, devices are limited to the SSID of the same wireless network when switching frequency bands, which makes frequency band switching inflexible and unable to meet the network matching requirements of different frequency bands.
After accessing the network in the first frequency band, candidate networks for the second frequency band are determined. Based on the multi-dimensional matching degree of service set identifier, basic service set identifier and signal strength, a second network that meets the preset conditions is selected for access from the candidate networks to ensure that the target matching degree is greater than the matching degree threshold.
It enables more flexible frequency band switching, improves the accuracy and adaptability of frequency band switching, supports the network usage needs of target devices, and in particular, automatically switches to lower frequency wireless networks, improving the network configuration efficiency and convenience of IoT devices.
Smart Images

Figure CN122269385A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless network technology, and in particular to a wireless network access method, apparatus and electronic device. Background Technology
[0002] With the development of wireless network technology, some devices can access corresponding wireless networks on at least two frequency bands. In related technologies, when a device switches from accessing a wireless network on one frequency band to accessing a wireless network on another frequency band, it often relies on the same Service Set Identifier (SSID). That is, the frequency band switching of the device occurs on the same wireless network that supports at least two frequency bands. However, such frequency band switching is achieved by setting the same SSID on different frequency bands within the same wireless network, which has limitations. Summary of the Invention
[0003] To address at least one of the aforementioned technical problems, this application provides a wireless network access method, apparatus, and electronic device: According to a first aspect of this application, a wireless network access method is provided, applied to a target device, the method comprising: When accessing a first network in a first frequency band, at least one candidate network in a second frequency band is determined, wherein the frequency of the second frequency band is less than the frequency of the first frequency band. A second network that meets preset conditions is determined from the at least one candidate network, and the second network is accessed in the second frequency band. The preset conditions indicate that the target matching degree between the first network and the second network is greater than the matching degree threshold. The target matching degree is determined based on the matching degree of the service set identifier dimension, the matching degree of the basic service set identifier dimension, and the matching degree of the signal strength dimension.
[0004] According to a second aspect of this application, a wireless network access device is provided, configured on a target device, the device comprising: The candidate network determination module is used to determine at least one candidate network in a second frequency band when the first frequency band is connected to a first network, wherein the frequency of the second frequency band is less than the frequency of the first frequency band. A wireless network access module is configured to determine a second network that meets preset conditions from at least one candidate network, and to access the second network in the second frequency band. The preset conditions indicate that the target matching degree between the first network and the second network is greater than a matching degree threshold. The target matching degree is determined based on the matching degree in the service set identifier dimension, the matching degree in the basic service set identifier dimension, and the matching degree in the signal strength dimension.
[0005] According to a third aspect of this application, an electronic device is provided, including a wireless network access device as described in the second aspect.
[0006] 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 application.
[0007] Implementing this application will have the following beneficial effects: This application provides a more adaptive wireless network access scheme. When accessing a first network in a first frequency band, a second network meeting preset conditions is selected from at least one candidate network in a second frequency band for access. The preset conditions ensure that the target matching degree between the first and second networks is greater than a matching degree threshold, and the determination of the target matching degree comprehensively considers the matching degree at the service set identifier dimension, the basic service set identifier dimension, and the signal strength dimension. Compared to related technologies that rely on the same service set identifier for frequency band switching, this provides a larger number of candidate networks, no longer limited to the same wireless network supporting at least two frequency bands. The richness of multi-dimensional information supports the accuracy of the determined target matching degree, which is beneficial for the second network accessed after frequency band switching to effectively support the network usage needs of the target device. Furthermore, considering that access to wireless networks in higher frequency bands is generally preferred, and accessing wireless networks in lower frequency bands via frequency band switching requires manual operation by the user, this provides an expansion possibility for adapting to scenarios that require automatic frequency band switching to access wireless networks in lower frequency bands.
[0008] Other features and aspects of this application will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0009] The objectives, technical solutions, and beneficial effects of the present invention described above can be clearly obtained through the following detailed description of specific embodiments that enable the implementation of the present invention, in conjunction with the accompanying drawings.
[0010] The same reference numerals and symbols in the accompanying drawings and the specification are used to represent the same or equivalent elements.
[0011] Figure 1 This is a flowchart illustrating a wireless network access method provided in this application; Figure 2 This is a flowchart illustrating the process of determining a second network that meets preset conditions from at least one candidate network, as provided in this application. Figure 3 This is also a flowchart illustrating a wireless network access method provided in this application; Figure 4 This is a block diagram of a wireless network access device provided in this application. Detailed Implementation
[0012] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0013] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0014] Various exemplary embodiments, features, and aspects of this application will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0015] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.
[0016] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0017] Furthermore, to better illustrate this application, numerous specific details are provided in the following detailed description. Those skilled in the art should understand that this application can be implemented without certain specific details. In some instances, methods, means, components, and circuits well-known to those skilled in the art have not been described in detail in order to highlight the main points of this application.
[0018] Figure 1 This diagram illustrates a flowchart of a wireless network access method according to an embodiment of this application. Figure 1 As shown, the method includes: S101: When the first network is accessed in the first frequency band, at least one candidate network in the second frequency band is determined, wherein the frequency of the second frequency band is less than the frequency of the first frequency band; In this embodiment, steps S101-S102 provide a wireless network access method with the target device as the execution subject. When accessing a first network in the first frequency band, the target device determines at least one candidate network in the second frequency band. The at least one candidate network is an available wireless network currently detectable by the target device. The candidate network supports the second frequency band. A frequency band refers to a specific range of frequencies in the radio spectrum used for transmitting wireless signals. Generally, wireless networks supporting higher frequency bands have faster speeds and smaller coverage areas, while wireless networks supporting lower frequency bands have slower speeds and larger coverage areas. For example, the first frequency band is 5GHz, and the second frequency band is 2.4GHz. Wireless networks supporting the 5GHz band have advantages such as less interference, faster speed, and lower latency, but smaller coverage and weaker wall penetration, suitable for short-range high-speed needs (such as watching 4K videos and playing games). Wireless networks supporting the 5GHz band have advantages such as wider coverage, stronger wall penetration, and stronger compatibility with older devices, but more interference and slower speed. The 5GHz and 2.4GHz bands are isolated. Some Internet of Things (IoT) devices only support access to wireless networks in the 2.4 GHz band, while the target devices for network configuration (such as mobile phones used by users) often preferentially access wireless networks in the 5 GHz band. Using the wireless network access method provided in this application, users can access wireless networks in the 2.4 GHz band without manual intervention. Automatic band switching improves the efficiency and convenience of configuring networks for IoT devices through target devices. In practical applications, IoT devices can be smart wearable devices, smart home appliances, smart industrial equipment, etc. Of course, depending on actual needs, the first frequency band can be any of the following: 6 GHz, 5 GHz, and 3.5 GHz. The second frequency band can be any of the following: 2.4 GHz or Sub-1 GHz.
[0019] The target device can be a mobile phone, computer (such as a desktop computer, tablet, or laptop), digital assistant, in-vehicle terminal, or similar device. It can run programs or web pages that support wireless network access. These programs can be applications or applets specifically developed for wireless network access, or applications or applets with wireless network access functionality. In practical applications, this wireless network access-enabled program can direct applications that manage IoT devices. Of course, the target device can also be a smart wearable device, smart home appliance, smart industrial equipment, or other IoT devices.
[0020] S102: Determine a second network that meets preset conditions from the at least one candidate network, and access the second network in the second frequency band. The preset conditions indicate that the target matching degree between the first network and the second network is greater than the matching degree threshold. The target matching degree is determined based on the matching degree of the service set identifier dimension, the matching degree of the basic service set identifier dimension, and the matching degree of the signal strength dimension.
[0021] In this embodiment, the target device determines a second network that meets preset conditions from at least one candidate network, and accesses the second network in a second frequency band. The second network can be any wireless network among the at least one candidate network. Under the constraint of the preset conditions, the target matching degree between the first network and the second network is greater than the matching degree threshold, and the determination of the target matching degree comprehensively considers the matching degree of the service set identifier dimension, the matching degree of the basic service set identifier dimension, and the matching degree of the signal strength dimension. Accordingly, the second network is the preferred wireless network among the at least one candidate network, which can better support the network usage needs of the target device. If there is at least one candidate network that meets the preset conditions among the at least one candidate network, a candidate network can be randomly selected as the second network, or the candidate network whose last access time by the target device is closest to the current time can be selected as the second network, or the candidate network corresponding to the maximum candidate matching degree can be selected as the second network. Of course, if there is no second network that meets the preset conditions among the at least one candidate network, the user can also manually access the wireless network in the second frequency band. It should be noted that the first network and the second network can refer to the same wireless network that supports both the first frequency band and the second frequency band.
[0022] The matching degree of the Service Set Identifier (SSID) dimension focuses on the Service Set Identifiers (SSIDs) of the two wireless networks. The matching degree of the SSID dimension can be positively correlated with the similarity between the two SSIDs. The matching degree of the Basic Service Set Identifier (DSSID) dimension focuses on the Basic Service Set Identifiers (DSSIDs) of the two wireless networks. The matching degree of the DSSID dimension can be positively correlated with the similarity between the two DSSIDs. The matching degree of the Signal Strength dimension focuses on the signal strength of the two wireless networks. The matching degree of the Signal Strength dimension can be positively correlated with the difference between the two signal strengths, or negatively correlated with the difference between the two signal strengths.
[0023] As one possible implementation, such as Figure 2 As shown, determining a second network that meets preset conditions from the at least one candidate network includes: S201: Obtain the reference service set identifier, the corresponding reference basic service set identifier, and the reference signal strength of the first network; S202: For each candidate network, obtain the candidate service set identifier, the corresponding candidate basic service set identifier, and the candidate signal strength of the candidate network, and determine the candidate matching degree between the first network and the candidate network, so as to obtain the candidate matching degree corresponding to each of the at least one candidate network. The candidate matching degree is determined based on the first matching degree between the reference service set identifier and the candidate service set identifier, the second matching degree between the reference basic service set identifier and the candidate basic service set identifier, and the third matching degree between the reference signal strength and the candidate signal strength. S203: Determine the target matching degree as the matching degree that is the largest among the candidate matching degrees corresponding to each of the at least one candidate network and is greater than the matching degree threshold, and determine the candidate network corresponding to the target matching degree as the second network.
[0024] This document describes the process of calculating the candidate matching degree for each candidate network, determining the maximum candidate matching degree as the target matching degree, and then identifying the candidate network with the corresponding target matching degree as the second network. This ordered process for determining the second network helps guide a more accurate determination of the second network.
[0025] The service set identifier of the first network is the baseline service set identifier, and the service set identifier of the candidate network is the candidate service set identifier. The first matching degree characterizes the similarity between the baseline service set identifier and the candidate service set identifier.
[0026] The basic service set identifier corresponding to the first network is the baseline basic service set identifier, and the basic service set identifier corresponding to the candidate network is the candidate basic service set identifier. The second matching degree characterizes the similarity between the baseline basic service set identifier and the candidate basic service set identifier. For the baseline basic service set identifier, since the target device is connected to the target wireless access point in the first network, the media access control address (MAC address) of the target wireless access point is the baseline basic service set identifier. For the candidate basic service set identifier, the candidate network includes at least one candidate wireless access point, and the media access control address of the candidate wireless access point is the candidate basic service set identifier. The candidate wireless access point can be a wireless access point randomly selected from at least one candidate wireless access point, or it can be the wireless access point with the largest (or smallest) number of currently connected devices among at least one candidate wireless access point, or it can be the wireless access point with the closest distance to the target device among at least one candidate wireless access point. Of course, the candidate wireless access point can also be determined based on factors such as signal strength and the time of the previous connection to the wireless access point.
[0027] The signal strength corresponding to the first network is the reference signal strength, and the signal strength corresponding to the candidate network is the candidate signal strength. The third matching degree is determined based on the difference between the reference signal strength and the candidate signal strength. The reference signal strength reflects the signal strength of the first network received by the target device. The candidate signal strength reflects the signal strength of the candidate network received by surrounding devices. Surrounding devices can be those located less than a distance threshold from the target device. The information contribution of the third matching degree in the candidate matching degree can help filter cross-floor and through-wall signal interference. In practical applications, 1) if the difference between the reference signal strength and the candidate signal strength is greater than 5dB and the variance of fluctuation is greater than or equal to 2, then the candidate network corresponding to the candidate signal strength can be excluded from the candidate range of the second network. 2) The Received Signal Strength Indicator (RSSI) can be used to determine the reference signal strength and the candidate signal strength. For the third matching degree, a signal spatial coupling algorithm can be used, based on the spatial correlation of the strength indices of the two received signals, to eliminate neighborhood interference.
[0028] The calculation of the first matching degree, the second matching degree, and the candidate matching degree will be explained in detail below: (i) The first matching degree can be determined by the following steps: First, according to the preprocessing rules, the suffix of the baseline service set identifier is deleted to obtain the first identification information of the baseline service set identifier, and the suffix of the candidate service set identifier is deleted to obtain the second identification information of the candidate service set identifier; then, the matching degree between the first identification information and the second identification information is used as the first matching degree.
[0029] Considering that the non-suffixes of service set identifiers are often personalized or functional, while the suffixes serve as auxiliary identifiers (e.g., "_5G" for frequency band, "_Guest" for guest network, and "_2024" for year of naming), the identification information after removing the suffix focuses on reflecting the non-suffixes of the service set identifier, resulting in a more accurate and realistic matching degree. Taking the baseline service set identifier "Home_5G" as an example, the first identification information indicates "Home". If candidate service set identifier 1 is "Home_2.4G", its corresponding second identification information also indicates "Home". If candidate service set identifier 2 is "MYHome_2.4G", its corresponding second identification information also indicates "MYHome". It can be seen that the first matching degree corresponding to candidate service set identifier 1 is higher than that corresponding to candidate service set identifier 2. In practical applications, it is also not advisable to ignore the suffix removal process for candidate service set identifiers and directly determine the first matching degree based on the first identification information and the candidate service set identifier.
[0030] (ii) The second matching degree can be determined by the following steps: First, when the base basic service set identifier is generated based on a preset derivation rule, a third identification information indicating the original media access control address is extracted from the base basic service set identifier based on the preset derivation rule, and a fourth identification information indicating the original media access control address is extracted from the candidate basic service set identifier, wherein the preset derivation rule indicates the addition or replacement of characters in the original media access control address; then, the matching degree between the third identification information and the fourth identification information is taken as the second matching degree.
[0031] Preset derivation rules indicate the addition or replacement of characters in the original media access control address. For example, adding a preset character after the original media access control address. Replacing characters at specific positions in the original media access control address.
[0032] It is understandable that the Basic Service Set Identifier (BSI) can be the result of adding or replacing characters in the original Media Access Control (MACC) address, i.e., the new MACC address. To ensure the accuracy and effectiveness of the matching degree between the two BSIs, the baseline BSI, which serves as the new MACC address, is restored based on preset derivation rules, and candidate BSIs are processed accordingly. If the candidate BSI is generated based on the preset derivation rules, then the matching degree between the third and fourth identification information can characterize the matching degree between the two original MACC addresses. If the candidate BSI is not generated based on the preset derivation rules, it indicates that the target radio access point and the candidate radio access point are from different sources and have no lineage relationship. In this case, the matching degree between the third and fourth identification information can characterize the matching degree between an original MACC address and a pseudo-original MACC address. This second matching degree is beneficial because the determined second network and the first network are from the same source and have a lineage relationship in the radio access point dimension.
[0033] In practical applications, whether two wireless access points are from the same source or have a lineage can be related to the router. Two wireless access points that are from the same source and have a lineage can share the same first N bits (e.g., the first 8 bits) of their respective Basic Service Set Identifiers (PSIs), and differ in the last M bits (e.g., the first 4 bits), such as in frequency band identification codes. For frequency band identification codes, the encoding rules can involve parity marking. Based on this, a database of source (or lineage) PSIs can be established, containing multiple source (or lineage) records. Each source (or lineage) record includes at least two PSIs, and the first N bits (e.g., the first 8 bits) of at least two PSIs must be identical.
[0034] (iii) The candidate matching degree can be determined by the following steps: First, a first representation matching degree is determined based on the first weight of the service set identifier dimension and the first matching degree; then, a second representation matching degree is determined based on the second weight of the basic service set identifier dimension and the second matching degree; furthermore, a third representation matching degree is determined based on the third weight of the signal strength dimension and the third matching degree; finally, the candidate matching degree is obtained based on the first representation matching degree, the second representation matching degree and the third representation matching degree.
[0035] By introducing weights for each dimension of matching score, different importance or contribution levels are assigned to the matching scores of different dimensions to control their impact on candidate matching scores. For example, the first weight could be 60%, the second weight could be 30%, and the third weight could be 10%. Candidate matching score = First matching score * 60% + Second matching score * 30% + Third matching score * 10%. Here, First matching score * 60% represents the first characteristic matching score, Second matching score * 30% represents the second characteristic matching score, and Third matching score * 10% represents the third characteristic matching score. In practical applications, the weights of the matching scores for each dimension can be flexibly adjusted according to actual needs.
[0036] For example, when accessing the first network in the first frequency band, the target device can, according to preprocessing rules, remove the suffix of the base service set identifier (the service set identifier of the first network) to obtain the first identification information of the base service set identifier. If the base basic service set identifier (the basic service set identifier of the first network) is generated based on preset derivation rules, the third identification information indicating the original media access control address is extracted from the base basic service set identifier based on the preset derivation rules. For example, considering that two wireless access points are related due to their router origins, the first N bits (e.g., the first 8 bits) of the base basic service set identifier are taken to obtain the third identification information. Based on this, at least one target candidate network in the second frequency band is determined. The at least one target candidate network is an available wireless network currently detectable by the target device, and the service set identifier of the target candidate network contains the first identification information, and the first N bits (e.g., the first 8 bits) of the basic service set identifier of the target candidate network are the same as the third identification information. For each target candidate network, the candidate matching degree between the first network and the target candidate network is determined. The target matching degree is determined by identifying the largest matching degree among the candidate matching degrees corresponding to at least one target candidate network that is greater than the matching degree threshold, and the target candidate network corresponding to the target matching degree is identified as the second network. Additionally, if the first N bits (e.g., the first 8 bits) of the basic service set identifier of the target candidate network are the same as the third identifier information, the aforementioned records regarding the same-origin (or lineage) database can be used to first determine the same-origin (or lineage) record corresponding to the third identifier information in the same-origin (or lineage) database. The basic service set identifier of the target candidate network is the same as any basic service set identifier in the same-origin (or lineage) record.
[0037] As one possible implementation, such as Figure 3 As shown, the method further includes: S301: Determine the operating system of the target device; S302: If the operating system is a first type of system, perform the following operations: obtain at least one candidate network for determining the second frequency band, determine a second network that meets preset conditions from the at least one candidate network, and access the second network in the second frequency band; S303: When the operating system is a second type of system, access a third network in the second frequency band based on a target record. The target record is a record that matches the description information of the first network among a plurality of preset records. The preset record includes description information indicating the wireless network of the first frequency band and description information indicating the wireless network of the second frequency band. The preset record is generated based on wireless network access switching performed at the same location by an associated device equipped with the first type of system.
[0038] Considering the differences in operating systems, some devices have the ability to detect wireless networks, while others do not. For devices capable of detecting wireless networks, frequency band switching can be achieved by executing the process of "acquiring at least one candidate network for a second frequency band, identifying a second network that meets preset conditions from the at least one candidate network, and accessing the second network on the second frequency band." For devices lacking the ability to detect wireless networks, a matching target record can be identified from multiple preset records, and then a third network can be accessed on the second frequency band based on the target record. This overcomes the influence of the operating system on the device's wireless network detection capabilities, improving the success rate of accessing new networks after frequency band switching.
[0039] For example, the first type of system can be Android, and the second type of system can be iOS. The preset record is generated based on wireless network access switching performed by an associated device running the first type of system at the same location. The preset record includes description information indicating a wireless network in the first frequency band and description information indicating a wireless network in the second frequency band. The description information of the wireless network may include at least one of the following: a service set identifier for the wireless network and a basic service set identifier corresponding to the wireless network. For example, if an associated device running Android first accesses wireless network i in the first frequency band at location x, and then accesses wireless network j in the second frequency band; or first accesses wireless network j in the second frequency band, and then accesses wireless network i in the first frequency band. The preset record containing the description information of wireless network i and wireless network j can be generated by the associated device or generated by the server based on at least one information report from the associated device. For example, the associated device carries the description information of wireless network i, the description information of wireless network j, and reference location information indicating location x in a single information report. In its previous information report, the associated device carried a description of wireless network i and a reference location indicating location x. In its subsequent information report, it carried a description of wireless network j and the same reference location information. The information reported by the associated device can be encrypted. For example, the reference location information for location x could be the hash value of location x. In practical applications, the server can use federated learning to construct a cross-platform network configuration knowledge graph containing multiple pre-defined records.
[0040] The target record is the record among multiple preset records that matches the description information of the first network. In other words, the target record contains description information indicating a wireless network in the first frequency band that matches the "description information of the first network." Then, based on the description information of the third network accessed in the second frequency band in the target record, that is, referring to the remaining description information in the target record indicating a wireless network in the second frequency band...
[0041] In practical applications, the "description information of the first network" matching the description information of the wireless network indicating the first frequency band can mean that the two description information are identical, such as the two service set identifiers being identical and the two basic service set identifiers being identical. Of course, for two identical description information, the matching degree between the two service set identifiers can also be constrained to be greater than a first threshold, and the matching degree between the two basic service set identifiers to be greater than a second threshold. The calculation of the matching degree between the two service set identifiers can refer to the aforementioned calculation of the first matching degree, and will not be repeated here. The calculation of the matching degree between the two basic service set identifiers can refer to the aforementioned calculation of the second matching degree, and will not be repeated here.
[0042] Furthermore, before accessing the third network in the second frequency band based on the target record, the method may further include the following steps: first, sending the description information of the first network to the server, so that the server determines the matching target record from the plurality of preset records based on the description information of the first network; then, receiving the target record sent by the server.
[0043] Multiple preset records can be maintained by the server. Simultaneously, upon receiving the description information of the first network from the target device, the server is also responsible for identifying the target record through matching and sending the target record to the target device, enabling the target device to access the third network in the second frequency band based on the target record. The server's involvement effectively establishes information exchange between devices running different operating systems regarding wireless networks, supports devices lacking the ability to detect wireless networks in successfully switching frequency bands to access new networks, and improves the efficiency and convenience of switching frequency bands to access new networks through the identification and transmission of target records.
[0044] The server can be a standalone physical server, a server cluster or distributed system consisting of at least two physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server may include network communication units, processors, and memory.
[0045] For example, after successful network configuration, the associated device reports the following encrypted information to the server: [5G_SSID, 5G_BSSID, 2.4G_SSID, 2.4G_BSSID, geolocation hash]. The server generates high-confidence routing rules using a spatiotemporal clustering algorithm: IF 5G_BSSID first N bits = X & 5G_SSID = Y THEN 2.4G_SSID = Z1; or, IF 5G_BSSID first N bits = X & 5G_SSID = Y THEN 2.4G_BSSID = Z2. Accordingly, "2.4G_SSID = Z1" can be sent to the target device as a potential SSID list; or, "2.4G_BSSID = Z2" can be sent to the target device as a potential BSSID list.
[0046] As can be seen from the technical solutions provided in the embodiments of this application above, the embodiments of this application provide a more adaptable wireless network access scheme. When accessing a first network in the first frequency band, a second network meeting preset conditions is determined from at least one candidate network in the second frequency band for access. The preset conditions ensure that the target matching degree between the first and second networks is greater than a matching degree threshold, and the determination of the target matching degree comprehensively considers the matching degree at the service set identifier dimension, the basic service set identifier dimension, and the signal strength dimension. Compared to related technologies that rely on the same service set identifier for frequency band switching, this provides a larger number of candidate networks, no longer limited to the same wireless network supporting at least two frequency bands. The richness of multi-dimensional information supports the accuracy of the determined target matching degree, which is beneficial for the second network accessed after frequency band switching to effectively support the network usage needs of the target device. Simultaneously, considering that access to wireless networks is generally prioritized in higher frequency bands, while accessing wireless networks in lower frequency bands via frequency band switching requires manual operation by the user, this provides an expansion possibility for adapting to scenarios that require automatic frequency band switching to access wireless networks in lower frequency bands.
[0047] This application also provides a wireless network access device, such as... Figure 4 As shown, the wireless network access device 40 is configured on the target device, and the wireless network access device 40 includes: The candidate network determination module 401 is used to determine at least one candidate network in a second frequency band when the first frequency band is connected to the first network, wherein the frequency of the second frequency band is less than the frequency of the first frequency band. Wireless network access module 402 is used to determine a second network that meets preset conditions from the at least one candidate network, and to access the second network in the second frequency band. The preset conditions indicate that the target matching degree between the first network and the second network is greater than the matching degree threshold. The target matching degree is determined based on the matching degree of the service set identifier dimension, the matching degree of the basic service set identifier dimension, and the matching degree of the signal strength dimension.
[0048] In some embodiments, the wireless network access module includes: The information acquisition unit is used to acquire the reference service set identifier, the corresponding reference basic service set identifier, and the reference signal strength of the first network; The candidate matching degree determination unit is configured to, for each candidate network, obtain the candidate service set identifier, the corresponding candidate basic service set identifier, and the candidate signal strength of the candidate network, and determine the candidate matching degree between the first network and the candidate network, so as to obtain the candidate matching degree corresponding to each of the at least one candidate network. The candidate matching degree is determined based on the first matching degree between the reference service set identifier and the candidate service set identifier, the second matching degree between the reference basic service set identifier and the candidate basic service set identifier, and the third matching degree between the reference signal strength and the candidate signal strength. A target network determination unit is configured to determine the target matching degree as the matching degree that is the largest among the candidate matching degrees corresponding to each of the at least one candidate network and is greater than the matching degree threshold, and to determine the candidate network corresponding to the target matching degree as the second network.
[0049] In some embodiments, the apparatus further includes a first matching degree determination module; The first matching degree determination module is used to obtain the first identification information of the baseline service set identifier by deleting the suffix of the baseline service set identifier according to the preprocessing rules, and to obtain the second identification information of the candidate service set identifier by deleting the suffix of the candidate service set identifier; and to use the matching degree between the first identification information and the second identification information as the first matching degree.
[0050] In some embodiments, the apparatus further includes a second matching degree determination module; The second matching degree determination module is used to extract, based on the preset derivation rules, a third identification information indicating the original media access control address from the baseline basic service set identifier and a fourth identification information indicating the original media access control address from the candidate basic service set identifier, wherein the preset derivation rules indicate character addition or replacement processing for the original media access control address; and to use the matching degree between the third identification information and the fourth identification information as the second matching degree.
[0051] In some embodiments, the apparatus further includes a candidate matching degree determination module; The candidate matching degree determination module is used to determine a first representation matching degree based on a first weight of the service set identifier dimension and the first matching degree; determine a second representation matching degree based on a second weight of the basic service set identifier dimension and the second matching degree; determine a third representation matching degree based on a third weight of the signal strength dimension and the third matching degree; and obtain the candidate matching degree based on the first representation matching degree, the second representation matching degree, and the third representation matching degree.
[0052] In some embodiments, the apparatus further includes: An operating system determination module is used to determine the operating system of the target device; The first type of network access module is used to perform the following operations when the operating system is a first type system: acquiring at least one candidate network for determining a second frequency band, determining a second network that meets preset conditions from the at least one candidate network, and accessing the second network in the second frequency band; The second type of network access module is used to access a third network in the second frequency band based on a target record when the operating system is a second type of system. The target record is a record that matches the description information of the first network among a plurality of preset records. The preset record includes description information indicating the wireless network of the first frequency band and description information indicating the wireless network of the second frequency band. The preset record is generated based on wireless network access switching performed at the same location by associated devices equipped with the first type of system.
[0053] In some embodiments, the second type of network access module further includes: An information sending unit is used to send description information of the first network to the server, so that the server can determine the matching target record from the plurality of preset records based on the description information of the first network. The target record receiving unit is used to receive the target record sent by the server.
[0054] In some embodiments, the frequency of the first frequency band is 5 GHz, and the frequency of the second frequency band is 2.4 GHz.
[0055] It should be noted that the apparatus and method embodiments described in the device embodiments are based on the same inventive concept.
[0056] This application also provides an electronic device, including the wireless network access device described above.
[0057] Electronic devices may also include a memory and a processor, in which a computer program is stored, and which is loaded and executed by the processor to implement the methods described above.
[0058] It should be noted that the devices and methods described in the device embodiments are based on the same inventive concept.
[0059] This application also provides a computer-readable storage medium storing at least one instruction or at least one program segment, which is loaded and executed by a processor to implement the above-described method. The computer-readable storage medium may be a non-volatile computer-readable storage medium.
[0060] This application also provides a computer program product, which includes at least one instruction or at least one program segment, wherein the at least one instruction or at least one program segment is loaded and executed by a processor to implement the above method.
[0061] The embodiments described above are merely examples of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention.
Claims
1. A method of wireless network access, the method comprising: Applied to a target device, the method includes: When accessing a first network in a first frequency band, at least one candidate network in a second frequency band is determined, wherein the frequency of the second frequency band is less than the frequency of the first frequency band. A second network that meets preset conditions is determined from the at least one candidate network, and the second network is accessed in the second frequency band. The preset conditions indicate that the target matching degree between the first network and the second network is greater than the matching degree threshold. The target matching degree is determined based on the matching degree of the service set identifier dimension, the matching degree of the basic service set identifier dimension, and the matching degree of the signal strength dimension.
2. The method of claim 1, wherein, The step of determining a second network that meets preset conditions from the at least one candidate network includes: Obtain the reference service set identifier, the corresponding reference basic service set identifier, and the reference signal strength of the first network; For each candidate network, the candidate service set identifier, the corresponding candidate basic service set identifier, and the candidate signal strength of the candidate network are obtained, and the candidate matching degree between the first network and the candidate network is determined, so as to obtain the candidate matching degree corresponding to each of the at least one candidate network. The candidate matching degree is determined based on the first matching degree between the reference service set identifier and the candidate service set identifier, the second matching degree between the reference basic service set identifier and the candidate basic service set identifier, and the third matching degree between the reference signal strength and the candidate signal strength. The candidate matching degree with the largest matching degree that is greater than the matching degree threshold is determined as the target matching degree, and the candidate network corresponding to the target matching degree is determined as the second network.
3. The method of claim 2, wherein, The method further includes: According to the preprocessing rules, the suffix of the baseline service set identifier is removed to obtain the first identification information of the baseline service set identifier, and the suffix of the candidate service set identifier is removed to obtain the second identification information of the candidate service set identifier. The matching degree between the first identification information and the second identification information is used as the first matching degree.
4. The method according to claim 2, characterized in that, The method further includes: When the baseline basic service set identifier is generated based on a preset derivation rule, a third identification information indicating the original media access control address is extracted from the baseline basic service set identifier based on the preset derivation rule, and a fourth identification information indicating the original media access control address is extracted from the candidate basic service set identifier. The preset derivation rule indicates the addition or replacement of characters in the original media access control address. The matching degree between the third identification information and the fourth identification information is used as the second matching degree.
5. The method according to any one of claims 2-4, characterized in that, The method further includes: The first representation matching degree is determined based on the first weight of the service set identifier dimension and the first matching degree. The second representation matching degree is determined based on the second weight of the basic service set identifier dimension and the second matching degree; The third representation matching degree is determined based on the third weight of the signal strength dimension and the third matching degree. The candidate matching degree is obtained based on the first characterization matching degree, the second characterization matching degree, and the third characterization matching degree.
6. The method according to claim 1, characterized in that, The method further includes: Determine the operating system of the target device; If the operating system is a first type of system, the following operations are performed: acquiring at least one candidate network for determining the second frequency band, determining a second network that meets preset conditions from the at least one candidate network, and accessing the second network in the second frequency band; When the operating system is a type 2 system, a third network is accessed in the second frequency band based on a target record. The target record is a record that matches the description information of the first network among a plurality of preset records. The preset record includes description information indicating the wireless network of the first frequency band and description information indicating the wireless network of the second frequency band. The preset record is generated based on wireless network access switching performed at the same location by associated devices equipped with the type 1 system.
7. The method according to claim 6, characterized in that, The method, based on the target record before accessing the third network in the second frequency band, further includes: The description information of the first network is sent to the server so that the server can determine the matching target record from the plurality of preset records based on the description information of the first network. Receive the target record sent by the server.
8. The method according to claim 1, characterized in that, The first frequency band has a frequency of 5 GHz, and the second frequency band has a frequency of 2.4 GHz.
9. A wireless network access device, characterized in that, Configured in a target device, the device includes: The candidate network determination module is used to determine at least one candidate network in a second frequency band when the first frequency band is connected to a first network, wherein the frequency of the second frequency band is less than the frequency of the first frequency band. A wireless network access module is configured to determine a second network that meets preset conditions from at least one candidate network, and to access the second network in the second frequency band. The preset conditions indicate that the target matching degree between the first network and the second network is greater than a matching degree threshold. The target matching degree is determined based on the matching degree in the service set identifier dimension, the matching degree in the basic service set identifier dimension, and the matching degree in the signal strength dimension.
10. An electronic device, characterized in that, Includes the wireless network access device as described in claim 9.