Network distribution method and device and storage medium

Obtaining wireless LAN identification information through mobile terminals and automatically selecting the target wireless LAN, the problem of user manual selection of wireless LAN and inconsistent frequency bands is solved, and the normal connection and use of devices to be distributed is realized, improving user experience.

CN119892634APending Publication Date: 2025-04-25HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411888541.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the prior art, users need to manually select a wireless LAN, which is troublesome to operate. When the wireless LAN selected by the user is different from the network frequency band that the network device to be distributed can be accessed, normal communication connection cannot be established, affecting user use.

Method used

The identification information of the connected first wireless LAN is obtained through the mobile terminal, and the distribution information of the target wireless LAN is obtained using these identification information, and the distribution information is sent to the device to be distributed to instruct the device to establish a connection with the target wireless LAN.

Benefits of technology

It realizes automatic selection and configuration of wireless LANs, avoids users manually selecting the wrong wireless LAN, improves user experience, and ensures that the network devices to be distributed can be connected and used normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892634A_ABST
    Figure CN119892634A_ABST
Patent Text Reader

Abstract

The invention discloses a network distribution method and device and a storage medium, and relates to the technical field of smart home, and the network distribution method comprises the steps that a mobile terminal obtains the identification information of a connected first wireless local area network; the mobile terminal obtains network distribution information of the target wireless local area network by using the identification information; the mobile terminal sends network distribution information to the equipment to be subjected to network distribution, wherein the network distribution information is used for indicating the equipment to be subjected to network distribution to establish connection with the target wireless local area network; wherein the first wireless local area network and the target wireless local area network belong to the same router. According to the method and the device, the target wireless local area network of the corresponding frequency band in the router to which the mobile terminal belongs is acquired by utilizing the wireless local area network connected with the mobile terminal, and the method and the device are not limited to acquiring the wireless local area network with the same frequency band as the first wireless local area network, and do not need manual selection by a user; therefore, a user is prevented from selecting a wireless local area network which does not accord with the frequency band of the to-be-configured network equipment, the situation that the user cannot configure the to-be-configured network equipment is avoided, and the user experience is improved to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of smart home technology, and specifically, relates to a network distribution method, device and storage medium. Background Art

[0002] In the whole-house smart scene, users can use mobile terminals to control the devices to be configured to access the wireless LAN, so that the devices to be configured can provide users with an intelligent life experience. However, due to cost, communication distance requirements and other reasons, the current devices to be configured only support single-frequency communication (such as 2.4G). At present, users are often required to manually select the wireless LAN to which the devices to be configured are connected, which is a more cumbersome operation. In addition, when the wireless LAN that the user chooses to access is different from the network frequency band that the device to be configured can access, it is impossible to establish a normal communication connection between the device to be configured and the wireless LAN, which affects the normal use of users. Summary of the invention

[0003] The embodiments of the present application provide a network configuration method, device and storage medium, which solve the problem in the prior art that users are required to manually select a wireless local area network.

[0004] In order to achieve the above objectives, this application adopts the following technical solutions:

[0005] In a first aspect, a network configuration method is provided, the method comprising: a mobile terminal obtains identification information of a first wireless local area network to which it is connected; the mobile terminal uses the identification information to obtain network configuration information of a target wireless local area network; the mobile terminal sends the network configuration information to a device to be configured; wherein the network configuration information is used to indicate that the device to be configured establishes a connection with the target wireless local area network; the first wireless local area network and the target wireless local area network belong to the same router.

[0006] In a possible implementation manner of the first aspect, the identification information includes at least one of the following:

[0007] A first identifier and a second identifier; the mobile terminal uses the identifier information to obtain a target wireless local area network, including: the mobile terminal uses the first identifier and / or the second identifier to search and obtain the target wireless local area network.

[0008] In a possible implementation of the first aspect, the mobile terminal uses the first identifier and / or the second identifier to search and obtain the target wireless local area network, including: the mobile terminal uses the first identifier to search and obtains a first matching result; the mobile terminal determines whether the match is successful based on the first matching result; if so, the mobile terminal obtains the target wireless local area network based on the first matching result; if not, the mobile terminal uses the second identifier to search and obtain a second matching result; the mobile terminal determines whether the match is successful based on the second matching result; if so, the mobile terminal obtains the target wireless local area network based on the second matching result.

[0009] In a possible implementation of the first aspect, the mobile terminal uses the first identifier and / or the second identifier to search and obtain the target wireless local area network, and also includes: the mobile terminal uses the second identifier of the first wireless local area network and the frequency band required by the device to be configured to search and obtain the target wireless local area network.

[0010] In a possible implementation of the first aspect, the use of the first identifier of the first wireless local area network to search and obtain the target wireless local area network also includes: the mobile terminal uses the first identifier to search and obtain a third matching result; determines whether the third matching result meets a preset condition; if not, removes the characters at a specified position in the first identifier, and performs an iterative search based on the first identifier after the characters are removed; wherein the specified position includes at least one of the following: the first position, the last position, and the middle position.

[0011] In a possible implementation manner of the first aspect, the first identifier is a BSSID, and the second identifier is an SSID.

[0012] In a possible implementation manner of the first aspect, the network configuration information includes at least: password information of the target wireless local area network and identification information of the target wireless local area network.

[0013] In a possible implementation manner of the first aspect, the method further includes: sending first indication information to the device to be configured; wherein the first indication information is used to instruct the device to be configured to enter a configuration mode; in the configuration mode, sending second indication information to the device to be configured, wherein the second indication information at least includes the network configuration information.

[0014] In a second aspect, a network configuration device is provided, the device comprising: an identification acquisition module, used to acquire identification information of a first wireless local area network to be connected; an information acquisition module, used to obtain network configuration information of a target wireless local area network using the identification information; an information sending module, used to send the network configuration information to a device to be configured; the network configuration information is used to instruct the device to be configured to establish a connection with the target wireless local area network;

[0015] The first wireless local area network and the target wireless local area network belong to the same router.

[0016] According to a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program is used to execute the method provided by the first aspect or any possible implementation of the first aspect.

[0017] After adopting the above technical solution, the present application has the following beneficial effects compared with the prior art: the present application uses the connected wireless LAN to determine the target wireless LAN of the same router to which it belongs, and sends the network configuration information to the device to be configured, thereby realizing the connection between the device to be configured and the router. Specifically, the present application uses the wireless LAN connected to the mobile terminal to obtain the target wireless LAN of the corresponding frequency band in the router to which it belongs, and is not limited to obtaining only the wireless LAN of the same frequency band as the first wireless LAN. The user does not need to make a manual selection, thereby avoiding the user from selecting a wireless LAN that does not match the frequency band of the device to be configured, thereby avoiding the user from being unable to configure the device to be configured, and improving the user experience to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1 It is an interactive schematic diagram of a distribution network method in the prior art;

[0021] Figure 2 It is a flowchart of a network distribution method provided in an embodiment of the present application;

[0022] Figure 3 This is a flowchart of a network selection provided by an embodiment of the present application;

[0023] Figure 4 It is a schematic diagram of a distribution network device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] According to one aspect of an embodiment of the present application, a network distribution method is provided. The network distribution method is widely used in whole-house intelligent digital control application scenarios such as smart home, smart home, smart home device ecology, and smart residential (Intelligence House) ecology. Optionally, in this embodiment, the above-mentioned network distribution method can be applied to a hardware environment consisting of a terminal device and a server. The server is connected to the terminal device through a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server.

[0027] The above network may include but is not limited to at least one of the following: wired network, wireless network. The above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device may be but is not limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projection equipment, smart TV, smart clothes drying rack, smart curtain, smart audio and video, smart socket, smart audio, smart speaker, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart sweeping robot, smart window cleaning robot, smart mopping robot, smart air purification equipment, smart steamer, smart microwave oven, smart kitchen treasure, smart purifier, smart water dispenser, smart door lock, etc.

[0028] Among them, a wireless local area network (WLAN) is a network established within a certain local range using wireless communication technology. The wireless local area network mainly transmits data through radio waves, providing users with the ability to wirelessly access the Internet or other resources within the local area network. At present, the IEEE802.11 series of protocols include 802.11be, 802.11ax, 802.11a / b / g / n / ac and other versions. In an embodiment of the present application, the wireless local area network can be a wireless network based on any protocol version. Among them, the wireless local area network includes but is not limited to at least one of the following: a wireless local area network in the 2.4G frequency band, a wireless local area network in the 5G frequency band, and a wireless local area network in the 6G frequency band.

[0029] Among them, the wireless local area network of the 2.4G frequency band can also be called the 2.4G wireless frequency band and 2.4G wireless technology. For the convenience of subsequent understanding, they are collectively referred to as 2.4G. The wireless local area network of the 5G frequency band can also be called the 5G wireless frequency band and 5G wireless technology. For the convenience of subsequent understanding, they are collectively referred to as 5G.

[0030] A mobile terminal refers to a computer device that can be used on the move. Mobile terminals include but are not limited to at least one of the following: a mobile phone, a notebook, a tablet computer, a POS machine, and a car computer.

[0031] Devices to be configured are those that have just been unpacked or restored to factory settings and have not yet been connected to the Internet. These devices usually include various smart devices that can connect to the Internet, but they need to be configured by the user before they can work properly. Devices to be configured usually belong to the category of the Internet of Things, and common devices to be configured include IoT devices. Among them, IoT devices can also be called IoT devices and IoT terminal devices, which have the ability to connect to the network wirelessly and transmit data. Including but not limited to at least one of the following: smart TVs, smart speakers, toys, wearable devices, smart appliances, sensors, controllers and actuators.

[0032] In the whole-house smart scenario, users can use mobile terminals to control the devices to be configured to access the wireless LAN, so that the devices to be configured can provide users with an intelligent life experience.

[0033] However, due to various reasons such as cost, communication distance requirements, and power consumption, most of the devices to be networked only support single-frequency (such as 2.4G band) communication. If the frequency bands of the router and the device to be networked are inconsistent, the communication connection cannot be established correctly. This requires the user to select a router to connect the device to be networked that must be the same frequency band as the device to be networked. Since most of the current routers are dual-band (such as 2.4G, 5G) routers, users are required to select a 2.4G wireless LAN for connection, but the frequency band most commonly used by users' mobile phones is 5G, and it is difficult for ordinary users to understand what 2.4G is and how to choose 2.4G, which makes it impossible for users to complete network configuration. For details, please refer to Figure 1 ,like Figure 1 As shown, in this embodiment, the mobile phone may be a mobile terminal, and the IoT device may be a device to be networked. Next, the network configuration process in the prior art will be described:

[0034] S1, the mobile phone operates the IoT device to enter the configuration mode.

[0035] In this step, when the mobile phone establishes a connection with the IoT device, such as a Bluetooth connection, the IoT device is operated to enter the configuration mode, that is, the IoT device is put into a specific state through the mobile phone application (i.e., APP) to perform network configuration, device binding or other settings. In the configuration mode, the user can obtain nearby wireless LANs, which can come from different routers or have different frequency bands. The user needs to select a wireless LAN from which the IoT device can establish a connection.

[0036] S2. Use the mobile phone to operate the APP to select the configured router and enter the router password.

[0037] In this step, the user needs to manually select the wireless LAN (or router) configured by the IoT device through the mobile phone, and enter the password of the selected wireless LAN. The wireless LAN can be the wireless LAN connected to the user's mobile phone, or it can be a wireless LAN selected by the user at will.

[0038] S3, the mobile phone sends the router service set identifier (SSID) to the IoT device.

[0039] After the user enters the password of the wireless LAN through the mobile phone, the mobile phone sends the SSID and password to the IoT device. The IoT device can establish a connection with the router based on the SSID and password, thereby accessing the Internet (ie, step S4).

[0040] S4, the IoT device connects to the router using the received information.

[0041] S5, the mobile phone binds the IoT device connected to the router to the user's account.

[0042] The above is the network configuration method of the device to be configured in the prior art. As can be seen from the above steps, if the user selects the wrong wireless LAN in step S3 (the frequency band does not match the device to be configured, or the wrong network to be connected is selected, resulting in the password information not matching the network), the device to be configured cannot execute step S4, that is, it cannot establish a connection with the router, and the configuration fails. As a result, the device to be configured cannot be used normally, affecting the user experience.

[0043] In order to solve the above problems, the present application provides a network configuration method, which uses the first wireless LAN connected to the mobile terminal to determine the target wireless LAN belonging to the same router, so that the user does not need to select the wireless LAN to determine the target wireless LAN.

[0044] like Figure 2 As shown, the method is applied to a mobile terminal, and the method specifically comprises the following steps:

[0045] S201: A mobile terminal obtains identification information of a first wireless local area network to which it is connected.

[0046] In this step, the mobile terminal can obtain the identification information of the first wireless local area network, and the identification information can be used to determine the target wireless local area network for establishing a connection with the device to be configured (i.e., step S202). The first wireless local area network is the wireless local area network to which the mobile device is connected. For example, if the user's mobile phone is connected to wireless local area network A, then wireless local area network A is the first wireless local area network.

[0047] In this step, the present application does not specifically limit the manner in which the mobile terminal obtains the identification information of the first wireless local area network. Specifically, the identification information can be read by the mobile terminal or sent by other devices.

[0048] S202: The mobile terminal obtains network configuration information of the target wireless local area network using the identification information.

[0049] Specifically, the mobile terminal can determine the target wireless LAN using the identification information of the first wireless LAN, and the target wireless LAN and the first wireless LAN belong to the same or different networks provided by the same router. Unlike the prior art in which the user selects from multiple nearby wireless LANs, the present application is based on the fact that most current routers are dual-band routers. The mobile terminal searches for a wireless LAN with the same frequency band as the required one based on known routers, and the user does not need to make a selection. The mobile terminal can obtain the wireless LAN with the corresponding frequency band of the router to which it belongs based on the first wireless LAN to which it is connected, and establish a connection.

[0050] Since the device to be configured needs to be connected to a wireless LAN with the same frequency band as required in order to be used, the frequency band of the target wireless LAN is related to the device to be configured, that is, the frequency band required by the device to be configured is the frequency band of the target wireless LAN.

[0051] Among them, according to the settings of the network device to be configured, the frequency band required by the network device to be configured is the same as or different from the frequency band of the first wireless local area network. Specifically, when the frequency band required by the network device to be configured is the same as the frequency band of the first wireless local area network, the mobile terminal can directly use the first wireless local area network as the target wireless local area network, and the mobile terminal can operate the network device to be configured to directly connect to the first wireless local area network. When the frequency band required by the network device to be configured is different from the frequency band of the first wireless local area network, the mobile terminal uses the first wireless local area network to obtain the router to which it belongs. Since most of the current routers are dual-band routers, the mobile terminal can search for wireless local area networks of other frequency bands in the router based on the relevant information of the first wireless local area network. When the router has a wireless local area network of the corresponding frequency band, the target wireless local area network is determined, so as to operate the network device to be configured to connect to the target wireless local area network. When the router does not have a wireless local area network of the corresponding frequency band, the user will make a manual selection. In this way, the target wireless local area network to be connected can be automatically determined according to the first wireless local area network without the need for user selection, and the mobile terminal can thereby operate the device to be configured to access the network.

[0052] It should be noted that the present application does not specifically limit the method by which the mobile terminal determines the target local area network based on the first wireless local area network, including but not limited to at least one of the following: determining based on SSID, determining based on a basic service set identifier (BSSID), and determining based on an IP address. The specific acquisition method will be described in detail later and will not be elaborated here.

[0053] S203, the mobile terminal sends the network configuration information to the device to be configured, and the device to be configured establishes a connection with the target wireless local area network according to the network configuration information;

[0054] The first wireless local area network and the target wireless local area network belong to the same router.

[0055] In this step, after determining the target LAN, the mobile terminal can send the network configuration information to the device to be configured. The network configuration information includes at least: the password information of the target wireless LAN and the identification information of the target wireless LAN. The password information can be used to connect to the target wireless LAN, and the identification information can be used by the device to be configured to identify the wireless LAN to which it needs to connect. The password information includes but is not limited to at least one of the following: a security certificate, a password of the target wireless LAN, and a key of the target wireless LAN. The identification information includes but is not limited to at least one of the following: IP, SSID, BSSID, and Extended Service Set Identifier (ESSID).

[0056] Among them, the specific method of obtaining the configuration information of the target wireless LAN in the present application, taking password information as an example, the password information can be obtained by user input or by reading an existing password. Exemplarily, the two can also be used in combination. Since the passwords of wireless LANs of different frequency bands belonging to the same router may be the same, that is, the connection with the target wireless LAN is made through the password of the connected wireless LAN, thereby avoiding the user from repeatedly entering information. When the password does not match the target wireless LAN, that is, when the IoT device cannot establish a connection with the target wireless LAN based on the password, the password information can be obtained based on the user input.

[0057] The device to be configured can find the target wireless LAN based on the identification information in the network configuration information, and then establish a connection with the target wireless LAN based on the password information. Among them, since the wireless LAN is usually created and managed by a router, to some extent, it can also be regarded as a connection relationship between the device to be configured and the router. The above connection relationship is only a different form of expression. In fact, this step is mainly used to express that the device to be configured can access the Internet based on the network configuration information, so as to communicate with other systems or devices.

[0058] In summary, the present application utilizes the connected wireless LAN to determine the target wireless LAN of the same router to which it belongs, and sends the network configuration information to the device to be configured, thereby realizing the connection between the device to be configured and the router. Specifically, the present application utilizes the wireless LAN to which the mobile terminal is connected to obtain the target wireless LAN of the corresponding frequency band in the router to which it belongs, and is not limited to obtaining only the wireless LAN of the same frequency band as the first wireless LAN. The user does not need to make a manual selection, thereby avoiding the user from selecting a wireless LAN that does not match the frequency band of the device to be configured, thereby avoiding the user from being unable to configure the device to be configured, and improving the user experience to a certain extent.

[0059] In the aforementioned step S202, the mobile terminal can use various information of the first wireless local area network to determine the target wireless local area network. Exemplarily, the identification information may include a first identification and a second identification. The mobile terminal can use the first identification and / or the second identification to obtain the target wireless local area network. Please refer to the following for details.

[0060] In an illustrative embodiment, the mobile terminal searches using the first identifier of the first wireless local area network to obtain the target wireless local area network.

[0061] In this embodiment, the mobile terminal can use the first identifier of the first wireless local area network for matching, wherein the first identifier may include but is not limited to at least one of the following: SSID, BSSID, IP address. Preferably, BSSID can be used for fuzzy matching, because BSSID is unique, it can ensure that the device will not connect to the wrong network during the matching stage to a certain extent, thereby improving the security of the system.

[0062] Among them, some routers may assign different identifiers to wireless local area networks of different frequency bands. In this case, fuzzy matching can be performed on the first identifier, that is, partial or approximate matching is found through the BSSID of the first identifier, thereby expanding the coverage of the search results.

[0063] The process of the mobile terminal searching by using the first identifier specifically includes steps S2011-S2022:

[0064] S2011: The mobile terminal uses the first identifier to search and obtains a third matching result.

[0065] Specifically, the mobile terminal can use the first identifier to search for nearby identifiers of the same type that are the same or similar to the first identifier, thereby obtaining a third matching result, wherein the third matching result may include but is not limited to at least one of the following: target wireless LAN, number of matches, matching time, and length information of the first identifier.

[0066] When the third matching result meets the preset conditions, the matching is stopped. The preset conditions include but are not limited to at least one of the following: successful matching, the number of matches reaches the first preset threshold, the length of the first identifier is less than the second preset threshold, and the matching time is greater than the third preset threshold. It should be understood that the present application does not specifically limit the type of preset conditions, as well as the specific values ​​of the first preset threshold, the second preset threshold, and the third preset threshold. The above is only an embodiment for easy understanding, and the specific details can be determined according to the actual situation. When the third matching result does not meet the preset conditions, the subsequent step S2012 is executed until the third matching result meets the preset conditions.

[0067] S2012, the mobile terminal removes the characters at a specified position in the first identifier; wherein the specified position includes at least one of the following: the first position, the last position, and the middle position.

[0068] If any match fails and the preset conditions are not met, the characters at the specified position in the first identifier are removed, and the fuzzy search is performed again using the first identifier after the characters are removed until the preset conditions are met. The specified position can be determined according to actual conditions, including but not limited to at least one of the following: the first position, the last position, and the middle position.

[0069] For ease of understanding, this application will be explained in conjunction with the following embodiments:

[0070] Exemplarily, assuming that the BSSID of the router currently connected to the user's mobile phone is "e0:19:1d:cc:7e:c4", if the target wireless LAN cannot be detected based on the BSSID, the last digit of the BSSID string is removed and a fuzzy match is performed, that is, the wireless LAN with a BSSID prefix of "e0:19:1d:cc:7e:c" is matched; if it still cannot be found, the last digit of the target BSSID string is removed and a fuzzy match is performed, that is, the router with a BSSID prefix of "e0:19:1d:cc:7e:" is matched; if it still cannot be found, the last digit of the target BSSID string is removed and a fuzzy match is performed, that is, the router with a BSSID prefix of "e0:19:1d:cc:7" is matched; if it still cannot be found, the last digit of the target BSSID string is removed and a fuzzy match is performed, that is, the router with a BSSID prefix of "e0:19:1d:cc:7" is matched; if it still cannot be found, the last digit of the target BSSID string is removed and a fuzzy match is performed, that is, the router with a BSSID prefix of "e0:19:1d:cc:" is matched... and so on, until the preset conditions are met.

[0071] In this way, the search range of the wireless local area network can be expanded and the accuracy of recognition can be improved.

[0072] In another exemplary embodiment, the mobile terminal uses the second identifier of the first wireless local area network to match the frequency band required by the to-be-connected device to obtain the target wireless local area network; wherein the second identifier is an SSID.

[0073] Specifically, in this step, the mobile terminal can combine the second identifier and the required frequency band of the IoT device to obtain a third identifier, and use the third identifier for matching to obtain the target wireless local area network. Among them, the present application does not specifically limit the type of the second identifier, and the second identifier includes but is not limited to at least one of the following: SSID, BSSID, IP address. Preferably, the second identifier can be an SSID, that is, the user can clearly identify the wireless local area network being connected through the SSID, which can prevent the wrong connection to the network to a certain extent and improve the security of the system.

[0074] For ease of understanding, the following will be explained in conjunction with specific embodiments.

[0075] In an illustrative embodiment, assuming that the SSID of the 5G frequency band currently connected to the user's mobile phone is "ARouter" or "ARouter_5G", "ARouter_5g", "Arouter-5G", "Arouter-5g", "ARouter5G", "ARouter5g", and the wireless LAN frequency band required by the device to be configured is 2.4G, then directly add "2.4G" to the current SSID suffix or change the "5G" suffix to "2.4G" for search, that is, the SSID to be searched becomes "ARouter_2.4G", "Arouter-2.4G", "ARouter2.4G", "ARouter_2.4g", "Arouter-2.4g", "ARouter2.4g".

[0076] It should be understood that the above two embodiments (i.e., using the first identifier and the second identifier to search respectively) are only two embodiments for easy understanding. In actual applications, they can be selected or combined according to actual conditions. That is to say, in actual applications, you can choose to use only the first identifier to match the network, or you can choose to use only the second identifier to match. Optionally, you can also combine the two, that is, after the first embodiment fails to match, execute the second embodiment, so that you can get the following embodiment:

[0077] In another illustrative embodiment, the mobile terminal may first use the first identifier to search and obtain a first matching result. The step of searching using the first identifier here can refer to the process of network matching using the first identifier above. After obtaining the first matching result, the mobile terminal can determine whether the match is successful based on the first matching result; if so, the mobile terminal obtains the target wireless local area network based on the first matching result; if not, the mobile terminal uses the second identifier to search and obtain a second matching result; the step of searching using the second identifier here can refer to the process of network matching using the second identifier above. After obtaining the second matching result, the mobile terminal can determine whether the match is successful based on the second matching result; if so, the mobile terminal obtains the target wireless local area network based on the second matching result.

[0078] Optionally, after all matching processes are completed, that is, the mobile terminal cannot obtain the target wireless LAN based on the first identifier and the second identifier, the user can select a wireless LAN to connect to, and the wireless LAN selected by the user is determined as the target wireless LAN.

[0079] For ease of understanding, the following will be explained in conjunction with a specific embodiment. In an exemplary embodiment, the network configuration process is specifically referred to Figure 3 ,like Figure 3 As shown, this embodiment specifically includes AE:

[0080] A. The mobile terminal selects a device to be configured for network configuration.

[0081] B. Determine whether the Wi-Fi currently connected to the mobile phone is 5G.

[0082] B1, when the wifi connected to the mobile phone is not 5G, directly use 2.4G wifi for network configuration.

[0083] B2, when the mobile phone is connected to 5G WiFi, scan and traverse nearby 2.4G routers.

[0084] C. The mobile phone uses BSSID fuzzy matching router.

[0085] D. Determine whether the match is successful.

[0086] D1, when the matching is successful, use 2.4Gwifi for network configuration.

[0087] D2, when the matching fails, use the SSID to match the router.

[0088] E, determine whether the match is successful.

[0089] E1, when the matching is successful, use 2.4Gwifi for network configuration.

[0090] E2, users are required to manually select the Wi-Fi network.

[0091] In this way, the mobile terminal can use two different identification information to search, thereby improving the accuracy of the mobile terminal search, simplifying user operations and enhancing network security. This retrieval and connection method has been widely used in wireless networks, providing users with a more stable, reliable and secure network connection experience.

[0092] It should be understood that the above is only an embodiment for easy understanding, and the present application does not specifically limit the specific order of the mobile terminal applying the above two embodiments, that is, the mobile terminal can first use the BSSID for matching, and then use the SSID for matching after the matching fails. It can also first use the SSID for matching, and then use the BSSID for matching after the matching fails.

[0093] Optionally, before the mobile terminal performs the network configuration process, a first indication message may be sent to the device to be configured, wherein the first indication message is used to instruct the device to be configured to enter a configuration mode. The first indication message may be sent based on the user's operation on the mobile terminal, and the operation may be the user clicking to enter the APP corresponding to the IoT device. When the device to be configured enters the configuration mode, the mobile terminal may execute steps S201-S202 to determine the target wireless LAN, or the mobile terminal may determine the target wireless LAN based on the user's selection, and determine the configuration information based on the target wireless LAN, and send a second indication message to the device to be configured, wherein the second indication message includes at least the network configuration information. In this way, the device to be configured can quickly respond to the operation instructions of the mobile terminal, enter the configuration mode and obtain the network configuration information, thereby improving the operating efficiency of the overall system.

[0094] The above is a network distribution method provided by the present application. The above embodiments can be combined according to actual conditions, and the present application does not make any specific restrictions here.

[0095] In addition, the present application also provides a network distribution device 400, for details, please refer to Figure 4 ,like Figure 4 As shown, the network distribution device 400 includes:

[0096] The identification acquisition module 401 is used to acquire identification information of the first wireless local area network to which the connection is made.

[0097] The information acquisition module 402 is used to obtain the network configuration information of the target wireless local area network using the identification information.

[0098] The information sending module 403 is used to send the network configuration information to the network configuration device; the network configuration information is used to instruct the network configuration device to establish a connection with the target wireless local area network; wherein the first wireless local area network and the target wireless local area network belong to the same router.

[0099] In an illustrative embodiment, the network configuration device 400 is also configured so that the identification information includes at least one of the following: a first identification, a second identification; the mobile terminal uses the identification information to obtain the target wireless local area network, including: the mobile terminal uses the first identification and / or the second identification to search and obtain the target wireless local area network.

[0100] In an illustrative embodiment, the network configuration device 400 is also configured such that the mobile terminal uses the first identifier to perform a search to obtain a first matching result; the mobile terminal determines whether the match is successful based on the first matching result; if so, the mobile terminal obtains the target wireless local area network based on the first matching result; if not, the mobile terminal uses the second identifier to perform a search to obtain a second matching result; the mobile terminal determines whether the match is successful based on the second matching result; if so, the mobile terminal obtains the target wireless local area network based on the second matching result.

[0101] In an illustrative embodiment, the network configuration apparatus 400 is further configured so that the mobile terminal searches for the target wireless local area network by using the second identifier of the first wireless local area network and the frequency band required by the device to be configured.

[0102] In an illustrative embodiment, the network distribution device 400 is also configured so that the mobile terminal uses the first identifier to search and obtain a third matching result; determines whether the third matching result meets a preset condition; if not, removes the characters at the specified position in the first identifier, and performs an iterative search based on the first identifier after the characters are removed; wherein the specified position includes at least one of the following: the first position, the last position, and the middle position.

[0103] In an exemplary embodiment, the network configuration device 400 is further configured such that the first identifier is a BSSID and the second identifier is a SSID.

[0104] In an illustrative embodiment, the network configuration device 400 is further configured such that the network configuration information at least includes:

[0105] Password information of the target wireless local area network, and identification information of the target wireless local area network.

[0106] In an illustrative embodiment, the network configuration device 400 is also configured to send a first indication message to the device to be configured; wherein the first indication message is used to instruct the device to be configured to enter a configuration mode; in the configuration mode, a second indication message is sent to the device to be configured, wherein the second indication message at least includes the network configuration information.

[0107] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein the program is used to execute one or more steps in the above method embodiment.

[0108] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A network distribution method, characterized in that: The method comprises: The mobile terminal obtains identification information of the first wireless local area network to which it is connected; The mobile terminal obtains the network configuration information of the target wireless local area network by using the identification information; The mobile terminal sends the network configuration information to the device to be configured; The network configuration information is used to instruct the to-be-configured device to establish a connection with the target wireless local area network; the first wireless local area network and the target wireless local area network belong to the same router.

2. The method according to claim 1, characterized in that The identification information includes at least one of the following: a first identification and a second identification; and the mobile terminal obtains a target wireless local area network by using the identification information, including: The mobile terminal searches using the first identifier and / or the second identifier to obtain the target wireless local area network.

3. The method according to claim 2, characterized in that The mobile terminal searches by using the first identifier and / or the second identifier to obtain the target wireless local area network, including: The mobile terminal searches using the first identifier to obtain a first matching result; The mobile terminal determines whether the match is successful based on the first matching result; If so, the mobile terminal obtains the target wireless local area network based on the first matching result; If not, the mobile terminal searches using the second identifier to obtain a second matching result; The mobile terminal determines whether the match is successful based on the second matching result; If so, the mobile terminal obtains the target wireless local area network based on the second matching result.

4. The method according to claim 2 or 3, characterized in that The mobile terminal searches using the first identifier and / or the second identifier to obtain the target wireless local area network, further comprising: The mobile terminal searches for the target wireless local area network by using the second identifier of the first wireless local area network and the frequency band required by the device to be networked.

5. The method according to claim 2 or 3, characterized in that: The searching by using the first identifier of the first wireless local area network to obtain the target wireless local area network further includes: The mobile terminal searches using the first identifier to obtain a third matching result; Determining whether the third matching result meets a preset condition; If not, remove the character at the specified position in the first identifier, and perform an iterative search based on the first identifier after the character is removed; wherein the specified position includes at least one of the following: the first position, the last position, and the middle position.

6. The method according to any one of claims 1 to 5, characterized in that: The first identifier is a BSSID, and the second identifier is a SSID.

7. The method according to any one of claims 1 to 6, characterized in that: The network configuration information at least includes: password information of the target wireless local area network and identification information of the target wireless local area network.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: Sending first indication information to the network device to be configured; wherein the first indication information is used to instruct the network device to be configured to enter a configuration mode; In the configuration mode, second indication information is sent to the device to be networked, wherein the second indication information at least includes the network configuration information.

9. A network distribution device, characterized in that: The device comprises: An identification acquisition module, used to acquire identification information of a connected first wireless local area network; An information acquisition module, used to obtain the network configuration information of the target wireless local area network using the identification information; An information sending module, used to send the network configuration information to the network configuration device; the network configuration information is used to instruct the network configuration device to establish a connection with the target wireless local area network; The first wireless local area network and the target wireless local area network belong to the same router.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 8 when executed.