Network distribution method and device, electronic equipment and computer readable storage medium
Automatically identify and send wireless network connection information through terminal devices, the problem of distribution network failure caused by users forgetting connection information is solved, and the success rate and convenience of distribution network are improved.
Patent Information
- Application Number
- CN202411291401.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-13
AI Technical Summary
Users are prone to forget when entering wireless network connection information, resulting in failure of distribution networks, and the existing technology is cumbersome and has a low success rate.
The terminal device determines the target access point identification information of the device to be distributed, displays the connection page and obtains the connection information through the identification of the graphics code, and automatically sends it to the device to be distributed for distribution, avoiding manual input by users.
It simplifies distribution network operations, improves the success rate and convenience of distribution networks, and reduces distribution network failures caused by forgetting connection information.
Smart Images

Figure CN119136280A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and specifically to a network distribution method, device, electronic device and computer-readable storage medium. Background Art
[0002] With the development of digital networks, various devices work based on wireless networks, and various network-to-be-configured devices obtain wireless network connection information through terminal devices to complete network configuration and obtain network services. However, the terminal device usually obtains the connection information through user input, but the user may forget the connection information, resulting in inaccurate connection information, which affects the network configuration of the network-to-be-configured device and causes network configuration failure. Summary of the invention
[0003] The embodiments of the present application provide a network configuration method, device, electronic device, and computer-readable storage medium, which can realize automatic identification of connection information, thereby simplifying the network configuration operation of the network configuration device to be configured, and improving the success rate and convenience of the network configuration of the network configuration device to be configured. The charging information processing method, device, system, device, and storage medium provided in the embodiments of the present application are implemented as follows:
[0004] A network configuration method provided in an embodiment of the present application is applied to a terminal device, wherein the terminal device is communicatively connected with a device to be configured with a network, and the method includes:
[0005] Determine identification information of a target access point of the device to be networked; the target access point is a wireless access point to which the terminal device is currently connected or has been connected in the past and to which the device to be networked can connect;
[0006] Displaying a connection page corresponding to the target access point according to the identification information of the target access point; the connection page includes a graphic code corresponding to the target access point;
[0007] Acquire connection information corresponding to the target access point by identifying the graphic code;
[0008] Send the connection information corresponding to the target access point to the device to be networked, where the connection information is used to configure a network for the device to be networked.
[0009] In this embodiment, the terminal device can determine the identification information of the target access point of the device to be networked, and display the connection page corresponding to the target access point. By identifying the graphic code of the connection page, the connection information corresponding to the target access point is directly obtained, and then the connection information corresponding to the target access point is sent to the device to be networked, so that the device to be networked can be networked. The user does not need to manually enter the connection information of the target access point, which can avoid the failure of network configuration due to the user forgetting the connection information, and simplify the network configuration operation of the device to be networked, thereby improving the success rate and convenience of network configuration.
[0010] As an optional implementation manner, determining the identification information of the target access point of the device to be networked includes: acquiring identification information of at least one first wireless access point corresponding to the terminal device; the first wireless access point is a wireless access point to which the terminal device is currently connected or has been previously connected; receiving identification information of at least one second wireless access point sent by the device to be networked, the second wireless access point being a wireless access point to which the device to be networked can be connected; matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point.
[0011] In this embodiment, by matching the second wireless access point to which the device to be networked is currently connected or has been previously connected with the first wireless access point to which the terminal device can connect, the target access point is made more compatible with the device to be networked, further ensuring the success rate of network configuration.
[0012] As an optional implementation, the obtaining of identification information of at least one first wireless access point corresponding to the terminal device includes: obtaining identification information of at least one first wireless access point whose connection information is stored by the terminal device; or displaying a network list page of the terminal device; the network list page includes identification information of the first wireless access point to which the terminal device is currently connected, and / or identification information of at least one first wireless access point that has been historically connected; collecting a first page image corresponding to the network list page, and identifying the first page image to obtain identification information of each first wireless access point contained in the first page image.
[0013] In this embodiment, the terminal device can directly obtain the first wireless access point storing the connection information, or can identify the first page image corresponding to the network list page to obtain the first wireless access point that is currently connected and / or has been historically connected. The first wireless access point corresponding to the terminal device is obtained in two ways, so that the identification information of the obtained first wireless access point is more accurate.
[0014] As an optional implementation manner, the matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point includes: matching the identification information of the first wireless access point to which the terminal device is currently connected with the identification information of the at least one second wireless access point to obtain a first matching result; if the first matching result is a successful match, using the identification information of the first wireless access point to which the terminal device is currently connected as the identification information of the target access point; if the first matching result is a failed match, matching the identification information of at least one first wireless access point to which the terminal device has been historically connected with the identification information of the at least one second wireless access point to determine the identification information of the target access point.
[0015] In this embodiment, the first wireless access point currently connected to the terminal device is first matched with at least one second wireless access point to which the device to be networked can be connected, so as to ensure that the network configuration process is carried out in the optimal wireless network environment and improve the success rate of network configuration. In addition, in the case where the matching of the currently connected first wireless access point fails, the first access point that the terminal device has been historically connected to is matched, which increases the selection range of the target access point and helps to solve the problem of network configuration failure caused by compatibility issues between devices.
[0016] As an optional implementation manner, before matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point, the method further includes: receiving strength information sent by the to-be-configured network device, the strength information including the signal strength corresponding to the at least one second wireless access point; matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point, including: matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point according to the order of signal strengths corresponding to the at least one second wireless access point from strong to weak, to obtain the identification information of the target access point; or matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point; if there are multiple matching second wireless access points, using the identification information corresponding to the second wireless access point with the strongest signal strength among the multiple matching second wireless access points as the identification information of the target access point.
[0017] In this embodiment, during the network configuration process, by considering the signal strength of the second wireless access point corresponding to the device to be configured, the wireless access point with the strongest signal can be preferentially selected as the target access point, which helps to reduce the network configuration failure caused by weak signal and improve the success rate of network configuration.
[0018] As an optional implementation manner, the matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point includes: matching the identification information corresponding to multiple first wireless access points with the identification information corresponding to multiple second wireless access points to obtain multiple matched second wireless access points, and using the multiple matched second wireless access points as target access points to obtain identification information corresponding to multiple target access points respectively; the sending the connection information corresponding to the target access point to the device to be networked, wherein the connection information is used to configure a network for the device to be networked, includes: sending the connection information corresponding to the multiple target access points respectively to the device to be networked, so that the device to be networked performs network configuration according to the connection information corresponding to the multiple target access points respectively.
[0019] In this embodiment, the terminal device sends connection information corresponding to multiple target access points to the network device to be configured, providing the network device to be configured with a selection opportunity to try to configure the network, allowing the network device to independently determine the target access point, which can increase the probability of successful network configuration.
[0020] As an optional implementation, the obtaining of the connection information corresponding to the target access point by identifying the graphic code includes: taking a screenshot or screen recording the connection page to capture a second page image corresponding to the connection page, the second page image including the graphic code; and obtaining the connection information corresponding to the target access point by identifying the graphic code in the second page image.
[0021] In this embodiment, the terminal device can capture a second page image containing a graphic code by taking a screenshot or screen recording of the connection page, and obtain the connection information corresponding to the target access point by identifying the graphic code in the image, so that the user does not need to manually search and enter the connection information of the target access point, avoiding input errors due to negligence or memory errors, further enhancing the convenience and automation of the network configuration process, and ensuring the success rate of network configuration.
[0022] As an optional implementation, before determining the identification information of the target access point of the device to be networked, the method further includes: in response to a network configuration operation for the device to be networked, establishing a communication connection with the device to be networked, and displaying a network configuration page; the network configuration page includes an acquisition control; and displaying a connection page corresponding to the target access point according to the identification information of the target access point includes: in response to a triggering operation on the acquisition control, displaying a connection page corresponding to the target access point according to the identification information corresponding to the target access point.
[0023] In this embodiment, the user's network configuration operation for the device to be configured and the trigger operation for obtaining the control can enable the terminal device to implement the network configuration process of the device to be configured, thereby improving the efficiency of network configuration; and the user only needs simple operations to trigger the entire network configuration process, thereby simplifying the user's operation.
[0024] As an optional implementation, the connection information includes a connection password, and the network configuration page also includes a first input control and a second input control; after determining the identification information of the target access point of the device to be configured, the method also includes: filling the identification information of the target access point in the first input control; after obtaining the connection information corresponding to the target access point by identifying the graphic code, the method also includes: filling the connection password of the target access point in the second input control.
[0025] In this embodiment, the terminal device fills the identification information and the connection password of the target access point into the input control corresponding to the network configuration page, so that the user can know the currently selected target access point and the progress of the network configuration, thereby improving the user experience.
[0026] A network configuration method provided in an embodiment of the present application is applied to a network configuration device, wherein the network configuration device is connected to a terminal device for communication, and the method includes:
[0027] Scanning surrounding wireless access points that can be connected to obtain identification information of at least one second wireless access point;
[0028] sending the identification information of the at least one second wireless access point to the terminal device, so that the terminal device matches the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point; the first wireless access point is the wireless access point that the terminal device is currently connected to or has been connected to in the past;
[0029] receiving connection information corresponding to a target access point sent by the terminal device; the connection information corresponding to the target access point is obtained by the terminal device displaying a connection page corresponding to the target access point according to identification information of the target access point and identifying a graphic code; the connection page includes a graphic code corresponding to the target access point; the target access point is a wireless access point to which the terminal device is currently connected or has been connected in the past and to which the device to be configured can connect;
[0030] Network configuration is performed according to the connection information corresponding to the target access point.
[0031] In this embodiment, the device to be networked can scan the surrounding wireless access points that can be connected, and send the scanning result to the terminal device, so that the target access point matched by the terminal device is the wireless access point to which the device to be networked can connect, thereby avoiding the network configuration failure caused by the target access point reported by the terminal device being incompatible and unable to connect; and the device to be networked can perform network configuration only according to the connection information sent by the terminal device, thereby simplifying the user's operation during the network configuration process of the device to be networked and improving the convenience of network configuration.
[0032] As an optional implementation, the method further includes: detecting the signal strength corresponding to the at least one second wireless access point, and generating strength information including the signal strength corresponding to the at least one second wireless access point; sending the strength information to the terminal device, so that when there are multiple second wireless access points matching the first wireless access point, the terminal device uses the identification information of the second wireless access point with the strongest signal strength among the multiple matching second wireless access points as the identification information of the target access point.
[0033] In this embodiment, the device to be networked optimizes the selection of the target access point using signal strength. When there are multiple second wireless access points that match the first wireless access point (i.e., the wireless access point to which the terminal device is currently connected or has been connected in the past), the terminal device can select the one with the strongest signal strength as the target access point, which can improve the connection stability between the device to be networked and the wireless access point and reduce connection interruption or network configuration failure caused by weak signal.
[0034] As an optional implementation, the method also includes: detecting signal strengths corresponding to multiple second wireless access points respectively; receiving connection information corresponding to multiple target access points respectively sent by the terminal device; and configuring the network according to the connection information corresponding to the multiple target access points respectively in order from strong to weak according to the signal strengths corresponding to the multiple target access points respectively.
[0035] In this embodiment, the device to be networked can automatically try to connect to multiple target access points, which increases the probability of successful network configuration and enables the device to be networked to automatically and flexibly switch to connect to other target access points.
[0036] A network configuration device provided in an embodiment of the present application is applied to a terminal device, wherein the terminal device is communicatively connected with a device to be configured with a network, and the device includes:
[0037] An identification determination module is used to determine the identification information of the target access point of the device to be networked; the target access point is a wireless access point to which the terminal device is currently connected or has been connected in the past and to which the device to be networked can connect;
[0038] A page display module, configured to display a connection page corresponding to the target access point according to the identification information of the target access point; the connection page includes a graphic code corresponding to the target access point;
[0039] A collection and identification module, used for obtaining connection information corresponding to the target access point by identifying the graphic code;
[0040] The information sending module is used to send the connection information corresponding to the target access point to the device to be networked, and the connection information is used to configure the network for the device to be networked.
[0041] A network configuration device provided in an embodiment of the present application is applied to a network configuration device, wherein the network configuration device is connected to a terminal device for communication, and the device includes:
[0042] A scanning module, used to scan surrounding wireless access points that can be connected to obtain identification information of at least one second wireless access point;
[0043] a sending module, configured to send the identification information of the at least one second wireless access point to the terminal device, so that the terminal device matches the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point; the first wireless access point is the wireless access point that the terminal device is currently connected to or has been connected to in the past;
[0044] a receiving module, configured to receive connection information corresponding to a target access point sent by the terminal device; the connection information corresponding to the target access point is obtained by the terminal device displaying a connection page corresponding to the target access point according to identification information of the target access point and identifying a graphic code; the connection page includes a graphic code corresponding to the target access point; the target access point is a wireless access point to which the terminal device is currently connected or has been historically connected and to which the device to be configured can connect;
[0045] The network configuration module is used to perform network configuration according to the connection information corresponding to the target access point.
[0046] An electronic device provided in an embodiment of the present application includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method described in any of the above embodiments.
[0047] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any of the above embodiments is implemented.
[0048] A computer program product provided in an embodiment of the present application includes a computer program, and when the computer program is executed by a processor, the method described in any of the above embodiments is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 It is a schematic diagram of the network distribution process in the related technology;
[0051] Figure 2 An application scenario diagram of a network configuration method in an embodiment;
[0052] Figure 3 A schematic diagram of the implementation flow of a network configuration method in an embodiment;
[0053] Figure 4 A connection page corresponding to a target access point on a terminal device in an embodiment;
[0054] Figure 5A A schematic diagram of the implementation flow of a network configuration method in another embodiment;
[0055] Figure 5B This is a network list page of a terminal device in an embodiment.
[0056] Figure 6 A schematic diagram of the implementation flow of a network configuration method in another embodiment;
[0057] Figure 7 A schematic diagram of the implementation flow of a network configuration method in another embodiment;
[0058] Fig. 8AA schematic diagram of an implementation flow of a network configuration method applied to a terminal device in an embodiment;
[0059] Figure 8B A network configuration page on a terminal device in an embodiment;
[0060] Fig. 9 A schematic diagram of the structure of a network distribution device applied to a terminal device in an embodiment;
[0061] Fig.10 A schematic diagram of the structure of a network distribution device applied to a device to be networked in one embodiment;
[0062] Fig.11 FIG. 1 is a schematic diagram of the structure of an electronic device in an embodiment. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 are within the scope of protection of this application.
[0064] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0065] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first wireless access point may be referred to as a second wireless access point, and similarly, a second wireless access point may be referred to as a first wireless access point. Both the first wireless access point and the second wireless access point contain at least one sub-energy and may be the same wireless access point or different wireless access points.
[0066] The following are some explanations and descriptions of some terms that may be involved in this application:
[0067] Network configuration refers to connecting a device to a wireless network through a wireless access point.
[0068] Wireless access points can be used to provide wireless signal coverage, so that multiple terminal devices and / or multiple devices to be networked covered by the wireless signal can access the wireless network without being restricted by physical lines.
[0069] The identification information of a wireless access point refers to the information that can uniquely identify the wireless access point, so that the device to be configured can accurately identify and connect to the corresponding wireless network. The identification information of the target access point may include, but is not limited to, one or more of the following: SSID, MAC address, BSSID, encryption method, channel information, and signal strength.
[0070] SSID (Service Set Identifier): It is the name of a wireless network and the basic identity of a wireless access point, used to distinguish different wireless networks.
[0071] MAC address (Media Access Control Address): It is a unique identifier of a network interface card and is written into the hardware by the device manufacturer during production.
[0072] BSSID (Basic Service Set Identifier): Usually the same as the MAC address of the access point, used to identify a specific basic service set.
[0073] Encryption method: A key or password used to protect the security of a wireless network, such as WPA / WPA2 (Wi-Fi Protected Access) keys, EAP (Extensible Authentication Protocol) messages, etc.
[0074] Channel information: The frequency range of wireless signal transmission. Different wireless networks can choose different channels to avoid interference from other wireless networks.
[0075] Signal Strength: The strength of the wireless access point network signal.
[0076] Devices to be configured on the network refer to devices that have not yet been connected to the network and require network configuration.
[0077] Terminal device refers to a device that can access a wireless network.
[0078] The connection page corresponding to the wireless access point refers to the login or configuration page of the wireless access point (such as a Wi-Fi hotspot). The connection page may include a graphic code corresponding to the wireless access point.
[0079] The graphic code can carry the connection information corresponding to the target access point; the graphic code can prevent the leakage of connection information and improve the security of information. The terminal device can automatically parse the connection information such as SSID and connection password by identifying the graphic code.
[0080] The connection information corresponding to the wireless access point can be used to access the wireless network provided by the wireless access point; the connection information may also include but is not limited to the identification information corresponding to the wireless access point (SSID, MAC address, encryption method, signal strength, etc.) and the connection password, identity authentication method, etc.
[0081] The first page image refers to an image of a network list page including a terminal device.
[0082] The second page image refers to an image containing a link page.
[0083] The network list page of the terminal device may include identification information of a first wireless access point to which the terminal device is currently connected, and / or identification information of at least one first wireless access point to which the terminal device has been historically connected.
[0084] The first wireless access point is a wireless access point to which the terminal device is currently connected or has been connected in the past.
[0085] The second wireless access point is a wireless access point to which the device to be networked can connect.
[0086] Figure 1 Schematic diagram of the network configuration process in the related art. Figure 1 As shown, in the related technology, the network configuration process can mainly include the following steps:
[0087] 101. The device to be networked starts AP (Access Point) mode and waits for connection with the terminal device.
[0088] 102. The terminal device is connected to the wireless network provided by the router.
[0089] 103. The terminal device sends a verification code request to the server, so that the server generates a network configuration verification code and feeds the network configuration verification code back to the terminal device.
[0090] 104. After obtaining the network configuration verification code, the terminal device obtains the connection information of the wireless access point input by the user, such as the SSID and password of the Wi-Fi, and connects to the AP of the device to be configured to form a local area network.
[0091] 105. The terminal device sends the connection information of the wireless access point input by the user and the network configuration verification code corresponding to the user to the network configuration device. Correspondingly, the network configuration device receives the connection information and network configuration verification code sent by the terminal device.
[0092] 106. The terminal device reconnects to the wireless network provided by the router.
[0093] 107. The device to be networked performs network configuration according to the received connection information of the wireless access point to connect to the wireless network provided by the router.
[0094] 108. After the connection is successful, the device information to be configured and the configuration verification code are sent to the server.
[0095] 109. The terminal device queries the server for the device to be configured according to the network configuration verification code. If the terminal device receives the information of the device to be configured sent by the server, it indicates that the device to be configured is successfully configured.
[0096] Accordingly, the following problems may exist in the above network configuration process:
[0097] 1. The wireless network that the device to be configured and the terminal device choose to access is incompatible. For example, the terminal device can support connecting to wireless networks with two frequency bands, 5GHz (Gigahertz) and 2.4GHz, while some devices to be configured only support 2.4GHz or 5GHz. If the network frequency band selected by the terminal device to connect does not match the network frequency band supported by the device to be configured, the device to be configured will fail to configure the network.
[0098] 2. When configuring the device to be configured through the terminal device, the user needs to select the wireless access point for configuration. When faced with multiple wireless access points, since non-professional users do not understand the differences between various wireless access points, such as frequency band, speed, stability, etc., it is difficult to judge which one is more suitable for the device to be configured, resulting in difficulty in user selection. In addition, the selected wireless access point may not be able to successfully configure the device to be configured. The operation is cumbersome and affects the probability of successful configuration of the device to be configured.
[0099] 3. Users need to manually enter the connection information of the wireless access point (such as password, etc.), but users are prone to forgetting the connection information, resulting in multiple incorrect connection information input during network configuration, resulting in network configuration failure, which prolongs the time consumed for network configuration and affects the user experience.
[0100] The embodiments of the present application use a network configuration method, device, electronic device and computer-readable storage medium to realize automatic identification of connection information, thereby simplifying the network configuration operation of the device to be configured, and improving the success rate and convenience of the network configuration of the device to be configured.
[0101] Figure 2 FIG. 1 is an application scenario diagram of a network configuration method in an embodiment. Figure 2As shown, the scenario may include a terminal device 210, a network device to be configured 220, and a wireless access point 230. The terminal device 210 is in communication connection with the network device to be configured 220. The terminal device 210 may include but is not limited to a mobile phone, a smart wearable device, a tablet computer, a PC (Personal Computer), a computer, and other devices that can access a wireless network.
[0102] The network devices 220 to be configured may include but are not limited to monitoring devices, projection devices, smart home devices, etc. that have not yet been connected to the network and require network configuration. The wireless access point 230 can be used to provide wireless signal coverage, so that multiple terminal devices 210 and / or multiple network devices 220 covered by the wireless signal can access the wireless network without being restricted by physical lines. Multiple terminal devices 210 and / or multiple network devices 220 to be configured can obtain wireless network services through the wireless access point 230.
[0103] In some embodiments, the communication connection methods that can be used between the terminal device 210 and the device to be configured 220 may include but are not limited to Wi-Fi direct connection (dev-ap-config, device hotspot configuration), Bluetooth (ble-config, Bluetooth configuration), broadcast (smart-config, one-click configuration), zero-configuration (zero-config), etc., all without the need for direct user participation.
[0104] In some embodiments, the terminal device 210 and the network device to be configured 220 can access the Wi-Fi network corresponding to the wireless access point through a Wi-Fi (Wireless Fidelity) connection method. When selecting a connection method, it is necessary to comprehensively consider the model, function and network environment of the terminal device 210 and the network device to be configured 220.
[0105] Taking the example of the terminal device 210 connecting to the wireless network via Wi-Fi, when the terminal device 210 is in STA (Station) mode and the wireless access point 230 is in the corresponding AP mode, the terminal device 210 can first obtain the user's usage certificate or other identity authentication information to prove that it has the right to access the network. After proving that it has the right to access the network, the terminal device 210 will send a probe request to the surrounding wireless access points 230, and the wireless access point 230 can return a probe response based on the received probe request. The probe response may include the SSID, network performance, encryption settings and other information of the wireless access point 230. In this way, the terminal device can obtain nearby connectable Wi-Fi networks.
[0106] In the embodiment of the present application, the terminal device 210 may first determine the identification information of the target access point of the network device to be configured 220, and the target access point refers to the wireless access point to which the terminal device is currently connected or has been connected in the past and to which the network device to be configured can connect. The terminal device 210 displays the connection page corresponding to the target access point, and then obtains the connection information corresponding to the target access point by identifying the graphic code, and sends the connection information corresponding to the target access point to the network device to be configured 220. The network device to be configured 220 receives the connection information corresponding to the target access point sent by the terminal device 210, and performs network configuration according to the connection information corresponding to the target access point, so as to successfully access the wireless network corresponding to the target access point.
[0107] In some embodiments, the terminal device 210 can configure, manage and remotely control the network device 220 to be configured in the same wireless access point 230 through a specific application. Specifically, the terminal device 210 can install and start the target application, which corresponds to the network device 220 to be configured and is used to manage the network device to be configured. The terminal device 210 scans at least one network device 220 to be configured in the same local area network as the terminal device 210, and can display at least one network device 220 to be configured on the terminal device 210 page. The user can determine the target network device 220 to be configured through the device name, device model and other information of the displayed network device 220 to be configured. The terminal device 210 obtains the target wireless access point 230 and its connection information, such as the Wi-Fi password, wireless access point name, etc., according to the target network device 220 to be configured. The target application sends the connection information to the network device 220 to be configured, and waits for the target network device 220 to be configured to perform network configuration according to the connection information. Once the target device to be configured 220 successfully accesses the wireless network corresponding to the wireless access point 230, the target application can display a message of successful configuration on the terminal device 210. After the configuration is successful, the user can view and manage the target device to be configured 220 connected to the wireless network through the target application of the terminal device 210, including controlling the functions of the target device to be configured 220, viewing the status of the target device to be configured 220, etc.
[0108] like Figure 3 As shown, in one embodiment, a network configuration method is provided, which can be applied to the above scenario. The method may include the following steps 301 to 305.
[0109] Step 301: The terminal device determines identification information of a target access point of a device to be networked.
[0110] When the device to be configured switches to AP mode and enters the state of waiting for network configuration, the terminal device is in STA mode and can connect to the AP provided by the device to be configured, form a local area network with the device to be configured, and transmit information to complete the network configuration of the device to be configured.
[0111] The device to be configured may send a configuration request to the terminal device, and the device to be configured may respond to the configuration request and determine the identification information of the target access point of the device to be configured. The target access point may be a wireless access point that the terminal device is currently connected to or has been connected to in the past and that the device to be configured can connect to. The wireless access point that the device to be configured can connect to refers to the wireless access point that the device to be configured currently scans and can connect to.
[0112] In some embodiments, the terminal device can obtain identification information of multiple wireless access points by scanning the available wireless access points in the current environment, and filter the multiple wireless access points according to the identification information of the multiple wireless access points to obtain the target access point to which the network-to-be-configured device should be connected. The available wireless access points in the current environment may include wireless access points provided by a router, wireless access points provided by other terminal devices, etc.
[0113] In some embodiments, when the terminal device determines the identification information of the target access point of the device to be networked, it can verify the availability of the target access point. This is to avoid the problem that the device to be networked cannot access the network due to a failure or unreachability of the wireless access point, thereby ensuring that the device to be networked can successfully and stably access the network of the target access point. Among them, the availability of the target access point refers to the wireless network that the target access point can provide. Optionally, the terminal device can execute the Ping command through a command line tool to send an ICMP echo request to the target access point. If the terminal device receives an ICMP echo reply from the target access point, it indicates that the target access point is available and the network connectivity is good. If the request times out or no reply is received, it indicates that there is a problem with the target access point or the network is not accessible.
[0114] In some embodiments, if the target access point is not the wireless access point that the terminal device is currently connected to, the terminal device can pre-connect to the target access point to verify whether the target access point is available and stable, which can improve the reliability of the device to be configured during the configuration process. Pre-connection means that the terminal device does not need to complete the complete authentication and key exchange process, but only verifies the basic information such as the existence of the target access point, signal strength, whether the required encryption method is supported, and whether the correct SSID (service set identifier) is configured.
[0115] Specifically, after pre-connecting with the target access point, the terminal device may verify whether the target access point is available and stable by at least one of the following methods.
[0116] 1. The terminal device can use the Ping command or other network testing tools to confirm whether the target access point is successfully connected to the Internet or other target network.
[0117] 2. The terminal device can perform network performance tests, including download / upload speed tests, delay tests, etc., to evaluate the network performance and stability of the target access point, and whether it meets the usage requirements of the terminal device.
[0118] 3. The terminal device can also verify whether the encryption method, security protocol, etc. of the target access point meet the security standards.
[0119] Step 302: The terminal device displays a connection page corresponding to the target access point according to the identification information of the target access point.
[0120] After determining the identification information of the target access point of the device to be configured, in order to obtain the connection information corresponding to the target access point, the terminal device can display the connection page corresponding to the target access point according to the identification information of the target access point. The connection page may refer to the login or configuration page of the wireless access point (such as a Wi-Fi hotspot), and the connection page may include the connection information corresponding to the target access point.
[0121] In some embodiments, the terminal device may pre-store a connection page corresponding to a currently connected wireless access point and connection pages corresponding to one or more historically connected wireless access points. When the terminal device determines a target access point, it may find a connection page corresponding to the target access point from the pre-stored multiple connection pages based on the identification information of the target access point.
[0122] The connection information corresponding to the target access point can be used to access the wireless network provided by the target access point. The connection information corresponding to the target access point may include but is not limited to the identification information corresponding to the target access point (SSID, MAC address, encryption method, signal strength, etc.) and the connection password, identity authentication method, etc.
[0123] Furthermore, the connection information may be represented in the form of text or in the form of a graphic code. Exemplarily, the connection page may include a graphic code corresponding to the target access point, and the graphic code may carry the connection information corresponding to the target access point. The graphic code may prevent leakage of the connection information, thereby improving information security. The terminal device may obtain the connection information corresponding to the target access point by identifying the connection page.
[0124] The graphic code can carry the connection information of the target access point. The terminal device can automatically parse the SSID, connection password and other connection information by identifying the graphic code, and connect to the target access point accordingly, which can improve the convenience and efficiency of network configuration.
[0125] Exemplarily, the form of the graphic code may include but is not limited to a QR code, a barcode, a customized graphic code, etc. The specific form of the graphic code depends on the type of the target access point, the terminal device, and the actual needs of the user. For example, when connecting to a Wi-Fi network, the graphic code may be a QR code containing an SSID and a connection password, or in order to meet user needs, the graphic code may be a circular QR code (Quick Response Code).
[0126] The connection page may also include text descriptions for displaying part of the connection information corresponding to the target access point that does not need to be kept confidential (such as identification information, etc.), or for prompting the user which step the current network configuration operation is at. Figure 4 As shown, the connection page 410 corresponding to the target access point may include a graphic code area 411 and a text description area 412. The graphic code area 411 is used to display the graphic code, which can be used to identify the connection password corresponding to the target access point; the text description area 412 can be used to display the SSID, signal strength, encryption information and MAC address in the identification information of the target access point; and prompt texts such as "the above graphic code is being identified to obtain the connection password" can also be displayed to inform the user of the current network configuration operation.
[0127] Step 303: The terminal device obtains connection information corresponding to the target access point by identifying the graphic code.
[0128] In some embodiments, the terminal device can take a screenshot or screen record the connection page to collect a second page image corresponding to the connection page, and the second page image includes a graphic code; the connection information corresponding to the target access point is obtained by identifying the graphic code in the second page image. The second page image refers to an image containing the connection page. By taking a screenshot or screen recording the connection page, the terminal device can collect the second page image containing the graphic code, and obtain the connection information corresponding to the target access point by identifying the graphic code in the image, so that the user does not need to manually search and enter the connection information of the target access point, avoiding input errors due to negligence or memory errors, further enhancing the convenience and automation of the network configuration process, and also ensuring the success rate of network configuration.
[0129] Taking screen recording of the connection page as an example, after the terminal device displays the connection page corresponding to the target access point, the screen recording tool on the terminal device is controlled to record the currently displayed page to obtain the screen activity including the connection page; the terminal device finds and identifies the graphic code in the recorded screen activity. The graphic code of the connection page can be identified and the identification operation process can be retained, which is conducive to tracing the connection information corresponding to the target access point to ensure the accuracy of the final network configuration.
[0130] Optionally, the graphic code may be generated by graphic encoding the connection information corresponding to the target access point; the terminal device may first collect the second page image containing the graphic code corresponding to the target access point, then identify the graphic code in the second page image, and decode the graphic code to obtain the connection information corresponding to the target access point, without the user having to manually enter a complex SSID and connection password. Optionally, the graphic code may be linked to a security page or application; after the terminal device identifies the graphic code, it can automatically jump to the corresponding security page or application, and after completing identity authentication in the security page or application, the connection information corresponding to the target access point can be obtained.
[0131] In some embodiments, the terminal device may use a built-in code scanning function of the device or call a third-party code scanning application to identify the graphic code to obtain connection information corresponding to the target access point contained in the graphic code.
[0132] Specifically, the terminal device may perform OCR (Optical Character Recognition) on the graphic code on the second page image to obtain the connection information corresponding to the target access point. Among them, OCR technology is a technology used to convert text information in an image or scanned file into editable text data.
[0133] Optionally, after displaying the connection page corresponding to the target access point, the terminal device controls the built-in code scanning tool to directly identify the graphic code on the connection page displayed by the terminal device, and the connection information contained in the graphic code can be automatically parsed and displayed. Optionally, if the terminal device does not have a built-in code scanning function, the terminal device can download and install a third-party code scanning application to identify and parse the graphic code.
[0134] In some embodiments, the connection information corresponding to the target access point obtained by the terminal device through identification can be modified into a Wi-Fi URI (Uniform Resource Locator) format (or other similar formats) to facilitate the network configuration between the device to be configured and the target access point. <ssid>; T: <encryption type>; P: <password>; H: <hidden SSID>. The Wi-Fi URI format is a universal agreed format that is widely used to encode and transmit Wi-Fi connection information in QR codes to ensure that different devices and applications can correctly parse and connect to the corresponding Wi-Fi network.
[0135] In the embodiment of the present application, the terminal device automatically obtains the connection information corresponding to the target access point by identifying the graphic code, which can reduce the possibility of errors in the user's manual entry of connection information, improve the convenience and accuracy of network configuration operations, and also improve the security of the connection information corresponding to the target access point.
[0136] Step 304: The terminal device sends connection information corresponding to the target access point to the device to be configured.
[0137] Correspondingly, the device to be networked receives the connection information corresponding to the target access point sent by the terminal device.
[0138] In some embodiments, the terminal device may agree with the network device to be configured on the same communication parameters when establishing a communication connection with the network device to be configured. The communication parameters may include the format of data transmission, synchronization mode, transmission speed, data transmission control method, and possible error handling method, etc., which is conducive to better data transmission between the terminal device and the network device to be configured.
[0139] Step 305: The device to be networked performs network configuration according to the connection information corresponding to the target access point.
[0140] The device to be configured receives the connection information corresponding to the target access point sent by the terminal device, parses the connection information, and extracts the SSID, connection password and other parameters of the target access point. The device to be configured can switch from AP mode to STA mode and connect to the target access point according to the SSID, connection password and other parameters of the target access point.
[0141] In some embodiments, in order to ensure that the device to be configured has completed the network configuration and can obtain wireless network services through the target access point, the device to be configured can further verify whether the target access point is available and stable by pre-connecting to the target access point, and after the connection is stable, the device to be configured may perform necessary network configuration and optimization to improve the efficiency and reliability of network communication. Specifically, if the device to be configured can perform network communication and data transmission through the wireless network, it means that the device to be configured has successfully configured the network.
[0142] In some embodiments, after the network configuration is successfully completed, the device to be configured may send a network configuration success message to the terminal device to inform the terminal device that the device to be configured has successfully obtained the corresponding wireless network service through the target access point.
[0143] In some embodiments, in order to verify whether the device to be configured has successfully obtained the corresponding wireless network service through the target access point, the terminal device may send a verification code acquisition request to the server to obtain the network configuration verification code. The terminal device receives the network configuration verification code returned by the server. After the terminal device establishes a connection with the device to be configured and obtains the connection information corresponding to the target access point, the network configuration verification code and the connection information corresponding to the target access point may be sent to the device to be configured, so that the device to be configured can be configured according to the connection information. After the device to be configured successfully accesses the target access point to obtain the corresponding wireless network service, the device information corresponding to the device to be configured and the network configuration verification code are sent to the server.
[0144] After the terminal device sends the network configuration verification code and the connection information corresponding to the target access point to the device to be configured, the terminal device can send a network configuration information request to the server; the network configuration information request is used to request to obtain the device information corresponding to the device to be configured that has been successfully configured. If the terminal device receives the device information corresponding to the device to be configured sent by the server, it is determined that the device to be configured has been successfully configured. The network configuration verification code enables the terminal device to more effectively verify whether the device to be configured has successfully accessed the wireless network through the target access point; and only the device to be configured with the network configuration verification code can obtain the wireless network, which helps prevent unauthorized devices from accessing the wireless network and protect the network from potential security threats.
[0145] In an embodiment of the present application, the terminal device can determine the identification information of the target access point of the device to be networked, and display the connection page corresponding to the target access point. By identifying the graphic code of the connection page corresponding to the target access point, the connection information corresponding to the target access point is directly obtained, and then the connection information corresponding to the target access point is sent to the device to be networked, so that the device to be networked can be networked, and the user does not need to manually enter the connection information of the target access point. The device to be networked can automatically scan the surrounding wireless access points that can be connected, and send the scanning results to the terminal device, so that the target access point matched by the terminal device is the wireless access point that the device to be networked can connect to, avoiding network configuration failures caused by access point mismatch or inability to connect. It can not only avoid network configuration failures caused by users forgetting connection information, but also simplify the network configuration operations of the device to be networked, and improve the success rate and convenience of network configuration.
[0146] like Figure 5A As shown, in some embodiments, another network configuration method is provided, which can be applied to the above scenario. The method may include the following steps 501 to 508.
[0147] Step 501: A terminal device obtains identification information of at least one first wireless access point corresponding to the terminal device.
[0148] Since the terminal device can only obtain the identification information of the currently connected wireless access point of the terminal device or the identification information of the wireless access point that the terminal device has been connected to in the past without manual input by the user, the first wireless access point is the wireless access point that the terminal device is currently connected to or has been connected to in the past.
[0149] In some embodiments, the terminal device may obtain identification information of at least one first wireless access point storing connection information; or display a network list page of the terminal device; the network list page includes identification information of the first wireless access point currently connected to the terminal device, and / or identification information of at least one first wireless access point that has been historically connected; collect a first page image corresponding to the network list page, and identify the first page image to obtain identification information of each first wireless access point contained in the first page image. The first page image is an image containing the network list page of the terminal device.
[0150] Optionally, the method of acquiring the first page image in step 501 may refer to the method of acquiring the second liquid image in the above embodiment, which will not be described in detail here.
[0151] In some embodiments, most terminal devices maintain a network connection history record or current connection status in their operating systems, and the history record contains identification information of wireless access points that the terminal device has connected to, including but not limited to SSID, BSSID, encryption method, etc. The terminal device can directly query the history record of the operating system to obtain identification information of at least one first wireless access point.
[0152] In some embodiments, the terminal device may use image recognition technology (eg, OCR technology) to scan and identify each first wireless access point included in the first page image, thereby extracting identification information of each first wireless access point on the first page image.
[0153] For example, Figure 5B As shown, the network list page of the terminal device may be a Wi-Fi list page 510 of the terminal device, which may include a first display area 511 and a second display area 512; the first display area 511 is only used to display the identification information of the first wireless access point currently connected to the terminal device; the second display area 512 is only used to display the identification information of at least one first wireless access point that the terminal device has been historically connected to. Figure 5B As shown, the first wireless access point corresponding to the terminal device may include SSID0, SSID1, SSID2, SSID3 and SSID4, a total of 5 points.
[0154] In some embodiments, in order to improve user experience, the terminal device may display a network list page and use one or more wireless access points selected by the user as the first wireless access point to meet the user's individual needs.
[0155] Step 502: The device to be networked scans surrounding wireless access points that can be connected to obtain identification information of at least one second wireless access point.
[0156] In order to make the target access point determined by the terminal device a wireless access point to which the device to be configured can connect, the second wireless access point is a wireless access point to which the device to be configured can connect, thereby ensuring that when the device to be configured finally performs network configuration, it can connect to the network through a compatible target access point.
[0157] In some embodiments, the device to be networked may scan surrounding wireless access points that can be connected to obtain identification information of at least one second wireless access point; and send the identification information of at least one second wireless access point to the terminal device.
[0158] Exemplarily, the device to be configured can first start the STA mode to obtain the second wireless access points and their identification information to which the device to be configured can connect through Wi-Fi scanning, and then switch to the AP mode to form a local area network with the terminal device, so as to send the second wireless access points and their identification information to the terminal device.
[0159] Among them, the process of Wi-Fi scanning by the device to be configured can be divided into two modes: passive scanning and active scanning. In passive scanning, the device to be configured is in a receiving state, scanning all available wireless channels to receive identification information sent by wireless access points on different channels. In active scanning, the device to be configured will actively send a detection frame for detecting wireless access points, wait for nearby wireless access points to respond to the detection frame, and obtain the identification information of the wireless access point that responds to the detection frame.
[0160] Optionally, the scanning range of the Wi-Fi scan performed by the network device to be configured is affected by the hardware capability of the network device to be configured and the current environment. For example, if the network device to be configured is located in an area where the signal strength of the wireless access point is weak, the network device to be configured may not be able to detect the wireless access point.
[0161] In the present application, in step 501, the terminal device obtains the identification information of at least one first wireless access point corresponding to the terminal device, and in step 502, the device to be configured scans the surrounding wireless access points that can be connected to obtain the identification information of at least one second wireless access point. The execution subjects of the two steps are different. Therefore, the two steps can be executed synchronously to reduce the waiting time of the device to be configured and improve the efficiency of network configuration.
[0162] Step 503: The device to be networked sends identification information of at least one second wireless access point to the terminal device.
[0163] Correspondingly, the terminal device receives identification information of at least one second wireless access point sent by the device to be networked.
[0164] Step 504: The terminal device matches the identification information of at least one first wireless access point with the identification information of at least one second wireless access point to obtain the identification information of the target access point.
[0165] In some embodiments, the identification information of the first wireless access point to which the terminal device is currently connected is matched with the identification information of at least one second wireless access point to obtain a first matching result. If the first matching result is a successful match, the identification information of the first wireless access point to which the terminal device is currently connected is used as the identification information of the target access point; if the first matching result is a failed match, the identification information of at least one first wireless access point to which the terminal device has been historically connected is matched with the identification information of at least one second wireless access point to determine the identification information of the target access point.
[0166] The wireless access point that the terminal device is currently connected to usually means that the wireless access point can provide a stable network connection for the terminal device in the current environment. Selecting such a wireless access point as the target access point helps ensure that the device to be networked can also obtain a stable network connection after the network configuration is successful, which can reduce the user's waiting time and improve the efficiency and success rate of the network configuration process. Therefore, when determining the target access point, you can start matching from the wireless access point that the terminal device is currently connected to.
[0167] In some embodiments, if among at least one second wireless access point, there is a second wireless access point whose identification information is exactly the same as the identification information of the first wireless access point to which the terminal device is currently connected, the terminal device may consider the first matching result to be a successful match; otherwise, the terminal device may consider the first matching result to be a failed match.
[0168] In some embodiments, the terminal device may match each parameter included in the identification information of the first wireless access point to which the terminal device is currently connected with each parameter included in the identification information of at least one second wireless access point; if among all the parameters included in the identification information of the at least one second wireless access point, there is no parameter in the identification information of the currently connected first wireless access point, the terminal device may consider the first matching result to be a matching failure; otherwise, the terminal device may consider the first matching result to be a matching success.
[0169] In some embodiments, the terminal device may determine, based on the specified parameter, whether the specified parameter of the currently connected first wireless access point exists in the identification information of at least one second wireless access point. If so, the terminal device may consider the first matching result to be a successful match, wherein the specified parameter may be a data attribute shared by the identification information of the first wireless access point and the identification information of the second wireless access point.
[0170] Exemplarily, the specified parameter may be an SSID. As long as the SSID of at least one second wireless access point contains the SSID of the first wireless access point to which the terminal device is currently connected, the terminal device deems the first matching result to be a successful match and uses the identification information of the first wireless access point to which the terminal device is currently connected as the identification information of the target access point.
[0171] In some embodiments, if the identification information of at least one first wireless access point that the terminal device has historically connected to fails to match the identification information of at least one second wireless access point, the terminal device may output an indication of matching failure to prompt the user to check the device and network environment.
[0172] Step 505: The terminal device displays a connection page corresponding to the target access point according to the identification information of the target access point.
[0173] Step 506: The terminal device obtains connection information corresponding to the target access point by identifying the graphic code.
[0174] Step 507: The terminal device sends connection information corresponding to the target access point to the device to be configured.
[0175] Step 508: The device to be networked performs network configuration according to the connection information corresponding to the target access point.
[0176] For the description of steps 505 to 508 , reference may be made to the description of steps 302 to 305 in the above embodiment, which will not be repeated here.
[0177] In an embodiment of the present application, by matching the second wireless access point that the device to be networked is currently connected to or has been previously connected to with the first wireless access point that the terminal device can connect to, the target access point is made more compatible with the device to be networked, further ensuring the success rate of network configuration. Furthermore, when matching the identification information of the first wireless access point with the identification information of the second wireless access point, the first wireless access point that the terminal device is currently connected to is matched first to ensure that the network configuration process is performed in the optimal wireless network environment, thereby improving the success rate of network configuration. Furthermore, in the case where the matching of the currently connected first wireless access point fails, the first access point that the terminal device has previously connected to is matched, thereby increasing the selection range of the target access point, which helps to solve the problem of network configuration failure caused by compatibility issues between devices.
[0178] like Figure 6 As shown, in some embodiments, another network configuration method is provided, which can be applied to the above scenario. The method may include the following steps 601 to 609.
[0179] Step 601: A terminal device obtains identification information of at least one first wireless access point corresponding to the terminal device.
[0180] Step 602: The device to be networked scans surrounding wireless access points that can be connected to obtain identification information of at least one second wireless access point.
[0181] For the description of step 601 to step 602, reference may be made to the description of step 501 to step 502 in the above embodiment, which will not be repeated here.
[0182] Step 603: The network-to-be-connected device detects the signal strength corresponding to at least one second wireless access point, and generates strength information including the signal strength corresponding to the at least one second wireless access point.
[0183] The device to be networked scans the surrounding second wireless access points that can be connected to obtain the identification information of at least one second wireless access point; and measures the signal strength of each identified second wireless access point. Among them, signal strength is an important indicator to measure the quality of wireless signals (wireless networks), usually expressed in decibel milliwatts (dBm). A higher signal strength means that the wireless network has better network connection quality and faster data transmission speed.
[0184] The network device to be configured generates strength information based on the identification information and signal strength of each second wireless access point identified. The strength information includes the signal strength, SSID, corresponding MAC address, and other relevant information (such as encryption method, channel number, etc.) corresponding to at least one second wireless access point.
[0185] Step 604: The network device to be configured sends the strength information to the terminal device.
[0186] Correspondingly, the terminal device receives the strength information sent by the network device to be configured.
[0187] Step 605: The terminal device may match the identification information of at least one first wireless access point with the identification information of at least one second wireless access point according to the strength information to obtain the identification information of the target access point.
[0188] In some embodiments, the terminal device may match the identification information of at least one first wireless access point with the identification information of at least one second wireless access point according to the order of signal strength corresponding to at least one second wireless access point from strong to weak to obtain the identification information of the target access point.
[0189] Specifically, the terminal device may sort the at least one second wireless access point from strong to weak according to signal strength; match the identification information of the sorted second wireless access point with the identification information of at least one first wireless access point in the sorted order; if there is a first wireless access point among the at least one first wireless access point whose identification information is completely identical to the identification information of the sorted second wireless access point, use the first wireless access point as the target access point, and determine the identification information of the target access point.
[0190] In some embodiments, the terminal device may also match the identification information of at least one first wireless access point with the identification information of at least one second wireless access point; if there are multiple matching second wireless access points, the identification information corresponding to the second wireless access point with the strongest signal strength among the multiple matching second wireless access points is used as the identification information of the target access point.
[0191] Specifically, the terminal device may match the identification information of at least one first wireless access point that is currently connected or has been historically connected with the identification information of at least one second wireless access point that the device to be configured can connect to; if the wireless access point is both the first wireless access point and the second wireless access point, it means that the wireless access point is a candidate access point that has been successfully matched. If the terminal device obtains multiple candidate access points (matched second wireless access points), the terminal device may select the candidate access point with the strongest signal strength as the target access point from the multiple candidate access points to ensure that when the device to be configured is configured, the network signal can support the device to be configured to transmit data.
[0192] In some embodiments, the terminal device may determine the target access point based on the priority of the device, the encryption method of the wireless access point, etc. Specifically, the priority of the device to be configured may be higher than that of the terminal device, that is, when the terminal device selects the target access point, it will give priority to selecting a wireless access point with a stronger signal strength that the device to be configured can detect.
[0193] For example, the larger the signal strength level value is, the stronger the signal strength of the wireless access point is (level 1 is the weakest and level 6 is the strongest); the first wireless access point of the terminal device includes wireless access point A (signal strength is level 5), wireless access point B (signal strength is level 2) and wireless access point C (signal strength is level 1); the second wireless access point of the device to be configured includes wireless access point A (signal strength is level 2), wireless access point B (signal strength is level 3) and wireless access point D (signal strength is level 1); therefore, although the signal strength of wireless access point A of the terminal device is greater than that of the device to be configured, in the second wireless access point, the signal strength of wireless access point B is greater than that of wireless access point A, and the first wireless access point of the terminal device also includes wireless access point B, therefore, the target access point is wireless access point B.
[0194] In some embodiments, the terminal device may preset a priority list according to user requirements. If the terminal device detects that a certain wireless access point is not in the priority list, the wireless access point will not be selected as a target access point.
[0195] Step 606: The terminal device displays a connection page corresponding to the target access point according to the identification information of the target access point.
[0196] Step 607: The terminal device obtains the connection information corresponding to the target access point by identifying the graphic code.
[0197] Step 608: The terminal device sends connection information corresponding to the target access point to the device to be networked.
[0198] Step 609: The device to be networked performs network configuration according to the connection information corresponding to the target access point.
[0199] For the description of steps 606 to 609 , reference may be made to the description of steps 302 to 305 in the above embodiment, which will not be repeated here.
[0200] In an embodiment of the present application, the selection of the target access point is optimized by utilizing the signal strength. When there are multiple second wireless access points that match the first wireless access point (i.e., the wireless access point to which the terminal device is currently connected or has been historically connected), the terminal device can select a wireless access point with the strongest signal strength as the target access point, which can improve the connection stability between the device to be networked and the wireless access point, reduce the connection interruption or network configuration failure caused by weak signal, and improve the success rate of network configuration.
[0201] like Figure 7 As shown, in some embodiments, another network configuration method is provided, which can be applied to the above scenario. The method may include the following steps 501 to 508.
[0202] Step 701: A terminal device obtains identification information of at least one first wireless access point corresponding to the terminal device.
[0203] Step 702: The device to be networked scans surrounding wireless access points that can be connected to obtain identification information of at least one second wireless access point.
[0204] Step 703: The device to be networked sends identification information of at least one second wireless access point to the terminal device.
[0205] For the description of steps 701 to 703 , reference may be made to the description of steps 501 to 503 in the above embodiment, which will not be repeated here.
[0206] In step 704, the terminal device matches the identification information corresponding to the multiple first wireless access points with the identification information corresponding to the multiple second wireless access points to obtain multiple matched second wireless access points, and uses the multiple matched second wireless access points as target access points to obtain identification information corresponding to the multiple target access points respectively.
[0207] Step 705: The terminal device displays connection pages corresponding to multiple target access points respectively.
[0208] Step 706: The terminal device obtains connection information corresponding to multiple target access points respectively by identifying the graphic code.
[0209] After obtaining multiple target access points, the terminal device can display the connection page corresponding to each target access point in turn according to the identification information corresponding to each target access point, and when displaying the connection page, identify the graphic code on the connection page to obtain the connection information corresponding to each target access point in turn. The order of the target access points is not limited here.
[0210] Step 707: The terminal device sends the connection information corresponding to the multiple target access points to the device to be networked, so that the device to be networked performs network configuration according to the connection information corresponding to the multiple target access points.
[0211] For the description of steps 705 to 707 , reference may be made to the description of steps 505 to 507 in the above embodiment, which will not be repeated here.
[0212] Step 708: The network-to-be-connected device detects the signal strengths corresponding to the multiple target wireless access points.
[0213] For the description of step 708 detecting the signal strength corresponding to the wireless access point, reference may be made to the description of step 601 in the above embodiment, which will not be repeated here.
[0214] Step 709 , the device to be networked performs network configuration according to the connection information corresponding to the multiple target access points in order of the signal strengths corresponding to the multiple target access points from strong to weak.
[0215] For example, the device to be networked can sort multiple target access points from strong to weak according to the signal strengths corresponding to the multiple target access points detected. The target access point with the strongest signal strength is used as the first candidate access point, and the device to be networked attempts to configure the network through the connection information corresponding to the first candidate access point. If the network configuration fails, the next target access point is used as the new current candidate access point, and the network configuration is attempted through the connection information corresponding to the current candidate access point, until the network configuration is successful or all target access points fail to configure the network.
[0216] In an embodiment of the present application, the terminal device sends connection information corresponding to multiple target access points to the network device to be configured, providing the network device to be configured with a selection opportunity to try to configure the network, allowing the network device to be configured to independently determine the target access point, which can increase the probability of successful network configuration, allowing the network device to be configured to determine the strongest accessible target access point, and enabling the network device to be configured to automatically and flexibly change to connect to other target access points.
[0217] like Fig. 8A As shown, in some embodiments, a network configuration method is provided, which can be applied to the terminal devices in the above-mentioned scenario. The method may include the following steps 802 to 814.
[0218] Step 802: In response to a network configuration operation for the device to be configured, a communication connection is established with the device to be configured, and a network configuration page is displayed.
[0219] When the user needs to configure the network device to be configured through the terminal device, the user can input the network configuration operation for the network device to be configured to the terminal device. For example, the user can open the application for managing and configuring the network device to be configured on the terminal device, and select the network device to be configured that needs to be configured on the application (network configuration operation for the network device to be configured). The terminal device then responds to the network configuration operation for the network device to be configured, establishes a communication connection with the network device to be configured, and displays the network configuration page. The network configuration page may include an acquisition control; and also includes a first input control and a second input control.
[0220] In a specific embodiment, Figure 8B As shown, the network configuration page 820 corresponding to the target access point may include an acquisition control 821, a first input control 822, a second input control 823, and a text description area 824. Among them, the acquisition control 821 is used to trigger the terminal device to obtain the corresponding connection information according to the identification information filled in the first input control 822. The first input control 822 is used to display the identification information of the target access point, such as "SSID". The second input control 823 can be used to display the connection information corresponding to the target access point obtained by the terminal device, such as "connection password". The text description area 824 can be used to display the device information of the device to be configured, such as the device name of the device to be configured "device A to be configured".
[0221] Step 804: determine the identification information of the target access point of the device to be networked.
[0222] For the description of step 804, reference may be made to the description of step 301 in the above embodiment, which will not be repeated here.
[0223] Step 806: fill in the identification information of the target access point in the first input control.
[0224] The identification information of the target access point is filled in the first input control so that the user can observe the target access point determined by the terminal device and the step of the network configuration process of the user connecting to the current network configuration device. The first input control can be a text box, a drop-down list, etc.
[0225] Step 808: In response to the triggering operation on the acquisition control, a connection page corresponding to the target access point is displayed according to the identification information corresponding to the target access point.
[0226] In some embodiments, after the terminal device fills in the identification information of the target access point in the first input control, if it detects that the user triggers the acquisition control, it means that the user has no objection to the current target access point, that is, the user agrees to use the wireless access point as the target access point. Then, the terminal device can display the connection page corresponding to the target access point according to the identification information corresponding to the target access point to obtain the connection information corresponding to the target access point.
[0227] In some embodiments, if the terminal device does not detect a trigger operation on the acquisition control within the first preset time, the acquisition prompt may be output to remind the user to trigger the acquisition control. If the trigger operation on the acquisition control is still not detected within the second preset time, the terminal device may directly display the connection page corresponding to the target access point according to the identification information corresponding to the target access point to obtain the connection information corresponding to the target access point; the second preset time is longer than the first preset time. This enables the terminal device to automatically perform further network configuration operations, avoiding the situation where the network configuration process of the device to be configured is terminated due to the user forgetting or not operating.
[0228] For the description of displaying the connection page corresponding to the target access point in step 808, reference may be made to the description of step 303 in the above embodiment, which will not be repeated here.
[0229] Step 810: Acquire connection information corresponding to the target access point by identifying the graphic code.
[0230] For the description of step 810, reference may be made to the description of step 303 in the above embodiment, which will not be repeated here.
[0231] Step 812: Fill in the connection password of the target access point in the second input control.
[0232] After obtaining the connection information corresponding to the target access point, the terminal device may fill the connection password in the connection information into the second input control, which can remind the user of the connection password corresponding to the target access point to a certain extent.
[0233] Step 814: Send connection information corresponding to the target access point to the device to be networked, so that the device to be networked can perform network configuration.
[0234] For the description of step 814, reference may be made to the description of step 304 in the above embodiment, which will not be repeated here.
[0235] In the embodiment of the present application, the user's network configuration operation for the device to be configured and the trigger operation of the acquisition control can enable the terminal device to realize the network configuration process of the device to be configured, thereby improving the efficiency of network configuration; moreover, the entire network configuration process is automatic for the user, and the user only needs to perform simple operations to trigger the entire network configuration process, thereby simplifying the user's operation. Moreover, by filling the identification information and the connection password of the target access point into the input control corresponding to the network configuration page, the user can know the currently selected target access point and the actual progress of the network configuration.
[0236] like Fig. 9 As shown, in one embodiment, a network configuration device 900 is provided, which can be applied to the above terminal device. The network configuration device 900 can include an identification determination module 910, a page display module 920, a collection and identification module 930 and an information sending module 940.
[0237] The identification determination module 910 is used to determine the identification information of the target access point of the device to be networked; the target access point is a wireless access point to which the terminal device is currently connected or has been connected in the past and to which the device to be networked can connect.
[0238] The page display module 920 is used to display a connection page corresponding to the target access point according to the identification information of the target access point; the connection page includes a graphic code corresponding to the target access point.
[0239] The acquisition and identification module 930 is used to obtain the connection information corresponding to the target access point by identifying the graphic code.
[0240] The information sending module 940 is used to send connection information corresponding to the target access point to the device to be networked, and the connection information is used to configure the network for the device to be networked.
[0241] In some embodiments, the network distribution device 900 may further include an information receiving module.
[0242] Optionally, the identification determination module 910 is further configured to obtain identification information of at least one first wireless access point corresponding to the terminal device; the first wireless access point is a wireless access point to which the terminal device is currently connected or has been connected in the past.
[0243] The information receiving module is used to receive identification information of at least one second wireless access point sent by the network device to be configured, where the second wireless access point is a wireless access point to which the network device to be configured can connect.
[0244] The identification determination module 910 is further configured to match identification information of at least one first wireless access point with identification information of at least one second wireless access point to obtain identification information of a target access point.
[0245] In some embodiments, the identification determination module 910 is further used to obtain identification information of at least one first wireless access point whose connection information is stored in the terminal device; or, to display a network list page of the terminal device; the network list page includes identification information of the first wireless access point to which the terminal device is currently connected, and / or identification information of at least one first wireless access point that has been historically connected; collect a first page image corresponding to the network list page, and identify the first page image to obtain identification information of each first wireless access point contained in the first page image.
[0246] Optionally, the identification determination module 910 is further used to match the identification information of the first wireless access point to which the terminal device is currently connected with the identification information of at least one second wireless access point to obtain a first matching result; if the first matching result is a successful match, the identification information of the first wireless access point to which the terminal device is currently connected is used as the identification information of the target access point; if the first matching result is a failed match, the identification information of at least one first wireless access point to which the terminal device has been historically connected is matched with the identification information of at least one second wireless access point to determine the identification information of the target access point.
[0247] In some embodiments, the information receiving module is further used to receive strength information sent by the device to be networked, where the strength information includes a signal strength corresponding to at least one second wireless access point.
[0248] Optionally, the identification determination module 910 is further configured to match the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point according to the order of signal strength corresponding to the at least one second wireless access point from strong to weak, to obtain the identification information of the target access point; or, match the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point; if there are multiple matching second wireless access points, use the identification information corresponding to the second wireless access point with the strongest signal strength among the multiple matching second wireless access points as the identification information of the target access point.
[0249] In some embodiments, the identification determination module 910 is further used to match identification information corresponding to multiple first wireless access points with identification information corresponding to multiple second wireless access points to obtain multiple matching second wireless access points, and use the multiple matching second wireless access points as target access points to obtain identification information corresponding to the multiple target access points respectively.
[0250] Optionally, the information sending module 940 is further configured to send connection information corresponding to the multiple target access points to the device to be networked, so that the device to be networked performs network configuration according to the connection information corresponding to the multiple target access points.
[0251] In some embodiments, the acquisition and identification module 930 is also used to take a screenshot or screen record the connection page to acquire a second page image corresponding to the connection page, wherein the second page image includes a graphic code; and obtain the connection information corresponding to the target access point by identifying the graphic code in the second page image.
[0252] The page display module 920 is also used to establish a communication connection with the device to be configured and display a network configuration page in response to a network configuration operation for the device to be configured; the network configuration page includes an acquisition control. And, in response to a trigger operation on the acquisition control, display a connection page corresponding to the target access point according to the identification information corresponding to the target access point.
[0253] Optionally, the connection information includes a connection password, and the network configuration page also includes a first input control and a second input control.
[0254] In some embodiments, the network distribution device 900 further includes an information filling module.
[0255] The information filling module is used to fill the identification information of the target access point in the first input control and fill the connection password of the target access point in the second input control.
[0256] In an embodiment of the present application, the terminal device can determine the identification information of the target access point of the device to be networked, and display the connection page corresponding to the target access point. By identifying the graphic code of the connection page corresponding to the target access point, the connection information corresponding to the target access point is directly obtained, and then the connection information corresponding to the target access point is sent to the device to be networked, so that the device to be networked can be networked. The user does not need to manually enter the connection information, which can not only avoid the failure of network configuration due to the user forgetting the connection information, but also simplify the network configuration operation of the device to be networked, and improve the success rate and convenience of network configuration.
[0257] like Fig.10 As shown, in one embodiment, a network configuration device 1000 is provided, which can be applied to the above-mentioned network configuration device. The network configuration device 1000 may include a scanning module 1010, a sending module 1020, a receiving module 1030 and a network configuration module 1040.
[0258] The scanning module 1010 is configured to scan surrounding wireless access points that can be connected to obtain identification information of at least one second wireless access point.
[0259] The sending module 1020 is used to send the identification information of at least one second wireless access point to the terminal device, so that the terminal device matches the identification information of at least one first wireless access point with the identification information of at least one second wireless access point to obtain the identification information of the target access point; the first wireless access point is a wireless access point to which the terminal device is currently connected or has been connected in the past.
[0260] The receiving module 1030 is used to receive the connection information corresponding to the target access point sent by the terminal device; the connection information corresponding to the target access point is obtained by the terminal device displaying the connection page corresponding to the target access point according to the identification information of the target access point and identifying the graphic code; the connection page includes the graphic code corresponding to the target access point; the target access point is a wireless access point to which the terminal device is currently connected or has been connected in the past and to which the device to be configured can connect.
[0261] The network configuration module 1040 is used to perform network configuration according to the connection information corresponding to the target access point.
[0262] In some embodiments, the network distribution device 1000 may further include a strength detection module.
[0263] The strength detection module is used to detect the signal strength corresponding to at least one second wireless access point, and generate strength information including the signal strength corresponding to the at least one second wireless access point.
[0264] Optionally, the sending module 1020 is further used to send the strength information to the terminal device, so that when there are multiple second wireless access points matching the first wireless access point, the terminal device uses the identification information of the second wireless access point with the strongest signal strength among the multiple matching second wireless access points as the identification information of the target access point.
[0265] In some embodiments, the strength detection module is further configured to detect signal strengths corresponding to a plurality of second wireless access points.
[0266] The receiving module 1030 is further configured to receive connection information corresponding to multiple target access points respectively sent by the terminal device.
[0267] The network configuration module 1040 is further configured to perform network configuration according to the connection information corresponding to the multiple target access points in order of signal strength corresponding to the multiple target access points from strong to weak.
[0268] In the embodiment of the present application, the device to be networked can scan the surrounding wireless access points that can be connected, and send the scanning results to the terminal device, so that the target access point matched by the terminal device is the wireless access point to which the device to be networked can connect, thereby avoiding the network configuration failure caused by the target access point reported by the terminal device as incompatible and unable to connect; and the device to be networked only needs to perform network configuration according to the connection information sent by the terminal device, thereby simplifying the user's operation during the network configuration process of the device to be networked and improving the convenience of network configuration.
[0269] Fig.11 FIG. 1 is a block diagram of an electronic device in an embodiment. The electronic device may be a mobile phone, a tablet computer, a smart wearable device, etc. Fig.11 As shown, the electronic device 1100 may include one or more of the following components: a processor 1110, and a memory 1120 coupled to the processor 1110, wherein the memory 1120 may store one or more computer programs, and the one or more computer programs may be configured to be applicable to a terminal device or a device to be networked when executed by one or more processors 1110, so as to implement the methods described in the above embodiments.
[0270] The processor 1110 may include one or more processing cores. The processor 1110 uses various interfaces and lines to connect various parts of the entire electronic device 1100, and executes various functions and processes data of the electronic device 1100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1120, and calling data stored in the memory 1120. Optionally, the processor 1110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Fieldd-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1110, but may be implemented separately through a communication chip.
[0271] The memory 1120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 1120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device 1100 during use, etc.
[0272] It can be understood that the electronic device 1100 may include more or fewer structural elements than those in the above structural block diagram, for example, including a power supply, input buttons, cameras, speakers, screens, RF (Radio Frequency) circuits, Wi-Fii (Wireless Fidelity) modules, Bluetooth modules, sensors, etc., and no limitation is made here.
[0273] An embodiment of the present application provides a computer-readable storage medium that stores a computer program, wherein the computer program, when executed by a processor, can be applied to a terminal device or a device to be configured on a network, respectively, to implement the methods described in the above embodiments.
[0274] An embodiment of the present application provides a computer program product, including a computer program, and when the computer program can be executed by a processor, it can be applied to a terminal device or a device to be configured on the network, so as to implement the methods described in the above embodiments.
[0275] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM), etc.
[0276] As used herein, any reference to memory, storage, database, or other medium may include nonvolatile and / or volatile memory. Suitable nonvolatile memory may include ROM, programmable ROM (Programmable ROM, PROM), erasable PROM (Erasable PROM, EPROM), electrically erasable PROM (Electrically Erasable PROM, EEPROM) or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus direct RAM (RDRAM) and direct memory bus dynamic RAM (DRDRAM).
[0277] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.
[0278] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0279] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0280] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0281] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0282] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.
[0283] The above is a detailed introduction to a network distribution method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. At the same time, for those of ordinary skill in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application.< / ssid>
Claims
1. A network distribution method, It is characterized in that Applied to a terminal device, the terminal device is communicatively connected with a device to be networked, and the method comprises: Determine identification information of a target access point of the device to be networked; the target access point is a wireless access point to which the terminal device is currently connected or has been connected in the past and to which the device to be networked can connect; Displaying a connection page corresponding to the target access point according to the identification information of the target access point; the connection page includes a graphic code corresponding to the target access point; Acquire connection information corresponding to the target access point by identifying the graphic code; The connection information corresponding to the target access point is sent to the device to be networked, where the connection information is used to configure a network for the device to be networked.
2. The method according to claim 1, It is characterized in that The step of determining the identification information of the target access point of the device to be networked includes: Acquire identification information of at least one first wireless access point corresponding to the terminal device; the first wireless access point is a wireless access point to which the terminal device is currently connected or has been previously connected; Receiving identification information of at least one second wireless access point sent by the to-be-configured network device, where the second wireless access point is a wireless access point to which the to-be-configured network device can connect; The identification information of the at least one first wireless access point is matched with the identification information of the at least one second wireless access point to obtain the identification information of the target access point.
3. The method according to claim 2, It is characterized in that The acquiring identification information of at least one first wireless access point corresponding to the terminal device includes: Acquire identification information of at least one first wireless access point where connection information of the terminal device is stored; or, Displaying a network list page of the terminal device; the network list page includes identification information of a first wireless access point currently connected to the terminal device, and / or identification information of at least one first wireless access point previously connected to the terminal device; A first page image corresponding to the network list page is collected, and the first page image is identified to obtain identification information of each first wireless access point contained in the first page image.
4. The method according to claim 2, It is characterized in that The matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point includes: Matching the identification information of the first wireless access point to which the terminal device is currently connected with the identification information of the at least one second wireless access point to obtain a first matching result; If the first matching result is a successful match, using the identification information of the first wireless access point to which the terminal device is currently connected as the identification information of the target access point; If the first matching result is a matching failure, the identification information of at least one first wireless access point that the terminal device has been historically connected to is matched with the identification information of the at least one second wireless access point to determine the identification information of the target access point.
5. The method according to claim 2, It is characterized in that Before matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point, the method further includes: Receiving strength information sent by the to-be-configured network device, the strength information including the signal strength corresponding to the at least one second wireless access point; The matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point includes: According to the order of signal strengths corresponding to the at least one second wireless access point from strong to weak, matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point; or, matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point; If there are multiple matching second wireless access points, the identification information corresponding to the second wireless access point with the strongest signal strength among the multiple matching second wireless access points is used as the identification information of the target access point.
6. The method according to any one of claims 2 to 4, It is characterized in that The matching the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point includes: Matching identification information corresponding to the plurality of first wireless access points with identification information corresponding to the plurality of second wireless access points to obtain a plurality of matched second wireless access points, and using the plurality of matched second wireless access points as target access points to obtain identification information corresponding to the plurality of target access points respectively; The sending the connection information corresponding to the target access point to the device to be networked, wherein the connection information is used to configure a network for the device to be networked, includes: The connection information respectively corresponding to the multiple target access points is sent to the device to be networked, so that the device to be networked performs network configuration according to the connection information respectively corresponding to the multiple target access points.
7. The method according to claim 1, It is characterized in that The acquiring the connection information corresponding to the target access point by identifying the graphic code includes: Taking a screenshot or screen recording of the connection page to collect a second page image corresponding to the connection page, wherein the second page image includes the graphic code; The connection information corresponding to the target access point is obtained by identifying the graphic code in the second page image.
8. The method according to claim 1, It is characterized in that Before determining the identification information of the target access point of the device to be networked, the method further includes: In response to the network configuration operation for the device to be configured, a communication connection is established with the device to be configured, and a network configuration page is displayed; the network configuration page includes an acquisition control; The step of displaying a connection page corresponding to the target access point according to the identification information of the target access point includes: In response to the triggering operation on the acquisition control, a connection page corresponding to the target access point is displayed according to the identification information corresponding to the target access point.
9. The method according to claim 8, It is characterized in that The connection information includes a connection password, and the network configuration page also includes a first input control and a second input control; After determining the identification information of the target access point of the device to be networked, the method further includes: Filling the identification information of the target access point in the first input control; After acquiring the connection information corresponding to the target access point by identifying the graphic code, the method further includes: Fill in the connection password of the target access point in the second input control.
10. A network distribution method, It is characterized in that Applied to a network device to be configured, the network device to be configured is connected to a terminal device for communication, and the method includes: Scanning surrounding wireless access points that can be connected to obtain identification information of at least one second wireless access point; sending the identification information of the at least one second wireless access point to the terminal device, so that the terminal device matches the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point; the first wireless access point is the wireless access point that the terminal device is currently connected to or has been connected to in the past; receiving connection information corresponding to a target access point sent by the terminal device; the connection information corresponding to the target access point is obtained by the terminal device displaying a connection page corresponding to the target access point according to identification information of the target access point and identifying a graphic code; the connection page includes a graphic code corresponding to the target access point; the target access point is a wireless access point to which the terminal device is currently connected or has been connected in the past and to which the device to be configured can connect; Network configuration is performed according to the connection information corresponding to the target access point.
11. The method according to claim 10, It is characterized in that The method further comprises: detecting a signal strength corresponding to the at least one second wireless access point, and generating strength information including the signal strength corresponding to the at least one second wireless access point; The strength information is sent to the terminal device, so that when there are multiple second wireless access points matching the first wireless access point, the terminal device uses the identification information of the second wireless access point with the strongest signal strength among the multiple matching second wireless access points as the identification information of the target access point.
12. The method according to claim 10, It is characterized in that The method further comprises: Detecting signal strengths corresponding to the plurality of second wireless access points respectively; Receiving connection information corresponding to multiple target access points respectively sent by the terminal device; In the order of signal strengths corresponding to the multiple target access points from strong to weak, network configuration is performed in sequence according to the connection information corresponding to the multiple target access points.
13. A distribution network device, It is characterized in that Applied to a terminal device, the terminal device is communicatively connected with a device to be networked, and the device comprises: An identification determination module is used to determine the identification information of the target access point of the device to be networked; the target access point is a wireless access point to which the terminal device is currently connected or has been connected in the past and to which the device to be networked can connect; A page display module, configured to display a connection page corresponding to the target access point according to the identification information of the target access point; the connection page includes a graphic code corresponding to the target access point; A collection and identification module, used for obtaining connection information corresponding to the target access point by identifying the graphic code; The information sending module is used to send the connection information corresponding to the target access point to the device to be networked, and the connection information is used to configure the network for the device to be networked.
14. A distribution network device, It is characterized in that Applied to a network device to be configured, the network device to be configured is connected to a terminal device for communication, and the device comprises: A scanning module, used to scan surrounding wireless access points that can be connected to obtain identification information of at least one second wireless access point; a sending module, configured to send the identification information of the at least one second wireless access point to the terminal device, so that the terminal device matches the identification information of the at least one first wireless access point with the identification information of the at least one second wireless access point to obtain the identification information of the target access point; the first wireless access point is the wireless access point that the terminal device is currently connected to or has been connected to in the past; a receiving module, configured to receive connection information corresponding to a target access point sent by the terminal device; the connection information corresponding to the target access point is obtained by the terminal device displaying a connection page corresponding to the target access point according to identification information of the target access point and identifying a graphic code; the connection page includes a graphic code corresponding to the target access point; the target access point is a wireless access point to which the terminal device is currently connected or has been historically connected and to which the device to be configured can connect; The network configuration module is used to perform network configuration according to the connection information corresponding to the target access point.
15. An electronic device, It is characterized in that The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 9 or 10 to 12.
16. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 or 10 to 12 is implemented.
Citation Information
Cited By
Wireless network connection method and device of Internet of Things equipment, equipment and medium
CN122438142A
A wireless network connection method, device, equipment and medium of an Internet of Things device
CN122438142B
